CN114125629A - Communication method, charging box, wireless earphone and communication system - Google Patents

Communication method, charging box, wireless earphone and communication system Download PDF

Info

Publication number
CN114125629A
CN114125629A CN202111372951.8A CN202111372951A CN114125629A CN 114125629 A CN114125629 A CN 114125629A CN 202111372951 A CN202111372951 A CN 202111372951A CN 114125629 A CN114125629 A CN 114125629A
Authority
CN
China
Prior art keywords
communication
charging box
charging
carrier
reference voltage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111372951.8A
Other languages
Chinese (zh)
Inventor
李文凤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202111372951.8A priority Critical patent/CN114125629A/en
Publication of CN114125629A publication Critical patent/CN114125629A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1025Accumulators or arrangements for charging
    • HELECTRICITY
    • 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
    • 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/007Regulation of charging or discharging current or voltage
    • H02J7/00712Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Landscapes

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

Abstract

The invention discloses a communication method, a charging box, a wireless earphone and a communication system, wherein the communication method comprises the following steps: when the communication mode of the charging box is in a carrier communication mode, acquiring initial carrier reference voltage of the charging box; when the initial carrier reference voltage is greater than the preset carrier reference voltage, adjusting the carrier reference voltage of the charging box from the initial carrier reference voltage to the preset carrier reference voltage; and transmitting the data to be transmitted to the wireless earphone through the single bus and/or receiving the data to be transmitted by the wireless earphone.

Description

Communication method, charging box, wireless earphone and communication system
Technical Field
The invention relates to the technical field of communication, in particular to a communication method, a charging box, a wireless earphone and a communication system.
Background
With the development of wireless communication technology, the trend of intellectualization and wireless is deeply embodied in wireless headset products such as bluetooth headset. Wireless headset products are typically adapted with a charging box having the function of receiving and charging, which has the function of being able to charge the headset and send pairing commands, etc.
In order to reduce the use of earphone contact points, when the charging box charges the wireless earphone, and the wireless earphone and the charging box are in communication, data transmission can be realized in a carrier communication mode. Due to the communication in the carrier mode, after data to be transmitted is encoded, the encoded data is loaded to a carrier reference voltage, and the data is transmitted to the earphone from the charging box or the earphone from the charging box through the single bus.
Disclosure of Invention
The invention mainly aims to provide a communication method, a charging box, a wireless earphone and a communication system, and aims to improve the stability of single-bus communication between the wireless earphone and the charging box.
In order to achieve the above object, the present invention provides a communication method, including:
when the communication mode of the charging box is in a carrier communication mode, acquiring initial carrier reference voltage of the charging box;
when the initial carrier reference voltage is greater than a preset carrier reference voltage, adjusting the carrier reference voltage of the charging box from the initial carrier reference voltage to a preset carrier reference voltage;
and transmitting the data to be transmitted to the wireless earphone through the single bus and/or receiving the data to be transmitted by the wireless earphone.
Optionally, 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 a power supply state, a current adjusting instruction is output to the wireless earphone so as to control the wireless earphone to adjust the charging current to be the preset current, and the data to be transmitted is transmitted to the charging box through the single bus and/or the data to be transmitted by the charging box is received.
Optionally, 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:
and when the carrier reference voltage of the charging box is less than or equal to the preset carrier reference voltage, taking the initial carrier reference voltage of the charging box as the carrier reference voltage of the charging box.
Optionally, before the step of determining the current state of the charging box when the communication mode of the charging box and the wireless headset is in the carrier communication mode, the communication method further comprises:
acquiring a communication demand;
setting a communication mode of the charging box to a carrier communication mode when it is determined that the communication demand includes carrier communication.
Optionally, after the step of acquiring the communication requirement, the communication method further includes:
when the communication mode is determined to comprise carrier communication and serial port communication, the communication mode of the charging box is set to be the serial port communication mode, and data to be transmitted is transmitted to the wireless earphone through the single bus and/or the data to be transmitted by the wireless earphone is received;
the communication mode of the charging box is set to a carrier communication mode.
The invention also proposes a charging box comprising a processor, a memory and a communication program stored on the memory and executable on the processor, wherein the communication program, when executed by the processor, implements the steps of the communication method as described above.
The invention also provides a communication method, which comprises the following steps:
when the communication mode of the wireless earphone is in a carrier communication mode, acquiring the charging current of the wireless earphone;
when the charging current is larger than a preset current, adjusting the charging current of the wireless earphone to the preset current;
and transmitting the data to be transmitted to the charging box through the single bus, and/or receiving the data to be transmitted by the charging box.
Optionally, the communication method further includes:
acquiring the communication requirement of the wireless earphone;
when the communication requirement of the wireless earphone is determined to comprise carrier communication and serial port communication, setting the communication mode of the wireless earphone to be a serial port communication mode, and transmitting data to be transmitted to a charging box and/or receiving the data to be transmitted by the charging box through a single bus; and the number of the first and second groups,
the communication mode of the wireless headset is set to a carrier communication mode.
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 the charging state, the communication method further includes:
when receiving data to be transmitted, starting timing;
and when the timing reaches a first preset time length and the data to be transmitted is not received again, adjusting the charging current to be the current charging current.
The invention also proposes a wireless headset comprising a processor, a memory and a communication program stored on the memory and executable on the processor, wherein the communication program, when executed by the processor, implements the steps of the communication method as described above.
The present invention also provides a communication system, comprising:
a charging box as described above and a wireless headset as described above.
According to the invention, when the communication mode of the charging box is in the carrier communication mode, the initial carrier reference voltage of the charging box is obtained, so that when the initial carrier reference voltage is greater than the preset carrier reference voltage, the carrier reference voltage of the charging box is adjusted from the initial carrier reference voltage to the preset carrier reference voltage, and the data to be transmitted is received and/or sent. The method for dynamically adjusting the single-bus carrier reference voltage can solve the problem that when the serial port communication state is switched to the carrier communication state, the carrier reference voltage is too large, and interference is caused to the single-bus communication, and is beneficial to improving the single-bus communication stability between the wireless earphone and the charging box.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a schematic flow chart of an embodiment of the communication method of the present invention applied to a charging box;
fig. 2 is a schematic flow chart of another embodiment of the communication method of the present invention applied to a charging box;
fig. 3 is a schematic flow chart of a communication method applied to a charging box according to another embodiment of the present invention;
fig. 4 is a schematic flow chart illustrating the application of the communication method of the present invention to a charging box according to still another embodiment;
fig. 5 is a schematic flow chart of a further embodiment of the communication method of the present invention applied to a charging box;
FIG. 6 is a flow chart illustrating an embodiment of a communication method of the present invention applied to a wireless headset;
fig. 7 is a flowchart illustrating a communication method according to another embodiment of the present invention applied to a wireless headset;
fig. 8 is a flowchart illustrating a communication method according to another embodiment of the present invention applied to a wireless headset;
fig. 9 is a schematic circuit diagram of a communication system according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The invention provides a communication method.
TWS headsets are now more and more sought after. The TWS earphone consists of a charging box and an earphone, and for the appearance integrity of the earphone, physical keys and the like for man-machine interaction are generally designed on the charging box, and the charging box transmits some key information to the earphone. Therefore, most charging boxes of TWS earphones have a function of communicating with the earphones in addition to a charging function. Because the appearance of the charging box and the earphone is involved, the contact points of the charging box and the earphone for communication are reduced to two from the original three. These two points are one for the charging box to be common to the headset and one for charging and communication. Some communication between the charging box and the earphone is independently developed, the charging and communication switching is realized through a control circuit, and some communication between the charging box and the earphone is realized through a mature chip of a third party. And operating corresponding registers according to a data manual provided by a chip manufacturer to realize the switching of charging and communication. Some chips have two communication modes, one is carrier communication with charging while communication, and the other is half-duplex operation mode only for communication. Due to the communication in the carrier mode, after data to be transmitted is coded, the coded data is loaded to the reference voltage, and the data is transmitted to the earphone by the charging box or the earphone by the single bus, so that the carrier communication is greatly influenced by charging parameters, namely charging voltage and current fluctuation, when the earphone is charged on the single bus. For example, in practical applications, some communications use only carrier communications, and some commands use both carrier communications and serial communications such as audio testing. Thus, in practical use, two situations can 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 the audio data is tested, the audio data can be sent to the computer in a direct mode, and after transmission is finished, the earphone can return data to the computer in a carrier communication mode. 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 to communicate due to the voltage fluctuation.
In order to solve the above problem, referring to fig. 1 and 9, in an embodiment of the present invention, a method for dynamically adjusting a single-bus carrier reference voltage is provided to improve communication stability. The communication method comprises the following steps:
step S110, when the communication mode of the charging box is in a carrier communication mode, acquiring initial carrier reference voltage of the charging box;
in this embodiment, the charging box and the wireless headset may communicate with each other through a single bus, that is, the wireless headset and the charging box may communicate with each other and be charged through a single bus. Can compatible carrier communication and serial communication between box and the wireless earphone of charging, can specifically be at practical application's communication process, according to the size of communication data, select corresponding communication mode, specifically speaking, when the data bulk size of communication, when less, can adopt the carrier communication mode that the limit communication was simultaneously charged, when the data bulk is great, need use uart half-duplex communication, also be serial communication, the communication between box and the wireless earphone of preferentially realizing charging this moment, can not compatible simultaneously charge. It is understood that the carrier reference voltage of the carrier communication is output by the charging box, and as shown in fig. 1, the charging box is a charging block diagram of the charging box, the charging module 110 of the charging box itself 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 headset is switched from uart half-duplex communication to carrier communication, the voltage (voltage and current) (R1+ R2+ R3)) loss on the charging line is increased along with the increase of the charging current of the headset, so that the voltage on the single bus is unstable, the carrier communication is interfered, and the communication failure occurs. Since carrier communication is based on a reference voltage and data to be transmitted is loaded, the communication is less susceptible to interference when the voltage at the time of data transmission is higher than the reference voltage. As the battery voltage is closer to the charging voltage, the charging efficiency is higher, so that the general carrier communication dynamically adjusts the reference voltage of the carrier according to the battery voltage of the headset. Based on the above, when the battery voltage rises, the reference voltage on the carrier wave rises, so that the voltage difference between the reference voltage of the carrier wave communication and the voltage of the data transmission becomes smaller and smaller, and the probability that the carrier wave communication receives interference is higher along with the rise of the battery voltage, which is not favorable for the carrier wave communication. Based on this, in the present embodiment, when performing carrier communication, an initial carrier reference voltage is first acquired. The acquisition of the initial carrier reference voltage can be realized by a sampling resistor.
Step S120, when the initial carrier reference voltage is greater than the preset carrier reference voltage, adjusting the carrier reference voltage of the charging box from the initial carrier reference voltage to the preset carrier reference voltage;
in this embodiment, the predetermined carrier reference voltage may be set to a fixed value or a dynamic value, and the predetermined carrier reference voltage may be set to a value that does not affect carrier communication and satisfies charging efficiency. Specifically, a threshold V of the carrier reference voltage, that is, a predetermined carrier reference voltage, may be set in the charging box, and when the threshold V is higher than the predetermined carrier reference voltage, it is determined that carrier communication is affected. 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 the carrier reference voltage of the charging box is maintained at the predetermined carrier reference voltage in the communication process.
And S130, transmitting the data to be transmitted to the wireless earphone through the single bus and/or receiving the data to be transmitted by the wireless earphone.
In this embodiment, after the carrier reference voltage is adjusted, the charging box may send the data to be transmitted to the wireless headset through the single bus, or receive the data transmitted from the wireless headset. After the charging box completes the carrier communication, the carrier reference voltage may be adjusted back to the original voltage value V0, that is, the initial voltage value, and the carrier reference voltage is configured to be in a mode that the carrier reference voltage increases with the increase of the earphone voltage, that is, the carrier reference voltage changes with the charging voltage.
According to the invention, when the communication mode of the charging box is in the carrier communication mode, the initial carrier reference voltage of the charging box is obtained, so that when the initial carrier reference voltage is greater than the preset carrier reference voltage, the carrier reference voltage of the charging box is adjusted from the initial carrier reference voltage to the preset carrier reference voltage, and the data to be transmitted is received and/or sent. The method for dynamically adjusting the single-bus carrier reference voltage can solve the problem that when the serial port communication state is switched to the carrier communication state, the carrier reference voltage is too large, and interference is caused to the single-bus communication, and is beneficial to improving the single-bus communication stability between the wireless earphone and the charging box.
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 headset is switched from serial port communication to carrier communication, the charging current of the headset is large, and the voltage (voltage and current) (R1+ R2+ R3)) loss on the charging line is increased, so that the voltage on the plc single bus is unstable, the carrier communication is interfered, and communication failure occurs. In order to solve the above problem, referring to fig. 2 and 9, in an embodiment of the present invention, after the step of acquiring an 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:
and S140, when the current state of the charging box is in a power supply state, outputting a current adjusting instruction to the wireless earphone so as to control the wireless earphone to adjust the charging current to be preset current, and transmitting the data to be transmitted to the charging box through a single bus and/or receiving the data to be transmitted by the charging box.
In this embodiment, because the charging of the earphone needs to go through the stages of pre-charging, constant current charging, constant voltage charging, etc., the charging currents configured in different charging stages are often different, and in the charging process of the wireless earphone, the current charging stage can be determined according to the battery capacity of the earphone, so as to adjust the charging current in real time. For example when the earphone is put into the charging box, the electric quantity of the earphone battery storage of the wireless earphone is different, before charging, after the information interaction such as electric quantity, working state can be realized between the wireless earphone and the charging box, the charging box is enabled to supply power to the wireless earphone, the charging box and the wireless earphone are also enabled to perform handshaking communication, after the completion of handshaking, the contact between the earphone and the charging box at the moment can be determined to be good, and the charging box can be triggered to charge the wireless earphone at the moment. In the charging process, the charging box and the wireless earphone can also carry out information interaction, so that under the power supply state that the charging box charges the wireless earphone, the real-time current for charging the earphone is assumed to be I1When 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 preset current. When the actual current is greater than the predetermined charging current, the charging current may be set to the predetermined current, for example, may be set to (I)1B) mA, which is a coefficient that can be set to a value that does not affect carrier communication while satisfying charging efficiency. For the wireless earphone, when the earphone receives the instruction sent by the charging box, the earphone firstly analyzes the instruction, judges the type of the instruction, and determines that the communication mode is carrier communication, namely determines that the communication mode is carrier communication
The communication mode is switched to carrier communication, the wireless earphone returns the result to the charging box after processing the data,and completing the communication between the wireless earphone and the charging box. Certainly, when the communication method is applied to the testing process of the wireless earphone, the charging box transmits the instruction to the earphone through single bus communication, and after receiving the testing result returned by the wireless earphone, the charging box can also transmit the testing result to the upper computer, so that the testing of the wireless earphone is completed. When the earphone returns the processed data to the charging box, the charging box switches the charging current to the real-time charging current I1
Referring to fig. 3 and 9, in an 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:
and step S150, when the carrier reference voltage of the charging box is less than or equal to the preset carrier reference voltage, taking the initial carrier reference voltage of the charging box as the carrier reference voltage of the charging box.
It can be understood that, when the power of the wireless headset is low and the charging is an initial stage, for example, a constant current charging stage, although the reference voltage on the carrier is also rising when the battery voltage rises, at this time, the difference between the battery voltage of the headset 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 also large, at this time, the initial carrier reference voltage can still be used as the carrier reference voltage of the charging box, and as the battery voltage rises to be close to the charging voltage, that is, when the predetermined carrier voltage is reached, the probability that the carrier communication is interfered is larger, 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, so as to ensure the communication stability.
Referring to fig. 4 and 9, in an embodiment, before the step of determining the current state of the charging box when the communication mode of the charging box with the wireless headset is in the carrier communication mode, the communication method further includes:
step S161, acquiring communication requirements;
it can be understood that, after the wireless earphone is put into the charging box, the charging box can directly charge the wireless earphone after detecting that the wireless earphone is put into the charging box, or can communicate with the wireless earphone at the charging box, the wireless earphone sends earphone electric quantity information and the like to the charging box, and after sending a charging request to the charging box, the charging box determines charging current and charging voltage according to the earphone electric quantity information of the wireless earphone, and then charges, and meanwhile, in the charging process, the wireless earphone and the charging box can also charge, so as to realize information interaction in the charging process, such as a charging stage, real-time feedback of charging current and charging voltage, and the like. Or, when the two wireless headsets are paired for the first time, or the wireless headsets are paired with other mobile terminals, such as a mobile phone, a tablet computer, a smart watch, and the like, a pairing command needs to be sent to the headsets through the charging box, so that the wireless headsets enter a pairing mode or a pairing release mode. Or the program updating and upgrading of the wireless earphone can be realized through the charging box, specifically, after the program needing to be written is transmitted to the charging box through a data interface of the charging box by the upper computer, the charging box outputs the data needing to be updated and upgraded to the wireless earphone. Or, when testing the wireless earphone, for example, when performing audio test, the upper computer sends a test instruction to the charging box, the charging box transmits the received test instruction to the wireless earphone, the wireless earphone analyzes the instruction, outputs data such as audio to the charging box, and the charging box transmits the data such as audio back to the upper computer, thereby completing the test of the wireless earphone. In addition, the charging box and the wireless earphone can be communicated in a carrier communication mode, and can also be communicated in a serial communication mode. Therefore, the communication requirement between the wireless earphone and the charging box can be determined according to the working condition of the wireless earphone, the size of data to be transmitted, the application requirement and the like. Specifically, the communication requirement between the wireless headset and the charging box has at least the following:
when the wireless earphone is charged by the charging box, the data to be transmitted is small, and the communication requirement is carrier communication; when the charging box charges the wireless earphone, the data to be transmitted is large, and the communication requirement is serial port communication; the wireless earphone is not charged by the charging box (the charging box is equivalent to a storage box at the moment), and the communication requirement is serial port communication or carrier communication at the moment when the data to be transmitted is small; the wireless earphone is not charged by the charging box (the charging box is equivalent to a storage box at the moment), and the communication requirement is serial port communication or carrier communication at the moment when the data to be transmitted is small; in the process of testing the wireless earphone by the charging box, the communication requirements at the moment are serial port communication and carrier communication; and in the process that the charging box transparently transmits the program to be updated to the wireless earphone, the communication requirement at the moment is serial port communication.
And step S162, when the communication requirement is determined to comprise carrier communication, setting the communication mode of the charging box to be a carrier communication mode.
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 may be controlled to set the communication mode to carrier communication, and the communication chip in the headset is also 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 performed, that is, the initial carrier reference voltage of the charging box is obtained, so that the single-bus carrier reference voltage is dynamically adjusted, and the stability of communication is improved.
Referring to fig. 5 and 9, in an embodiment, after the step of acquiring the communication requirement, the communication method further includes:
step S171, when the communication requirement is determined to include carrier communication and serial port communication, setting the communication mode of the charging box to be a serial port communication mode, and transmitting data to be transmitted to the wireless earphone through a single bus;
step S172, after the communication mode of the charging box is set to the carrier communication mode, step S100 and the subsequent steps are performed.
It is understood that only carrier communication or only serial communication may be required during communication between the charging box and the wireless headset, but in some application scenarios, such as testing the wireless headset, both carrier communication and serial communication may be required. At this time, according to a predetermined sequence, the communication chip in the charging box is controlled to switch the communication mode to serial communication, and the communication chip in the earphone is also controlled to set the communication mode to serial communication, so that under the condition that the charging box and the wireless earphone are in the same communication mode, the data to be transmitted is transmitted to the wireless earphone through the single bus, or the transmitted data to be transmitted is received through the single bus wireless earphone. After data transmission in the serial port communication mode is completed, the communication chip in the charging box is controlled to set the communication mode to carrier communication, and meanwhile the communication chip in the earphone is controlled to set the communication mode to carrier communication, so that under the condition that the charging box and the wireless earphone are in the same communication mode, data to be transmitted are transmitted to the wireless earphone through a single bus, or the transmitted data to be transmitted are received through the single bus wireless earphone.
Of course, in other embodiments, the charging box and the wireless earphone may also be controlled to be in a carrier communication mode, and after data transmission is completed, the charging box and the wireless earphone are controlled to be in a serial communication mode to complete data transmission, thereby meeting application requirements for simultaneous carrier communication and serial communication.
The invention also proposes a charging box comprising a processor, a memory and a communication program stored on the memory and executable on the processor, wherein the communication program, when executed by the processor, implements the steps of the communication method as described above.
In this embodiment, the charging box is further provided with a box body, the charging box may further include a charging module 110 for charging the wireless headset, the charging module 110 may include a storage battery, the charging module 110 is controlled by the processor and is configured to provide charging voltage for the wireless headset, and provide working voltage for other circuit modules in the charging box, the charging module 110 may be implemented by using a dc power supply, a voltage value of the charging module 110 may be 9V or 12V, and may be specifically set according to a type of the charging box, which is not limited herein. An electric control board is further arranged in the box body, the charging module 110, the processor, the memory and the like are arranged on the electric control board, and the storage battery and the processor can be electrically connected through a flexible circuit board. The shape and size of the accommodating cavity in the box body can be matched with a storage battery, an electric control board, an earphone and the like which are placed in the box body, and the accommodating cavity can be in a circular shape, a square shape and the like, and the shape and size are not limited. The material of the box body can be selected from light and insulating materials. Or in some embodiments, a pairing control switch, a charging switch, or a touch switch, such as a touch screen, may be further disposed on the lower case of the charging box, the pairing control switch may implement pairing connection between the wireless headset and the mobile terminal, and the charging switch is electrically connected to the electronic control board, so as to control the battery to charge the wireless headset or stop charging when receiving a charging switch signal input by the user.
Referring to fig. 6 and 9, the present invention also proposes a communication method, including:
step S210, when the communication mode of the wireless earphone is in a carrier communication mode, determining the current state of the wireless earphone;
in this embodiment, the charging box and the wireless headset may communicate with each other through a single bus, that is, the wireless headset and the charging box may communicate with each other and be charged through a single bus. Can compatible carrier communication and serial communication between box and the wireless earphone of charging, can specifically be at practical application's communication process, according to the size of communication data, select corresponding communication mode, specifically speaking, when the data bulk size of communication, when less, can adopt the carrier communication mode that the limit communication was simultaneously charged, when the data bulk is great, need use uart half-duplex communication, also be serial communication, the communication between box and the wireless earphone of preferentially realizing charging this moment, can not compatible simultaneously charge. It can be understood that the carrier reference voltage of the carrier communication is output by the charging box, and as shown in fig. 1, the charging box is a charging block diagram of the charging box, the charging module of the charging box itself 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 headset is switched from uart half-duplex communication to carrier communication, the voltage (voltage and current) (R1+ R2+ R3)) loss on the charging line is increased along with the increase of the charging current of the headset, so that the voltage on the single bus is unstable, the carrier communication is interfered, and the communication failure occurs. Since carrier communication is based on a reference voltage and data to be transmitted is loaded, the communication is less susceptible to interference when the voltage at the time of data transmission is higher than the reference voltage. As the battery voltage is closer to the charging voltage, the charging efficiency is higher, so that the general carrier communication dynamically adjusts the reference voltage of the carrier according to the battery voltage of the headset. Based on the above, when the battery voltage rises, the reference voltage on the carrier wave rises, so that the voltage difference between the reference voltage of the carrier wave communication and the voltage of the data transmission becomes smaller and smaller, and the probability that the carrier wave communication receives interference is higher along with the rise of the battery voltage, which is not favorable for the carrier wave communication. Based on this, when performing carrier communication, the present embodiment first obtains the current charging current of the wireless headset. Wherein, the acquisition of the current charging current can be realized by a current detection circuit.
Step S220, when the current state of the wireless earphone is in a charging state, adjusting the charging current of the wireless earphone to a preset current;
in this embodiment, the predetermined current may be set to a constant value or a dynamic value, and the predetermined current may be set to a value that does not affect carrier communication and satisfies charging efficiency. Specifically, a threshold I of the charging current, that is, a predetermined current, may be set in the wireless headset, and when the charging current is higher than the predetermined current, it is determined that carrier communication is affected. At this time, the charging current can be adjusted to a predetermined current, and in 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.
And step S230, transmitting the data to be transmitted to the charging box through the single bus, and/or receiving the data to be transmitted by the charging box.
In this embodiment, after the charging current is adjusted to the predetermined current, the wireless headset may send the data to be transmitted to the charging box through the single bus, or receive the data transmitted from the charging box. After the wireless earphone completes carrier communication, the current earphone electric quantity information of the wireless earphone can be obtained according to the electric quantity meter, the charging stage of the wireless earphone, such as a certain stage of constant voltage charging, constant current charging, trickle charging and the like, is determined according to the current earphone electric quantity information, and the preset current is adjusted back to the charging current required by the current charging stage according to the charging current required by the stage.
According to the invention, by dynamically adjusting the wireless charging current, the problem that the single-bus communication is interfered due to overlarge charging current when the serial port communication state is switched to the carrier communication state can be solved, and the improvement of the single-bus communication stability between the wireless earphone and the charging box is facilitated.
Referring to fig. 7 and 9, in an 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:
step S240, acquiring communication requirements of the wireless earphone;
step S250, when the communication mode including carrier communication and serial port communication is determined according to the communication requirement, the communication mode of the wireless earphone is set to be the serial port communication mode, and the data to be transmitted is transmitted to the charging box through a single bus;
step S260, the communication mode of the wireless headset is set to the carrier communication mode, and step S210 and the following steps are performed.
It is understood that only carrier communication or only serial communication may be required during communication between the charging box and the wireless headset, but in some application scenarios, such as testing the wireless headset, both carrier communication and serial communication may be required. At this time, according to a predetermined sequence, the communication chip in the charging box is controlled to switch the communication mode to serial communication, and the communication chip in the earphone is also controlled to set the communication mode to serial communication, so that under the condition that the charging box and the wireless earphone are in the same communication mode, the data to be transmitted is transmitted to the wireless earphone through the single bus, or the transmitted data to be transmitted is received through the single bus wireless earphone. After data transmission in the serial port communication mode is completed, the communication chip in the charging box is controlled to set the communication mode to carrier communication, and meanwhile the communication chip in the earphone is controlled to set the communication mode to carrier communication, so that under the condition that the charging box and the wireless earphone are in the same communication mode, data to be transmitted are transmitted to the wireless earphone through a single bus, or the transmitted data to be transmitted are received through the single bus wireless earphone.
Of course, in other embodiments, the charging box and the wireless earphone may also be controlled to be in a carrier communication mode, and after data transmission is completed, the charging box and the wireless earphone are controlled to be in a serial communication mode to complete data transmission, thereby meeting application requirements for simultaneous carrier communication and serial communication.
Referring to fig. 8 and 9, in an 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 the charging state, the communication method further includes:
step S270, when the data to be transmitted is received, timing is started;
step S280, when the timing reaches a first preset time length and the data to be transmitted is not received again, the carrier reference voltage is adjusted to be the initial reference voltage.
It can be understood that, when the actual charging current is larger than the predetermined current, in order to ensure the stability of the carrier communication, after the charging current is set to the predetermined current, the charging efficiency of the charging box on the wireless headset may be affected, and in the process of the communication between the charging box and the wireless headset, a certain interval may exist between data transmissions, in order to reduce the influence of the communication between the charging box and the wireless headset on the charging of the wireless headset, this embodiment may further set a timer in the wireless headset, when the wireless headset receives data sent by the charging box, or the wireless headset receives data sent to the charging box, the charging current is set to the predetermined current first, and at the same time, the timer is started, and if the timing reaches the first preset time period, data is sent from the charging box end and/or the wireless headset sends data to the charging box again, the timing is restarted, and if no data are sent from the charging box and/or the wireless earphone does not send data to the charging box within the first preset time, switching the charging current to a corresponding current value in the actual charging stage. In addition, the wireless headset needs to undergo stages of pre-charging, constant-current charging, constant-voltage charging and the like, the charging currents configured in different charging stages are often different, and the charging current can be adjusted in real time according to the current charging stage.
The invention also proposes a wireless headset comprising a processor, a memory and a communication program stored on the memory and executable on the processor, wherein the communication program, when executed by the processor, implements the steps of the communication method as described above.
In this embodiment, the Wireless headset may be a bluetooth headset, a TWS headset (True Wireless headset), or an infrared headset. The battery 220 assembly in the wireless headset is used to power the electrical load in the headset, which may be a speaker, microphone, indicator light, micro-motor, etc. The battery 220 assembly includes a battery 220 for storing electric energy, and a charging chip 210 for converting the power supply outputted from the charging box into the electric energy stored in the battery 220. The input terminal of the charging chip 210 may be connected to the charging box through an electrical connector, and the output terminal of the charging chip 210 is connected to the battery 220. The charging chip 210 is controlled by the processor, and is configured to convert an accessed power source, output the converted power source to the battery 220, and store the converted power source. The range of the stored electric energy of the battery 220 can be set to 3.5-4.3V, and the electric energy storage can be realized by adopting a dry battery 220, a lithium ion storage battery 220, a nickel-hydrogen battery 220 and other rechargeable batteries 220.
The present invention also provides a communication system, comprising:
a charging box as described above and a wireless headset as described above. The detailed structure of the charging box and the wireless earphone can refer to the above embodiments, and the detailed description is omitted here; it can be understood that, because the charging box and the wireless headset are used in the inventive communication system, the embodiment of the inventive communication system includes all technical solutions of all embodiments of the charging box and the wireless headset, and the achieved technical effects are also completely the same, and are not described herein again.
The above description is only an alternative embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (11)

1. A communication method, characterized in that the communication method comprises:
when the communication mode of the charging box is in a carrier communication mode, acquiring initial carrier reference voltage of the charging box;
when the initial carrier reference voltage is greater than a preset carrier reference voltage, adjusting the carrier reference voltage of the charging box from the initial carrier reference voltage to a preset carrier reference voltage;
and transmitting the data to be transmitted to the wireless earphone through the single bus and/or receiving the data to be transmitted by the wireless earphone.
2. The communication method according to claim 1, wherein after the step of acquiring 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 comprises:
when the current state of the charging box is in a power supply state, a current adjusting instruction is output to the wireless earphone so as to control the wireless earphone to adjust the charging current to be the preset current, and the data to be transmitted is transmitted to the charging box through the single bus and/or the data to be transmitted by the charging box is received.
3. The communication method according to claim 1, wherein after the step of acquiring 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 comprises:
and when the carrier reference voltage of the charging box is less than or equal to the preset carrier reference voltage, taking the initial carrier reference voltage of the charging box as the carrier reference voltage of the charging box.
4. The communication method of claim 1, wherein prior to the step of determining the current state of the charging box when the communication mode of the charging box with the wireless headset is in a carrier communication mode, the communication method further comprises:
acquiring a communication demand;
setting a communication mode of the charging box to a carrier communication mode when it is determined that the communication demand includes carrier communication.
5. The communication method of claim 4, wherein after the step of obtaining a communication requirement, the communication method further comprises:
when the communication mode is determined to comprise carrier communication and serial port communication, the communication mode of the charging box is set to be the serial port communication mode, and data to be transmitted is transmitted to the wireless earphone through the single bus and/or the data to be transmitted by the wireless earphone is received;
the communication mode of the charging box is set to a carrier communication mode.
6. A charging box comprising a processor, a memory, and a communication program stored on the memory and executable on the processor, wherein the communication program when executed by the processor implements the steps of the communication method of any one of claims 1 to 5.
7. A communication method, characterized in that the communication method comprises:
when the communication mode of the wireless earphone is in a carrier communication mode, acquiring the charging current of the wireless earphone;
when the charging current is larger than a preset current, adjusting the charging current of the wireless earphone to the preset current;
and transmitting the data to be transmitted to the charging box through the single bus, and/or receiving the data to be transmitted by the charging box.
8. The communication method of claim 7, wherein the communication method further comprises:
acquiring the communication requirement of the wireless earphone;
when the communication requirement of the wireless earphone is determined to comprise carrier communication and serial port communication, setting the communication mode of the wireless earphone to be a serial port communication mode, and transmitting data to be transmitted to a charging box and/or receiving the data to be transmitted by the charging box through a single bus; and the number of the first and second groups,
the communication mode of the wireless headset is set to a carrier communication mode.
9. The communication method of claim 7, wherein 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 comprises:
when receiving data to be transmitted, starting timing;
and when the timing reaches a first preset time length and the data to be transmitted is not received again, adjusting the charging current to be the current charging current.
10. A wireless headset comprising a processor, a memory and a communication program stored on the memory and executable on the processor, wherein the communication program when executed by the processor implements the steps of the communication method according to any one of claims 7 to 9.
11. A communication system, comprising:
the charging box of claim 6 and the wireless headset of claim 10.
CN202111372951.8A 2021-11-18 2021-11-18 Communication method, charging box, wireless earphone and communication system Pending CN114125629A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111372951.8A CN114125629A (en) 2021-11-18 2021-11-18 Communication method, charging box, wireless earphone and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111372951.8A CN114125629A (en) 2021-11-18 2021-11-18 Communication method, charging box, wireless earphone and communication system

Publications (1)

Publication Number Publication Date
CN114125629A true CN114125629A (en) 2022-03-01

Family

ID=80396427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111372951.8A Pending CN114125629A (en) 2021-11-18 2021-11-18 Communication method, charging box, wireless earphone and communication system

Country Status (1)

Country Link
CN (1) CN114125629A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1722593A1 (en) * 2005-05-13 2006-11-15 Partner Tech Corp. Multifunction audio wireless transmission device and wireless earphone
CN111009974A (en) * 2019-12-27 2020-04-14 歌尔科技有限公司 Wireless charging system and wireless charging method
CN111031443A (en) * 2019-12-30 2020-04-17 歌尔股份有限公司 Earphone control method, earphone box, earphone and storage medium
US20200186909A1 (en) * 2018-12-06 2020-06-11 Realtek Semiconductor Corp. Wireless earphone and wireless earphone and charging box assembly
CN111697652A (en) * 2020-06-17 2020-09-22 歌尔科技有限公司 Charging box, wireless earphone and charging method of wireless earphone
CN112104945A (en) * 2020-09-30 2020-12-18 歌尔科技有限公司 Communication method, charging box, wireless earphone and computer storage medium
CN112954534A (en) * 2021-03-16 2021-06-11 上海物骐微电子有限公司 Fully-integrated multifunctional charging pin control circuit and wireless earphone

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1722593A1 (en) * 2005-05-13 2006-11-15 Partner Tech Corp. Multifunction audio wireless transmission device and wireless earphone
US20200186909A1 (en) * 2018-12-06 2020-06-11 Realtek Semiconductor Corp. Wireless earphone and wireless earphone and charging box assembly
CN111009974A (en) * 2019-12-27 2020-04-14 歌尔科技有限公司 Wireless charging system and wireless charging method
CN111031443A (en) * 2019-12-30 2020-04-17 歌尔股份有限公司 Earphone control method, earphone box, earphone and storage medium
CN111697652A (en) * 2020-06-17 2020-09-22 歌尔科技有限公司 Charging box, wireless earphone and charging method of wireless earphone
CN112104945A (en) * 2020-09-30 2020-12-18 歌尔科技有限公司 Communication method, charging box, wireless earphone and computer storage medium
CN112954534A (en) * 2021-03-16 2021-06-11 上海物骐微电子有限公司 Fully-integrated multifunctional charging pin control circuit and wireless earphone

Similar Documents

Publication Publication Date Title
CN110994718B (en) Wireless earphone, charging box and wireless earphone charging system
CN110933549B (en) Wireless earphone, charging box and wireless earphone charging system
CN111697652B (en) Charging box, wireless earphone and charging method of wireless earphone
US8729867B2 (en) Sink current adaptation based on power supply detection
US11432070B2 (en) Electronic device, method, and system for converting digital audio signal received in wired or wireless manner into analog audio signal
CN111585617B (en) Wireless earphone, Bluetooth adapter for wireless earphone and signal processing method
CN110830868A (en) System and method for controlling earphone through charging bin
KR102315230B1 (en) ELECTRONIC DEVICE WITH USB Type-C CONNECTOR
CN114125629A (en) Communication method, charging box, wireless earphone and communication system
KR20220054108A (en) Method and electronic device for providing fast charging
US20220222063A1 (en) Portable device communicating with charger and operating method thereof
KR20210015467A (en) A wireless charging device communicating with an electronic device and a communication method of the wireless charging device
CN106899061B (en) Mobile terminal, charging device and charging method
CN206224302U (en) Panel computer and its shell
US11569674B2 (en) Electronic device and method for extending battery life
KR20230063088A (en) Apparatus and method for communication
US9496737B2 (en) Charge devices and charge systems
CN114503390A (en) Method for controlling charging of battery of electronic device and electronic device thereof
CN117096991B (en) Charging method, electronic equipment and readable storage medium
CN110784000A (en) Charging box
CN111372324A (en) Wireless data transmission control method and system and wireless charging equipment
CN213754883U (en) Earphone capable of being charged by mobile terminal
CN214673337U (en) Connector, dual-purpose line and connecting device
CN115955628B (en) Wireless charging method and device of Bluetooth headset and Bluetooth headset
CN210607486U (en) Battery integrating multiple power supply terminals

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