[go: up one dir, main page]

CN113127401B - Earphone box and earphone communication method and system - Google Patents

Earphone box and earphone communication method and system Download PDF

Info

Publication number
CN113127401B
CN113127401B CN202110262519.7A CN202110262519A CN113127401B CN 113127401 B CN113127401 B CN 113127401B CN 202110262519 A CN202110262519 A CN 202110262519A CN 113127401 B CN113127401 B CN 113127401B
Authority
CN
China
Prior art keywords
earphone
data
box
communication bus
pin
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110262519.7A
Other languages
Chinese (zh)
Other versions
CN113127401A (en
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202110262519.7A priority Critical patent/CN113127401B/en
Publication of CN113127401A publication Critical patent/CN113127401A/en
Application granted granted Critical
Publication of CN113127401B publication Critical patent/CN113127401B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00036Charger exchanging data with battery
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Power Engineering (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a communication method and a communication system of an earphone box and an earphone. The method comprises the following steps: the earphone box is used for sending data according to the communication function configuration to be realized by the earphone box and the earphone; the earphone box utilizes a sending pin TX1 to send configured sending data to the earphone through the communication bus, simultaneously utilizes a receiving pin RX1 to receive data from the communication bus, and obtains earphone data of the earphone according to the received data, so that the communication function of the earphone box and the earphone is completed. According to the method and the device, waveform interaction and data transmission between the earphone box and the earphone are realized by using the UART, the accuracy of waveform transmission is guaranteed, earphone data can be received while the earphone box sends data, timely response of the earphone is guaranteed, multiple polling of the earphone box on the earphone is avoided, system consumption is reduced, and the communication time of the earphone box and the earphone and the charging time of the earphone are shortened.

Description

Earphone box and earphone communication method and system
Technical Field
The application relates to the field of communication, in particular to a communication method and system of an earphone box and an earphone.
Background
When the earphone box and the earphone perform waveform interaction, strict time sequence required by an earphone chip needs to be met, namely, the level is pulled up or down for a specified time, and relevant data is read at a specified time point. In the prior art, a Micro Control Unit (MCU) of an earphone box generally controls a General-purpose input/output (GPIO) to enable the GPIO to output 0, pull down a level, delay a predetermined time, enable an IO interface to output 1, pull up a level, and then read the level of the IO port after delaying the predetermined time to satisfy a timing sequence required by an earphone chip.
When the earphone box and the earphone perform data interaction, in the prior art, the earphone is usually polled regularly by the earphone box, and a window time of a specific time is given, so that the earphone sends out data within the window time. However, the method has the problems that the time consumption is high, the polling process wastes time, and the charging is interrupted by polling each time when the earphone is charged, so that the charging time is prolonged.
Disclosure of Invention
In view of the above problems in waveform interaction and data interaction between the earphone box and the earphone, the present application provides a method and a system for communication between the earphone box and the earphone, so as to overcome the above problems or at least partially solve the above problems.
According to one aspect of the application, a communication method of an earphone box and an earphone is provided, wherein the earphone box and the earphone are respectively connected with a communication bus by adopting a Universal Asynchronous Receiver Transmitter (UART), a sending pin TX1 and a receiving pin RX1 of the earphone box are connected to one end of the communication bus after being in short circuit, a sending pin TX2 and a receiving pin RX2 of the earphone are connected to the other end of the communication bus after being in short circuit, the communication bus is externally connected with a pull-up resistor, and the sending pin TX1 of the earphone box and the sending pin TX2 of the earphone are both configured to be output in a leakage mode; the method comprises the following steps:
the earphone box is used for sending data according to the communication function configuration to be realized by the earphone box and the earphone;
the earphone box utilizes a sending pin TX1 to send configured sending data to the earphone through the communication bus, and simultaneously utilizes a receiving pin RX1 to receive data from the communication bus and obtain earphone data of the earphone according to the received data, so that the communication function of the earphone box and the earphone is completed.
According to another aspect of the present application, a communication system of an earphone box and an earphone is provided, which includes the earphone box and the earphone, wherein the earphone box and the earphone are respectively connected to a communication bus by a UART, a transmission pin TX1 and a reception pin RX1 of the earphone box are connected to one end of the communication bus after being shorted, a transmission pin TX2 and a reception pin RX2 of the earphone are connected to the other end of the communication bus after being shorted, the communication bus is externally connected with a pull-up resistor, and the transmission pin TX1 of the earphone box and the transmission pin TX2 of the earphone are both configured to be output with leakage; wherein,
the earphone box is used for configuring and sending data according to a communication function to be realized by the earphone box and the earphone, sending the configured and sent data to the earphone through the communication bus by using a sending pin TX1, receiving data from the communication bus by using a receiving pin RX1, and acquiring earphone data of the earphone according to the received data, so that the communication function to be realized by the earphone box and the earphone is completed.
According to the technical scheme, the earphone box and the earphone are connected with the communication bus through the Universal Asynchronous Receiver Transmitter (UART) respectively, the sending data of the earphone box are configured according to the communication function to be realized by the earphone box and the earphone, the earphone box utilizes the sending pin TX1 to send the configured sending data to the earphone through the communication bus, meanwhile, the receiving pin RX1 is utilized to receive data from the communication bus, the earphone data of the earphone is obtained according to the received data, and therefore the communication function to be realized by the earphone box and the earphone is completed. According to the method and the device, waveform interaction and data transmission between the earphone box and the earphone are achieved through the UART, the accuracy of waveform transmission is guaranteed, earphone data can be received while the earphone box sends data, timely response of the earphone is guaranteed, multiple polling of the earphone box on the earphone is avoided, system consumption is reduced, and the communication time between the earphone box and the earphone and the charging time of the earphone are shortened.
The above description is only an overview of the technical solutions of the present application, and the present application may be implemented in accordance with the content of the description so as to make the technical means of the present application more clearly understood, and the detailed description of the present application will be given below in order to make the above and other objects, features, and advantages of the present application more clearly understood.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic flowchart illustrating a method for communication between an earphone box and an earphone according to an embodiment of the present application;
FIG. 2 illustrates a waveform diagram of an initialization command timing diagram according to one embodiment of the present application;
fig. 3 illustrates a schematic waveform diagram received by a UART Rx1 of an earphone box when the earphone is not in the earphone box according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating a waveform received by a UART Rx1 of an earphone-on-earphone box according to an embodiment of the present application;
fig. 5 is a waveform diagram illustrating an earphone box transmitting 0x1FF data according to an embodiment of the present application;
fig. 6 is a waveform diagram illustrating a headset transmitting 0x12 power data according to an embodiment of the present application;
fig. 7 is a schematic diagram illustrating a waveform superposition of a headset transmitting 0x1FF data and a headset transmitting 0x12 power data according to an embodiment of the application;
fig. 8 is a schematic structural diagram illustrating a communication system of an earphone box and an earphone according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of another earphone box and earphone communication system according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In the technical scheme of this application, earphone box and earphone adopt universal asynchronous receiver transmitter UART to connect communication bus respectively, connect the one end at communication bus after the short circuit of sending pin TX1 and receiving pin RX1 of earphone box, connect the other end at communication bus after the short circuit of sending pin TX2 and receiving pin RX2 of earphone, communication bus external connection is a pull-up resistance, and the sending pin TX1 of earphone box and the sending pin TX2 of earphone all are configured to open the neglected loading and export.
The communication bus is a line and relation among nodes, namely the communication bus is 1 (high level) at ordinary times, any node on the communication bus is 0 (low level), and the bus level is 0; the bus level is 1 only if all nodes are 1.
Fig. 1 is a flowchart illustrating a communication method between an earphone box and an earphone according to an embodiment of the present application. As shown in fig. 1, the method includes:
in step S110, the earphone box configures transmission data according to a communication function to be implemented between the earphone box and the earphone.
In this embodiment, the earphone box may configure the transmission data according to a communication function that the earphone box and the earphone realize, thereby realizing various communication functions.
Specifically, the communication functions to be implemented by the earphone box and the earphone include waveform interaction and data interaction. The earphone box performs combined configuration on the baud rate and the ASCII code of the transmitted data according to waveform interaction and/or data interaction to be realized by the earphone box and the earphone.
When the earphone box and the earphone perform waveform interaction and data interaction, the specific data is sent to the earphone by combining and configuring the baud rate and the ASCII code of the sent data, and the waveform interaction or the data interaction between the earphone box and the earphone is realized through the specific data, so that the specific communication function is realized.
Step S120, the earphone box uses the transmission pin TX1 to transmit the configured transmission data to the earphone through the communication bus, and simultaneously uses the reception pin RX1 to receive data from the communication bus, and obtains earphone data of the earphone according to the received data, thereby completing the communication function between the earphone box and the earphone.
The earphone box and the earphone are respectively connected with a communication bus by adopting a Universal Asynchronous Receiver Transmitter (UART), and the UART can change the bus level by the TX and can read the bus level by the RX. Furthermore, UARTs belong to hardware devices, which are more precise than software in terms of time control.
In this embodiment, the earphone box uses the transmission pin TX1 to transmit data, so as to realize accurate control of bus level and waveform timing, and uses the reception pin RX1 to receive data, so as to realize communication with the earphone. Compared with the prior art, the timing can be controlled more accurately by using the transmission pin TX1 to transmit data. And when the data is transmitted by using the transmitting pin TX1 and simultaneously the data is received from the communication bus by using the receiving pin RX1, not only the communication function between the earphone box and the earphone is realized, but also the communication time can be shortened, and the system consumption is reduced.
In an embodiment of the present application, when the earphone box and the earphone implement waveform interaction, the earphone further includes a dedicated chip connected in series to the communication bus.
The earphone box takes the time sequence diagram of each command in a special chip manual in the earphone as a target waveform, and the baud rate and the ASCII code of the transmitted data are combined and configured to obtain the waveform corresponding to the time sequence diagram of each command.
The earphone box utilizes the transmission pin TX1 to transmit the configured waveform to the earphone through a communication bus, the earphone utilizes the special chip to receive the waveform transmitted by the earphone box from the communication bus, the earphone waveform is determined according to the waveform transmitted by the earphone box, and the special chip is utilized to transmit the earphone waveform to the earphone box through the communication bus.
The earphone box transmits the waveform through the transmission pin TX1 and receives the waveform from the communication bus through the receiving pin RX1, and earphone data transmitted by the earphone is obtained according to the received waveform, so that waveform interaction between the earphone box and the earphone to be achieved is completed.
For example, when the earphone box needs to realize an initialization command for the earphone, according to a timing chart of the initialization command in a special chip manual in the earphone, the initialization command is known to be composed of a reset signal and a presence signal, the reset signal is sent by the earphone box, and the earphone box is required to pull down the level and keep the level for a first preset time and then pull up the level; the presence signal is sent by the earphone, the level of the earphone is required to be pulled down after the earphone is pulled up for a first preset time, and the level of the earphone box is required to be read after the earphone box is pulled up for a second preset time to acquire whether the earphone is present.
The earphone box takes the time sequence chart of the initialization command as a target waveform, configures the baud rate of the transmitted data to be 115200 and the ASCII code to be 0xE0, and obtains a waveform corresponding to the time sequence chart of the initialization command.
The earphone box transmits the configured waveform to the earphone through a communication bus by using a transmitting pin TX1, receives data from the communication bus by using a receiving pin RX1, and if the received data is 0xE0, the earphone does not transmit a signal, so that the condition that the earphone is not in the earphone box is obtained; if the received data is not 0xE0, the earphone sends a presence signal, and the earphone is acquired to be in the earphone box; wherein the presence signal is a low level signal.
The above embodiment is described by taking an example of determining whether or not the headphone is in the headphone case. The judgment of whether the earphone is in the earphone box can be realized through the initialization command, the initialization command is known to be composed of a reset signal and a presence signal according to a time sequence chart of the initialization command in a special chip manual in the earphone, and the reset signal is sent by the earphone box.
FIG. 2 is a waveform diagram illustrating a timing diagram of an initialization command according to an embodiment of the present application. As shown in fig. 2, the timing chart requires that the earphone box sends out a reset signal and pulls down the level for 48us to 80us, i.e. the low level time is 48us to 80us, and pulls up the level after the low level time. The earphone sends out a presence signal, and the earphone box is required to read the level after the high level time of 6-10 us after the level is pulled up.
The earphone box configures the UART of the earphone box to 115200 baud rate, 8-bit data bit, 1-bit start bit, 1-bit stop bit, and no parity bit according to the timing diagram shown in fig. 2. According to the baud rate of the UART and the time requirement of the timing diagram, and in order to reserve more reply time for the headset, the ASCII encoding of the configuration reset signal is 0xE0.
The earphone box uses a sending pin TX1 to send a reset signal to the earphone through a communication bus, wherein binary data of the reset signal on the bus sequentially comprise a start bit of 0, an 8-bit data bit of 0000 0111 and a stop bit of 1. When data 0 is transmitted, the level of the communication bus is pulled down, and when data 1 is transmitted, the level of the communication bus is pulled up. And the unit time of 115200 baud rate of UART configuration is 1s/115200=8.68us, so it can be determined that the low level time of the communication bus is 6 × 8.68=52us, which is within 48us to 80us required by the timing chart. After 52us, the earphone box sends data 1 by using the sending pin TX1 again, and the level of the communication bus is pulled up again, which meets the time requirement for the reset signal in the timing diagram.
After receiving a reset signal sent by the earphone box, the special chip of the earphone automatically sends a presence signal on the bus, wherein the presence signal is a low-level signal. On the communication bus, a reset signal sent by the earphone box is superposed with a presence signal sent by the earphone, and the presence signal pulls down the level of the communication bus due to the line-to-line relationship among the nodes on the communication bus.
Fig. 3 is a schematic diagram illustrating waveforms received by a UART Rx1 of an earphone box when the earphone is not in the earphone box according to an embodiment of the present application; fig. 4 is a schematic diagram illustrating waveforms received by a headphone at a headphone box and a UART Rx1 of the headphone box according to an embodiment of the present application. The first exclamation point is the reset signal transmitted by UART Tx1 of the headset box and the second exclamation point is the presence signal transmitted by UART Tx2 of the headset. As shown in fig. 4, the presence signal sent by the headset pulls the level on the communication bus low.
The transmitting pin TX1 and the receiving pin RX1 of the earphone box are in short circuit, and the receiving pin RX1 reads data on a communication bus while the transmitting pin TX1 transmits data. If only the reset signal sent by the earphone box is on the communication bus, the data on the communication bus received by the receiving pin RX1 of the earphone box is the same as the reset signal sent by the earphone box. If the presence signal sent by the earphone is superimposed with the data sent by the earphone box on the communication bus, the data on the communication bus received by the receiving pin RX1 of the earphone box is different from the reset signal sent by the earphone box.
Therefore, the earphone box sends the configured reset signal to the earphone through the communication bus by using the sending pin TX1, and simultaneously receives data from the communication bus by using the receiving pin RX1, if the received data is 0xE0, the earphone does not send a presence signal, and the earphone is acquired to be not in the earphone box; if the received data is not 0xE0, the earphone sends a presence signal, and the earphone is acquired to be in the earphone box.
It should be noted that, the present embodiment is only exemplified by a waveform for determining whether the earphone is in the earphone box. By the method of the embodiment, the earphone box can freely combine the baud rate and the transmission data, so that various waveforms are output to the earphone end, and various different functions such as earphone resetting, communication switching, charging switching and the like are realized.
In summary, according to the technical scheme of this embodiment, the transmission pin TX1 and the reception pin RX1 of the earphone box are shorted together, and the reception pin RX1 reads data on the communication bus while the transmission pin TX1 transmits data, so that a one-byte transmission time is used, a reset signal is transmitted, a presence signal is received, a communication time is shortened, and system consumption is reduced. In addition, by configuring the baud rate and ASCII encoding of the data transmitted from the earphone box, various functions can be implemented, and the timing can be controlled more precisely.
In an embodiment of the present application, when the earphone box and the earphone implement data interaction, the interrupt pin EXIT of the earphone is also connected to the other end of the communication bus. The earphone box carries out combined configuration on the baud rate and the ASCII code according to a data interaction mode to be realized, and then sending data is obtained. The earphone box transmits the configured transmission data to the earphone through the communication bus by using the transmission pin TX 1.
The earphone receives the sending data sent by the earphone box from the communication bus by using the receiving pin RX2, monitors the communication bus in real time by using the interruption pin EXIT, detects the sending data of the earphone box by using the interruption pin EXIT once the sending data of the earphone box is monitored, and sends the earphone data to the earphone box through the communication bus by using the sending pin TX2 when the earphone box is detected to acquire the data from the earphone.
The earphone box transmits data through the transmission pin TX1, receives data from the communication bus through the reception pin RX1, and acquires earphone data transmitted by the earphone according to the received data, so that data interaction between the earphone box and the earphone is achieved.
For example, when the earphone box is to acquire the electric quantity of the earphone charged in the earphone box, the earphone box configures the baud rate to 115200 and the ASCII code to 0x1FF, and obtains the specified transmission data;
the earphone box transmits the configured transmission data to the earphone through a communication bus by using a transmission pin TX 1;
the earphone receives the sending data sent by the earphone box from the communication bus by using a receiving pin RX2, monitors the communication bus in real time by using an interruption pin EXIT, detects the sending data of the earphone box by using the interruption pin EXIT once the sending data of the earphone box is monitored, and sends the earphone electric quantity to the earphone box by using the sending pin TX2 when the earphone box is detected to acquire the earphone electric quantity from the earphone;
the earphone box transmits data through the transmission pin TX1 and receives data from the communication bus through the receiving pin RX1 at the same time, and earphone electric quantity transmitted by the earphone is obtained according to the received data, so that electric quantity obtaining of the earphone by the earphone box is completed.
Wherein, the earphone utilizes interrupt pin EXIT to detect earphone box's sending data, includes:
once the earphone detects the falling edge of the serial port start bit by using the interrupt pin EXIT, the detection of the value of the first data bit of the transmission data of the earphone box is started, wherein the value is 0 to indicate that the earphone box normally transmits the data to the earphone, and the value is 1 to indicate that the earphone box wants to acquire the electric quantity of the earphone from the earphone.
The earphone box receives data from the communication bus by using the receiving pin RX1 while transmitting data by using the transmitting pin TX1, and acquires earphone electric quantity transmitted by the earphone according to the received data, including:
the earphone box receives data from the communication bus, the received data is shifted to the right by two bits, the first data bit of the data sent by the earphone box and the start bit sent by the earphone are removed, earphone data sent by the earphone are obtained, and then the electric quantity of the earphone is obtained according to the earphone data sent by the earphone.
The above embodiments are described by taking the acquisition of the power of the earphone as an example.
If the special chip on the earphone supports the earphone box to directly obtain the earphone electric quantity from the special chip, the waveform interaction method as described in the above embodiment can be adopted to obtain the earphone electric quantity. If the dedicated chip does not support the earphone box to directly obtain the electric quantity of the earphone from the dedicated chip, the data interaction method described in this embodiment needs to be adopted to obtain the electric quantity of the earphone.
With the earphone placed in the earphone box and the cover of the earphone box closed, both the earphone box and the earphone enter a charging mode. In the charging mode, the earphone box wants to acquire the electric quantity of the earphone. According to the requirement of the earphone box, more data transmission time is set for the earphone as far as possible, the UART is configured to be 115200 baud rate, 1-bit start bit, 1-bit stop bit, no parity bit and 9-bit data bit, the transmission data is determined to be 0x1FF by combining the communication requirement and an ASCII code table, and the earphone box transmits the configured transmission data to the earphone through a communication bus by using a transmission pin TX 1. The data on the communication bus for transmitting data 0x1FF is a start bit (0), a data bit (1111 1111 1), and a stop bit (1), i.e., 0 1111 11, in this order. Fig. 5 is a waveform diagram illustrating a headset box transmitting 0x1FF data according to an embodiment of the present application, where a waveform of the data transmitted by the headset box on a bus is as shown in fig. 5.
The earphone receives the transmission data transmitted by the earphone box from the communication bus by using a receiving pin RX2, and monitors the communication bus in real time by using an interruption pin EXIT. The earphone detects a falling edge of a start bit of data sent by the earphone box by using the interrupt pin EXIT, as shown in fig. 5, a position where a downward arrow is located is the falling edge of the start bit. The bus level is then detected 1s/115200 × 1.5=13us after the falling edge, where 1 times represents one bit and 1.5 times is multiplied to detect the value of bit 0. According to the advanced setting, if the value of bit0 is detected to be 0, the data which is normally sent to the earphone by the earphone box is represented, and the earphone can normally receive the data; a bit0 value of 1 indicates that the earphone box wants to retrieve data from the earphone. Under different application scenes, a user can set the specific meaning represented by the value of bit0 according to the actual situation.
In this embodiment, it is determined that the earphone box wants to acquire electric quantity from the earphone when it is detected that the value of bit0 is 1. The earphone is configured with UART with 115200 baud rate, 7-bit data bit, 1-bit start bit, 1-bit stop bit and no parity bit, the electric quantity data sent by the earphone is determined to be 0x12 according to the electric quantity of the earphone and an ASCII code table, and the earphone sends the data 0x12 to the earphone box through a communication bus by using a sending pin TX 2. The data of the electric quantity data 0x12 on the communication bus are a start bit (0), a data bit (0100100), and a stop bit (1), that is, 0 0100100100 1. Fig. 6 is a waveform diagram illustrating a headset transmitting 0x12 power data according to an embodiment of the present application, where the waveform of the power data transmitted by the headset on a bus is as shown in fig. 6.
Fig. 7 is a schematic diagram illustrating a waveform superposition of data of 0x1FF transmitted by the earphone box and data of 0x12 electric quantity transmitted by the earphone according to an embodiment of the present application. As shown in fig. 7, the headset box receives data from the communication bus using the reception pin RX1 while transmitting data 0x1FF using the transmission pin TX 1. The data on the communication bus is the superposition of the transmission data 0x1FF of the earphone box and the power data 0x12 transmitted by the earphone, so that the data received by the earphone box from the communication bus is 01001 0010 1, i.e. the read data is 0x049. And (3) shifting the read data by two bits to the right, removing the first data bit of the data transmitted by the earphone box and the start bit of the electric quantity data transmitted by the earphone, so as to obtain the electric quantity data 0x12 transmitted by the earphone, wherein according to an ASCII code table corresponding to the electric quantity data transmitted by the earphone, if the 0x12 represents 18, the earphone is indicated to have 18% electric quantity, namely the electric quantity of the earphone is obtained.
According to the method, the earphone box can perform data interaction with the earphone without polling the earphone, and can receive the electric quantity data sent by the earphone while sending the data, so that the communication time is shortened, the system resources are saved, and the time for fully charging the earphone is shortened.
Fig. 8 is a schematic structural diagram of a communication system of an earphone box and an earphone according to an embodiment of the present application. As shown in fig. 8, the communication system 800 includes an earphone box 810 and earphones 820.
The earphone box 810 and the earphone 820 are respectively connected to a communication bus by a Universal Asynchronous Receiver Transmitter (UART). The transmitting pin TX1 and the receiving pin RX1 of the earphone box 810 are short-circuited and connected to one end of the communication bus, and the transmitting pin TX2 and the receiving pin RX2 of the earphone 820 are short-circuited and connected to the other end of the communication bus. The communication bus is externally connected with a pull-up resistor, and the transmission pin TX1 of the earphone box 810 and the transmission pin TX2 of the earphone 820 are both configured as open-drain outputs.
The earphone box 810 is configured to configure transmission data according to a communication function to be implemented by the earphone box 810 and the earphone 820, transmit the configured transmission data to the earphone 820 through a communication bus by using the transmission pin TX1, receive data from the communication bus by using the reception pin RX1, and acquire earphone data of the earphone 820 according to the received data, thereby completing the communication function to be implemented by the earphone box 810 and the earphone 820.
In an embodiment of the present application, in the communication system 800, when the communication function implemented by the earphone box 810 and the earphone 820 is waveform interaction, the earphone 820 further includes a special chip connected in series to the communication bus. As shown in fig. 8, the earphone 820 includes an earphone main chip 821 and a dedicated chip 822 both connected in series to the communication bus, and the dedicated chip 822 is connected to the communication bus via an IO1 port and is communicatively connected to the earphone main chip 821 via an IO2 port.
The earphone box 810 is specifically configured to combine and configure the baud rate and the ASCII code of the transmitted data with the timing chart of each command in the dedicated chip manual in the earphone 820 as a target waveform to obtain a waveform corresponding to the timing chart of each command; the configured waveform is transmitted to the headset 820 through a communication bus using the transmission pin TX 1.
The earphone 820 is specifically configured to receive a waveform sent by the earphone box from the communication bus by using the dedicated chip 822, determine an earphone waveform according to the waveform sent by the earphone box, and send the earphone waveform to the earphone box 810 through the communication bus by using the dedicated chip 822.
The earphone box 810 is further specifically configured to receive a waveform from the communication bus through the receiving pin RX1 while transmitting the waveform through the transmitting pin TX1, and acquire earphone data transmitted by the earphone according to the received waveform, so as to complete waveform interaction between the earphone box 810 and the earphone 820.
In an embodiment of the present application, in the communication system 800, when the earphone box 810 wants to implement an initialization command for the earphone 820, according to a timing chart of the initialization command in a dedicated chip manual in the earphone 820, it is known that the initialization command is composed of a reset signal and a presence signal, and the reset signal is sent by the earphone box, and it is required that the earphone box pulls down a level and keeps the level for a first preset time and then pulls up the level; the presence signal is sent by the earphone, the earphone is required to pull down the level after the first preset time, and the earphone box is required to read the level after the second preset time after the earphone box is pulled up, so as to acquire whether the earphone is present.
The earphone box 810 is configured to configure the baud rate of the transmission data to 115200 and the ASCII code to 0xE0, using the timing chart of the initialization command as a target waveform, and obtain a waveform corresponding to the timing chart of the initialization command.
The earphone box 810 is used for transmitting the configured waveform to the communication bus to the earphone 820 by using a transmitting pin TX1, receiving data from the communication bus by using a receiving pin RX1, and if the received data is 0xE0, indicating that the earphone 820 does not transmit a presence signal, acquiring that the earphone 820 is not in the earphone box; if the received data is not 0xE0, the presence signal is sent by the earphone 820, and the earphone 820 is acquired to be in the earphone box 810; wherein the presence signal is a low level signal.
Fig. 9 is a schematic structural diagram illustrating a structural diagram of another earphone box and earphone communication system according to an embodiment of the present application. As shown in fig. 9, the communication system 900 includes an earphone box 910 and an earphone 920, and when the communication function implemented by the earphone box 910 and the earphone 920 is data interaction, an interrupt pin EXIT of the earphone 920 is connected to the other end of the communication bus together with TX2 and RX2 of the UART of the earphone.
The earphone box 910 is specifically configured to perform combined configuration on the baud rate and the ASCII code according to a data interaction mode to be implemented, so as to obtain transmission data; the configured transmission data is transmitted to the headset 920 through the communication bus using the transmission pin TX 1.
The earphone 920 is specifically configured to receive, by using the receiving pin RX2, transmission data sent by the earphone box 910 from the communication bus, monitor the communication bus in real time by using the interrupt pin EXIT, detect, by using the interrupt pin EXIT, the transmission data of the earphone box once the transmission data of the earphone box is monitored, and send, by using the transmitting pin TX2, the earphone data to the earphone box 910 through the communication bus when it is detected that the earphone box 910 wants to obtain data from an earphone.
The earphone box 910 is further specifically configured to receive data from the communication bus through the receiving pin RX1 while transmitting data through the transmitting pin TX1, and obtain earphone data of the earphone 920 according to the received data, so as to complete data interaction between the earphone box 910 and the earphone 920.
In one embodiment of the present application, when the earphone box 910 wants to obtain the power of the earphones 920 charged in the earphone box 910, the earphone box 910 configures the baud rate to be 115200 and the ASCII code to be 0x1FF, resulting in the specified transmission data.
The headset case 910 is specifically configured to transmit the configured transmission data to the headset 920 through the communication bus by using the transmission pin TX 1.
The earphone 920 is specifically configured to receive, by using the receiving pin RX2, transmission data sent by the earphone box 910 from a communication bus, and monitor the communication bus in real time by using the interrupt pin EXIT, once the transmission data of the earphone box 910 is monitored, detect, by using the interrupt pin EXIT, the transmission data of the earphone box 910, and when it is detected that the earphone box 910 wants to obtain earphone power from the earphone 920, send, by using the transmission pin TX2, the earphone 920 to the earphone box 910 through the communication bus.
The earphone box 910 is further specifically configured to receive data from the communication bus through the receiving pin RX1 while transmitting data through the transmitting pin TX1, and obtain the earphone power transmitted by the earphone 920 according to the received data, so as to complete power acquisition of the earphone 920 by the earphone box 910.
In an embodiment of the present application, the earphone 920 is specifically configured to, once the interruption pin EXIT detects a falling edge of the serial port start bit, start detecting a value of a first data bit of the transmission data of the earphone box 910, where a value of 0 indicates that the earphone box 910 normally transmits data to the earphone 920, and a value of 1 indicates that the earphone box 910 wants to obtain earphone power from the earphone 920.
The earphone box 910 is specifically configured to receive data from the communication bus, shift the received data by two bits to the right, remove a first data bit of the data sent by the earphone box 910 and a start bit sent by the earphone 920, obtain earphone data sent by the earphone 920, and further obtain the electric quantity of the earphone 920 according to the earphone data sent by the earphone 920.
It should be noted that, for the specific implementation of each apparatus embodiment, reference may be made to the specific implementation of the corresponding method embodiment, which is not described herein again.
To sum up, the technical scheme of this application adopts general asynchronous receiving and dispatching transmitter UART to connect communication bus through with earphone box and earphone respectively, the data transmission of earphone box is configured according to the communication function that earphone box and earphone will realize, the earphone box utilizes transmission pin TX1 to send the data transmission of configuration for the earphone through communication bus, utilize simultaneously to receive pin RX1 from communication bus on the data, and acquire the earphone data of earphone according to the data that receive, thereby accomplish the communication function that earphone box and earphone will realize. According to the method and the device, waveform interaction and data transmission between the earphone box and the earphone are realized by using the UART, the accuracy of waveform transmission is guaranteed, earphone data can be received while the earphone box sends data, timely response of the earphone is guaranteed, multiple polling of the earphone box on the earphone is avoided, system consumption is reduced, and the communication time of the earphone box and the earphone and the charging time of the earphone are shortened.
It should be noted that:
while the foregoing is directed to embodiments of the present application, other modifications and variations of the present application may be devised by those skilled in the art in light of the above teachings. It should be understood by those skilled in the art that the foregoing detailed description is for the purpose of better explaining the present application, and the scope of protection of the present application shall be subject to the scope of protection of the claims.

Claims (9)

1. A communication method of an earphone box and an earphone is characterized in that the earphone box and the earphone are respectively connected with a communication bus by adopting a Universal Asynchronous Receiver Transmitter (UART), a sending pin TX1 and a receiving pin RX1 of the earphone box are connected to one end of the communication bus after being in short circuit, a sending pin TX2 and a receiving pin RX2 of the earphone are connected to the other end of the communication bus after being in short circuit, the communication bus is externally connected with a pull-up resistor, and the sending pin TX1 of the earphone box and the sending pin TX2 of the earphone are both configured to be output in a leakage mode; the method comprises the following steps:
the earphone box is used for sending data according to the communication function configuration to be realized by the earphone box and the earphone;
the earphone box utilizes a sending pin TX1 to send configured sending data to the earphone through the communication bus, and simultaneously utilizes a receiving pin RX1 to receive data from the communication bus and obtain earphone data of the earphone according to the received data, so that the communication function of the earphone box and the earphone is completed;
the communication functions to be realized by the earphone box and the earphone comprise waveform interaction and data interaction, and when the earphone box and the earphone realize the waveform interaction, the earphone also comprises a special chip which is connected in series on the communication bus;
the earphone box takes the time sequence diagram of each command in the special chip manual in the earphone as a target waveform, and performs combined configuration on the baud rate and the ASCII code of the transmitted data to obtain the waveform corresponding to the time sequence diagram of each command, wherein,
when the earphone box needs to realize an initialization command on the earphone, according to a timing sequence of the initialization command in a special chip manual in the earphone, the fact that the initialization command consists of a reset signal and a presence signal is known, the reset signal is sent out by the earphone box, and the earphone box needs to pull down the level and keep the level for a first preset time and then pull up the level; the existing signal is sent by the earphone, the earphone is required to pull down the level after the first preset time, and the earphone box is required to read the level after the second preset time after the earphone box is pulled up, so as to acquire whether the earphone exists or not;
the earphone box takes the time sequence diagram of the initialization command as a target waveform, configures the baud rate of the transmitted data to be 115200, and configures the ASCII code to be 0xE0, and obtains a waveform corresponding to the time sequence diagram of the initialization command;
the earphone box sends the configured waveform to the earphone through the communication bus by using a sending pin TX1, and simultaneously receives data from the communication bus by using a receiving pin RX1, if the received data is 0xE0, the earphone does not send a signal, and the earphone is acquired to be not in the earphone box; if the received data is not 0xE0, the earphone sends a presence signal, and the earphone is acquired to be in the earphone box; wherein the presence signal is a low level signal.
2. The method of claim 1,
the data sending by the earphone box according to the communication function configuration to be realized by the earphone box and the earphone comprises:
the earphone box performs combined configuration on baud rate and ASCII codes of transmitted data according to waveform interaction and/or data interaction to be realized by the earphone box and the earphone.
3. The method of claim 2,
the earphone box transmits the configured waveform to the earphone through the communication bus by using a transmission pin TX 1;
the earphone utilizes the special chip to receive the waveform sent by the earphone box from the communication bus, determines the earphone waveform according to the waveform sent by the earphone box, and utilizes the special chip to send the earphone waveform to the earphone box through the communication bus;
the earphone box transmits a waveform through a transmitting pin TX1, receives the waveform from the communication bus through a receiving pin RX1, and acquires earphone data transmitted by the earphone according to the received waveform, so that waveform interaction between the earphone box and the earphone is achieved.
4. The method of claim 2, wherein when the headset box and the headset implement data interaction, an interrupt pin EXIT of the headset is also connected to the other end of the communication bus;
the earphone box carries out combined configuration on the baud rate and the ASCII code according to a data interaction mode to be realized to obtain transmitted data;
the earphone box transmits the configured transmission data to the earphone through the communication bus by using a transmission pin TX 1;
the earphone receives sending data sent by the earphone box from the communication bus by using a receiving pin RX2, monitors the communication bus in real time by using an interruption pin EXIT, detects the sending data of the earphone box by using the interruption pin EXIT once the sending data of the earphone box is monitored, and sends the earphone data to the earphone box through the communication bus by using a sending pin TX2 when the earphone box is detected to acquire data from the earphone;
the earphone box transmits data through a transmitting pin TX1, receives data from the communication bus through a receiving pin RX1, and obtains earphone data transmitted by the earphone according to the received data, so that data interaction between the earphone box and the earphone is achieved.
5. The method of claim 4, wherein when an earphone box needs to obtain the power of earphones charged in the earphone box, the earphone box configures the baud rate to be 115200 and the ASCII code to be 0x1FF, resulting in specified transmission data;
the earphone box transmits the configured transmission data to the earphone through the communication bus by using a transmission pin TX 1;
the earphone receives sending data sent by the earphone box from the communication bus by using a receiving pin RX2, monitors the communication bus in real time by using an interruption pin EXIT, detects the sending data of the earphone box by using the interruption pin EXIT once the sending data of the earphone box is monitored, and sends the earphone electric quantity to the earphone box through the communication bus by using a sending pin TX2 when the earphone box is detected to acquire the earphone electric quantity from the earphone;
the earphone box transmits data through a transmission pin TX1 and receives data from the communication bus through a receiving pin RX1 at the same time, and earphone electric quantity transmitted by the earphone is obtained according to the received data, so that electric quantity obtaining of the earphone by the earphone box is completed.
6. The method of claim 5, wherein the headset detects the transmission data of the headset case using an interrupt pin EXIT, comprising:
once the earphone detects the falling edge of the serial port starting bit by using an interruption pin EXIT, starting to detect the value of a first data bit of the data sent by the earphone box, wherein the value is 0, which indicates that the earphone box normally sends the data to the earphone, and the value is 1, which indicates that the earphone box wants to acquire the electric quantity of the earphone from the earphone;
the earphone box receives data from the communication bus by using a receiving pin RX1 while transmitting data by using a transmitting pin TX1, and acquires earphone electric quantity transmitted by the earphone according to the received data, and the earphone box comprises:
the earphone box receives data from the communication bus, two bits of the received data are shifted to the right, a first data bit of the earphone box for sending the data and a start bit of the earphone sending the data are removed, earphone data sent by the earphone are obtained, and then electric quantity of the earphone is obtained according to the earphone data sent by the earphone.
7. A communication system of an earphone box and an earphone is characterized by comprising the earphone box and the earphone, wherein the earphone box and the earphone are respectively connected with a communication bus by adopting a Universal Asynchronous Receiver Transmitter (UART), a sending pin TX1 and a receiving pin RX1 of the earphone box are connected to one end of the communication bus after being in short circuit, a sending pin TX2 and a receiving pin RX2 of the earphone are connected to the other end of the communication bus after being in short circuit, the communication bus is externally connected with a pull-up resistor, and the sending pin TX1 of the earphone box and the sending pin TX2 of the earphone are both configured to be output in a leakage mode; wherein,
the earphone box is used for configuring and sending data according to a communication function to be realized by the earphone box and the earphone, sending the configured and sent data to the earphone through the communication bus by using a sending pin TX1, receiving data from the communication bus by using a receiving pin RX1, and acquiring earphone data of the earphone according to the received data so as to finish the communication function to be realized by the earphone box and the earphone; the communication functions to be realized by the earphone box and the earphone comprise waveform interaction and data interaction, and when the earphone box and the earphone realize the waveform interaction, the earphone also comprises a special chip which is connected in series on the communication bus;
the earphone box takes the time sequence diagram of each command in the special chip manual in the earphone as a target waveform, and performs combined configuration on the baud rate and the ASCII code of the transmitted data to obtain the waveform corresponding to the time sequence diagram of each command, wherein,
when the earphone box needs to realize an initialization command on the earphone, according to a time sequence diagram of the initialization command in a special chip manual in the earphone, the fact that the initialization command consists of a reset signal and a presence signal is known, the reset signal is sent out by the earphone box, and the earphone box is required to pull down the level and keep the level for a first preset time and then pull up the level; the existing signal is sent by the earphone, the earphone is required to pull down the level after the first preset time, and the earphone box is required to read the level after the second preset time after the earphone box is pulled up, so as to acquire whether the earphone exists or not;
the earphone box takes the time sequence diagram of the initialization command as a target waveform, configures the baud rate of the transmitted data to be 115200, and configures the ASCII code to be 0xE0, and obtains a waveform corresponding to the time sequence diagram of the initialization command;
the earphone box sends the configured waveform to the earphone through the communication bus by using a sending pin TX1, and simultaneously receives data from the communication bus by using a receiving pin RX1, if the received data is 0xE0, the earphone does not send a signal, and the earphone is acquired to be not in the earphone box; if the received data is not 0xE0, the earphone sends a presence signal, and the earphone is acquired to be in the earphone box; wherein the presence signal is a low level signal.
8. The system of claim 7,
the earphone box transmits the configured waveform to the earphone through the communication bus by using a transmission pin TX 1;
the earphone is specifically configured to receive a waveform sent by the earphone box from the communication bus by using the dedicated chip, determine an earphone waveform according to the waveform sent by the earphone box, and send the earphone waveform to the earphone box through the communication bus by using the dedicated chip;
the earphone box is further specifically configured to transmit a waveform through a transmission pin TX1, receive the waveform from the communication bus through a reception pin RX1, and acquire earphone data transmitted by the earphone according to the received waveform, so as to complete waveform interaction between the earphone box and the earphone.
9. The system of claim 7, wherein when the communication function implemented by the earphone box and the earphone is data interaction, the interrupt pin EXIT of the earphone is also connected to the other end of the communication bus;
the earphone box is specifically used for carrying out combined configuration on the baud rate and the ASCII code according to a data interaction mode to be realized to obtain transmitted data; transmitting the configured transmission data to the earphone through the communication bus by using a transmission pin TX 1;
the earphone is specifically configured to receive, by using a receiving pin RX2, transmission data sent by the earphone box from the communication bus, monitor the communication bus in real time by using an interrupt pin EXIT, detect, by using the interrupt pin EXIT, the transmission data of the earphone box once the transmission data of the earphone box is monitored, and send, by using the transmitting pin TX2, the earphone data to the earphone box through the communication bus when it is detected that the earphone box wants to acquire data from the earphone;
the earphone box is further specifically configured to receive data from the communication bus through a receiving pin RX1 while transmitting data through a transmitting pin TX1, and obtain earphone data of the earphone according to the received data, thereby completing data interaction to be implemented between the earphone box and the earphone.
CN202110262519.7A 2021-03-10 2021-03-10 Earphone box and earphone communication method and system Active CN113127401B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110262519.7A CN113127401B (en) 2021-03-10 2021-03-10 Earphone box and earphone communication method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110262519.7A CN113127401B (en) 2021-03-10 2021-03-10 Earphone box and earphone communication method and system

Publications (2)

Publication Number Publication Date
CN113127401A CN113127401A (en) 2021-07-16
CN113127401B true CN113127401B (en) 2023-03-28

Family

ID=76773016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110262519.7A Active CN113127401B (en) 2021-03-10 2021-03-10 Earphone box and earphone communication method and system

Country Status (1)

Country Link
CN (1) CN113127401B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6650622B1 (en) * 1998-04-10 2003-11-18 Chrimar Systems, Inc. System for communicating with electronic equipment
CN104750588A (en) * 2015-03-04 2015-07-01 广东好帮手电子科技股份有限公司 Serial port communication based pressure testing method
CN107291647A (en) * 2017-05-19 2017-10-24 中国科学院长春光学精密机械与物理研究所 The method that DSP reads receiving channel data in extended serial port
CN107809697A (en) * 2017-11-30 2018-03-16 成都必盛科技有限公司 It is a kind of to be used to establish the Earphone box interacted with wireless headset
CN109950957A (en) * 2019-05-07 2019-06-28 广州由我科技股份有限公司 A kind of charging cabin, bluetooth headset and charging bluetooth earphone system
CN209072692U (en) * 2018-12-14 2019-07-05 歌尔科技有限公司 Earphone telecommunication circuit and true wireless headset
CN110225427A (en) * 2019-05-11 2019-09-10 出门问问信息科技有限公司 Earphone charging box and its data transmission method, earphone
CN110611856A (en) * 2019-08-16 2019-12-24 歌尔股份有限公司 Communication control method, device and system, charging box and wireless earphone
CN111159073A (en) * 2019-12-20 2020-05-15 上海爱信诺航芯电子科技有限公司 UART side processing method and communication device for bus communication
CN111490806A (en) * 2020-04-20 2020-08-04 歌尔科技有限公司 Communication method, earphone and earphone communication system
CN111629368A (en) * 2020-05-19 2020-09-04 歌尔科技有限公司 Communication method of earphone and charging box, earphone and readable storage medium
CN111757206A (en) * 2020-07-06 2020-10-09 歌尔科技有限公司 Communication method between charging box and earphone, charging box, earphone and storage medium
CN212344010U (en) * 2020-05-09 2021-01-12 Tcl通力电子(惠州)有限公司 Portable electronic device
US10939193B1 (en) * 2020-03-02 2021-03-02 Ifory Limited In-ear detection method for a wireless earphone and a wireless earphone

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6650622B1 (en) * 1998-04-10 2003-11-18 Chrimar Systems, Inc. System for communicating with electronic equipment
CN104750588A (en) * 2015-03-04 2015-07-01 广东好帮手电子科技股份有限公司 Serial port communication based pressure testing method
CN107291647A (en) * 2017-05-19 2017-10-24 中国科学院长春光学精密机械与物理研究所 The method that DSP reads receiving channel data in extended serial port
CN107809697A (en) * 2017-11-30 2018-03-16 成都必盛科技有限公司 It is a kind of to be used to establish the Earphone box interacted with wireless headset
CN209072692U (en) * 2018-12-14 2019-07-05 歌尔科技有限公司 Earphone telecommunication circuit and true wireless headset
CN109950957A (en) * 2019-05-07 2019-06-28 广州由我科技股份有限公司 A kind of charging cabin, bluetooth headset and charging bluetooth earphone system
CN110225427A (en) * 2019-05-11 2019-09-10 出门问问信息科技有限公司 Earphone charging box and its data transmission method, earphone
CN110611856A (en) * 2019-08-16 2019-12-24 歌尔股份有限公司 Communication control method, device and system, charging box and wireless earphone
CN111159073A (en) * 2019-12-20 2020-05-15 上海爱信诺航芯电子科技有限公司 UART side processing method and communication device for bus communication
US10939193B1 (en) * 2020-03-02 2021-03-02 Ifory Limited In-ear detection method for a wireless earphone and a wireless earphone
CN111490806A (en) * 2020-04-20 2020-08-04 歌尔科技有限公司 Communication method, earphone and earphone communication system
CN212344010U (en) * 2020-05-09 2021-01-12 Tcl通力电子(惠州)有限公司 Portable electronic device
CN111629368A (en) * 2020-05-19 2020-09-04 歌尔科技有限公司 Communication method of earphone and charging box, earphone and readable storage medium
CN111757206A (en) * 2020-07-06 2020-10-09 歌尔科技有限公司 Communication method between charging box and earphone, charging box, earphone and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
利用DPS的McBSP实现与PC机通信;苏世栋;《运城学院学报》;20031230(第05期);全文 *
基于手机耳机口的便携式血氧含量检测仪;李俊等;《江苏科技大学学报(自然科学版)》;20131015(第05期);全文 *

Also Published As

Publication number Publication date
CN113127401A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN110417930B (en) Automatic allocation method for serial device communication address
EP1950668B1 (en) Controlling the timing of a state transition of a serial data line in an I2C Controller
US10389153B2 (en) Charging control method and mobile terminal
CN210327637U (en) Protocol conversion device for air conditioner and communication system
CN109714235B (en) Non-polar RS485 communication interface and method for realizing non-polar RS485 communication
CN109582616B (en) Communication system and method based on serial bus
CN101977082B (en) Optical receiving and transmitting module, optical transmitting device and optical transmitting method
JP6422332B2 (en) Electronic device, accessory device, control method thereof, and control program
CN101854258B (en) Implementation method and device for eliminating communication chip failures
CN111159073B (en) UART side processing method of bus communication and communication device
CN113127401B (en) Earphone box and earphone communication method and system
GB2565679B (en) Methods and systems of exchanging data between an electronic device and an external accessory
WO2017196492A1 (en) Two-wire line-multiplexed uart to four-wire high-speed uart bridging with integrated flow control
CN108924325B (en) Data processing method and related device
CN106971525B (en) Bluetooth signal conversion device and Bluetooth signal conversion method
JP2004531146A (en) Communication apparatus and method supporting carrier sensing multiple access / collision detection (CSMA / CD)
CN116467243A (en) Communication method, device and system based on I2C protocol
CN113746217B (en) Wireless equipment matching communication method and system based on trend judgment and electronic equipment
KR20100111946A (en) The data-transmittable non-polarity rs-485 communication device of bms controller by automatic polarity discrimination
CN112838972B (en) Enabling control method, device and equipment based on RS-485 transceiver and storage medium
JP2958601B2 (en) Data communication method
JPH1198198A (en) Device for automatically discriminating presence of serial communication
US11630795B2 (en) RS-485 circuit and communication system
JP2023006421A (en) Serial communication device and communication system
US20150212874A1 (en) Electronic control unit

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
GR01 Patent grant
GR01 Patent grant