Single-wire communication method and related products

CN116320868BActive Publication Date: 2026-10-20GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310176747.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-12
Publication Date
2026-10-20
Estimated Expiration
2039-09-12

AI Technical Summary

Technical Problem

[0003]现有技术中,充电盒与无线耳机单线通信均由集成芯片的单线通信方案和输入/输出(Input/Output,I/O)模拟的单线通信实现,前者集成芯片会占用电路板的空间,并且会增加产品的成本,同时集成芯片的传输速度也不高;而后者需要通过软件自定义通信协议,增加了软件开发复杂度,如何在克服上述缺陷的基础上,实现无线耳机与充电盒之间的单线通信的问题亟待解决

Benefits of technology

[0023]第十一方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第二方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116320868B_ABST
    Figure CN116320868B_ABST
Patent Text Reader

Abstract

The application provides a single-wire communication method and related products, wherein the method is applied to a charging box in which a first wireless earphone is placed, and the method comprises the following steps: when the charging box charges 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 receiver transmitter (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. The working state of the charging box is switched to realize single-wire communication between the charging box and the wireless earphone, so that the charging function and the communication function of the charging box on the wireless earphone are met, the structure is kept simple and beautiful, and the hardware resource occupation and the software development difficulty are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a single-wire communication method and related products. Background Technology

[0002] With the development of modern technology, wireless headphones have become widely used due to their ease of use, and their size is getting smaller and smaller. In order to achieve long battery life, wireless headphones need to be equipped with a matching charging case for charging. At the same time, wireless headphones also need to communicate with the charging case to enable them to enter pairing mode, restore factory settings, or perform Over-the-Air (OTA) upgrades.

[0003] In existing technologies, single-wire communication between the charging case and the wireless earphones is achieved through either a single-wire communication scheme using an integrated chip or a single-wire communication scheme simulated by input / output (I / O). The former involves the integrated chip occupying circuit board space and increasing product cost, while also having a low transmission speed. The latter requires a custom communication protocol in software, increasing software development complexity. The problem of achieving single-wire communication between the wireless earphones and the charging case while overcoming these shortcomings urgently needs to be solved. Summary of the Invention

[0004] This application provides a single-wire communication method and related products, which enables single-wire communication between the wireless earphone and the charging case during the charging process using two power supply contact points. This simplifies the structural design, reduces hardware resource consumption, and lowers the difficulty of software development, thereby effectively reducing product costs.

[0005] In a first aspect, embodiments of this application provide a single-wire communication method applied to a charging case, wherein a first wireless earphone is placed in the charging case, the method comprising:

[0006] When the charging case charges the first wireless earphone through two power supply contact points, if it is detected that the charging case needs to communicate with the first wireless earphone, the charging case is switched from charging state to communication state.

[0007] The Universal Asynchronous Receiver / Transmitter (UART) module integrated in the controller of the charging case is invoked to establish a communication link between the charging case and the first wireless earphone.

[0008] Secondly, embodiments of this application provide a single-wire communication method applied to a first wireless earphone, the first wireless earphone being placed in a charging case, the method comprising:

[0009] When the charging case charges the first wireless earphone through two power supply contact points, if it is detected that the charging case needs to communicate with the first wireless earphone, the first wireless earphone is switched from charging state to communication state.

[0010] The UART module integrated in the controller of the first wireless earphone is invoked to establish a communication link between the charging case and the first wireless earphone.

[0011] Thirdly, embodiments of this application provide a single-wire communication device applied to a charging case, wherein a first wireless earphone is placed in the charging case, and the device includes:

[0012] The switching unit is used to switch the charging case from the charging state to the communication state when it is detected that the charging case needs to communicate with the first wireless earphone while the charging case is charging the first wireless earphone through two power supply contact points.

[0013] The communication link establishment unit is used to call the 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.

[0014] Fourthly, embodiments of this application provide a single-wire communication device applied to a first wireless earphone, the first wireless earphone being placed in a charging case, the device comprising:

[0015] The switching unit is used to switch the first wireless earphone from the charging state to the communication state when the charging case is charging the first wireless earphone through two power supply contact points and it is detected that the charging case needs to communicate with the first wireless earphone.

[0016] A communication link establishment unit is used to call the UART module integrated in the controller of the first wireless earphone to establish a communication link between the charging case and the first wireless earphone.

[0017] Fifthly, embodiments of this application provide a charging case, 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 earphones through the connection interface, the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the steps in the first aspect of embodiments of this application.

[0018] In a sixth aspect, embodiments of this 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 case via the connection interface, the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the steps in the second aspect of embodiments of this application.

[0019] Seventhly, embodiments of this application provide a single-wire communication system, including the charging case and the wireless earphone described in any of the preceding claims.

[0020] Eighthly, embodiments of this application provide a computer-readable storage medium storing a computer program for electronic data interchange, wherein the computer causes the computer to perform some or all of the steps described in the first aspect of embodiments of this application.

[0021] Ninthly, embodiments of this application provide a computer-readable storage medium storing a computer program for electronic data interchange, wherein the computer causes the computer to perform some or all of the steps described in the second aspect of embodiments of this application.

[0022] In a tenth aspect, embodiments of this application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in the first aspect of embodiments of this application. The computer program product may be a software installation package.

[0023] Eleventhly, embodiments of this application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in the second aspect of embodiments of this application. The computer program product may be a software installation package.

[0024] As can be seen, the single-wire communication method and related products described in the embodiments of this application achieve single-wire communication between the wireless earphones and the charging case by short-circuiting the UART data transmission port (Transmitter Data, TXD) and data reception port (Receiver Data, RXD) in the controller into a single wire and adding a switching circuit. Applying this technology to wireless earphone products, especially to dual-ear wireless earphones with two power contact point charging interfaces and their matching charging case, satisfies both the charging case's charging and communication functions for the wireless earphones, while maintaining a simple and aesthetically pleasing structure, reducing hardware resource consumption and software development difficulty, thereby lowering product costs. Attached Figure Description

[0025] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0026] Figure 1 This is a display image of wireless earbuds and a charging case with two power supply contact points.

[0027] Figure 2 This is a schematic diagram of a single-wire communication structure between a charging case and wireless earphones provided in an embodiment of this application;

[0028] Figure 3A This is a schematic diagram of a network topology A for a charging case and wireless earphones provided in an embodiment of this application;

[0029] Figure 3B This is a schematic diagram of a network topology B for a charging case and wireless earphones provided in an embodiment of this application;

[0030] Figure 4 This is a schematic diagram of the structure of a single-line communication system provided in an embodiment of this application;

[0031] Figure 5 This is a flowchart illustrating a single-line communication method provided in an embodiment of this application;

[0032] Figure 6 This is a flowchart illustrating another single-line communication method provided in an embodiment of this application;

[0033] Figure 7 This is a schematic diagram of the structure of a single-wire communication device provided in an embodiment of this application;

[0034] Figure 8This is a schematic diagram of another single-wire communication device provided in an embodiment of this application;

[0035] Figure 9 This is a schematic diagram of the structure of a charging box provided in an embodiment of this application;

[0036] Figure 10 This is a schematic diagram of the structure of a wireless earphone provided in an embodiment of this application. Detailed Implementation

[0037] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.

[0038] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, system, product, or apparatus that comprises a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, products, or apparatuses.

[0039] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0040] In this embodiment, both the first and second wireless earbuds are wireless earbuds. After pairing, they function as a single wireless earbud pair. The wireless earbuds communicate with the charging case using the UART protocol, enabling half-duplex or full-duplex communication. The UART module includes two ports: TXD and RXD. The wireless earbuds and the charging case are connected via a Pogo pin (spring-loaded pin), which serves as the power supply contact point. Specifically, communication between the charging case and the wireless earbuds is initiated by the charging case, which establishes a data transmission link. Data transmission between the wireless earbuds and the charging case is achieved through this link. Communication between the first and second wireless earbuds is also initiated by the charging case, which establishes the data transmission link.

[0041] Optionally, the wireless headphones can be in-ear wireless headphones or ear-hook wireless headphones; this application embodiment does not limit the types.

[0042] Optionally, the charging box can be a wireless charging box or a wired charging box; this application embodiment does not limit the specific type of charging box.

[0043] Wireless earbuds can be stored, charged, and used for communication in the charging case. Once the wireless earbuds are placed in the charging case, the charging case charges the wireless earbuds through the power contact points until the wireless earbuds are fully charged. That is, by default, the wireless earbuds are in the charging state when they are placed in the charging case.

[0044] The charging case may include: a charging case shell and two charging cavities (a first charging cavity and a second charging cavity), the two charging cavities being sized and shaped to receive a pair of wireless earphones (a first wireless earphone and a second wireless earphone); one or more magnetic earphone shell components disposed within the charging cavities, the one or more magnetic earphone shell components being used to magnetically attract and magnetically fix the pair of wireless earphones to the two charging cavities respectively; the charging case also includes multiple power supply contacts for connecting the wireless earphones; the charging case may also include a charging cover, wherein the first charging cavity is sized and shaped to receive the first wireless earphone, and the second charging cavity is sized and shaped to receive the second wireless earphone.

[0045] In one possible implementation, the charging case may also include a sensing area, which may be located at the bottom of the two charging cavities respectively. At least one sensing sensor is provided in the sensing area for monitoring the wireless earphones. The sensing sensor may include a pressure sensor. When the wireless earphones are placed in the charging case, at least one pressure sensor can detect the change in its own pressure and thus detect the wireless earphones.

[0046] In one possible implementation, the charging case may further include a touch area, which may be located on the outer surface of the charging case housing. At least one touch sensor is disposed within the touch area to monitor touch operations. The touch sensor may include a capacitive sensor. When a user touches the touch area, at least one capacitive sensor can detect changes in its own capacitance to recognize the touch operation.

[0047] The wireless earphone may include an earphone shell, a rechargeable battery (e.g., a lithium battery) disposed within the earphone shell, multiple power supply contacts for connecting to a charging device, and a speaker assembly including a driver unit and a directional sound port. The driver unit includes a magnet, a voice coil, and a diaphragm, and is used to emit sound from the directional sound port. The multiple power supply contacts are disposed on the outer surface of the earphone shell, and the number of power supply contacts is the same as the number of power supply contacts in the charging case that is matched with the wireless earphone.

[0048] In one possible implementation, the wireless earphones may further include a touch area, which may be located on the outer surface of the earphone shell. At least one touch sensor is disposed within the touch area for detecting touch operations. The touch sensor may include a capacitive sensor. When a user touches the touch area, at least one capacitive sensor can detect a change in its own capacitance to recognize the touch operation.

[0049] In one possible implementation, the wireless earphone may also include an accelerometer and a three-axis gyroscope, which may be disposed inside the earphone housing. The accelerometer and the three-axis gyroscope are used to identify the actions of picking up and removing the wireless earphone.

[0050] In one possible implementation, the wireless earphones may also include at least one barometric pressure sensor, which can be disposed on the surface of the earphone shell to monitor the air pressure inside the ear after the wireless earphones are worn. The barometric pressure sensor can monitor the tightness of the wireless earphones. When the wireless earphones are detected to be loose, they can send a notification to an electronic device connected to the earphones to alert the user that the earphones are at risk of falling out.

[0051] The embodiments of this application will be described in detail below.

[0052] To better illustrate the embodiments of this application, the communication method between the charging case and the wireless earphones is first described. The wireless earphones and the charging case have various power supply contact point designs, mainly including: designs with two power supply contacts, designs with three power supply contacts, and designs with five power supply contacts. Among them, such as... Figure 1 As shown, in a two-power-point design, the two power-point contacts are a positive and a negative power-point. The negative power-point is used for grounding, and the positive power-point is used for charging. Therefore, to achieve communication between the charging case and the wireless earbuds, a single-wire communication method is required, meaning the charging case and the wireless earbuds share the positive power-point for both charging and communication. In a three-power-point design, one power-point is a negative power-point for grounding, one power-point is used for charging, and the other can be used for communication. A five-power-point design can cover all the functions of the above two designs and provides more functions for production line testing. Therefore, depending on the power-point design, the communication method between the charging case and the wireless earbuds can be: single-wire communication, two-wire communication, or multi-wire communication (three or more wires). However, most wireless earbud manufacturers currently use a two-power-point design for aesthetic and simpler earbud structures; therefore, communication between the charging case and the wireless earbuds via power-point contacts must be a single-wire communication method.

[0053] Please see Figure 2 , Figure 2 This is a schematic diagram of a single-wire communication structure between a charging case and wireless earphones according to an embodiment of this application, applied to, for example... Figure 1 The design of the two power supply contact points shown is as follows: Figure 2 As shown, the charging case, the first wireless earbuds, and the second wireless earbuds are interconnected via a voltage bus (VBUS), enabling communication between each other. The VBUS can be a charging cable that allows the charging case to charge the wireless earbuds through a positive power contact point.

[0054] The first wireless earphone can be a wireless earphone connected to the two charging power contacts of the charging case via two charging power contacts, and the second wireless earphone can be another wireless earphone connected to the two charging power contacts of the charging case via two charging power contacts.

[0055] Based on such Figure 2 The single-wire communication structure and UART communication protocol shown indicate that the charging case and wireless earphones can have two network topologies, network topology A (e.g., Figure 3A ) and network topology B (such as Figure 3B ).

[0056] like Figure 3A As shown, network topology A includes: a charging case, a first wireless earphone, and a second wireless earphone. The first and second wireless earphones are placed in the charging case. The first and second wireless earphones can communicate directly with the charging case, but they cannot communicate directly with each other. They need to use the charging case as a relay to forward data. The charging case can act as a master in the communication, actively initiating communication with the first and / or second wireless earphones, and initiating the process of switching from charging state to communication state. The first and second wireless earphones can act as slaves in the communication, synchronously switching from charging state to communication state and entering data receiving state.

[0057] like Figure 3BNetwork topology B includes: a charging case, a first wireless earphone, and a second wireless earphone. The first and second wireless earphones are placed in the charging case. The first and second wireless earphones can communicate directly with the charging case, and can also communicate directly with each other. When the charging case communicates with the first and / or second wireless earphones, the charging case acts as the master in the communication, and the first and / or second wireless earphones act as slaves. When the first and second wireless earphones communicate, the charging case and the second wireless earphones act as slaves, and the first wireless earphone acts as the master.

[0058] Please see Figure 4 , Figure 4 This application provides a schematic diagram of the structure of a single-wire communication system, which is applied to, for example... Figure 1 The charging case and the first wireless earbuds shown, as well as... Figure 3A Or such as Figure 3B The network topology shown indicates that the charging box can be as follows: Figure 3A Or such as Figure 3B The charging case shown allows the first wireless earbuds to be used as follows: Figure 3A Or such as Figure 3B The system shown includes a charging case and a first wireless earphone. The charging case is connected to the first wireless earphone and can charge and communicate with the first wireless earphone.

[0059] It should be noted that this embodiment demonstrates communication between the charging case and one wireless earphone (first wireless earphone) during charging. Communication between the charging case and another wireless earphone (second wireless earphone) during charging, as well as communication between the charging case and two wireless earphones during charging, can be implemented in the same or similar manner as the system provided in this embodiment. This embodiment does not impose any limitations on this.

[0060] Specifically, the charging case includes a controller, a switching circuit, a first power supply contact, a second power supply contact, and a battery. The first wireless earphone includes a controller, a switching circuit, a first power supply contact, a second power supply contact, a synchronization switching circuit, and a battery. To clearly distinguish the controller, switching circuit, first power supply contact, second power supply contact, and battery in the charging case from those in the first wireless earphone, in this embodiment, the controller, switching circuit, first power supply contact, second power supply contact, and battery in the charging case are respectively referred to as the first controller, first switching circuit, first power supply contact, second power supply contact, and first battery. The controller, switching circuit, first power supply contact, second power supply contact, and battery in the first wireless earphone are respectively referred to as the second controller, second switching circuit, third power supply contact, fourth power supply contact, and second battery. The second and fourth power supply contacts can be negative power supply contacts, and the first and third power supply contacts can be positive power supply contacts.

[0061] It should be noted that the first or second controller mentioned above can be a processor, a microcontroller unit (MCU), or a single-chip microcomputer.

[0062] Optionally, the I / O terminal of the first controller is connected to the control terminal of the first switching circuit, the first selection terminal of the first switching circuit is connected to the first battery, the second selection terminal of the first switching circuit is connected to the transceiver terminal of the UART module in the first controller, the common terminal of the first switching circuit is connected to one end of the first power supply contact, and the second power supply contact is grounded; the other end of the first power supply contact is connected to one end of the third power supply contact, the other end of the third power supply contact is connected to one end of the synchronous switching circuit and the common terminal of the second switching circuit, the other end of the synchronous switching circuit is connected to the control terminal of the second switching circuit, the first selection terminal of the second switching circuit is connected to the second battery, the second selection terminal of the second switching circuit is connected to the transceiver terminal of the UART module in the second controller, and the fourth power supply contact is grounded.

[0063] 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 shorted to form a transceiver terminal; the RXD and TXD of the UART module in the second controller are shorted to form a transceiver terminal.

[0064] Please see Figure 5 , Figure 5 This application provides a flowchart illustrating a single-wire communication method, applicable to, for example... Figure 1 The charging case and the first wireless earbuds shown, as well as... Figure 4The system shown can be such that the charging box can be Figure 3A The charging case shown allows the first wireless earbuds to be used as follows: Figure 3A The first wireless earphone shown, the single-wire communication method includes the following steps:

[0065] S501. When the charging case is charging the first wireless earphone through two power supply contact points, if it is detected that the charging case needs to communicate with the first wireless earphone, the charging case switches from the charging state to the communication state by sending a switching control signal to the first wireless earphone.

[0066] It should be noted that the two power supply contact points mentioned above can be the two power supply contact points provided in the charging case for connecting with the two charging power supply contact points of the first wireless earbuds to charge the first wireless earbuds, such as those provided with... Figure 1 The two circular power supply contacts of the first wireless earphone correspond to the two power supply contacts in the charging case.

[0067] The charging case may be equipped with a monitoring device to monitor the communication needs between the charging case and the first wireless earphone. When the charging case needs to communicate with the first wireless earphone, the monitoring device sends the monitoring results to the first controller, and the first controller can control the working status of the charging case according to the monitoring results.

[0068] Optionally, the charging case switches from a charging state to a communication state by sending a switching control signal to the first wireless earphone, including: the charging case controls the I / O terminal of the first controller to send a switching control signal to the first wireless earphone, controlling the first switching circuit to switch from a first selection terminal to a second selection terminal.

[0069] Specifically, the method by which the first switching circuit switches from the first selection terminal to the second selection terminal according to the switching control signal can be set by the designer according to the practical scenario and user needs. It can also be set according to the specific circuit structure in the charging box. For example, through software programming, when the first controller receives the monitoring result, the first controller I / O terminal outputs a high-level signal. When the control terminal of the first switching circuit receives the high-level signal, the first selection terminal of the first switching circuit is disconnected, and the second selection terminal is turned on, thereby realizing the switching of the first switching circuit from the first selection terminal to the second selection terminal. As long as it can be guaranteed that the first switching circuit can switch from the first selection terminal to the second selection terminal according to the switching control signal, this embodiment does not impose any restrictions on this.

[0070] The first switching circuit can be a single-pole double-throw control switch.

[0071] S502, the first wireless earphone switches from charging state to communication state.

[0072] Optionally, the first wireless earphone switching from the charging state to the communication state includes: controlling the second switching circuit to switch from the first selection terminal to the second selection terminal through a synchronous switching circuit.

[0073] The synchronous switching circuit controls the switching of the second switching circuit according to the switching control signal. The output signal of the synchronous switching circuit is synchronized with the switching control signal. That is, when the switching control signal switches the first switching circuit from the first selection terminal to the second selection terminal, the synchronous switching circuit also switches the second switching circuit from the first selection terminal to the second selection terminal.

[0074] Specifically, the implementation method of controlling the second switching circuit to switch from the first selection terminal to the second selection terminal through the synchronous switching circuit can be set by the designer according to the practical scenario and user needs, or it can be set according to the specific circuit structure in the charging box. For example, when the level of the input signal received by the synchronous switching circuit changes from low to high, the synchronous switching circuit outputs a high-level signal. When the control terminal of the second switching circuit receives the high-level signal, the first selection terminal of the second switching circuit is disconnected, and the second selection terminal is turned on, thereby realizing the switching of the second switching circuit from the first selection terminal to the second selection terminal. As long as it can be guaranteed that the second switching circuit can switch from the first selection terminal to the second selection terminal through the synchronous switching circuit, this embodiment does not impose any restrictions on this.

[0075] The second switching circuit can be a single-pole double-throw control switch.

[0076] S503, the charging box calls the UART module integrated in the first controller to send first data to the first wireless earphone.

[0077] In this configuration, the RXD and TXD terminals of the UART module in the first controller are shorted to form a transceiver terminal, and the charging case sends first data to the first wireless earphone through the transceiver terminal of the UART module in the first controller.

[0078] Optionally, the first data includes control instructions for controlling the first wireless headset and / or query instructions for obtaining information about the first wireless headset.

[0079] It is understood that the aforementioned first data can be data sent from the charging case to the first wireless earphone. The specific data type of the first data, i.e. the data type sent from the charging case to the first wireless earphone, can be set by the designer according to the practical scenario and user needs. For example, when the charging case needs to send control commands to the first wireless earphone, the first data can only include control commands; when the charging case also needs to send information query commands to the first wireless earphone, the first data can also include information query commands. This embodiment does not impose any restrictions on this.

[0080] The aforementioned control commands include, but are not limited to: pairing control commands, reset control commands, factory reset control commands, and OTA upgrade control commands. The aforementioned information query commands include, but are not limited to: version number query commands and battery level query commands.

[0081] S504. The first wireless earphone receives the first data and determines whether the first data is data sent by the first wireless earphone through the second controller. If it is, the first data is directly filtered or not processed. If it is not, the first data is analyzed through the second controller to obtain the analysis result, and the corresponding operation is performed according to the analysis result.

[0082] In this configuration, the RXD and TXD terminals of the UART module in the second controller are shorted to form a transceiver terminal, and the first wireless earphone receives the first data through the transceiver terminal of the UART module in the second controller.

[0083] Specifically, the second controller can decode the first data to obtain decoded data, and execute corresponding operations based on the instructions corresponding to the decoded data. The specific type of instruction can be set by the designer according to the practical scenario and user needs. For example, if the charging case needs to control the first wireless earbuds to restore factory settings during charging, the instruction can include a factory reset control instruction. The charging case can control the first wireless earbuds to restore factory settings by sending the factory reset control instruction. During charging, if the charging case also needs to obtain the battery level information of the first wireless earbuds, the instruction can also include a battery level query instruction, causing the first wireless earbuds to send their own battery level information to the charging case according to the battery level query instruction. This embodiment does not impose any restrictions as long as the first wireless earbuds can execute the corresponding operation according to the instruction corresponding to the first data.

[0084] S505, the first wireless earphone calls the UART module integrated in the second controller to send second data to the charging box.

[0085] The first wireless earphone sends second data to the charging case via the transceiver terminal of the UART module in the second controller.

[0086] Optionally, the second data includes status information for responding to control commands and / or query result information for responding to query commands.

[0087] S506. The charging box receives the second data and determines whether the second data is data sent by the charging box through the first controller. If it is, the second data is directly filtered or not processed. If it is not, the second data is analyzed through the first controller to obtain the analysis result, and the corresponding operation is performed according to the analysis result.

[0088] Specifically, the first controller can decode the second data to obtain decoded data, and execute corresponding operations based on the response instructions corresponding to the decoded data. The specific type of response instruction can be set by the designer according to the practical scenario and user needs. For example, if the first wireless earbuds need to respond to a factory reset control instruction sent by the charging case, the response instruction can include the factory reset status information of the first wireless earbuds. The charging case can then determine whether the first wireless earbuds have completed the factory reset operation based on the status information sent by the first wireless earbuds. If the first wireless earbuds also need to report their battery level information to the charging case, the response instruction can also include the battery level information of the first wireless earbuds. This embodiment does not impose any restrictions as long as the charging case can execute the corresponding operation based on the response instructions corresponding to the second data.

[0089] It should be noted that this embodiment demonstrates communication between the charging case and one wireless earphone (first wireless earphone) during charging. Communication between the charging case and another wireless earphone (second wireless earphone) during charging, as well as communication between the charging case and two wireless earphones during charging, can be achieved in the same or similar manner as the method provided in this embodiment. This embodiment does not impose any limitations on this.

[0090] As can be seen, the single-wire communication method and related products described in the embodiments of this application above achieve single-wire communication between the wireless earphones and the charging case by shorting the RXD and TXD of the UART in the controller into a single wire and adding a switching circuit. Applying this technology to wireless earphone products, especially to binaural wireless earphones with two power contact point charging interfaces and their matching charging cases, satisfies both the charging case's charging and communication functions for the wireless earphones, while maintaining a simple and aesthetically pleasing structure, reducing hardware resource consumption and software development difficulty, thereby lowering product costs.

[0091] Please see Figure 6 , Figure 6 A flowchart illustrating another single-wire communication method provided in this application embodiment, applied to, for example... Figure 1 The charging case, the first wireless earbuds, and the second wireless earbuds shown are as follows: Figure 4 The system shown can be such that the charging box can be Figure 3B The charging case shown allows the first wireless earbuds to be used as follows: Figure 3B The first wireless earphone shown, the second wireless earphone can be as follows: Figure 3B The second wireless earphone shown, the single-wire communication method includes the following steps:

[0092] S601. When the charging case is charging the first wireless earphone through two power supply contact points and charging the second wireless earphone through two other power supply contact points, if it is detected that the charging case needs to communicate with the first wireless earphone, the charging case switches the charging case connected to the first wireless earphone from the charging state to the communication state by sending a switching control signal to the first wireless earphone.

[0093] It should be noted that the two power supply contact points mentioned above can be the two power supply contact points provided in the charging case for connecting with the two charging power supply contact points of the first wireless earbuds to charge the first wireless earbuds, such as those provided with... Figure 1 The two circular power supply contacts of the first wireless earphone correspond to the two power supply contacts in the charging case; the other two power supply contacts can be two additional power supply contacts in the charging case used to connect with the two charging power supply contacts of the second wireless earphone to charge the second wireless earphone, such as... Figure 1 The two circular power supply contacts of the second wireless earphone correspond to the two power supply contacts in the charging case.

[0094] It should be noted that the first and second wireless earbuds are identical in structure and function, and the single-wire communication system between the second wireless earbud and the charging case is the same as that between the first wireless earbud and the charging case. To clearly distinguish the controllers and switching circuits in the charging case, the first wireless earbud, and the second wireless earbud, this embodiment refers to the controller and switching circuit in the charging case as the first controller, the first switching circuit (for communicating with the first wireless earbud), and the third switching circuit (for communicating with the second wireless earbud), respectively; the controller and switching circuit in the first wireless earbud as the second controller and the second switching circuit, respectively; and the controller and switching circuit in the second wireless earbud as the third controller and the fourth switching circuit, respectively. To distinguish the synchronization switching circuits in the first and second wireless earbuds, this embodiment refers to the synchronization switching circuit in the first wireless earbud as the first synchronization switching circuit, and the synchronization switching circuit in the second wireless earbud as the second synchronization switching circuit.

[0095] The charging case may be equipped with a monitoring device to monitor the communication needs between the charging case and the first wireless earphone. When the charging case needs to communicate with the first wireless earphone, the monitoring device sends the monitoring results to the first controller, and the first controller can control the working status of the charging case according to the monitoring results.

[0096] Optionally, the charging case can switch from a charging state to a communication state by sending a switching control signal to the first wireless earphone. This includes the charging case controlling the I / O terminal of the first controller to send a switching control signal to the first wireless earphone, controlling the first switching circuit to switch from a first selection terminal to a second selection terminal.

[0097] Specifically, the method by which the first switching circuit switches from the first selection terminal to the second selection terminal according to the switching control signal can be set by the designer according to the practical scenario and user needs. It can also be set according to the specific circuit structure in the charging box. For example, through software programming, when the first controller receives the monitoring result, the first controller I / O terminal outputs a high-level signal. When the control terminal of the first switching circuit receives the high-level signal, the first selection terminal of the first switching circuit is disconnected, and the second selection terminal is turned on, thereby realizing the switching of the first switching circuit from the first selection terminal to the second selection terminal. As long as it can be guaranteed that the first switching circuit can switch from the first selection terminal to the second selection terminal according to the switching control signal, this embodiment does not impose any restrictions on this.

[0098] The first switching circuit can be a single-pole double-throw control switch.

[0099] S602, the first wireless earphone switches from charging state to communication state.

[0100] Optionally, the first wireless earphone switching from the charging state to the communication state includes: controlling the second switching circuit to switch from the first selection terminal to the second selection terminal through the first synchronous switching circuit.

[0101] The first synchronous switching circuit controls the switching of the switching circuit according to the switching control signal. The output signal of the first synchronous switching circuit is synchronized with the switching control signal. That is, when the switching control signal switches the first switching circuit from the first selection terminal to the second selection terminal, the first synchronous switching circuit also switches the second switching circuit from the first selection terminal to the second selection terminal.

[0102] Specifically, the implementation method of controlling the second switching circuit to switch from the first selection terminal to the second selection terminal through the first synchronous switching circuit can be set by the designer according to the practical scenario and user needs, or it can be set according to the specific circuit structure in the charging box. For example, when the level of the input signal received by the first synchronous switching circuit changes from low to high, the first synchronous switching circuit outputs a high-level signal. When the control terminal of the second switching circuit receives the high-level signal, the first selection terminal of the second switching circuit is disconnected, and the second selection terminal is turned on, thereby realizing the switching of the second switching circuit from the first selection terminal to the second selection terminal. As long as it can be guaranteed that the second switching circuit can switch from the first selection terminal to the second selection terminal through the first synchronous switching circuit, this embodiment does not impose any restrictions on this.

[0103] The second switching circuit can be a single-pole double-throw control switch.

[0104] S603. If it is detected that the first wireless earphone needs to communicate with the second wireless earphone, the first wireless earphone calls the UART module integrated in the second controller to send the first data to the charging box.

[0105] In this configuration, the RXD and TXD terminals of the UART module in the second controller are shorted to form a transceiver terminal, and the first wireless earphone sends the first data to the charging case through the transceiver terminal of the UART module in the second controller.

[0106] The first wireless earphone may be equipped with a monitoring device to monitor the communication needs between the first wireless earphone and the second wireless earphone. When the first wireless earphone needs to communicate with the second wireless earphone, the monitoring device sends the monitoring results to the second controller, and the second controller can perform corresponding operations based on the monitoring results.

[0107] Optionally, the first data includes a request communication instruction sent by the first wireless earphone to the charger, the request communication instruction being used to request the charging case to allow direct communication between the first wireless earphone and the second wireless earphone.

[0108] S604. The charging box receives the first data and determines whether the first data is data sent by the charging box through the first controller. If it is, the first data is directly filtered or not processed. If it is not, the first data is analyzed through the first controller to obtain the analysis result, and the corresponding operation is performed according to the analysis result.

[0109] In this configuration, the RXD and TXD terminals of the UART module in the first controller are shorted to form a transceiver terminal, and the charging box receives the first data through the transceiver terminal of the UART module in the first controller.

[0110] Specifically, the first controller can decode the first data to obtain decoded data, and execute corresponding operations according to the instructions corresponding to the decoded data.

[0111] S605, the charging case sends a switching control signal to the second wireless earphone to switch the charging case connected to the second wireless earphone from the charging state to the communication state.

[0112] Optionally, the charging case switches from a charging state to a communication state by sending a switching control signal to the second wireless earphone, including: the charging case sends a switching control signal to the second wireless earphone through the first controller's control I / O terminal, controlling the third switch circuit to switch from a first selection terminal to a second selection terminal.

[0113] Specifically, the method by which the third switching circuit switches from the first selection terminal to the second selection terminal according to the switching control signal can be set by the designer according to the practical scenario and user needs. It can also be set according to the specific circuit structure in the charging box. For example, through software programming, when the first controller receives the monitoring result, the first controller I / O terminal outputs a high-level signal. When the control terminal of the third switching circuit receives the high-level signal, the first selection terminal of the third switching circuit is disconnected, and the second selection terminal is turned on, thereby realizing the switching of the third switching circuit from the first selection terminal to the second selection terminal. As long as it can be guaranteed that the third switching circuit can switch from the first selection terminal to the second selection terminal according to the switching control signal, this embodiment does not impose any restrictions on this.

[0114] The third switching circuit can be a single-pole double-throw control switch.

[0115] S606, the second wireless earphone switches from charging state to communication state.

[0116] Optionally, the second wireless earphone switching from the charging state to the communication state includes: controlling the fourth switching circuit to switch from the first selection terminal to the second selection terminal via the second synchronous switching circuit.

[0117] The second synchronous switching circuit controls the switching of the fourth switching circuit according to the switching control signal. The output signal of the second synchronous switching circuit is synchronized with the switching control signal. That is, when the switching control signal switches the third switching circuit from the first selection terminal to the second selection terminal, the second synchronous switching circuit also switches the fourth switching circuit from the first selection terminal to the second selection terminal.

[0118] Specifically, the implementation method of controlling the fourth switching circuit to switch from the first selection terminal to the second selection terminal through the second synchronous switching circuit can be set by the designer according to the practical scenario and user needs. It can also be set according to the specific circuit structure in the charging box. For example, when the level of the input signal received by the second synchronous switching circuit changes from low to high, the second synchronous switching circuit outputs a high-level signal. When the control terminal of the fourth switching circuit receives the high-level signal, the first selection terminal of the fourth switching circuit is disconnected, and the second selection terminal is turned on, thereby realizing the switching of the fourth switching circuit from the first selection terminal to the second selection terminal. As long as it can be guaranteed that the fourth switching circuit can switch from the first selection terminal to the second selection terminal according to the output level of the second synchronous switching circuit, this embodiment does not impose any restrictions on this.

[0119] The fourth switching circuit can be a single-pole double-throw control switch.

[0120] S607, The charging box calls the UART module integrated in the first controller to send second data to the first wireless earphone.

[0121] In this configuration, the RXD and TXD terminals of the UART module in the first controller are shorted to form a transceiver terminal, and the charging case sends second data to the first wireless earphone through the transceiver terminal of the UART module in the first controller.

[0122] Optionally, the second data includes an acceptance communication instruction in response to the first data, the acceptance communication instruction being used by the charging case to allow direct communication between the first wireless earphone and the second wireless earphone.

[0123] S608. The first wireless earphone receives the second data and determines whether the second data is data sent by the first wireless earphone through the second controller. If it is, the first data is directly filtered or not processed. If it is not, the second data is analyzed through the second controller to obtain the analysis result, and the corresponding operation is performed according to the analysis result.

[0124] The first wireless earphone receives the second data through the transceiver terminal of the UART module in the second controller.

[0125] Specifically, the second controller can decode the second data to obtain decoded data, and execute corresponding operations according to the instructions corresponding to the decoded data.

[0126] S609, the first wireless earphone calls the UART module integrated in the second controller to send third data to the second wireless earphone.

[0127] The first wireless earphone sends third data to the second wireless earphone through the transceiver terminal of the UART module in the second controller.

[0128] Optionally, the third data includes control instructions for controlling the second wireless earphone and / or query instructions for obtaining information about the second wireless earphone.

[0129] It is understood that the aforementioned third data can be data sent from the first wireless earphone to the second wireless earphone. The specific data type of the third data, i.e., the data type sent from the first wireless earphone to the second wireless earphone, can be set by the designer according to the practical scenario and user needs. For example, if the first wireless earphone needs to send control commands to the second wireless earphone, the first data can only include control commands; if the first wireless earphone also needs to send information query commands to the second wireless earphone, the third data can also include information query commands. This embodiment does not impose any restrictions on this.

[0130] The aforementioned control commands include, but are not limited to: pairing control commands, reset control commands, factory reset control commands, and OTA upgrade control commands. The aforementioned information query commands include, but are not limited to: version number query commands and battery level query commands.

[0131] S610. The second wireless earphone receives the third data and determines whether the third data is data sent by the second wireless earphone through the third controller. If it is, the third data is directly filtered or not processed. If it is not, the third data is analyzed through the third controller to obtain the analysis result, and the corresponding operation is performed according to the analysis result.

[0132] In this configuration, the RXD and TXD of the UART module in the third controller are shorted to form a transceiver terminal, and the second wireless earphone receives the third data through the transceiver terminal of the UART module in the third controller.

[0133] Specifically, the third controller can decode the third data to obtain decoded data, and execute corresponding operations based on the instructions corresponding to the decoded data. The specific type of instruction can be set by the designer according to the practical scenario and user needs. For example, if the first wireless earphone needs to control the second wireless earphone to restore factory settings while charging, the instruction can include a factory reset control instruction. The first wireless earphone can control the second wireless earphone to restore factory settings by sending the factory reset control instruction. During charging, if the first wireless earphone also needs to obtain the version number information of the second wireless earphone, the instruction can include a version number query instruction, causing the first wireless earphone to send its own version number information to the second wireless earphone according to the version number query instruction. This embodiment does not impose any restrictions as long as the second wireless earphone can execute the corresponding operation according to the instruction corresponding to the third data.

[0134] S611, The second wireless earphone sends fourth data to the first wireless earphone.

[0135] The second wireless earphone sends fourth data to the first wireless earphone through the transceiver terminal of the UART module in the third controller.

[0136] Optionally, the fourth data includes status information for responding to control commands and / or query result information for responding to query commands.

[0137] S612. The first wireless earphone receives the fourth data and determines whether the fourth data is data sent by the second wireless earphone through the second controller. If it is, the fourth data is directly filtered or not processed. If it is not, the fourth data is analyzed by the second controller to obtain the analysis result, and the corresponding operation is performed according to the analysis result.

[0138] Specifically, the second controller can decode the fourth data to obtain decoded data, and execute corresponding operations based on the response instructions corresponding to the decoded data. The specific type of response instruction can be set by the designer according to the practical scenario and user needs. For example, when the second wireless earphone needs to respond to a factory reset control instruction sent by the first wireless earphone, the response instruction can include the factory reset status information of the second wireless earphone. The first wireless earphone can also obtain whether the second wireless earphone has completed the factory reset operation based on the status information sent by the second wireless earphone. If the second wireless earphone also needs to report its battery level information to the first wireless earphone, the response instruction can also include the battery level information of the second wireless earphone. This embodiment does not impose any restrictions as long as the first wireless earphone can execute the corresponding operation based on the response instruction corresponding to the fourth data.

[0139] As can be seen, the single-wire communication method and related products described in the embodiments of this application above achieve single-wire communication between the wireless earphones and the charging case by shorting the RXD and TXD of the UART in the controller into a single wire and adding a switching circuit. Applying this technology to wireless earphone products, especially to binaural wireless earphones with two power contact point charging interfaces and their matching charging cases, satisfies both the charging case's charging and communication functions for the wireless earphones, while maintaining a simple and aesthetically pleasing structure, reducing hardware resource consumption and software development difficulty, thereby lowering product costs.

[0140] Please see Figure 7 , Figure 7 This is a schematic diagram of a single-wire communication device 700 provided in an embodiment of this application, which is applied to a charging box and such as Figure 4 The system shown includes a switching unit 701 and a communication link establishment unit 702, wherein:

[0141] The switching unit 701 is used to switch the charging box from the charging state to the communication state when the charging box is charging the first wireless earphone through two power supply contact points and if it is detected that the charging box needs to communicate with the first wireless earphone.

[0142] The communication link establishment unit 702 is used to call the 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.

[0143] As can be seen, the single-line communication device described in the above-mentioned application embodiments is applied to a charging box, in which a first wireless earphone is placed. When the charging box charges the first wireless earphone through two power supply contact points, if it is detected 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. The Universal Asynchronous Receiver / Transmitter (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. Thus, while satisfying the charging and communication functions of the charging box for the first wireless earphone, it also maintains a simple and beautiful structure, reducing hardware resource consumption and software development difficulty.

[0144] Optionally, in switching the charging case from a charging state to a communication state, the switching unit 701 is specifically used for:

[0145] The controller outputs a signal from its I / O pins to control the switching circuit to switch from the first selection pin to the second selection pin.

[0146] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of a single-wire communication device 800 provided in an embodiment of this application, applied to a first wireless earphone and such as... Figure 4 The system shown includes a switching unit 801 and a communication link establishment unit 802, wherein:

[0147] The switching unit 801 is used to switch the charging box from the charging state to the communication state when the charging box is charging the first wireless earphone through two power supply contact points and if it is detected that the charging box needs to communicate with the first wireless earphone.

[0148] The communication link establishment unit 802 is used to call the 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.

[0149] As can be seen, the single-wire communication device described above is applied to the first wireless earphone, which is placed in the charging case. When the charging case charges the first wireless earphone through two power supply contacts, if it detects that the charging case needs to communicate with the first wireless earphone, it switches the first wireless earphone from the charging state to the communication state and calls the UART module integrated in the controller of the first wireless earphone to establish a communication link between the charging case and the first wireless earphone. In this way, while satisfying the charging and communication functions of the charging case for the first wireless earphone, it also maintains a simple and beautiful structure, reduces hardware resource consumption and software development difficulty.

[0150] Optionally, in switching the first wireless earphone from a charging state to a communication state, the switching unit 801 is specifically used for:

[0151] The synchronous switching circuit controls the switching circuit to switch from the first selection terminal to the second selection terminal.

[0152] Please see Figure 9 , Figure 9 This is a schematic diagram of the structure of a charging box according to an embodiment of this application, as shown below. Figure 9 As shown, the charging case includes a processor, a memory, a charging unit, a communication unit, a connection interface, and one or more programs. The charging unit and communication unit are connected to the wireless earphones via the connection interface. The one or more programs are stored in the memory and configured to be executed by the processor. The charging case houses the first wireless earphones and is used for... Figure 4 The system shown above includes instructions for performing the following steps:

[0153] When the charging case charges the first wireless earphone through two power supply contact points, if it is detected that the charging case needs to communicate with the first wireless earphone, the charging case is switched from charging state to communication state.

[0154] The UART module integrated in the controller of the charging case is invoked to establish a communication link between the charging case and the first wireless earphone.

[0155] As can be seen, the charging box described in the above application embodiment, when charging the first wireless earphone through two power supply contact points, if it detects that the charging box needs to communicate with the first wireless earphone, switches the charging box from the charging state to the communication state, and calls the 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 this way, while satisfying the charging and communication functions of the charging box for the first wireless earphone, it also maintains a simple and beautiful structure, reduces hardware resource consumption and software development difficulty.

[0156] Please see Figure 10 , Figure 10 This is a schematic diagram of the structure of a wireless earphone according to an embodiment of this application, as shown below. Figure 10 As shown, the wireless earphone includes: a processor, a memory, a charging unit, a communication unit, a connection interface, and one or more programs. The charging unit and communication unit are connected to a charging case via the connection interface. The one or more programs are stored in the memory and configured to be executed by the processor. This wireless earphone is a first wireless earphone and is placed in the charging case for use as... Figure 4 The system shown above includes instructions for performing the following steps:

[0157] When the charging case charges the first wireless earphone through two power supply contact points, if it is detected that the charging case needs to communicate with the first wireless earphone, the first wireless earphone is switched from charging state to communication state.

[0158] The UART module integrated in the controller of the first wireless earphone is invoked to establish a communication link between the charging case and the first wireless earphone.

[0159] As can be seen, when the charging case charges the first wireless earphone through two power supply contact points, if it detects that the charging case needs to communicate with the first wireless earphone, it switches the first wireless earphone from the charging state to the communication state and calls the UART module integrated in the controller of the first wireless earphone to establish a communication link between the charging case and the first wireless earphone. In this way, while satisfying the charging and communication functions of the charging case for the first wireless earphone, it also maintains a simple and beautiful structure, reduces hardware resource consumption and software development difficulty.

[0160] In one possible example, the second wireless earphone is placed in the charging case. After establishing a communication link between the charging case and the first wireless earphone by invoking the UART module integrated in the controller of the first wireless earphone, the above procedure includes instructions for performing the following steps:

[0161] When the charging case charges the second wireless earphone through the other two power supply contact points, if it is detected that the first wireless earphone needs to communicate with the second wireless earphone, the charging case sends second data to the charging case. The second data includes a request communication command sent by the first wireless earphone to the charger.

[0162] Receive third data sent by the charging box, the third data including an acceptance communication instruction in response to the second data;

[0163] The second controller determines whether the third data is data sent by the first wireless earphone. If it is, the third data is directly filtered or not processed. If it is not, the second controller analyzes the third data to obtain the analysis result and performs the corresponding operation based on the analysis result.

[0164] The UART module integrated in the controller of the first wireless earphone is invoked to establish a communication link between the first wireless earphone and the second wireless earphone.

[0165] This application also provides a single-wire communication system, including a charging case as provided in the above embodiments and a wireless earphone as provided in the above embodiments.

[0166] This application also provides a computer storage medium storing a computer program for electronic data interchange, which causes a computer to perform some or all of the steps of any of the methods described in the above method embodiments.

[0167] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. This computer program product can be a software installation package.

[0168] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0169] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0170] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.

[0171] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0172] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0173] If the aforementioned integrated units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0174] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage device, which may include a flash drive, ROM, RAM, disk, or optical disk, etc.

[0175] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A single-wire communication method, characterized in that, Applied to a first wireless earphone, wherein the first wireless earphone is placed in a charging case, the method includes: If it is detected that the charging case needs to communicate with the first wireless earphone, the first wireless earphone is switched from charging state to communication state. The communication link between the charging case and the first wireless earphone is established by calling the UART module integrated in the controller of the first wireless earphone. Specifically, this includes: shorting the RXD and TXD of the UART into a single line and adding a switching circuit to realize single-line communication between the wireless earphone and the charging case. If it is detected that the first wireless earphone needs to communicate with the second wireless earphone, the first wireless earphone calls the UART module integrated in the controller to send second data to the charging case. In response to the second data, the charging case sends a switching control signal to the second wireless earphone. In response to the switching control signal, the second wireless earphone switches from the charging state to the communication state.

2. The method according to claim 1, characterized in that, The charging case is configured to charge the first wireless earbuds via two power supply contacts.

3. The method according to claim 1 or 2, characterized in that, The method further includes: The system receives the first data sent by the charging case and determines whether the first data is sent by the first wireless earphone through the controller of the first wireless earphone. If so, the system directly filters or does not process the first data. And / or, If not, the controller of the first wireless earphone analyzes the first data to obtain the analysis result, and performs the corresponding operation based on the analysis result.

4. A single-wire communication method, characterized in that, Applied to a charging case, wherein a first wireless earphone is placed in the charging case, the method includes: If it is detected that the charging case needs to communicate with the first wireless earphone, the charging case is switched from the charging state to the communication state. The communication link between the charging box and the first wireless earphone is established by calling the Universal Asynchronous Receiver / Transmitter (UART) module integrated in the controller of the charging box. Specifically, this includes: shorting the RXD and TXD of the UART into a single line and adding a switching circuit to achieve single-line communication between the wireless earphone and the charging box. If it is detected that the first wireless earphone needs to communicate with the second wireless earphone, the first wireless earphone calls the UART module integrated in the controller to send second data to the charging case. In response to the second data, the charging case sends a switching control signal to the second wireless earphone. In response to the switching control signal, the second wireless earphone switches from the charging state to the communication state.

5. The method according to claim 4, characterized in that, The charging case is configured to charge the first wireless earbuds via two power supply contacts.

6. The method according to claim 4 or 5, characterized in that, The method further includes: The system receives second data sent by the first wireless earphone, and determines whether the second data is sent by the charging box through the controller of the charging box. If it is, the system directly filters or does not process the second data, and / or if it is not, the system analyzes the second data through the controller of the charging box to obtain the analysis result, and performs the corresponding operation according to the analysis result.

7. A communication system, the system comprising a charging case, a first wireless earphone, and a second wireless earphone, characterized in that, The first wireless earphone and the second wireless earphone are placed in the charging case, wherein the first wireless earphone and the second wireless earphone are configured to communicate directly with the charging case, and / or the first wireless earphone is configured to communicate directly with the second wireless earphone, wherein single-wire communication between the wireless earphone and the charging case is achieved by shorting the RXD and TXD of the UART of the charging case and / or the first wireless earphone and / or the second wireless earphone into a single wire and by adding a switching circuit; If it is detected that the first wireless earphone needs to communicate with the second wireless earphone, the first wireless earphone calls the UART module integrated in the controller to send second data to the charging case. In response to the second data, the charging case sends a switching control signal to the second wireless earphone. In response to the switching control signal, the second wireless earphone switches from the charging state to the communication state.

8. The communication system as described in claim 7, characterized in that, When the charging case communicates with the first wireless earphone and / or the second wireless earphone, the charging case is configured to act as a master in the communication, and the first wireless earphone and / or the second wireless earphone is configured to act as a slave in the communication; And / or, when the first wireless earphone communicates with the second wireless earphone, the charging case and the second wireless earphone are configured to act as slaves in the communication, and the first wireless earphone acts as the master in the communication.

9. A wireless earphone, characterized in that, The device includes 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 are connected to the charging box via the connection interface. The one or more programs are stored in the memory and configured to be executed by the processor. The programs include instructions for performing the steps of the method as described in any one of claims 1-3.

10. A charging case, characterized in that, The device includes 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 are connected to the wireless headset via the connection interface. The one or more programs are stored in the memory and configured to be executed by the processor. The programs include instructions for performing the steps of the method as described in any one of claims 4-6.

Citation Information

Patent Citations

  • Method and apparatus for establishing single line connection, wireless earphone and charging box

    CN108769856A

  • Earphone charging box, data transmission method thereof and earphone

    CN110225427A