CN116320868A - Single-wire communication method and related product - Google Patents

Single-wire communication method and related product Download PDF

Info

Publication number
CN116320868A
CN116320868A CN202310176747.1A CN202310176747A CN116320868A CN 116320868 A CN116320868 A CN 116320868A CN 202310176747 A CN202310176747 A CN 202310176747A CN 116320868 A CN116320868 A CN 116320868A
Authority
CN
China
Prior art keywords
charging box
wireless earphone
charging
wireless
communication
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
CN202310176747.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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202310176747.1A priority Critical patent/CN116320868A/en
Publication of CN116320868A publication Critical patent/CN116320868A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Landscapes

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

Abstract

The application provides a single-wire communication method and a related product, wherein the method is applied to a charging box, a first wireless earphone is placed in the charging box, and the method comprises the following steps: when the charging box charges the first wireless earphone through the two power supply contact points, if the charging box is monitored to need to communicate with the first wireless earphone, the charging box is switched from a charging state to a communication state; a universal asynchronous receiver transmitter UART module integrated in a controller of the charging cartridge is invoked to establish a communication link between the charging cartridge and the first wireless headset. The single-wire communication between the charging box and the wireless earphone is realized by switching the working state of the charging box, so that the charging function and the communication function of the charging box to the wireless earphone are met, meanwhile, the structural simplicity and the attractive appearance are maintained, and the hardware resource occupation and the software development difficulty are reduced.

Description

Single-wire communication method and related product
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a single-wire communication method and related products.
Background
With the development of modern society science and technology, wireless earphone has obtained extensive application owing to its convenient characteristics of using, and the volume is getting smaller and smaller, in order to realize long duration, wireless earphone need be equipped with a supporting box that charges for it, and wireless earphone still need communicate with the box that charges simultaneously, makes it can carry out and enter the operation such as pairing state, restore the factory setting or download technology (Over the Air Technology, OTA) upgrading.
In the prior art, single-wire communication between the charging box and the wireless earphone is realized by a single-wire communication scheme and Input/Output (I/O) simulation of an integrated chip, wherein the integrated chip occupies the space of a circuit board and increases the cost of a product, and meanwhile, the transmission speed of the integrated chip is not high; the latter needs to use a software custom communication protocol to increase the complexity of software development, and how to realize single-wire communication between the wireless earphone and the charging box on the basis of overcoming the defects needs to be solved.
Disclosure of Invention
The embodiment of the application provides a single-wire communication method and related products, which can realize single-wire communication between a wireless earphone and a charging box in the process that the wireless earphone is charged by using two power supply contact points, so as to simplify structural design, reduce hardware resource occupation and reduce software development difficulty, thereby effectively reducing product cost.
In a first aspect, an embodiment of the present application provides a single-wire communication method, which is applied to a charging box, where a first wireless headset is placed in the charging box, and the method includes:
when the charging box charges the first wireless earphone through two power supply contact points, if the charging box is monitored to need to communicate with the first wireless earphone, the charging box is switched from a charging state to a communication state;
A universal asynchronous receiver Transmitter (Universal Asynchronous Receiver/Transmitter, UART) module integrated in a controller of the charging cartridge is invoked to establish a communication link between the charging cartridge and the first wireless headset.
In a second aspect, embodiments of the present application provide a single-wire communication method applied to a first wireless headset, where the first wireless headset is placed in a charging box, the method including:
when the charging box charges the first wireless earphone through two power supply contact points, if the charging box is monitored to need to communicate with the first wireless earphone, the first wireless earphone is switched from a charging state to a communication state;
and calling a UART module integrated in a controller of the first wireless headset to establish a communication link between the charging box and the first wireless headset.
In a third aspect, an embodiment of the present application provides a single-wire communication device, which is applied to a charging box, in which a first wireless headset is placed, and the device includes:
the switching unit is used for switching the charging box from a charging state to a communication state if the charging box is monitored to need to communicate with the first wireless earphone when the charging box charges the first wireless earphone through the two power supply contact points;
And the communication link establishment unit is used for calling a Universal Asynchronous Receiver Transmitter (UART) module integrated in the controller of the charging box to establish a communication link between the charging box and the first wireless earphone.
In a fourth aspect, embodiments of the present application provide a single-wire communication device applied to a first wireless headset, the first wireless headset being placed in a charging box, the device comprising:
the switching unit is used for switching the first wireless earphone from a charging state to a communication state if the charging box is monitored to need to communicate with the first wireless earphone when the charging box charges the first wireless earphone through the two power supply contact points;
and the communication link establishment unit is used for calling a UART module integrated in the controller of the first wireless earphone to establish a communication link between the charging box and the first wireless earphone.
In a fifth aspect, embodiments of the present application provide a charging cartridge, including a processor, a memory, a charging unit, a communication unit, a connection interface, and one or more programs, wherein the charging unit and the communication unit are connected to the wireless headset through the connection interface, the one or more programs being stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps in the first aspect of the embodiments of the present application.
In a sixth aspect, embodiments of the present application provide a wireless headset including a processor, a memory, a charging unit, a communication unit, a connection interface, and one or more programs, wherein the charging unit and the communication unit are connected to the charging box through the connection interface, the one or more programs being stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps in the second aspect of embodiments of the present application.
In a seventh aspect, embodiments of the present application provide a single-wire communication system including the charging box of any one of the above and the wireless headset of any one of the above.
In an eighth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer causes the computer to perform some or all of the steps as described in the first aspect of the embodiments of the present application.
In a ninth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer causes the computer to perform part or all of the steps as described in the second aspect of the embodiments of the present application.
In a tenth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform part or all of the steps described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
In an eleventh aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform part or all of the steps as described in the second aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that the single-wire communication method and related product described in the embodiments of the present application implement single-wire communication between the wireless earphone and the charging box by shorting the Data transmitting port (TXD) and the Data receiving port (RXD) of the UART in the controller to a single wire and adding a switch circuit. The technology is applied to wireless earphone products, in particular to a double-lug wireless earphone adopting two power supply contact point type charging interfaces and a matched charging box, and the charging box has the charging function and the communication function of the wireless earphone, and simultaneously maintains the structural simplicity and beauty, reduces the hardware resource occupation and the software development difficulty, thereby reducing the product cost.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is an illustration of a wireless headset and charging cartridge of two powered contact designs;
fig. 2 is a schematic structural diagram of a single-wire communication between a charging box and a wireless earphone according to an embodiment of the present application;
fig. 3A is a schematic structural diagram of a network topology a of a charging box and a wireless headset according to an embodiment of the present application;
fig. 3B is a schematic structural diagram of a network topology B of a charging box and a wireless headset according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a single-wire communication system according to an embodiment of the present application;
fig. 5 is a schematic flow chart of a single-wire communication method according to an embodiment of the present application;
FIG. 6 is a flow chart of another single-wire communication method provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a single-wire communication device according to an embodiment of the present application;
Fig. 8 is a schematic structural diagram of another single-wire communication device according to an embodiment of the present application;
fig. 9 is a schematic structural view of a charging box according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a wireless earphone according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims of the present application and in the above-described figures, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed but may optionally include additional steps or elements not listed or inherent to such process, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In this embodiment, first wireless earphone, second wireless earphone are wireless earphone, and first wireless earphone pairs the back with the second wireless earphone, can regard as a set of wireless earphone, adopts UART communication protocol between wireless earphone and the box that charges, can realize half duplex or full duplex communication, and UART module includes two ports: the TXD and RXD are connected with the charging box through a Pogo pin (spring thimble), namely a power supply contact point. In a specific implementation, the communication between the charging box and the wireless earphone is initiated by the charging box and a data transmission link is established, the data transmission between the wireless earphone and the charging box is realized through the data transmission link, and the communication between the first wireless earphone and the second wireless earphone is also initiated by the charging box and the data transmission link is established.
Optionally, the wireless earphone may be an earplug wireless earphone or an ear-hanging wireless earphone, which is not limited in the embodiment of the present application.
Optionally, the charging box may be a wireless charging box or a wired charging box, which is not limited in the embodiments of the present application.
The wireless earphone can be placed in the charging box for storage, charging and communication, and the wireless earphone is placed in the charging box, and the charging box charges the wireless earphone through the power supply contact point until the wireless earphone is full, namely under the default condition, the working state of the wireless earphone placed in the charging box is a charging state.
The charging cartridge may include: a charging cartridge housing and two charging chambers (a first charging chamber and a second charging chamber) sized and shaped to receive a pair of wireless headphones (a first wireless headphone and a second wireless headphone); one or more earphone housing magnetic members disposed within the charging chambers, the one or more earphone housing magnetic members for magnetically attracting and respectively magnetically securing a pair of wireless earphones into the two charging chambers; the charging box also comprises a plurality of power supply contact points for connecting the wireless earphone; the charging cartridge may also include a charging cover, wherein the first charging cavity is sized and shaped to receive the first wireless headset and the second charging cavity is sized and shaped to receive the second wireless headset.
In one possible implementation, the charging box may further include an induction zone, which may be located at bottoms of the two charging chambers, respectively, and at least one induction sensor is disposed in the induction zone, for monitoring the wireless earphone, where the induction sensor may include a pressure sensor, and when the wireless earphone is placed in the charging box, the at least one pressure sensor may monitor a change in pressure of the wireless earphone, so as to monitor the wireless earphone.
In one possible implementation, the charging cartridge may further include a touch zone, which may be located at an outer surface of the charging cartridge housing, within which at least one touch sensor is disposed for monitoring touch operation, which may include a capacitive sensor. When a user touches the touch area, at least one capacitive sensor may monitor a change in its own capacitance to identify a touch operation.
The wireless headset may include a headset housing, a circularly rechargeable battery (e.g., a lithium battery) disposed within the headset housing, a plurality of power contact points for connecting to a charging device, the driver unit including a magnet, a voice coil, and a diaphragm, and a speaker assembly including a directional sound port, the driver unit for emitting sound from the directional sound port, the plurality of power contact points disposed on an exterior surface of the headset housing, and the number of power contact points being the same as the number of power contact points in a charging cartridge to which the wireless headset mates.
In one possible implementation, the wireless headset may further include a touch zone, which may be located on an exterior surface of the headset housing, with at least one touch sensor disposed within the touch zone for monitoring touch operation, which may include a capacitive sensor. When a user touches the touch area, at least one capacitive sensor may monitor a change in its own capacitance to identify a touch operation.
In one possible implementation, the wireless headset may further include an acceleration sensor and a tri-axis gyroscope, which may be disposed within the headset housing, the acceleration sensor and tri-axis gyroscope being configured to identify a pick-up and removal motion of the wireless headset.
In one possible implementation, the wireless headset may further include at least one air pressure sensor, which may be disposed on a surface of the headset housing for monitoring air pressure in the ear after the wireless headset is worn. The wearing tightness of the wireless earphone can be monitored through the air pressure sensor. When the wireless earphone is monitored to be worn loosely, the wireless earphone can send prompt information to an electronic device connected with the wireless earphone so as to prompt a user that the wireless earphone is at risk of falling.
The embodiments of the present application are described in detail below.
For better illustrating the embodiment of the present application, first, a communication manner between a charging box and a wireless earphone is described, and the wireless earphone and the charging box structurally have power supply contact designs with various specifications, mainly including: two power contact designs, three power contact designs, and five power contact designs. As shown in fig. 1, two power supply contact points in the design of two power supply contact points are respectively a positive power supply contact point and a negative power supply contact point, the negative power supply contact point is used for being grounded, and the positive power supply contact point is used for realizing a charging function, so that if the communication between a charging box and a wireless earphone is to be realized, a single-wire communication mode is required between the charging box and the wireless earphone, namely the charging box and the wireless earphone share the positive power supply contact point to realize the charging function and the communication function; in the three power supply contact designs, one power supply contact is a negative power supply contact and is used for grounding, one power supply contact is used for realizing a charging function, and the other power supply contact can be used for realizing a communication function; while a five power contact design may cover all of the functionality of both designs and may provide more functionality for production line testing. Therefore, according to the different designs of the power supply contact points, the communication modes of the charging box and the wireless earphone can be as follows: single-line communication, two-line communication, three-line communication and more. However, most wireless earphone manufacturers currently adopt two power supply contact point designs for the beauty and conciseness of the wireless earphone structure, so that the charging box and the wireless earphone need to adopt a single-wire communication mode for communication through the power supply contact points.
Referring to fig. 2, fig. 2 is a schematic structural diagram of single-wire communication between a charging box and a wireless headset according to an embodiment of the present application, and the charging box, the first wireless headset and the second wireless headset are connected to each other through a Voltage Bus (VBUS) as shown in fig. 2, so that two-by-two communication between the charging box, the first wireless headset and the second wireless headset can be realized, and the VBUS can be a charging line for charging the wireless headset through a positive power supply contact point of the charging box.
The first wireless earphone may be one wireless earphone connected to the two charging power supply contact points of the charging box through the two charging power supply contact points, and the second wireless earphone may be another wireless earphone connected to the two charging power supply contact points of the charging box through the two charging power supply contact points.
Based on the single wire communication structure and UART communication protocol shown in fig. 2, the charging box and the wireless headset may have two network topologies, network topology a (fig. 3A) and network topology B (fig. 3B).
As shown in fig. 3A, the network topology a includes: the wireless earphone comprises a charging box, a first wireless earphone and a second wireless earphone, wherein the first wireless earphone and the second wireless earphone are arranged in the charging box, the first wireless earphone and the second wireless earphone can be respectively and directly communicated with the charging box, direct communication between the first wireless earphone and the second wireless earphone cannot be performed, the charging box is required to be used as a relay for forwarding data, the charging box can be used as a host (Master) in communication, can actively initiate communication with the first wireless earphone or/and the second wireless earphone, can be used as a host to start a process of switching a charging state to a communication state, and can be used as a Slave (Slave) in communication, and can be synchronously switched from the charging state to the communication state and be in a data receiving state.
As shown in fig. 3B, the network topology B includes: the charging box, the first wireless earphone and the second wireless earphone are placed in the charging box, wherein the first wireless earphone and the second wireless earphone can be directly communicated with the charging box respectively, and the first wireless earphone and the second wireless earphone can be directly communicated. When the charging box is communicated with the first wireless earphone or/and the second wireless earphone, the charging box can be used as a host in communication, the first wireless earphone or/and the second wireless earphone can be used as a slave in communication, and when the first wireless earphone is communicated with the second wireless earphone, the charging box and the second wireless earphone can be used as the slave in communication, and the first wireless earphone is used as the host in communication.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a single-wire communication system according to an embodiment of the present application, which is applied to a charging box shown in fig. 1 and a first wireless headset shown in fig. 3A or fig. 3B, that is, the charging box may be the charging box shown in fig. 3A or fig. 3B, and the first wireless headset may be the first wireless headset shown in fig. 3A or fig. 3B, where the system includes: the charging box is connected with the first wireless earphone, and the charging box can charge for the first wireless earphone and also can communicate with the first wireless earphone.
It should be noted that, in this embodiment, the communication of the charging box during the charging process of one wireless earphone (the first wireless earphone) is taken as an example, and the communication of the charging box during the charging process of the other wireless earphone (the second wireless earphone) and the communication of the charging box during the charging processes of the two wireless earphones may be implemented in the same or similar manner as the system provided in this embodiment, which is not limited in any way.
Specifically, the charging box includes: the controller, switching circuit, first power supply contact, second power supply contact and battery, first wireless headset includes: the device comprises a controller, a switching circuit, a first power supply contact point, a second power supply contact point, a synchronous switching circuit and a battery. In order to clearly distinguish the charging box from the controller, the switch circuit, the first power supply contact point, the second power supply contact point and the battery in the first wireless earphone, the controller, the switch circuit, the first power supply contact point, the second power supply contact point and the battery in the charging box are respectively referred to as a first controller, a first switch circuit, a first power supply contact point, a second power supply contact point and a first battery in the first wireless earphone, and the controller, the switch circuit, the first power supply contact point, the second power supply contact point and the battery in the first wireless earphone are respectively referred to as a second controller, a second switch circuit, a third power supply contact point, a fourth power supply contact point and a second battery in the embodiment. The second and fourth power contact points may be negative power contact points and the first and third power contact points may be positive power contact points.
The first controller or the second controller may be a processor, a micro control unit (Microcontroller Unit, MCU), or a single-chip microcomputer.
Optionally, an I/O terminal of the first controller is connected to a control terminal of the first switch circuit, a first selection terminal of the first switch circuit is connected to the first battery, a second selection terminal of the first switch circuit is connected to a transceiver terminal of a UART module in the first controller, a common terminal of the first switch circuit is connected to one terminal of the first power supply contact point, and the second power supply contact point is grounded; the other end of the first power supply contact point is connected with one end of the third power supply contact point, the other end of the third power supply contact point is respectively connected with one end of the synchronous switching circuit and the public end of the second switching circuit, the other end of the synchronous switching circuit is connected with the control end of the second switching circuit, the first selection end of the second switching circuit is connected with the second battery, the second selection end of the second switching circuit is connected with the receiving and transmitting end of the UART module in the second controller, and the fourth power supply contact point is grounded.
The synchronous switching circuit controls the switching of the switching circuit according to the input level; the RXD and TXD of the UART module in the first controller are short-circuited to form a receiving and transmitting end; and RXD and TXD of the UART module in the second controller are short-circuited to form a receiving and transmitting end.
Referring to fig. 5, fig. 5 is a flowchart of a single-wire communication method provided in an embodiment of the present application, which is applied to the charging box shown in fig. 1 and the first wireless headset shown in fig. 4, where the charging box may be the charging box shown in fig. 3A, and the first wireless headset may be the first wireless headset shown in fig. 3A, and the single-wire communication method includes the following steps:
s501, when the charging box charges the first wireless earphone through two power supply contact points, if the charging box is monitored to need to communicate with the first wireless earphone, the charging box switches the charging box from a charging state to a communication state by sending a switching control signal to the first wireless earphone.
It should be noted that the two power supply contact points may be two power supply contact points disposed in the charging box and used for being connected with two charging power supply contact points of the first wireless earphone to charge the first wireless earphone, such as two power supply contact points disposed in the charging box corresponding to two round power supply contact points of the first wireless earphone in fig. 1.
Wherein, can be provided with monitoring devices in the box that charges to monitor the demand of box and the communication of first wireless earphone that charges, when the box that charges need communicate with first wireless earphone, monitoring devices sends monitoring result to first controller, and first controller can be according to the operating condition of monitoring result control box that charges.
Optionally, the charging box switches the charging box from a charging state to a communication state by sending a switching control signal to the first wireless headset, including: the charging box controls the I/O terminal to send a switching control signal to the first wireless earphone through the first controller, and controls the first switch circuit to switch from the first selection terminal to the second selection terminal.
Specifically, the specific mode of controlling the first switch circuit to switch from the first selection end to the second selection end according to the switching control signal can be set by a designer according to a practical scene and user requirements, and can be set according to a specific circuit structure in the charging box, for example, when the first controller receives a monitoring result through software programming, the first controller I/O end outputs a high-level signal, when the first switch circuit control end receives the high-level signal, the first selection end of the first switch circuit is disconnected, and the second selection end is conducted, so that the first switch circuit is switched from the first selection end to the second selection end. The present embodiment is not limited in any way as long as it can be ensured that the first switching circuit can be switched from the first selection terminal to the second selection terminal according to the switching control signal.
Wherein the first switching circuit may be a single pole double throw control switch.
S502, the first wireless earphone switches from a charging state to a communication state.
Optionally, the switching of the first wireless headset from the charging state to the communication state includes: the second switching circuit is controlled to switch from the first selection end to the second selection end through the synchronous switching circuit.
The synchronous switching circuit controls the switching of the second switching circuit according to a switching control signal, and an output signal of the synchronous switching circuit is synchronous with the switching control signal, namely, when the switching control signal switches the first switching circuit from the first selection end to the second selection end, the synchronous switching circuit also switches the second switching circuit from the first selection end to the second selection end.
Specifically, the specific implementation mode of controlling the second switch circuit to switch from the first selection end to the second selection end through the synchronous switch circuit can be set by a designer according to a practical scene and user requirements, and also can be set according to a specific circuit structure in the charging box, for example, when the level of an input signal received by the synchronous switch circuit is changed from low to high, the synchronous switch circuit outputs a high-level signal, and when the control end of the second switch circuit receives the high-level signal, the first selection end of the second switch circuit is disconnected, and the second selection end is conducted, so that the second switch circuit is switched from the first selection end to the second selection end. The present embodiment is not limited in any way as long as it can be ensured that the second switching circuit can be switched from the first selection terminal to the second selection terminal by the synchronous switching circuit.
Wherein the second switching circuit may be a single pole double throw control switch.
S503, the charging box calls a UART module integrated in a first controller to send first data to the first wireless earphone.
The charging box sends first data to the first wireless earphone through the receiving and transmitting end of the UART module in the first controller.
Optionally, the first data includes a control instruction for controlling the first wireless earphone or/and a query instruction for acquiring information of the first wireless earphone.
It can be understood that the first data may be data sent by the charging box to the first wireless earphone, and for a specific data type of the first data, that is, a data type sent by the charging box to the first wireless earphone, may be set by a designer according to a practical scenario and a user requirement, for example, when the charging box needs to send a control instruction to the first wireless earphone, the first data may only include the control instruction; when the charging box needs to send the information query instruction to the first wireless earphone, the first data may further include the information query instruction, which is not limited in this embodiment.
Wherein, the control instruction includes but is not limited to: pairing control instructions, reset control instructions, factory setting restoration control instructions and OTA upgrade control instructions, wherein the information inquiry instructions comprise but are not limited to: version number inquiry instructions and battery power inquiry instructions.
S504, the first wireless earphone receives the first data, judges whether the first data is the data sent by the first wireless earphone through the second controller, directly filters or does not process the first data if the first data is the data sent by the first wireless earphone, analyzes the first data through the second controller if the first data is not the data sent by the first wireless earphone, obtains an analysis result, and executes corresponding operation according to the analysis result.
And the first wireless earphone receives the first data through the receiving and transmitting end of the UART module in the second controller.
Specifically, the second controller may decode the first data to obtain decoded data, and execute a corresponding operation according to an instruction corresponding to the decoded data. For the specific type of the instruction, the designer can set the instruction by himself according to the practical scene and the user requirement, if the charging box needs to control the first wireless earphone to restore factory setting during charging, the instruction can comprise a factory restoration control instruction, and the charging box can control the first wireless earphone to restore factory setting operation by sending the factory restoration control instruction; in the charging process, if the charging box still needs to acquire the battery power information of the first wireless earphone, the instruction can also comprise a power inquiry instruction, so that the first wireless earphone sends the battery power information of the first wireless earphone to the charging box according to the power inquiry instruction. As long as the first wireless earphone can execute the corresponding operation according to the instruction corresponding to the first data, the embodiment does not limit this.
S505, the first wireless earphone calls a UART module integrated in the second controller to send second data to the charging box.
The first wireless earphone sends second data to the charging box through a receiving and transmitting end of the UART module in the second controller.
Optionally, the second data includes status information for responding to the control instruction or/and query result information for responding to the query instruction.
S506, the charging box receives the second data, judges whether the second data is the data sent by the charging box through the first controller, if yes, directly filters or does not process the second data, if not, analyzes the second data through the first controller to obtain an analysis result, and executes corresponding operation according to the analysis result.
Specifically, the first controller may decode the second data to obtain decoded data, and execute a corresponding operation according to a response instruction corresponding to the decoded data. For the specific type of the response instruction, the designer can set the response instruction by himself according to the practical scene and the user requirement, if the first wireless earphone needs to respond to the factory-restoration setting control instruction sent by the charging box, the response instruction can include state information of the first wireless earphone for factory restoration setting, and the charging box can acquire whether the first wireless earphone completes the factory-restoration setting operation according to the state information sent by the first wireless earphone; if the first wireless headset needs to report the battery power information of the first wireless headset to the charging box, the response instruction may further include the battery power information of the first wireless headset. As long as the charging cartridge can execute the corresponding operation according to the response instruction corresponding to the second data, the present embodiment does not impose any limitation on this.
It should be noted that, in this embodiment, the communication of the charging box during the charging process of one wireless earphone (the first wireless earphone) is taken as an example, and the communication of the charging box during the charging process of the other wireless earphone (the second wireless earphone) and the communication of the charging box during the charging processes of the two wireless earphones may be implemented in the same or similar manner as the method provided in this embodiment, which is not limited in any way.
It can be seen that the single-wire communication method and the related product described in the embodiments of the present application implement single-wire communication between the wireless earphone and the charging box by shorting RXD and TXD of the UART in the controller to a single wire and adding a switch circuit. The technology is applied to wireless earphone products, in particular to a double-lug wireless earphone adopting two power supply contact point type charging interfaces and a matched charging box, and the charging box has the charging function and the communication function of the wireless earphone, and simultaneously maintains the structural simplicity and beauty, reduces the hardware resource occupation and the software development difficulty, thereby reducing the product cost.
Referring to fig. 6, fig. 6 is a flowchart of another single-wire communication method provided in the embodiment of the present application, which is applied to the charging box shown in fig. 1, the first wireless headset and the second wireless headset and the system shown in fig. 4, where the charging box may be a charging box shown in fig. 3B, the first wireless headset may be a first wireless headset shown in fig. 3B, and the second wireless headset may be a second wireless headset shown in fig. 3B, and the single-wire communication method includes the following steps:
S601, when the charging box charges a first wireless earphone through two power supply contact points and charges a second wireless earphone through other two power supply contact points, if the charging box is monitored to need to communicate with the first wireless earphone, the charging box switches the charging box connected with the first wireless earphone from a charging state to a communication state by sending a switching control signal to the first wireless earphone.
It should be noted that the two power supply contact points may be two power supply contact points set in the charging box and used for being connected with two charging power supply contact points of the first wireless earphone to charge the first wireless earphone, such as two power supply contact points set in the charging box corresponding to two round power supply contact points of the first wireless earphone in fig. 1; the above-mentioned two other power supply contact points may be two other power supply contact points provided in the charging box for connecting with two charging power supply contact points of the second wireless headset to charge the second wireless headset, such as two power supply contact points provided in the charging box corresponding to two circular power supply contact points of the second wireless headset in fig. 1.
The first wireless earphone and the second wireless earphone are identical in structure and function, and the single-wire communication system of the second wireless earphone and the charging box is identical to the single-wire communication system of the first wireless earphone and the charging box. In order to clearly distinguish the controller and the switch circuit in the charging box, the first wireless earphone and the second wireless earphone, the controller and the switch circuit in the charging box are referred to as a first controller, a first switch circuit (for communicating with the first wireless earphone) and a third switch circuit (for communicating with the second wireless earphone), the controller and the switch circuit in the first wireless earphone are referred to as a second controller and a second switch circuit, the controller and the switch circuit in the second wireless earphone are referred to as a third controller and a fourth switch circuit, respectively, and in order to distinguish the synchronous switch circuits in the first wireless earphone and the second wireless earphone, the synchronous switch circuit in the first wireless earphone is referred to as a first synchronous switch circuit, and the synchronous switch circuit in the second wireless earphone is referred to as a second synchronous switch circuit.
Wherein, can be provided with monitoring devices in the box that charges to monitor the demand of box and the communication of first wireless earphone that charges, when the box that charges need communicate with first wireless earphone, monitoring devices sends monitoring result to first controller, and first controller can be according to the operating condition of monitoring result control box that charges.
Optionally, the charging box switches the charging box connected with the first wireless earphone from a charging state to a communication state by sending a switching control signal to the first wireless earphone, and the charging box controls the I/O terminal to send the switching control signal to the first wireless earphone through a first controller to control the first switch circuit to switch from the first selection terminal to the second selection terminal.
Specifically, the specific mode of controlling the first switch circuit to switch from the first selection end to the second selection end according to the switching control signal can be set by a designer according to a practical scene and user requirements, and can be set according to a specific circuit structure in the charging box, for example, when the first controller receives a monitoring result through software programming, the first controller I/O end outputs a high-level signal, when the first switch circuit control end receives the high-level signal, the first selection end of the first switch circuit is disconnected, and the second selection end is conducted, so that the first switch circuit is switched from the first selection end to the second selection end. The present embodiment is not limited in any way as long as it can be ensured that the first switching circuit can be switched from the first selection terminal to the second selection terminal according to the switching control signal.
Wherein the first switching circuit may be a single pole double throw control switch.
S602, the first wireless earphone switches from a charging state to a communication state.
Optionally, the switching of the first wireless headset from the charging state to the communication state includes: the first synchronous switching circuit controls the second switching circuit to switch from the first selection end to the second selection end.
The first synchronous switching circuit controls the switching of the switching circuit according to the switching control signal, and the output signal of the first synchronous switching circuit is synchronous with the switching control signal, namely, when the switching control signal switches the first switching circuit from the first selection end to the second selection end, the first synchronous switching circuit also switches the second switching circuit from the first selection end to the second selection end.
Specifically, the specific implementation manner of controlling the second switch circuit to switch from the first selection end to the second selection end through the first synchronous switch circuit can be set by a designer according to a practical scene and user requirements, and also can be set according to a specific circuit structure in the charging box, for example, when the level of an input signal received by the first synchronous switch circuit is changed from low to high, the first synchronous switch circuit outputs a high-level signal, and when the second switch circuit control end receives the high-level signal, the first selection end of the second switch circuit is disconnected, and the second selection end is conducted, so that the second switch circuit is switched from the first selection end to the second selection end. The present embodiment is not limited in any way as long as it can be ensured that the second switching circuit can be switched from the first selection terminal to the second selection terminal by the first synchronous switching circuit.
Wherein the second switching circuit may be a single pole double throw control switch.
And S603, if the first wireless earphone needs to communicate with the second wireless earphone, the first wireless earphone calls a UART module integrated in the second controller to send first data to the charging box.
The first wireless earphone sends the first data to the charging box through the receiving and transmitting end of the UART module in the second controller.
The first wireless earphone may be provided with a monitoring device to monitor a communication requirement of the first wireless earphone and the second wireless earphone, and when the first wireless earphone needs to communicate with the second wireless earphone, the monitoring device sends a monitoring result to the second controller, and the second controller may perform a corresponding operation according to the monitoring result.
Optionally, the first data includes a request communication instruction sent by the first wireless headset to the charger, where the request communication instruction is used to request the charging box to allow the first wireless headset to directly communicate with the second wireless headset.
S604, the charging box receives the first data, judges whether the first data is the data sent by the charging box through the first controller, if so, directly filters or does not process the first data, if not, analyzes the first data through the first controller to obtain an analysis result, and executes corresponding operation according to the analysis result.
The charging box receives the first data through the receiving and transmitting end of the UART module in the first controller.
Specifically, the first controller may decode the first data to obtain decoded data, and execute a corresponding operation according to an instruction corresponding to the decoded data.
And S605, the charging box sends a switching control signal to the second wireless earphone to switch the charging box connected with the second wireless earphone from a charging state to a communication state.
Optionally, the charging box switches the charging box connected with the second wireless earphone from a charging state to a communication state by sending a switching control signal to the second wireless earphone, including: the charging box controls the I/O terminal to send a switching control signal to the second wireless earphone through the first controller, and controls the third switching circuit to switch from the first selection terminal to the second selection terminal.
Specifically, the specific mode of controlling the third switch circuit to switch from the first selection end to the second selection end according to the switching control signal can be set by a designer according to a practical scene and user requirements, and can be set according to a specific circuit structure in the charging box, for example, when the first controller receives a monitoring result through software programming, the first controller I/O end outputs a high-level signal, and when the third switch circuit control end receives the high-level signal, the first selection end of the third switch circuit is disconnected, and the second selection end is conducted, so that the third switch circuit is switched from the first selection end to the second selection end. The present embodiment is not limited in any way as long as it can be ensured that the third switching circuit can be switched from the first selection terminal to the second selection terminal according to the switching control signal.
Wherein the third switching circuit may be a single pole double throw control switch.
S606, the second wireless headset switches from a charging state to a communication state.
Optionally, the switching of the second wireless headset from the charging state to the communication state includes: the fourth switch circuit is controlled to switch from the first selection end to the second selection end through the second synchronous switching circuit.
The second synchronous switching circuit controls the switching of the fourth switching circuit according to a switching control signal, and an output signal of the second synchronous switching circuit is synchronous with the switching control signal, namely, when the switching control signal switches the third switching circuit from the first selection end to the second selection end, the second synchronous switching circuit also switches the fourth switching circuit from the first selection end to the second selection end.
Specifically, the specific implementation manner of controlling the fourth switch circuit to switch from the first selection end to the second selection end through the second synchronous switching circuit can be set by a designer according to a practical scene and user requirements, and can be set according to a specific circuit structure in the charging box, for example, when the level of an input signal received by the second synchronous switching circuit is changed from low to high, the second synchronous switching circuit outputs a high-level signal, and when the control end of the fourth switch circuit receives the high-level signal, the first selection end of the fourth switch circuit is disconnected, and the second selection end is conducted, so that the fourth switch circuit is switched from the first selection end to the second selection end. The present embodiment does not limit this as long as it can be ensured that the fourth circuit can be switched from the first selection terminal to the second selection terminal according to the output level of the second synchronous switching circuit.
The fourth switching circuit may be a single pole double throw control switch.
S607, the charging box calls a UART module integrated in the first controller to send second data to the first wireless earphone.
And the charging box sends second data to the first wireless earphone through the receiving and transmitting end of the UART module in the first controller.
Optionally, the second data includes an accept communication instruction for allowing the first wireless headset to communicate directly with a second wireless headset in response to the first data.
And S608, the first wireless earphone receives the second data, the second controller judges whether the second data is the data sent by the first wireless earphone, if so, the first data is directly filtered or not processed, if not, the second data is analyzed by the second controller to obtain an analysis result, and corresponding operation is executed according to the analysis result.
The first wireless earphone receives the second data through a transceiver of the UART module in the second controller.
Specifically, the second controller may decode the second data to obtain decoded data, and execute a corresponding operation according to an instruction corresponding to the decoded data.
S609, the first wireless earphone calls a UART module integrated in the second controller to send third data to the second wireless earphone.
The first wireless earphone sends third data to the second wireless earphone through a receiving and transmitting end of the UART module in the second controller.
Optionally, the third data includes a control instruction for controlling the second wireless earphone or/and a query instruction for acquiring information of the second wireless earphone.
It can be understood that the third data may be data sent by the first wireless earphone to the second wireless earphone, and for a specific data type of the third data, that is, a data type sent by the first wireless earphone to the second wireless earphone, may be set by a designer according to a practical scenario and a user requirement, for example, when the first wireless earphone needs to send a control instruction to the second wireless earphone, the first data may only include the control instruction; if the first wireless headset needs to send the information query command to the second wireless headset, the third data may further include the information query command, which is not limited in this embodiment.
Wherein, the control instruction includes but is not limited to: pairing control instructions, reset control instructions, factory setting restoration control instructions and OTA upgrade control instructions, wherein the information inquiry instructions comprise but are not limited to: version number inquiry instructions and battery power inquiry instructions.
And S610, the second wireless earphone receives the third data, the third controller judges whether the third data is the data sent by the second wireless earphone, if so, the third data is directly filtered or not processed, if not, the third data is analyzed by the third controller to obtain an analysis result, and corresponding operation is executed according to the analysis result.
And the second wireless earphone receives the third data through the receiving and transmitting end of the UART module in the third controller.
Specifically, the third controller may decode the third data to obtain decoded data, and execute a corresponding operation according to an instruction corresponding to the decoded data. For the specific type of the instruction, the designer can set the instruction by himself according to the practical scene and the user requirement, for example, when the first wireless earphone needs to control the second wireless earphone to restore factory setting during charging, the instruction can comprise a factory restoration control instruction, and the first wireless earphone can control the second wireless earphone to restore factory setting by sending the factory restoration control instruction; in the charging process, if the first wireless earphone needs to acquire the version number information of the second wireless earphone, the instruction may include a version number query instruction, so that the first wireless earphone sends the version number information of itself to the second wireless earphone according to the version number query instruction. As long as the second wireless earphone can execute the corresponding operation according to the instruction corresponding to the third data, the embodiment does not limit this.
S611, the second wireless headset sends fourth data to the first wireless headset.
The second wireless earphone sends fourth data to the first wireless earphone through a receiving and transmitting end of the UART module in the third controller.
Optionally, the fourth data includes status information for responding to the control instruction or/and query result information for responding to the query instruction.
S612, the first wireless earphone receives the fourth data, the second controller judges whether the fourth data is the data sent by the second wireless earphone, if so, the fourth data is directly filtered or not processed, if not, the second controller analyzes the fourth data to obtain an analysis result, and corresponding operation is executed according to the analysis result.
Specifically, the second controller may decode the fourth data to obtain decoded data, and execute a corresponding operation according to a response instruction corresponding to the decoded data. For the specific type of the response instruction, the designer can set the response instruction by himself according to the practical scene and the user requirement, if the second wireless earphone needs to respond to the factory setting restoration control instruction sent by the first wireless earphone, the response instruction can include state information of the factory setting restoration of the second wireless earphone, and the first wireless earphone can also acquire whether the factory setting restoration operation of the second wireless earphone is completed according to the state information sent by the second wireless earphone; if the second wireless earphone needs to report the battery power information of the second wireless earphone to the first wireless earphone, the response instruction may further include the battery power information of the second wireless earphone. As long as the first wireless earphone can execute the corresponding operation according to the response instruction corresponding to the fourth data, the embodiment does not limit this.
It can be seen that the single-wire communication method and the related product described in the embodiments of the present application implement single-wire communication between the wireless earphone and the charging box by shorting RXD and TXD of the UART in the controller to a single wire and adding a switch circuit. The technology is applied to wireless earphone products, in particular to a double-lug wireless earphone adopting two power supply contact point type charging interfaces and a matched charging box, and the charging box has the charging function and the communication function of the wireless earphone, and simultaneously maintains the structural simplicity and beauty, reduces the hardware resource occupation and the software development difficulty, thereby reducing the product cost.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a single-wire communication device 700 according to an embodiment of the present application, which is applied to a charging box and the system shown in fig. 4, and the device includes: a switching unit 701 and a communication link establishment unit 702, wherein:
a switching unit 701, configured to switch the charging box from a charging state to a communication state if it is monitored that the charging box needs to communicate with the first wireless headset when the charging box charges the first wireless headset through two power supply contact points;
A communication link establishment unit 702, configured to invoke a universal asynchronous receiver transmitter UART module integrated in a controller of the charging cartridge to establish a communication link between the charging cartridge and the first wireless headset.
It can be seen that the single-wire communication device described in the above application embodiment is applied to a charging box, where a first wireless earphone is placed in the charging box, when the charging box charges for the first wireless earphone through two power supply contact points, if it is monitored that the charging box needs to communicate with the first wireless earphone, the charging box is switched from a charging state to a communication state, and a universal asynchronous transceiver (UART) module integrated in a controller of the charging box is called to establish a communication link between the charging box and the first wireless earphone, so that the charging function and the communication function of the charging box for the first wireless earphone can be met, meanwhile, structural simplicity and attractiveness are maintained, and hardware resource occupation and software development difficulty are reduced.
Optionally, in the aspect of switching the charging cartridge from the charging state to the communication state, the switching unit 701 is specifically configured to:
and controlling the switching circuit to switch from the first selection end to the second selection end through an I/O end output signal of the controller.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a single-wire communication device 800 according to an embodiment of the present application, which is applied to a first wireless headset and the system shown in fig. 4, and the device includes: a switching unit 801 and a communication link establishment unit 802, wherein:
a switching unit 801, configured to switch the charging box from a charging state to a communication state if it is monitored that the charging box needs to communicate with the first wireless headset when the charging box charges the first wireless headset through two power supply contact points;
a communication link establishment unit 802, configured to invoke a universal asynchronous receiver transmitter UART module integrated in a controller of the charging cartridge to establish a communication link between the charging cartridge and the first wireless headset.
It can be seen that the single-wire communication device is applied to the first wireless earphone, the first wireless earphone is placed in the charging box, when the charging box charges the first wireless earphone through the two power supply contact points, if the charging box is monitored to need to communicate with the first wireless earphone, the first wireless earphone is switched from a charging state to a communication state, and the UART module integrated in the controller of the first wireless earphone is called to establish a communication link between the charging box and the first wireless earphone, so that the charging function and the communication function of the charging box on the first wireless earphone can be met, meanwhile, the structural simplicity and the attractive appearance are maintained, and the hardware resource occupation and the software development difficulty are reduced.
Optionally, in the aspect of switching the first wireless headset from a charging state to a communication state, the switching unit 801 is specifically configured to:
and controlling the switching circuit to switch from the first selection end to the second selection end through the synchronous switching circuit.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a charging box according to an embodiment of the present application, as shown in fig. 9, the charging box includes: the wireless headset comprises a processor, a memory, a charging unit, a communication unit, a connection interface and one or more programs, wherein the charging unit and the communication unit are connected with the wireless headset through the connection interface, the one or more programs are stored in the memory and are configured to be executed by the processor, the first wireless headset is placed in the charging box, and the charging unit is applied to the system shown in fig. 4, and the programs comprise instructions for executing the following steps:
when the charging box charges the first wireless earphone through two power supply contact points, if the charging box is monitored to need to communicate with the first wireless earphone, the charging box is switched from a charging state to a communication state;
and calling a UART module integrated in a controller of the charging box to establish a communication link between the charging box and the first wireless earphone.
It can be seen that, when the charging box charges the first wireless earphone through the two power supply contact points, if it is monitored that the charging box needs to communicate with the first wireless earphone, the charging box is switched from the charging state to the communication state, and the UART module integrated in the controller of the charging box is called to establish a communication link between the charging box and the first wireless earphone, so that the charging function and the communication function of the charging box on the first wireless earphone can be met, meanwhile, the structural simplicity and the aesthetic appearance are maintained, and the occupation of hardware resources and the difficulty of software development are reduced.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a wireless earphone according to an embodiment of the present application, as shown in fig. 10, the wireless earphone includes: the system comprises a processor, a memory, a charging unit, a communication unit, a connection interface and one or more programs, wherein the charging unit and the communication unit are connected with a charging box through the connection interface, the one or more programs are stored in the memory and are configured to be executed by the processor, the wireless earphone is a first wireless earphone and is placed in the charging box and is applied to the system shown in fig. 4, and the programs comprise instructions for executing the following steps:
When the charging box charges the first wireless earphone through two power supply contact points, if the charging box is monitored to be required to be communicated with the first wireless earphone, the first wireless earphone is switched from a charging state to a communication state;
and calling a UART module integrated in a controller of the first wireless headset to establish a communication link between the charging box and the first wireless headset.
It can be seen that, when the charging box charges the first wireless earphone through the two power supply contact points, if the charging box is monitored to need to communicate with the first wireless earphone, the first wireless earphone is switched from the charging state to the communication state, and the UART module integrated in the controller of the first wireless earphone is called to establish a communication link between the charging box and the first wireless earphone, so that the charging function and the communication function of the charging box on the first wireless earphone can be met, meanwhile, the structural simplicity and the attractive appearance are maintained, and the hardware resource occupation and the software development difficulty are reduced.
In one possible example, the second wireless headset is placed in the charging box, and after the UART module integrated in the controller of the first wireless headset is invoked to establish a communication link between the charging box and the first wireless headset, the above-described procedure includes instructions for performing the steps of:
When the charging box charges a second wireless earphone through the other two power supply contact points, if the first wireless earphone needs to communicate with the second wireless earphone, sending second data to the charging box, wherein the second data comprises a communication request instruction sent by the first wireless earphone to the charger;
receiving third data sent by the charging box, wherein the third data comprises an acceptance communication instruction for responding to the second data;
judging whether the third data are data sent by the first wireless earphone or not through a second controller, if so, directly filtering or not processing the third data, if not, analyzing the third data through the second controller to obtain an analysis result, and executing corresponding operation according to the analysis result;
and calling a UART module integrated in a controller of the first wireless earphone to establish a communication link between the first wireless earphone and the second wireless earphone.
The embodiment of the application also provides a single-wire communication system which comprises the charging box provided by the embodiment and the wireless earphone provided by the embodiment.
The present application also provides a computer storage medium storing a computer program for electronic data exchange, the computer program causing a computer to execute some or all of the steps of any one of the methods described in the above method embodiments.
The present application also provides a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform part or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, ROM, RAM, magnetic or optical disk, etc.
The foregoing has outlined rather broadly the more detailed description of embodiments of the present application, wherein specific examples are provided herein to illustrate the principles and embodiments of the present application, the above examples being provided solely to assist in the understanding of the methods of the present application and the core ideas thereof; meanwhile, as those skilled in the art will have varying points in specific implementation and application scope in light of the ideas of the present application, the above description should not be construed as limiting the present application.

Claims (16)

1. A single-wire communication method applied to a first wireless headset placed in a charging box, the method comprising:
if the charging box is monitored to need to communicate with the first wireless earphone, switching the first wireless earphone from a charging state to a communication state;
and calling a UART module integrated in a controller of the first wireless headset to establish a communication link between the charging box and the first wireless headset.
2. The method of claim 1, wherein the charging cartridge is configured to charge the first wireless headset through two power contact points.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
receiving first data sent by the charging box, judging whether the first data are the data sent by the first wireless earphone or not through a controller of the first wireless earphone, and if so, directly filtering or not processing the first data;
and/or the number of the groups of groups,
if not, analyzing the first data through a controller of the first wireless earphone to obtain an analysis result, and executing corresponding operation according to the analysis result.
4. A single wire communication method applied to a charging box in which a first wireless headset is placed, the method comprising:
if the charging box is monitored to need to communicate with the first wireless earphone, switching the charging box from a charging state to a communication state;
and invoking a Universal Asynchronous Receiver Transmitter (UART) module integrated in a controller of the charging box to establish a communication link between the charging box and the first wireless headset.
5. The method of claim 1, wherein the charging cartridge is configured to charge the first wireless headset through two power contact points.
6. The method according to claim 4 or 5, characterized in that the method further comprises:
and receiving second data sent by the first wireless earphone, judging whether the second data is the data sent by the charging box or not through a controller of the charging box, if so, directly filtering or not processing the second data, and/or if not, analyzing the second data through the controller of the charging box to obtain an analysis result, and executing corresponding operation according to the analysis result.
7. A single-wire communication method, characterized by being applied to a single-wire communication system, the system including a first wireless headset, a second wireless headset, and a charging box configured to charge the first wireless headset and the second wireless headset, the method comprising:
if the first wireless earphone needs to communicate with the second wireless earphone, the first wireless earphone calls a UART module integrated in a second controller to send first data to the charging box;
The charging box transmits a switching control signal to the second wireless earphone in response to the first data, and the second wireless earphone is switched from a charging state to a communication state in response to the switching control signal.
8. A single-wire communication method applied to a first wireless headset placed in a charging box, the method comprising:
receiving first data sent by the charging box, judging whether the first data is data sent by the first wireless earphone or not through a controller of the first wireless earphone, if so, directly filtering or not processing the first data,
and/or the number of the groups of groups,
if not, analyzing the first data through a controller of the first wireless earphone to obtain an analysis result, and executing corresponding operation according to the analysis result.
9. The method of claim 8, wherein prior to said receiving the first data sent by the charging cartridge, the method further comprises:
when the charging box charges the first wireless earphone through two power supply contact points, if the charging box is monitored to need to communicate with the first wireless earphone, the first wireless earphone is switched from a charging state to a communication state;
And calling a UART module integrated in a controller of the first wireless headset to establish a communication link between the charging box and the first wireless headset.
10. A single wire communication method applied to a charging box in which a first wireless headset is placed, the method comprising:
and receiving second data sent by the first wireless earphone, judging whether the second data is the data sent by the charging box or not through a controller of the charging box, if so, directly filtering or not processing the second data, and/or if not, analyzing the second data through the controller of the charging box to obtain an analysis result, and executing corresponding operation according to the analysis result.
11. The method of claim 10, wherein prior to the receiving the second data sent by the first wireless headset, the method further comprises:
when the charging box charges the first wireless earphone through two power supply contact points, if the charging box is monitored to need to communicate with the first wireless earphone, the charging box is switched from a charging state to a communication state;
and invoking a Universal Asynchronous Receiver Transmitter (UART) module integrated in a controller of the charging box to establish a communication link between the charging box and the first wireless headset.
12. A communication system comprising a charging box, a first wireless headset and a second wireless headset, wherein the first wireless headset and the second wireless headset are placed in the charging box, wherein the first wireless headset, the second wireless headset are configured for direct communication with the charging box, respectively, and/or the first wireless headset is configured for direct communication with the second wireless headset.
13. The communication system of claim 12, wherein when the charging cartridge is in communication with the first wireless headset or/and the second wireless headset, the charging cartridge is configured to act as a master in communication, the first wireless headset or/and the second wireless headset is configured to act as a slave in communication; and/or when the first wireless earphone is in communication with the second wireless earphone, the charging box and the second wireless earphone are configured to act as a slave in communication, and the first wireless earphone acts as a master in communication.
14. A wireless headset comprising a processor, a memory, a charging unit, a communication unit, a connection interface, and one or more programs, the charging unit and the communication unit being connected to the charging cartridge through the connection interface, the one or more programs being stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any one of claims 1, 2, 3, 8, 9.
15. A charging cartridge comprising a processor, a memory, a charging unit, a communication unit, a connection interface, and one or more programs, the charging unit and the communication unit being connected to the wireless headset through the connection interface, the one or more programs being stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 4, 5, 6, 10, 11.
16. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method of any one of claims 1, 2, 3, 4, 5, 6, 8, 9, 10, 11.
CN202310176747.1A 2019-09-12 2019-09-12 Single-wire communication method and related product Pending CN116320868A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310176747.1A CN116320868A (en) 2019-09-12 2019-09-12 Single-wire communication method and related product

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310176747.1A CN116320868A (en) 2019-09-12 2019-09-12 Single-wire communication method and related product
CN201910868134.8A CN112491102B (en) 2019-09-12 2019-09-12 Single-wire communication method and related product

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201910868134.8A Division CN112491102B (en) 2019-09-12 2019-09-12 Single-wire communication method and related product

Publications (1)

Publication Number Publication Date
CN116320868A true CN116320868A (en) 2023-06-23

Family

ID=74921000

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910868134.8A Active CN112491102B (en) 2019-09-12 2019-09-12 Single-wire communication method and related product
CN202310176747.1A Pending CN116320868A (en) 2019-09-12 2019-09-12 Single-wire communication method and related product

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201910868134.8A Active CN112491102B (en) 2019-09-12 2019-09-12 Single-wire communication method and related product

Country Status (1)

Country Link
CN (2) CN112491102B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113365185A (en) * 2021-06-11 2021-09-07 歌尔智能科技有限公司 Wireless earphone and earphone system
CN113473291A (en) * 2021-06-29 2021-10-01 北京紫光展锐通信技术有限公司 Communication method, earphone cabin and WIFI earphone
CN113784251A (en) * 2021-10-25 2021-12-10 展讯通信(上海)有限公司 TWS earphone, charging box, charging method and charging system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101687678B1 (en) * 2016-06-02 2016-12-22 김남훈 Apparatus for charging assistance form neckband of inear earset
CN107887950A (en) * 2017-12-11 2018-04-06 歌尔科技有限公司 One kind charging and communication common rail system and earphone products
CN109547884A (en) * 2018-09-29 2019-03-29 恒玄科技(上海)有限公司 Charging bluetooth earphone box system and bluetooth headset test macro

Also Published As

Publication number Publication date
CN112491102B (en) 2023-03-14
CN112491102A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN112789866B (en) Audio data transmission method and equipment applied to TWS earphone single-ear and double-ear switching
CN110166871B (en) Earphone charging box, TWS earphone, working state switching method and storage medium
US20170295421A1 (en) Wireless earphone set
CN112491102B (en) Single-wire communication method and related product
CN108696783A (en) With the wired of the earphone for facilitating charging with it is wireless between the method and apparatus that easily switch
US11736851B2 (en) Wireless playback device, and playback control method and apparatus thereof
CN108882082B (en) Method for sending instruction to Bluetooth headset and storage box
KR20210034200A (en) Electronic device for audio, electronic device and method for managing communication link
CN110830868A (en) System and method for controlling earphone through charging bin
CN107864415B (en) Speaker and audio frequency apparatus share the control method and device of microphone
KR20220022707A (en) Audio output device and method for transmitting information about charging status of audio output device
CN112806023B (en) Control method of wireless earphone and related product
CN210112225U (en) Bluetooth wireless sharing system and Bluetooth wireless sharing earphone thereof
CN112492433B (en) Charging box, wireless earphone and wireless earphone charging system
CN208863048U (en) A kind of wireless playing equipment and wear-type wireless headphone system
WO2023020322A1 (en) Wireless earphone, earphone case and wireless earphone system
CN214338107U (en) Innovative TWS headset
CN113645573B (en) Headset configuration data sharing method, headset and storage medium
US11863927B2 (en) Audio device proximity detection
CN112165587B (en) Method for controlling television audio playing mode by using remote controller and remote controller
KR20220094863A (en) Power supply device and method for searching audio output device using power supply device
KR20220020185A (en) Electronic device and method for audio sharing using the same
CN106101903B (en) Digital headset, headset system and control method thereof
TWI815165B (en) True wireless stereo headphone component and control method thereof
CN110677923B (en) Head-wearing wireless earphone, wireless earphone and wireless communication system

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