CN110611348A - 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
CN110611348A
CN110611348A CN201910901646.XA CN201910901646A CN110611348A CN 110611348 A CN110611348 A CN 110611348A CN 201910901646 A CN201910901646 A CN 201910901646A CN 110611348 A CN110611348 A CN 110611348A
Authority
CN
China
Prior art keywords
charging
earphone
box
state
interface
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
CN201910901646.XA
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 CN201910901646.XA priority Critical patent/CN110611348A/en
Publication of CN110611348A publication Critical patent/CN110611348A/en
Pending legal-status Critical Current

Links

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

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 state and the communication state, the multiplexing of the charging interface can be realized, the contact points of 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 charging box charges and communicates with the earphone, which results in 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, a charging interface multiplexing method is provided, which is applied to a charging box, where the charging box includes a charging interface, a processor, a load switch, and a sampling resistor; 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 and an ADC port; the first IO port is connected to the first power supply contact through the load switch, the ADC port is connected to the second power supply contact, and the second power supply contact is grounded through the sampling resistor; 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 state, judging whether the charging box needs to communicate with an earphone or not; when the charging interface is in a charging state, the load switch is in a conducting state;
if the communication with the earphone is needed, controlling the charging interface to be switched to the communication state from the charging state, including:
when the code is sent to the earphone, the on/off of the load switch is switched in a preset coding mode through the first IO port to generate a corresponding first communication signal, and the communication signal is transmitted to the earphone through a first power supply contact; and/or the presence of a gas in the gas,
and when receiving the code return of the earphone, acquiring a second communication signal returned by the earphone and received by the second power supply contact through the ADC 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 charged state, judge whether the box that charges needs to carry out the communication with the earphone includes:
when a charging interface of the charging box is in a charging state, detecting whether an earphone is in the box or not and whether user operation occurs on the charging box or not, and if the earphone is in the box and the user operation occurs on 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 state, 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 state from the state of charging:
and controlling the charging interface to be switched from the communication state to the charging state 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.
The processor further comprises a second IO port, the charging box further comprises a switching tube, the first end and the second end of the switching tube are connected to two ends of the sampling resistor in parallel, and the control end of the switching tube is connected to the second IO port of the processor; the charging interface multiplexing method further comprises the following steps:
when the charging interface of the charging box is in a charging state, the second IO port outputs a control signal to control the switch tube to be in a conducting state;
when the charging interface of the charging box is in a communication state, the second IO port outputs a control signal to control the switch tube to be in a cut-off state.
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 fourth IO 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 sampling 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 state, detecting whether the charging interface of the charging box is in a communication state; when the charging interface is in a charging state, 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 state, then control the interface that charges of earphone switches into communication state by the state of charging, include:
when receiving the code sending of the charging box, 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 obtain corresponding communication information; and/or the presence of a gas in the gas,
and when the code is returned to the charging box, the charging chip is closed, the on/off of the switch tube is switched in a preset coding mode through the fourth IO port 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 the communication state 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 state.
Wherein, if the interface that charges of box is in communication state, then control the interface that charges of earphone still includes after switching into communication state by the state of charging:
and if the charging interface of the charging box is detected to be switched to the charging state, controlling the charging interface of the earphone to be switched from the communication state to the charging state.
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, and a sampling resistor; 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 and an ADC port; the first IO port is connected to the first power supply contact through the load switch, the ADC port is connected to the second power supply contact, and the second power supply contact is grounded through the sampling resistor;
the charging box further comprises a memory connected with 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 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 fourth IO 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 sampling 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 charging interface multiplexing method according to any of the second aspects.
According to a fifth aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, having a computer program stored thereon, where the computer program, when executed by a processor, implements the steps of the charging interface multiplexing method according to any one of the first aspect; alternatively, the steps of the charge interface multiplexing method according to any one of the second aspects are implemented.
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 charging interface multiplexing method, charging box, earphone and computer readable storage medium that the embodiment of the invention provides, because through constructing the multiplexing circuit of charging interface that meets the charging and communication requirement at the same time through the discrete devices such as load switch, resistance and switch tube at charging box and earphone end, then control the on/off state of multiplexing load switch and switch tube of charging interface through the processor in charging box and earphone, make the charging interface can switch over under charging state and communication state, thus can realize the multiplexing of the charging interface, reduce the contact point in charging box and earphone, and needn't 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 structural diagram of a TWS headset system according to another embodiment of the present invention;
fig. 3 is a schematic flowchart of a specific implementation of a charging interface multiplexing method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart illustrating a specific implementation process of a charging interface multiplexing method according to another embodiment of the present invention;
fig. 5 is a schematic flowchart illustrating a specific implementation process of a charging interface multiplexing method according to another embodiment of the present invention;
fig. 6 is a schematic structural view of a charging box provided in an embodiment of the present invention;
fig. 7 is a schematic structural view of a charging box according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of an earphone according to an 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 and a sampling resistor R1; 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 and an ADC port; the first IO port IO1 is connected to the first supply contact Boxpogopin + through the load switch 102, and the ADC port is connected to the second supply contact Boxpogopin-; the second supply contact Boxpogopin-is also grounded through the sampling resistor R1;
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 comprises a third IO port IO3, a fourth IO port IO4 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 fourth IO port IO4 of the signal transmitting end, 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 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 sampling 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 fourth IO port IO 4.
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 each headset 200 is provided with a charging interface multiplexing circuit of the headset 200 shown in fig. 1.
Preferably, referring to fig. 2, in another embodiment, the processor 101 of the charging box further includes a second IO port IO2, the charging box 100 further includes a switching tube 103, a first end and a second end of the switching tube 103 are connected in parallel to two ends of the sampling resistor R1, and a control end of the switching tube 103 is connected to the second IO port IO2 of the processor 101. 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 sampling resistor R1 are connected in common and then 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 sampling resistor R1 are connected in common and then grounded, and the gate of the MOS1 tube is the control end of the switching tube 103 and connected to the second IO port IO 2.
Based on the above system configuration, the following embodiments of the present invention are proposed.
Example one
Fig. 3 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. 3, the charging interface multiplexing method provided by the embodiment of the invention includes the following steps executed by the processor 101:
step S301, when the charging interface of the charging box 100 is in a charging state, judging whether the charging box 100 needs to communicate with the earphone 200; when the charging interface is in a charging state, the load switch 102 is in a conducting state.
In this embodiment, when the earphone 200 is loaded into the charging box and no user operation is detected within a preset time, the charging box 100 automatically enters a charging state, and in the charging state, the load switch 102 of the charging box 100 is in a conducting state, so that the first power supply contact point Boxpogopin + outputs a charging voltage to the first charging contact point Earpogopin + of the earphone 200.
In this embodiment, when the charging interface of the charging box 100 is in a charging state, 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 state, 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 state, whether the earphone 200 is in the box and whether the charging box 100 is provided with a timing communication instruction in advance 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 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 S302, if communication with the headset 200 is required, controlling the charging interface to switch from the charging state to the communication state includes:
when sending a code to the headset, switching on/off the load switch 102 in a preset coding mode through the first IO port IO1 to generate a corresponding first communication signal, and transmitting the communication signal to the headset 200 through the first power supply contact Boxpogopin +; and/or the presence of a gas in the gas,
and when receiving the return code of the earphone, acquiring a second communication signal received by the second power supply contact Boxpogopin and returned by the earphone 200 through an ADC port, and decoding the second communication signal according to a preset decoding mode to acquire corresponding communication information.
In the communication state, 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 +.
In a communication state, when the end of the earphone 200 returns a code to the charging box 100, the ADC port of the processor 101 of the charging box 100 samples the current signal, which is received by the second power supply contact Boxpogopin and includes communication information, output by the second charging contact of the earphone 200, and decodes the sampled current signal according to a preset decoding mode to obtain 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 state to the charging state every time the communication information returned by the earphone 200 is identified or the process of identifying the communication information returned by the earphone 200 is overtime.
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, since the circuit structure satisfying the charging and communication requirements is constructed at the end of the charging box 100 through the load switch 102, the sampling resistor R1 and other discrete devices, and then the on/off state of the load switch 102 in the circuit structure is controlled by the processor in the charging box 100, the charging interface of the charging box 100 can be switched between the charging state and the communication state, so that multiplexing of the charging interface can be realized, contact points in the charging box 100 are reduced, and a dedicated communication chip does not need to be added 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. 4 is a schematic diagram of a specific implementation flow of a charging interface multiplexing method according to another embodiment of the present invention. The method is executed mainly by the charging box 100 in the system shown in fig. 2. Referring to fig. 4, in comparison with the previous embodiment, the method for multiplexing a charging interface provided in this embodiment further includes:
step S401, when the charging interface of the charging box 100 is in a charging state, judging whether the charging box needs to communicate with an earphone; when the charging interface is in a charging state, the load switch 102 and the switch tube 103 are both in a conducting state;
step S402, if communication with the headset 200 is required, controlling the charging interface to switch from the charging state to the communication state includes:
switching on/off of the load switch 102 in a preset coding mode through the first IO port IO1 to generate a corresponding first communication signal, and transmitting the communication signal to the headset through a first power supply contact; and/or the presence of a gas in the gas,
the switching tube 103 is controlled to be cut off by outputting a control signal through the second IO port IO2, the second communication signal received by the second power supply contact Boxpogopin and returned by the earphone 200 is obtained through the ADC port, and the second communication signal is decoded according to a preset decoding mode to obtain corresponding communication information.
Compared with the previous embodiment, in the present embodiment, the switch tube 103 connected in parallel with the sampling resistor R1 is added to the charging box 100, the switch tube 103 is turned on by the processor 101 when the charging interface of the charging box is detected to be in the charging state, and the switch tube 103 is controlled to be in the off state when the charging interface of the charging box is detected to be in the communication state, so that the energy consumption generated by the sampling resistor when the charging interface of the charging box is in the charging state can be saved.
EXAMPLE III
Fig. 5 is a schematic diagram of a specific implementation flow of a charging interface multiplexing method according to another 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. 5, the charging interface multiplexing method provided by the embodiment of the invention includes the following steps executed by the processor 201:
step S501, when the charging interface of the earphone 200 is in a charging state, detecting whether the charging interface of the charging box 100 is in a communication state; when the charging interface is in a charging state, 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 state, 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 state 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 state.
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 S502, if the charging interface of the charging box 100 is in a communication state, controlling the charging interface of the earphone 200 to be switched from the charging state to the communication state, 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 fourth IO port IO4 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 method, 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 simultaneously controls the switching of the switching tube 203 to be turned on/off through the fourth IO port IO4 according to a preset coding mode, so that the second charging contact earpogpin of the processor 201 outputs a current 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 the charging state, controlling the charging interface of the earphone to be switched from the communication state to the charging state.
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 fourth IO port IO4 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, and the real-time performance of charging is ensured.
As can be seen from the above, in the method for multiplexing charging interfaces provided in this embodiment, since the circuit structure satisfying the charging and communication requirements 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 state and the communication state, thereby multiplexing the charging interface of the earphone 200 can be realized, the number of contact points in the earphone 200 is reduced, and a dedicated communication chip does not need 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 four
Fig. 6 is a schematic structural diagram of the charging box 100 according to the embodiment of the present invention. Only the portions related to the present embodiment are shown for convenience of explanation.
Referring to fig. 6, the charging box 100 provided in this embodiment includes a charging interface, a processor 101, a load switch 102, and a sampling resistor R1; 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 and an ADC port ADC; the first IO port IO1 is connected to the first supply contact Boxpogopin + through the load switch 102, and the ADC port is connected to the second supply contact Boxpogopin-; the second supply contact Boxpogopin-is also grounded through the sampling resistor R1;
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.
Preferably, referring to fig. 7, in another embodiment, the processor 101 of the charging box further includes a second IO port IO2, the charging box 100 further includes a switching tube 103, a first end and a second end of the switching tube 103 are connected in parallel to two ends of the sampling resistor R1, and a control end of the switching tube 103 is connected to the second IO port IO2 of the processor 101.
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 sampling resistor R1 are connected in common and then 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 sampling resistor R1 are connected in common and then grounded, and the gate of the MOS1 tube is the control end of the switching tube 103 and connected to the second IO port IO 2.
The charging box 100 of the embodiment of the present invention and the charging interface multiplexing method described in the first embodiment or the second embodiment belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments, and technical features in the method embodiments are correspondingly applicable in this embodiment, and are not described herein again.
EXAMPLE five
Fig. 8 is a schematic structural diagram of an earphone 200 according to an embodiment of the present invention, and only a portion related to the embodiment is shown for convenience of description.
Referring to fig. 8, the earphone 200 of the present 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 fourth IO port IO4 and a ground end GND; the first charging contact Earboropin + is connected to the third IO port IO3 after passing through the charging chip 202, the first charging contact Earboropin + 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 Earboropin-, the control end of the switching tube 203 is connected to the fourth IO port IO4, and the second charging contact Earboropin-is further grounded after being connected with the ground end GND of the processor in a common mode;
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 third 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
An embodiment six 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 any one of the first to third embodiments are implemented.
The computer-readable storage medium of the embodiment of the present invention and the charging interface multiplexing method described in any of the first to third embodiments 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.
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 and a sampling resistor; 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 and an ADC port; the first IO port is connected to the first power supply contact through the load switch, the ADC port is connected to the second power supply contact, and the second power supply contact is grounded through the sampling resistor; 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 state, judging whether the charging box needs to communicate with an earphone or not; when the charging interface is in a charging state, the load switch is in a conducting state;
if the communication with the earphone is needed, controlling the charging interface to be switched to the communication state from the charging state, including:
when the code is sent to the earphone, the on/off of the load switch is switched in a preset coding mode through the first IO port to generate a corresponding first communication signal, and the communication signal is transmitted to the earphone through a first power supply contact; and/or the presence of a gas in the gas,
and when receiving the code return of the earphone, acquiring a second communication signal returned by the earphone and received by the second power supply contact through the ADC 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 the determining whether the charging box needs to communicate with an earphone when the charging interface of the charging box is in a charging state comprises:
when a charging interface of the charging box is in a charging state, detecting whether an earphone is in the box or not and whether user operation occurs on the charging box or not, and if the earphone is in the box and the user operation occurs on 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 state, 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, after controlling the charging interface to switch from the charging state to the communication state, the method further comprises:
and controlling the charging interface to be switched from the communication state to the charging state 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. The charging interface multiplexing method according to claim 1, wherein the processor further comprises a second IO port, the charging box further comprises a switching tube, a first end and a second end of the switching tube are connected in parallel to two ends of the sampling resistor, and a control end of the switching tube is connected to the second IO port of the processor; the charging interface multiplexing method further comprises the following steps:
when the charging interface of the charging box is in a charging state, the second IO port outputs a control signal to control the switch tube to be in a conducting state;
when the charging interface of the charging box is in a communication state, the second IO port outputs a control signal to control the switch tube to be in a cut-off state.
5. 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 fourth IO 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 state, detecting whether the charging interface of the charging box is in a communication state; when the charging interface is in a charging state, 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 state, then control the interface that charges of earphone switches into communication state by the state of charging, include:
when receiving the code sending of the charging box, 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 obtain corresponding communication information; and/or the presence of a gas in the gas,
and when the code is returned to the charging box, the charging chip is closed, the on/off of the switch tube is switched in a preset coding mode through the fourth IO port to generate a corresponding second communication signal, and the second communication signal is returned to the charging box through the second charging contact.
6. The charging interface multiplexing method of claim 5, wherein the detecting whether the charging interface of the charging box is in a communication state 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 state.
7. The charging interface multiplexing method of claim 5, wherein if the charging interface of the charging box is in the communication state, the controlling the charging interface of the earphone to switch from the charging state to the communication state further comprises:
and if the charging interface of the charging box is detected to be switched from the communication state to the charging state, controlling the charging interface of the earphone to be switched from the communication state to the charging state.
8. The charging box is characterized by comprising a charging interface, a processor, a load switch and a sampling resistor; 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 and an ADC port; the first IO port is connected to the first power supply contact through the load switch, the ADC port is connected to the second power supply contact, and the second power supply contact is grounded through the sampling resistor;
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 4.
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 fourth IO 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, wherein a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the charging interface multiplexing method according to any one of claims 1 to 4; or, implementing the steps of the charge interface multiplexing method according to any one of claims 5 to 7.
CN201910901646.XA 2019-09-23 2019-09-23 Charging interface multiplexing method, charging box, earphone and computer readable storage medium Pending CN110611348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910901646.XA CN110611348A (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
CN201910901646.XA CN110611348A (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
CN110611348A true CN110611348A (en) 2019-12-24

Family

ID=68892110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910901646.XA Pending CN110611348A (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) CN110611348A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111031443A (en) * 2019-12-30 2020-04-17 歌尔股份有限公司 Earphone control method, earphone box, earphone and storage medium
CN111159084A (en) * 2019-12-27 2020-05-15 惠州Tcl移动通信有限公司 Intelligent device
CN111491233A (en) * 2020-04-08 2020-08-04 江苏紫米电子技术有限公司 Method, device and equipment for reminding electric quantity of charging box and storage medium
CN111757206A (en) * 2020-07-06 2020-10-09 歌尔科技有限公司 Communication method between charging box and earphone, charging box, earphone and storage medium
CN111817393A (en) * 2020-07-17 2020-10-23 上海布鲁可科技有限公司 Charging and communication switching circuit capable of charging networking structure between paired pieces
US20220286768A1 (en) * 2021-03-03 2022-09-08 Luxshare-Ict Co., Ltd. Earphone system and communication method between charging box and earphone
EP4158732A4 (en) * 2020-06-01 2024-04-10 Harman Int Ind 2 pogo pin design for tws headphone

Citations (8)

* 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
CN108882082A (en) * 2018-05-18 2018-11-23 深圳市沃特沃德股份有限公司 The method and storage box of instruction are sent to bluetooth headset
CN109640207A (en) * 2018-12-24 2019-04-16 歌尔科技有限公司 A kind of communication control method, device, system, charging box and wireless headset
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
US20190289383A1 (en) * 2015-09-30 2019-09-19 Apple Inc. Wireless earbud

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190289383A1 (en) * 2015-09-30 2019-09-19 Apple Inc. Wireless earbud
CN107802958A (en) * 2017-11-28 2018-03-16 苏州景昱医疗器械有限公司 Open circuit detection module and open circuit detection method for nerve stimulator
CN108882082A (en) * 2018-05-18 2018-11-23 深圳市沃特沃德股份有限公司 The method and storage box of instruction are sent to bluetooth headset
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
CN109640207A (en) * 2018-12-24 2019-04-16 歌尔科技有限公司 A kind of communication control method, device, system, charging box and wireless headset
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 (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159084A (en) * 2019-12-27 2020-05-15 惠州Tcl移动通信有限公司 Intelligent device
CN111031443A (en) * 2019-12-30 2020-04-17 歌尔股份有限公司 Earphone control method, earphone box, earphone and storage medium
WO2021135872A1 (en) * 2019-12-30 2021-07-08 歌尔股份有限公司 Earphone control method, earphone box, earphone and storage medium
CN111031443B (en) * 2019-12-30 2021-10-08 歌尔股份有限公司 Earphone control method, earphone box, earphone and storage medium
CN111491233A (en) * 2020-04-08 2020-08-04 江苏紫米电子技术有限公司 Method, device and equipment for reminding electric quantity of charging box and storage medium
EP4158732A4 (en) * 2020-06-01 2024-04-10 Harman Int Ind 2 pogo pin design for tws headphone
CN111757206A (en) * 2020-07-06 2020-10-09 歌尔科技有限公司 Communication method between charging box and earphone, charging box, earphone and storage medium
CN111757206B (en) * 2020-07-06 2022-06-21 歌尔科技有限公司 Communication method between charging box and earphone, charging box, earphone and storage medium
CN111817393B (en) * 2020-07-17 2022-06-28 上海布鲁可积木科技有限公司 Charging and communication switching circuit capable of charging networking structure between paired pieces
CN111817393A (en) * 2020-07-17 2020-10-23 上海布鲁可科技有限公司 Charging and communication switching circuit capable of charging networking structure between paired pieces
US20220286768A1 (en) * 2021-03-03 2022-09-08 Luxshare-Ict Co., Ltd. Earphone system and communication method between charging box and earphone
US11564028B2 (en) * 2021-03-03 2023-01-24 Luxshare-Ict Co., Ltd. Earphone system and communication method between charging box and earphone
US20230077395A1 (en) * 2021-03-03 2023-03-16 Luxshare-Ict Co., Ltd. Earphone system and communication method between charging box and earphone
US20230077453A1 (en) * 2021-03-03 2023-03-16 Luxshare-Ict Co., Ltd. Earphone system and communication method between charging box and earphone
US11950042B2 (en) * 2021-03-03 2024-04-02 Luxshare-Ict Co., Ltd. Earphone system and communication method between charging box and earphone
US11950043B2 (en) * 2021-03-03 2024-04-02 Luxshare-Ict Co., Ltd. Earphone system and communication method between charging box and earphone

Similar Documents

Publication Publication Date Title
CN110611348A (en) Charging interface multiplexing method, charging box, earphone and computer readable storage medium
CN110690742A (en) Charging interface multiplexing method, charging box, earphone and computer readable storage medium
US11812214B2 (en) Communication control method, apparatus and system, charging case and wireless earphone
US11950042B2 (en) Earphone system and communication method between charging box and earphone
EP2455773A1 (en) Detecting circuit for electric quantity, processing device and method for state detection of mobile telephone in standby
CN211630347U (en) Resetting means and system, box, earphone charge
CN100382403C (en) A polarity protection implemented with a MOSFET
CN112636732B (en) Power-off delay protection circuit and device
RU2008141845A (en) SYSTEM AND METHOD FOR COMMUNICATION COMMUNICATION IN THE MIDDLE FIELD FOR A MOBILE MULTIFUNCTIONAL DEVICE WHEN THE BATTERY OF THIS DEVICE IS NOT CHARGED OR IS CHARGED ONLY PARTIALLY
CN210579146U (en) Low-power consumption circuit and TWS bluetooth headset
CN113991804B (en) Charging protocol handshaking circuit and electronic equipment
KR20190011196A (en) Voltage monitoring system utilizing first and second banks of channels and exchanged channel numbers for taking redundant safe action
CN114624524A (en) Charging detection method, device and equipment
CN113533839A (en) Circuit detection point voltage filtering method, switch state detection method and related device
US20130165096A1 (en) Incoming call forwarding method and communication device having incoming call forwarding function
CN105430727A (en) Communication terminal and carrier aggregation mode setting method thereof
CN100440406C (en) Control apparatus for an end key and a portable terminal employing the same
CN218920399U (en) Soft shutdown circuit and electronic equipment
US9532129B2 (en) Earphone line control device and earphone
CN109687712A (en) DC-DC device, control method for micro- mixed controller
WO2014134891A1 (en) Method and system for transmitting position switch status signal
CN109587021B (en) Data transmission method and data transmission system
CN211152198U (en) Microphone host control circuit
CN217509014U (en) Mute circuit and device
CN218350841U (en) Reset circuit and electronic device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191224