Communication method, charging box, wireless headset, communication system

By dynamically adjusting the carrier reference voltage in the carrier communication between the wireless headphones and the charging box, the problem of fluctuations in charging parameters on a single bus during carrier communication affecting communication stability, and the reliability of communication is improved.

CN114125629BActive Publication Date: 2024-11-05GEER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111372951.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-18
Publication Date
2024-11-05
Estimated Expiration
2041-11-18

AI Technical Summary

Technical Problem

When wireless headphones communicate with the charging box on the carrier, fluctuations in charging parameters on the single bus lead to poor communication stability, which is prone to communication failure.

Method used

When the communication mode of the charging box is in carrier communication, the initial carrier reference voltage is obtained and adjusted to a predetermined value when it is greater than the predetermined value, the single bus carrier reference voltage is dynamically adjusted to ensure communication stability.

Benefits of technology

It improves the stability of single bus communication between the wireless headphones and the charging box, avoids interference caused by excessive carrier reference voltage, and enhances the reliability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114125629B_ABST
    Figure CN114125629B_ABST
Patent Text Reader

Abstract

The present invention discloses a communication method, a charging box, a wireless headset and a communication system. The communication method includes: when the communication mode of the charging box is in a carrier communication mode, obtaining an initial carrier reference voltage of the charging box; when the initial carrier reference voltage is greater than a predetermined carrier reference voltage, adjusting the carrier reference voltage of the charging box from the initial carrier reference voltage to a predetermined carrier reference voltage; transmitting data to be transmitted to the wireless headset through a single bus and / or receiving data to be transmitted transmitted by the wireless headset.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a communication method, a charging box, a wireless headset, and a communication system. Background Art

[0002] With the development of wireless communication technology, the trend of intelligence and wirelessness has been deeply reflected in wireless headset products such as Bluetooth headsets. Wireless headset products are usually equipped with a charging box with storage and charging functions. The charging box has functions such as charging the headset and sending pairing commands.

[0003] In order to reduce the use of earphone contact points, when the charging box charges the wireless earphone, the wireless earphone and the charging box can use carrier communication to achieve data transmission. Due to the carrier mode communication, the data to be transmitted is encoded and loaded onto the carrier reference voltage. The data is transmitted from the charging box to the earphone or from the earphone to the charging box through a single bus. However, carrier communication is greatly affected by the fluctuation of charging parameters when the earphone is charged on the single bus, which can easily lead to communication failure. Summary of the invention

[0004] The main purpose of the present invention is to propose a communication method, a charging box, a wireless headset, and a communication system, aiming to improve the single bus communication stability between the wireless headset and the charging box.

[0005] To achieve the above object, the present invention provides a communication method, the communication method comprising:

[0006] When the communication mode of the charging box is in the carrier communication mode, obtaining an initial carrier reference voltage of the charging box;

[0007] When the initial carrier reference voltage is greater than the predetermined carrier reference voltage, adjusting the carrier reference voltage of the charging box from the initial carrier reference voltage to the predetermined carrier reference voltage;

[0008] The data to be transmitted is transmitted to the wireless headset through the single bus and / or the data to be transmitted transmitted by the wireless headset is received.

[0009] Optionally, when the communication mode of the charging box is in the carrier communication mode, after the step of obtaining the initial carrier reference voltage of the charging box, the communication method further includes:

[0010] When the current state of the charging box is in the power supply state, an output current adjustment instruction is sent to the wireless headset to control the wireless headset to adjust the charging current to a predetermined current, and transmit the data to be transmitted to the charging box through a single bus and / or receive the data to be transmitted transmitted by the charging box.

[0011] Optionally, when the communication mode of the charging box is in the carrier communication mode, after the step of obtaining the initial carrier reference voltage of the charging box, the communication method further includes:

[0012] When the carrier reference voltage of the charging box is less than or equal to the predetermined carrier reference voltage, the initial carrier reference voltage of the charging box is used as the carrier reference voltage of the charging box.

[0013] Optionally, before the step of determining the current state of the charging box when the communication mode between the charging box and the wireless headset is in the carrier communication mode, the communication method further includes:

[0014] Obtain communication requirements;

[0015] When it is determined that the communication requirement includes carrier communication, the communication mode of the charging box is set to a carrier communication mode.

[0016] Optionally, after the step of obtaining the communication requirement, the communication method further includes:

[0017] When it is determined that the communication mode includes carrier communication and serial communication, the communication mode of the charging box is set to the serial communication mode, and the data to be transmitted is transmitted to the wireless headset through the single bus and / or the data to be transmitted transmitted by the wireless headset is received;

[0018] Set the communication mode of the charging box to carrier communication mode.

[0019] The present invention also proposes a charging box, which includes a processor, a memory, and a communication program stored in the memory and executable on the processor, wherein the communication program implements the steps of the communication method described above when executed by the processor.

[0020] The present invention also provides a communication method, the communication method comprising:

[0021] When the communication mode of the wireless headset is in the carrier communication mode, obtaining the charging current of the wireless headset;

[0022] When the charging current is greater than a predetermined current, adjusting the charging current of the wireless headset to the predetermined current;

[0023] The data to be transmitted is transmitted to the charging box via a single bus, and / or the data to be transmitted transmitted by the charging box is received.

[0024] Optionally, the communication method further includes:

[0025] Obtain the communication requirements of wireless headsets;

[0026] When it is determined that the communication requirements of the wireless headset include carrier communication and serial communication, the communication mode of the wireless headset is set to the serial communication mode, and the data to be transmitted is transmitted to the charging box through a single bus and / or the data to be transmitted transmitted by the charging box is received; and,

[0027] Set the communication mode of the wireless headset to carrier communication mode.

[0028] Optionally, after the step of adjusting the charging current of the wireless headset to a predetermined current when the current state of the wireless headset is in a charging state, the communication method further includes:

[0029] When the data to be transmitted is received, the timing starts;

[0030] When the timing reaches the first preset time length and no data to be transmitted is received again, the charging current is adjusted to the current charging current.

[0031] The present invention also provides a wireless headset, comprising a processor, a memory, and a communication program stored in the memory and executable on the processor, wherein the communication program implements the steps of the communication method described above when executed by the processor.

[0032] The present invention also provides a communication system, comprising:

[0033] Charging case as above and wireless earphones as above.

[0034] The present invention obtains the initial carrier reference voltage of the charging box when the communication mode of the charging box is in the carrier communication mode, and when the initial carrier reference voltage is greater than the predetermined carrier reference voltage, adjusts the carrier reference voltage of the charging box from the initial carrier reference voltage to the predetermined carrier reference voltage, and receives and / or sends the data to be transmitted. A method for dynamically adjusting the single bus carrier reference voltage is proposed, which can solve the problem of excessive carrier reference voltage causing interference to the single bus communication when switching from the serial communication state to the carrier communication, and is conducive to improving the stability of the single bus communication between the wireless headset and the charging box. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0036] Figure 1 This is a flow chart of an embodiment of the communication method of the present invention applied to a charging box;

[0037] Figure 2 It is a flowchart of another embodiment of the communication method of the present invention applied to a charging box;

[0038] Figure 3 This is a flow chart of another embodiment of the communication method of the present invention applied to a charging box;

[0039] Figure 4 This is a flow chart of another embodiment of the communication method of the present invention applied to a charging box;

[0040] Figure 5 This is a flow chart of another embodiment of the communication method of the present invention applied to a charging box;

[0041] Figure 6 A schematic diagram of a flow chart of an embodiment of the communication method of the present invention applied to a wireless headset;

[0042] Figure 7 A schematic diagram of a flow chart of another embodiment of the communication method of the present invention applied to a wireless headset;

[0043] Figure 8 It is a flow chart of another embodiment of the communication method of the present invention applied to a wireless headset;

[0044] Fig. 9 FIG. 1 is a schematic diagram of a circuit structure of an embodiment of a communication system of the present invention.

[0045] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0048] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0049] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0050] The present invention provides a communication method.

[0051] Nowadays, TWS earphones are becoming more and more popular. TWS earphones consist of a charging box and earphones. In order to ensure the integrity of the appearance of the earphones, the physical buttons for human-computer interaction are generally designed on the charging box, and the charging box transmits some button information to the earphones. Therefore, in addition to the charging function, the charging box of most TWS earphones also has the function of communicating with the earphones. Due to the appearance of the charging box and the earphones, the contact points for communication between the charging box and the earphones have been reduced from three to two. One of these two points is used for the charging box and the earphones to share the ground, and the other is used for charging and communication. Some of the communication between the charging box and the earphones is independently developed, and the switching between charging and communication is realized through the control circuit, and some use mature chips from third parties. According to the data sheet provided by the chip manufacturer, the corresponding registers are operated to realize the switching between charging and communication. Some chips have two communication modes, one is carrier communication while communicating and charging, and the other is a half-duplex working mode used only for communication. Due to the communication in carrier mode, the data to be transmitted is encoded and loaded onto the reference voltage, and the data is transmitted from the charging box to the earphone or from the earphone to the charging box via a single bus. Therefore, carrier communication is greatly affected by the charging parameters when charging the earphone on the single bus, that is, the charging voltage and current fluctuations. For example, in actual applications, some communications only use carrier communication, and some instructions use both carrier communication and serial communication, such as audio testing. In actual use, there are two situations that will affect the stability of communication: when the reference voltage of the carrier is too high, the transmitted data is susceptible to interference, which may cause communication failure; when testing audio data, the audio data will be sent to the computer via the pass-through mode, and after the transmission is completed, the earphone will also return a data to the computer via carrier communication. When the earphone returns carrier data to the computer, if the charging current of the earphone is large, the voltage fluctuation on the switching single bus is large, and the data returned by the earphone to the computer may fail due to voltage fluctuations.

[0052] To solve the above problems, refer to Figure 1 and Fig. 9 In one embodiment of the present invention, a method for dynamically adjusting a single bus carrier reference voltage is proposed to improve communication stability. The communication method includes:

[0053] Step S110: when the communication mode of the charging box is in the carrier communication mode, obtaining the initial carrier reference voltage of the charging box;

[0054] In this embodiment, the charging box and the wireless headset can communicate through a single bus, that is, the wireless headset and the charging box can communicate and charge through one bus. The charging box and the wireless headset can be compatible with carrier communication and serial communication. Specifically, in the actual communication process, the corresponding communication mode can be selected according to the size of the communication data. Specifically, when the amount of communication data is small, a carrier communication method of communicating and charging can be used. When the amount of data is large, UART half-duplex communication, that is, serial communication, is required. At this time, communication between the charging box and the wireless headset is prioritized, and charging cannot be compatible at the same time. It can be understood that the carrier reference voltage of the carrier communication is output by the charging box, such as Figure 1 The figure shows a charging block diagram of the box. The charging module 110 of the charging box has an internal resistance R1, the line loss resistance between the charging box and the earphone is R2, and the battery of the earphone also has an internal resistance R3. When the communication between the charging box and the wireless earphone is switched from UART half-duplex communication to carrier communication, due to the large charging current of the earphone, the voltage loss on the charging line (voltage = current * (R1 + R2 + R3)) will also increase. In this way, the voltage on the single bus is unstable, which will cause interference to the carrier communication and communication failure. Since the carrier communication is based on the reference voltage, the data to be transmitted is loaded. The higher the voltage during data transmission is than the reference voltage, the less likely the communication is to be interfered. The closer the battery voltage is to the charging voltage, the higher the charging efficiency will be. Therefore, general carrier communication will dynamically adjust the reference voltage of the carrier according to the battery voltage of the earphone. Based on the above, when the battery voltage rises, the reference voltage on the carrier also rises. In this way, the voltage difference between the reference voltage of the carrier communication and the voltage of the data transmission will become smaller and smaller, so that as the battery voltage increases, the probability of interference to the carrier communication is greater, which is not conducive to the carrier communication. Based on this, in this embodiment, when performing carrier communication, the initial carrier reference voltage is first obtained, wherein the initial carrier reference voltage can be obtained by a sampling resistor.

[0055] Step S120: When the initial carrier reference voltage is greater than the predetermined carrier reference voltage, the carrier reference voltage of the charging box is adjusted from the initial carrier reference voltage to the predetermined carrier reference voltage;

[0056] In this embodiment, the predetermined carrier reference voltage can be set to a certain value or a dynamic value. The predetermined carrier reference voltage can be set to a value that does not affect carrier communication and satisfies charging efficiency. Specifically, a carrier reference voltage threshold V, that is, a predetermined carrier reference voltage, can be set in the charging box. When it is higher than the predetermined carrier reference voltage, it is determined that it will affect carrier communication. At this time, the carrier reference voltage can be adjusted, that is, the initial carrier reference voltage is adjusted to the predetermined carrier reference voltage, and during the communication process, the carrier reference voltage of the charging box is maintained at the predetermined carrier reference voltage.

[0057] Step S130: transmitting the data to be transmitted to the wireless headset via the single bus and / or receiving the data to be transmitted transmitted by the wireless headset.

[0058] In this embodiment, after adjusting the carrier reference voltage, the charging box can send the data to be transmitted to the wireless headset through the single bus, or receive the data transmitted by the wireless headset. After completing the carrier communication, the charging box can also adjust the carrier reference voltage back to the original voltage value V0, that is, the initial voltage value, and configure the carrier reference voltage to increase with the increase of the headset voltage, that is, the carrier reference voltage changes with the charging voltage.

[0059] The present invention obtains the initial carrier reference voltage of the charging box when the communication mode of the charging box is in the carrier communication mode, and when the initial carrier reference voltage is greater than the predetermined carrier reference voltage, adjusts the carrier reference voltage of the charging box from the initial carrier reference voltage to the predetermined carrier reference voltage, and receives and / or sends the data to be transmitted. A method for dynamically adjusting the single bus carrier reference voltage is proposed, which can solve the problem of excessive carrier reference voltage causing interference to the single bus communication when switching from the serial communication state to the carrier communication, and is conducive to improving the stability of the single bus communication between the wireless headset and the charging box.

[0060] It should be noted that the charging module 110 of the charging box itself also has an internal resistance R1, the line loss resistance between the charging box and the earphone is R2, and the battery of the earphone also has an internal resistance R3. When the communication between the charging box and the wireless earphone is switched from serial communication to carrier communication, due to the large charging current of the earphone, the voltage loss on the charging line (voltage = current * (R1+R2+R3)) will also increase. In this way, the voltage on the PLC single bus is unstable, which will cause interference to the carrier communication and communication failure. In order to solve the above problems, refer to Figure 2 and Fig. 9 In one embodiment of the present invention, when the communication mode of the charging box is in the carrier communication mode, after the step of obtaining the initial carrier reference voltage of the charging box, the communication method further includes:

[0061] Step S140: When the current state of the charging box is in the power supply state, output a current adjustment instruction to the wireless headset to control the wireless headset to adjust the charging current to a predetermined current, and transmit the data to be transmitted to the charging box through a single bus and / or receive the data to be transmitted transmitted by the charging box.

[0062] In this embodiment, since the charging of the earphone needs to go through the stages of pre-charging, constant current charging, constant voltage charging, etc., the charging current configured in different charging stages is often different. During the charging process of the wireless earphone, the current charging stage will be determined according to the battery power of the earphone, and the charging current will be adjusted in real time. For example, when the earphone is placed in the charging box, the amount of electricity stored in the earphone battery of the wireless earphone is different. Before charging, the wireless earphone and the charging box can realize the information exchange of electricity, working status, etc., and then the charging box powers the wireless earphone, that is, the charging box and the wireless earphone perform handshake communication. After waiting for the handshake to be completed, it can be determined that the earphone and the charging box are in good contact at this time, and the charging box can be triggered to charge the wireless earphone. During the charging process, the charging box and the wireless earphone can also exchange information, so that in the power supply state of the charging box charging the wireless earphone, assuming that the real-time current of the earphone charging is I1, when the earphone receives the test instruction sent by the charging box, the wireless earphone can compare the actual charging current of the current battery with the predetermined current. When the actual current is greater than the predetermined charging current, the charging current can be set to the predetermined current, for example, (I1*B) mA, where B is a coefficient. The coefficient can be set to a value that does not affect carrier communication and satisfies charging efficiency. For wireless headphones, when the headphones receive a command from the charging box, they will first parse the command to determine the type of command. When the communication mode is determined to be carrier communication, that is, when the communication mode is determined to be

[0063] The communication mode will be switched to carrier communication. After the wireless headset processes the data, it returns the result to the charging box, completing the communication between the wireless headset and the charging box. Of course, when the communication method of the present invention is applied to the test process of the wireless headset, after the charging box transmits the instruction to the headset through a single bus communication and receives the test result returned by the wireless headset, the charging box can also transmit the test result to the host computer to complete the test of the wireless headset. After the headset returns the processed data to the charging box, the charging box switches the charging current to the real-time charging current I1.

[0064] Reference Figure 3 and Fig. 9 In one embodiment, after the step of obtaining the initial carrier reference voltage of the charging box when the communication mode of the charging box is in the carrier communication mode, the communication method further includes:

[0065] Step S150: When the carrier reference voltage of the charging box is less than or equal to the predetermined carrier reference voltage, the initial carrier reference voltage of the charging box is used as the carrier reference voltage of the charging box.

[0066] It can be understood that when the battery level of the wireless headset is low and charging is in the initial stage, such as the constant current charging stage, although the battery voltage is rising, the reference voltage on the carrier is also rising. At this time, the difference between the headset battery voltage and the charging voltage is large, and the voltage difference between the reference voltage of the carrier communication and the voltage of the data transmission is still large. At this time, the initial carrier reference voltage can still be used as the carrier reference voltage of the charging box. As the battery voltage increases to be close to the charging voltage, that is, when it reaches the predetermined carrier voltage, the probability of the carrier communication being interfered with increases. At this time, the reference voltage of the carrier communication can be set to the predetermined carrier voltage and maintained at the predetermined carrier voltage to ensure communication stability.

[0067] Reference Figure 4 and Fig. 9 In one embodiment, before the step of determining the current state of the charging box when the communication mode between the charging box and the wireless headset is in the carrier communication mode, the communication method further includes:

[0068] Step S161, obtaining communication requirements;

[0069] It is understandable that after the wireless headset is placed in the charging box, the charging box can directly charge the wireless headset after detecting that the wireless headset is placed in the charging box, or the charging box and the wireless headset can communicate, and the wireless headset sends the headset power information to the charging box. After sending a charging request to the charging box, the charging box determines the charging current and charging voltage according to the headset power information of the wireless headset, and then charges. At the same time, during the charging process, the wireless headset and the charging box will also be charged to realize information interaction during the charging process, such as real-time feedback of the charging current, charging voltage, etc. during the charging stage. Alternatively, when two wireless headsets are paired for the first time, or when wireless headsets are paired with other mobile terminals, such as mobile phones, tablet computers, smart watches, etc., it is necessary to send a pairing command to the headset through the charging box to make the wireless headset enter the pairing or unpairing mode. Alternatively, the program update and upgrade of the wireless headset can also be realized through the charging box. Specifically, after the host computer transmits the program to be written to the charging box through the data interface of the charging box, the charging box will output the data to be updated and upgraded to the wireless headset. Alternatively, when testing the wireless headset, such as performing an audio test, the host computer sends a test instruction to the charging box, and the charging box then transparently transmits the received test instruction to the wireless headset. The wireless headset parses the instruction and outputs audio and other data to the charging box, which then transmits the audio and other data back to the host computer to complete the test of the wireless headset. In addition, the charging box and the wireless headset can communicate in a carrier communication mode or in a serial communication mode. Therefore, this embodiment can determine the communication requirements between the wireless headset and the charging box based on the working conditions of the wireless headset, the size of the data to be transmitted, application requirements, etc. Specifically, the communication requirements between the wireless headset and the charging box have at least the following conditions:

[0070] When the charging box is charging the wireless headset, the data to be transmitted is small, and the communication requirement at this time is carrier communication; when the charging box is charging the wireless headset, the data to be transmitted is large, and the communication requirement at this time is serial communication; when the charging box is not charging the wireless headset (the charging box is equivalent to a storage box at this time), the data to be transmitted is small, and the communication requirement at this time is serial communication or carrier communication; when the charging box is not charging the wireless headset (the charging box is equivalent to a storage box at this time), the data to be transmitted is small, and the communication requirement at this time is serial communication or carrier communication; when the charging box is testing the wireless headset, the communication requirements at this time are serial communication and carrier communication; when the charging box is transparently transmitting the program to be updated to the wireless headset, the communication requirement at this time is serial communication.

[0071] Step S162: When it is determined that the communication requirement includes carrier communication, the communication mode of the charging box is set to the carrier communication mode.

[0072] In this embodiment, when it is determined that the communication mode between the charging box and the wireless headset is the carrier communication mode, the communication chip in the charging box can be controlled to set the communication mode to carrier communication, and the communication chip in the headset can also be controlled to set the communication mode to carrier communication, so that the charging box and the wireless headset are in the same communication mode, and then step S100 is executed, that is, the initial carrier reference voltage of the charging box is obtained, so as to dynamically adjust the single bus carrier reference voltage to improve the stability of communication.

[0073] Reference Figure 5 and Fig. 9 In one embodiment, after the step of obtaining the communication requirement, the communication method further includes:

[0074] Step S171: When it is determined that the communication requirements include carrier communication and serial communication, the communication mode of the charging box is set to the serial communication mode, and the data to be transmitted is transmitted to the wireless headset through the single bus;

[0075] Step S172: After setting the communication mode of the charging box to the carrier communication mode, execute step S100 and subsequent steps.

[0076] It is understandable that in the process of communication between the charging box and the wireless headset, only carrier communication or only serial communication may be needed. However, in some application scenarios, such as testing the wireless headset, both carrier communication and serial communication may be needed. At this time, according to a predetermined order, the communication chip in the charging box can be controlled to switch the communication mode to serial communication, and the communication chip in the headset can be controlled to set the communication mode to serial communication, so that when the charging box and the wireless headset are in the same communication mode, the data to be transmitted is transmitted to the wireless headset through a single bus, or the wireless headset receives the data to be transmitted through a single bus. After completing the data transmission in the serial communication mode, the communication chip in the charging box is controlled to set the communication mode to carrier communication, and the communication chip in the headset is controlled to set the communication mode to carrier communication, so that when the charging box and the wireless headset are in the same communication mode, the data to be transmitted is transmitted to the wireless headset through a single bus, or the wireless headset receives the data to be transmitted through a single bus.

[0077] Of course, in other embodiments, the charging box and the wireless headset can also be controlled to be in the carrier communication mode. After the data transmission is completed, the charging box and the wireless headset can be controlled to be in the serial communication mode to complete the data transmission, thereby meeting the application requirements of using both carrier communication and serial communication.

[0078] The present invention also proposes a charging box, which includes a processor, a memory, and a communication program stored in the memory and executable on the processor, wherein the communication program implements the steps of the communication method described above when executed by the processor.

[0079] In this embodiment, the charging box is also provided with a box body, and the charging box may also include a charging module 110 for charging the wireless headset. The charging module 110 may include a battery. The charging module 110 is based on the control of the processor and is used to provide a charging voltage for the wireless headset and provide an operating voltage for other circuit modules in the charging box. The charging module 110 may be implemented by a DC power supply. The voltage value of the charging module 110 may be 9V or 12V, which may be specifically set according to the type of the charging box and is not limited here. An electric control board is also provided in the box body, and the charging module 110 and the processor, memory, etc. are provided on the electric control board. The battery and the processor may be electrically connected through a flexible circuit board. The shape and size of the accommodating cavity in the box body may be adapted to the battery, electric control board, and headset placed in the box body, and may be circular, square, and other shapes, which are not limited here. The material of the box body may be selected to be a lightweight, insulating material. Alternatively, in some embodiments, a pairing control switch, a charging switch or a touch switch, such as a touch screen, may be further provided on the lower shell of the charging box. The pairing control switch can realize the pairing connection between the wireless headset and the mobile terminal. The charging switch is electrically connected to the electronic control board to control the battery to charge the wireless headset or stop charging when receiving the charging switch signal input by the user.

[0080] Reference Figure 6 and Fig. 9 The present invention further proposes a communication method, the communication method comprising:

[0081] Step S210: when the communication mode of the wireless headset is in the carrier communication mode, determining the current state of the wireless headset;

[0082] In this embodiment, the charging box and the wireless headset can communicate through a single bus, that is, the wireless headset and the charging box can communicate and charge through one bus. The charging box and the wireless headset can be compatible with carrier communication and serial communication. Specifically, in the actual communication process, the corresponding communication mode can be selected according to the size of the communication data. Specifically, when the amount of communication data is small, a carrier communication method of communicating and charging can be used. When the amount of data is large, UART half-duplex communication, that is, serial communication, is required. At this time, communication between the charging box and the wireless headset is prioritized, and charging cannot be compatible at the same time. It can be understood that the carrier reference voltage of the carrier communication is output by the charging box, such as Figure 1The figure shows the charging block diagram of the box. The charging module of the charging box has an internal resistance R1, the line loss resistance between the charging box and the earphone is R2, and the battery of the earphone also has an internal resistance R3. When the communication between the charging box and the wireless earphone is switched from UART half-duplex communication to carrier communication, due to the large charging current of the earphone, the voltage loss on the charging line (voltage = current * (R1 + R2 + R3)) will also increase. In this way, the voltage on the single bus is unstable, which will cause interference to the carrier communication and communication failure. Since the carrier communication is based on the reference voltage to load the data to be transmitted, the higher the voltage during data transmission is than the reference voltage, the less likely the communication is to be interfered. The closer the battery voltage is to the charging voltage, the higher the charging efficiency will be, so the general carrier communication will dynamically adjust the reference voltage of the carrier according to the battery voltage of the earphone. Based on the above, when the battery voltage rises, the reference voltage on the carrier also increases, so that the voltage difference between the reference voltage of the carrier communication and the voltage of the data transmission will become smaller and smaller, so that as the battery voltage increases, the probability of interference to the carrier communication increases, which is not conducive to the carrier communication. Based on this, in this embodiment, when performing carrier communication, the current charging current of the wireless headset is first obtained. The acquisition of the current charging current can be achieved through a current detection circuit.

[0083] Step S220: When the current state of the wireless headset is in a charging state, adjusting the charging current of the wireless headset to a predetermined current;

[0084] In this embodiment, the predetermined current can be set to a certain value or a dynamic value. The predetermined current can be set to a value that does not affect carrier communication and satisfies charging efficiency. Specifically, a charging current threshold I, that is, a predetermined current, can be set in the wireless headset. When it is higher than the predetermined current, it is determined that the carrier communication will be affected. At this time, the charging current can be adjusted to the predetermined current, and during the communication process, the charging current of the wireless headset is maintained at the predetermined current until the data transmission under the carrier communication is completed.

[0085] Step S230: transmitting the data to be transmitted to the charging box via the single bus, and / or receiving the data to be transmitted transmitted by the charging box.

[0086] In this embodiment, after the charging current is adjusted to the predetermined current, the wireless headset can send the data to be transmitted to the charging box through the single bus, or receive the data transmitted by the charging box. After completing the carrier communication, the wireless headset can also obtain the current headset power information of the wireless headset according to the power meter, and determine the charging stage of the wireless headset according to the current headset power information, such as a certain stage of constant voltage charging, constant current charging, trickle charging, etc., and adjust the predetermined current back to the charging current required for the current charging stage according to the charging current required for the stage.

[0087] The present invention can solve the problem of excessive charging current and interference to single bus communication when switching from serial communication state to carrier communication by dynamically adjusting the wireless charging current, which is beneficial to improving the stability of single bus communication between wireless headphones and charging box.

[0088] Reference Figure 7 and Fig. 9 In one embodiment, before the step of determining the current state of the wireless headset when the communication mode of the wireless headset is in the carrier communication mode, the communication method further includes:

[0089] Step S240: obtaining the communication requirements of the wireless headset;

[0090] Step S250: when it is determined according to the communication requirement that the communication mode includes carrier communication and serial communication, the communication mode of the wireless headset is set to serial communication mode, and the data to be transmitted is transmitted to the charging box through a single bus;

[0091] Step S260: Set the communication mode of the wireless headset to the carrier communication mode, and execute step S210 and subsequent steps.

[0092] It is understandable that in the process of communication between the charging box and the wireless headset, only carrier communication or only serial communication may be needed. However, in some application scenarios, such as testing the wireless headset, both carrier communication and serial communication may be needed. At this time, according to a predetermined order, the communication chip in the charging box can be controlled to switch the communication mode to serial communication, and the communication chip in the headset can be controlled to set the communication mode to serial communication, so that when the charging box and the wireless headset are in the same communication mode, the data to be transmitted is transmitted to the wireless headset through a single bus, or the wireless headset receives the data to be transmitted through a single bus. After completing the data transmission in the serial communication mode, the communication chip in the charging box is controlled to set the communication mode to carrier communication, and the communication chip in the headset is controlled to set the communication mode to carrier communication, so that when the charging box and the wireless headset are in the same communication mode, the data to be transmitted is transmitted to the wireless headset through a single bus, or the wireless headset receives the data to be transmitted through a single bus.

[0093] Of course, in other embodiments, the charging box and the wireless headset can also be controlled to be in the carrier communication mode. After the data transmission is completed, the charging box and the wireless headset can be controlled to be in the serial communication mode to complete the data transmission, thereby meeting the application requirements of using both carrier communication and serial communication.

[0094] Reference Figure 8 and Fig. 9In one embodiment, after the step of adjusting the charging current of the wireless headset to a predetermined current when the current state of the wireless headset is in a charging state, the communication method further includes:

[0095] Step S270, when the data to be transmitted is received, start timing;

[0096] Step S280: When the timing reaches the first preset time length and no data to be transmitted is received again, the carrier reference voltage is adjusted to the initial reference voltage.

[0097] It is understandable that when the actual charging current is larger than the predetermined current, in order to ensure the stability of carrier communication, after the charging current is set to the predetermined current, it will affect the charging efficiency of the charging box for the wireless headset, and in the process of communication between the charging box and the wireless headset, there may be a certain interval between data transmission. In order to reduce the impact of the communication between the charging box and the wireless headset on the charging of the wireless headset, this embodiment can also set a timer in the wireless headset. When the wireless headset receives data sent by the charging box, or the wireless headset sends data to the charging box, the charging current is first set to the predetermined current, and a timer is started at the same time. If the timing reaches the first preset time, there is data sent from the charging box end and / or the wireless headset sends data to the charging box again, then the timing is restarted. If there is no data sent from the charging box within the first preset time and / or the wireless headset does not send data to the charging box, the charging current will be switched to the current value corresponding to the actual charging stage. In addition, the charging of wireless headsets needs to go through the stages of pre-charging, constant current charging, constant voltage charging, etc. The charging current configured in different charging stages is often different. This embodiment can adjust the charging current in real time according to the current charging stage.

[0098] The present invention also provides a wireless headset, comprising a processor, a memory, and a communication program stored in the memory and executable on the processor, wherein the communication program implements the steps of the communication method described above when executed by the processor.

[0099] In this embodiment, the wireless headset can be a wireless headset such as a Bluetooth headset, a TWS headset (True Wireless Stereo) or an infrared headset. The battery 220 component in the wireless headset is used to power the electrical load in the headset, which can be a speaker, a microphone, an indicator light, a micro motor, etc. The battery 220 component includes a battery 220 for storing electrical energy, and a charging chip 210 that converts the power supply output by the charging box into the above-mentioned battery 220 to store electrical energy. The input end of the charging chip 210 can be connected to the charging box through an electrical connector, and the output end of the charging chip 210 is connected to the battery 220. The charging chip 210 is controlled by a processor and is used to convert the connected power supply and output it to the battery 220 for storage. The range of the stored electrical energy of the battery 220 can be set to 3.5~4.3V, which can be implemented by a rechargeable battery 220 such as a dry cell 220, a lithium-ion battery 220 or a nickel-metal hydride battery 220.

[0100] The present invention also provides a communication system, comprising:

[0101] The charging box as described above and the wireless headset as described above. The detailed structure of the charging box and the wireless headset as described above can be referred to the above embodiment, which will not be repeated here; it can be understood that since the charging box and the wireless headset as described above are used in the invented communication system, the embodiment of the invented communication system includes all the technical solutions of all the embodiments of the charging box and the wireless headset as described above, and the technical effects achieved are also exactly the same, which will not be repeated here.

[0102] The above descriptions are only optional embodiments of the present invention, and are not intended to limit the patent scope of the present invention. All equivalent structural changes made using the contents of the present invention's specification and drawings, or directly / indirectly applied in other related technical fields, are included in the patent protection scope of the present invention.

Claims

1. A communication method, applied to a charging box and a wireless headset, characterized in that: The charging box and the wireless headset are provided with two corresponding contact points, one for the charging box and the headset to share a ground, and the other for charging and communication, and the communication method includes: Obtain communication requirements; When it is determined that the communication requirements include carrier communication and serial communication, the communication mode of the charging box is set to the serial communication mode, and the data to be transmitted is transmitted to the wireless headset through a single bus and / or the data to be transmitted transmitted by the wireless headset is received; Set the communication mode of the charging box to carrier communication mode; When the communication mode of the charging box is in the carrier communication mode, obtaining an initial carrier reference voltage of the charging box; When the initial carrier reference voltage is greater than the predetermined carrier reference voltage, adjusting the carrier reference voltage of the charging box from the initial carrier reference voltage to the predetermined carrier reference voltage; Transmitting the data to be transmitted to the wireless headset via the single bus and / or receiving the data to be transmitted transmitted by the wireless headset; Among them, carrier communication is used for the state of charging and communicating at the same time.

2. The communication method according to claim 1, characterized in that: After the step of obtaining the initial carrier reference voltage of the charging box when the communication mode of the charging box is in the carrier communication mode, the communication method further includes: When the current state of the charging box is in the power supply state, a current adjustment instruction is output to the wireless headset to control the wireless headset to adjust the charging current to a predetermined current, and transmit the data to be transmitted to the charging box through a single bus and / or receive the data to be transmitted transmitted by the charging box.

3. The communication method according to claim 1, characterized in that: After the step of obtaining the initial carrier reference voltage of the charging box when the communication mode of the charging box is in the carrier communication mode, the communication method further includes: When the carrier reference voltage of the charging box is less than or equal to the predetermined carrier reference voltage, the initial carrier reference voltage of the charging box is used as the carrier reference voltage of the charging box.

4. A charging box, characterized in that: The charging box includes a processor, a memory, and a communication program stored in the memory and executable on the processor, wherein the communication program implements the steps of the communication method as described in any one of claims 1 to 3 when executed by the processor.

5. A communication method, applied to a charging box and a wireless headset, characterized in that: The charging box and the wireless headset are provided with two corresponding contact points, one for the charging box and the headset to share a ground, and the other for charging and communication, and the communication method includes: Obtain the communication requirements of wireless headsets; When it is determined that the communication requirements of the wireless headset include carrier communication and serial communication, the communication mode of the wireless headset is set to the serial communication mode, and the data to be transmitted is transmitted to the charging box through a single bus and / or the data to be transmitted transmitted by the charging box is received; and, Set the communication mode of the wireless headset to carrier communication mode; When the communication mode of the wireless headset is in the carrier communication mode, obtaining the charging current of the wireless headset; When the charging current is greater than a predetermined current, adjusting the charging current of the wireless headset to the predetermined current; Transmitting the data to be transmitted to the charging box via a single bus, and / or receiving the data to be transmitted transmitted by the charging box; Among them, carrier communication is used for the state of charging and communicating at the same time.

6. The communication method according to claim 5, characterized in that: When the current state of the wireless headset is in a charging state, after the step of adjusting the charging current of the wireless headset to a predetermined current, the communication method further includes: When the data to be transmitted is received, the timing starts; When the timing reaches the first preset time length and no data to be transmitted is received again, the charging current is adjusted to the current charging current.

7. A wireless headset, characterized in that: The wireless headset comprises a processor, a memory, and a communication program stored in the memory and executable on the processor, wherein the communication program implements the steps of the communication method as claimed in any one of claims 5 to 6 when executed by the processor.

8. A communication system, characterized in that: include: The charging box as claimed in claim 4 and the wireless headset as claimed in claim 7.