CN115665623B - Set synchronization method, TWS earphone and equipment system - Google Patents

Set synchronization method, TWS earphone and equipment system Download PDF

Info

Publication number
CN115665623B
CN115665623B CN202211340006.4A CN202211340006A CN115665623B CN 115665623 B CN115665623 B CN 115665623B CN 202211340006 A CN202211340006 A CN 202211340006A CN 115665623 B CN115665623 B CN 115665623B
Authority
CN
China
Prior art keywords
earphone
parameter
update
synchronization
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211340006.4A
Other languages
Chinese (zh)
Other versions
CN115665623A (en
Inventor
杨荣芝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211340006.4A priority Critical patent/CN115665623B/en
Publication of CN115665623A publication Critical patent/CN115665623A/en
Application granted granted Critical
Publication of CN115665623B publication Critical patent/CN115665623B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Headphones And Earphones (AREA)
  • Telephone Function (AREA)

Abstract

A set synchronization method, TWS earphone and equipment system relate to the technical field of terminals. The method comprises the following steps: when the update parameter of the first earphone is a first parameter value and the time stamp parameter of the first earphone is smaller than the time stamp parameter of the second earphone, the first earphone performs set synchronization according to the synchronization information sent by the second earphone; or when the updating parameter of the first earphone is the second parameter value, the first earphone performs set synchronization according to the synchronization information sent by the second earphone; the first parameter value represents the update of setting when the earphone is used as the main earphone, and the second parameter value represents the synchronization that the earphone is not used as the main earphone for setting; the time stamp parameter is the time when the earphone acquires the update information sent by the electronic equipment, or the time stamp parameter is the time when the earphone performs setting update according to the update information sent by the electronic equipment; otherwise, the first earphone does not perform the set synchronization. The method can avoid synchronization failure caused by discontinuous connection or communication abnormality of the earphone.

Description

Set synchronization method, TWS earphone and equipment system
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a set synchronization method, a TWS headset, and an equipment system.
Background
Current truly wireless stereo (True Wireless Stereo, TWS) headphones generally include a left headphone and a right headphone, one of which may act as a master headphone and the other as a slave headphone. The master earphone may switch between the two earphones. The TWS earphone can be in wireless connection with electronic devices such as a mobile phone and a tablet personal computer, taking the case that the TWS earphone is in wireless connection with the mobile phone as an example, a user can perform custom setting on some functions of the earphone through a matched mobile phone application program (app), for example, a double-click function is set to play music or wake up a voice assistant, and the function setting needs to be received by a master ear and synchronized with a slave earphone under the condition that the mobile phone is in bluetooth connection with the TWS earphone, so that the function can still be correctly used after the master earphone is switched.
However, in the above scenario, since synchronization to the slave earphone is required for the master earphone function setting, the synchronization process may fail due to disconnection of two earphones or communication abnormality. After the synchronization failure, when the main earphone is switched, the previous function setting is covered by the new function setting, so that the previous function setting is lost, and the use experience of a user is reduced.
Disclosure of Invention
In order to solve the technical problems in the prior art, the application provides a set synchronization method, TWS earphone and equipment system, which can avoid the failure of set synchronization caused by discontinuous connection or abnormal communication of the earphone and improve the use experience of users.
In a first aspect, the present application provides a set synchronization method, which is applied to a TWS headset, including: when the update parameter of the first earphone is a first parameter value and the time stamp parameter of the first earphone is smaller than the time stamp parameter of the second earphone, the first earphone performs set synchronization according to the synchronization information sent by the second earphone; or when the updating parameter of the first earphone is a second parameter value, the first earphone performs set synchronization according to the synchronization information sent by the second earphone; the first parameter value represents that the earphone is updated when being used as a main earphone, and the second parameter value represents that the earphone is not used as the main earphone for setting synchronization; the time stamp parameter is the time when the earphone acquires the update information sent by the electronic equipment, or the time stamp parameter is the time when the earphone performs setting update according to the update information sent by the electronic equipment; otherwise, the first earphone does not perform the set synchronization.
The method cancels the strategy of directly setting the main earphone as a synchronization standard, but adds the update parameter and the timestamp parameter as the basis of synchronization update, further judges whether the earphone needs to perform synchronization or discard the synchronization information sent to the ear, and when the update parameter of the first earphone is a first parameter value and the timestamp parameter of the first earphone is smaller than the timestamp parameter of the second earphone, the method characterizes that the first earphone is set and updated before the second earphone, namely the setting and updating time of the second earphone is earlier than the setting and updating time of the second earphone, namely the setting and updating of the second earphone is the latest setting and updating, thereby being more in line with the use expectations of users, and performing the setting and the synchronization according to the synchronization information sent by the second earphone. And when the update parameter of the first earphone is the second parameter value, the first earphone is characterized in that the first earphone is not used as the main earphone for setting update at the moment, and the synchronization of setting is needed by utilizing the synchronization information sent by the second earphone. In sum, this scheme avoids the new setting when user's single earphone uses to resume the condition that double earphone used the inefficacy again to and avoid the user to newly set up the condition that leads to synchronous inefficacy because of double earphone communication is unusual, promoted user's use experience.
In one possible implementation manner, when the first earphone is wirelessly connected with the second earphone and the first earphone is a master earphone and the second earphone is a slave earphone, the first earphone performs synchronization according to synchronization information sent by the second earphone when its own update parameter is a first parameter value and its own timestamp parameter is smaller than that of the second earphone, and specifically includes:
the first earphone sends first synchronization information to the second earphone, wherein the first synchronization information comprises the main update information and the main timestamp parameter;
the first earphone receives second synchronous information sent by the second earphone, wherein the second synchronous information comprises updated information of the slave earphone and a time stamp parameter of the slave earphone;
and when the update parameter of the first earphone is a first parameter value and the time stamp parameter of the first earphone is smaller than the time stamp parameter of the second earphone, the first earphone performs set synchronization according to the update information of the slave earphone in the second synchronization information.
In one possible implementation manner, when the first earphone is wirelessly connected with the second earphone, and the first earphone is a master earphone, and the second earphone is a slave earphone, when an update parameter of the first earphone is a second parameter value, the first earphone performs set synchronization update according to synchronization information sent by the second earphone, which specifically includes:
The first earphone sends first synchronization information to the second earphone, wherein the first synchronization information comprises update information of the main earphone and a time stamp parameter of the main earphone;
the first earphone receives second synchronous information sent by the second earphone, wherein the second synchronous information comprises updated information of the slave earphone and a time stamp parameter of the slave earphone;
and when the update parameter of the first earphone is a second parameter value, the first earphone performs set synchronization according to the update information of the slave earphone in the second synchronization information.
In one possible implementation, when the first earphone determines that the connection with the second earphone is interrupted before the first earphone sends the first synchronization information to the second earphone, the method further includes:
when the first earphone and the second earphone are restored to be connected, the first earphone sends first synchronous information to the second earphone, and the first earphone receives second synchronous information sent by the second earphone.
In one possible implementation, before the first earphone sends the first synchronization information to the second earphone, the method further includes:
The first earphone receives update information sent by the electronic equipment;
the first earphone sets the self updating parameter as the first parameter value and updates the self time stamp parameter;
and the first earphone performs setting updating according to the updating information.
In one possible implementation, when the first earphone is wirelessly connected with the electronic device as a master earphone and the first earphone is not wirelessly connected with the second earphone, the method further includes:
the first earphone receives update information sent by the electronic equipment;
the first earphone sets the self updating parameter as the first parameter value and updates the self time stamp parameter;
and the first earphone performs setting updating according to the updating information.
In one possible implementation manner, after the first earphone is used as a master earphone to establish a wireless connection with the second earphone, the method further includes:
the first earphone sends the first synchronization information to the second earphone;
the first earphone receives the second synchronization information sent by the second earphone.
In one possible implementation manner, when the first earphone and the second earphone establish a wireless connection, and the second earphone is a master earphone, the method further includes:
The first earphone sends the second synchronous information to the second earphone;
the first earphone receives the first synchronization information sent by the second earphone.
In a possible implementation manner, the first synchronization information further includes an update parameter of the master earphone, and the second synchronization information further includes an update parameter of the slave earphone.
In one possible implementation, the TWS headset further includes a headset case for connecting with the electronic device;
the time stamp parameter is specifically a system time of the earphone box when the earphone itself obtains update information sent by the electronic equipment; or, the time stamp parameter is specifically a system time of the earphone box when the earphone performs setting update according to the update information sent by the electronic device.
In order to ensure the accuracy of the system time stamp and prevent the inaccurate time stamp after the earphone is turned off and restarted, the time stamp is needed to be synchronized based on the earphone box, namely, the time recorded in the time stamp parameter is the time of the earphone box when the update information is received. This is because the earphone box is on-line for a long period of time with respect to the earphone, for example, wireless connection with the electronic apparatus is long period of time. The time stamp of the earphone box is more accurate, and compared with an earphone, the earphone box has less shutdown times and less time stamp resetting times.
In a second aspect, the present application further provides a TWS headset, where the TWS headset includes a first headset and a second headset, where the first headset includes a first processor, where the first processor is configured to run a program, where the program runs to implement the set synchronization method according to any one of the foregoing first aspect and the intra-aging modes of the first aspect; the second earphone includes a second processor, where the second processor is configured to run a program, where the program runs to implement the method for setting synchronization in any of the foregoing first aspect and the intra-aging modes of the first aspect.
In summary, by using the TWS earphone, the situation that the new setting of the user when the single earphone is used is recovering the use failure of the double earphone again is avoided, and the situation that the synchronization failure is caused by the abnormal communication of the double earphone due to the new setting of the user is avoided, so that the use experience of the user is improved.
In a third aspect, the present application further provides a device system, including the earphone provided in the above implementation manner, and further including an electronic device. The electronic device is wirelessly connected with a main earphone in the earphone. Such as making a bluetooth connection. The electronic device is configured to run an application program for updating settings of the TWS headset in response to a user operation.
Drawings
Fig. 1A is a schematic diagram of an application scenario of a TWS headset;
fig. 1B is a schematic structural diagram of a TWS earphone according to the present application;
FIG. 2 is a flow chart of a function setup of a TWS headset;
fig. 3 is a flowchart of a method for synchronizing earphone settings according to an embodiment of the present application;
fig. 4 is a flowchart of another synchronization method for earphone setting according to an embodiment of the present application;
fig. 5 is a flowchart of another synchronization method for earphone setting according to an embodiment of the present application;
fig. 6 is a flowchart of a synchronization method of still another earphone setting according to an embodiment of the present application;
fig. 7 is a flowchart of another synchronization method for earphone setting according to an embodiment of the present application;
fig. 8 is a schematic diagram of an apparatus system according to an embodiment of the present application.
Detailed Description
In order to make the person skilled in the art more clearly understand the solution of the present application, the following first describes an application scenario of the solution of the present application.
Referring to fig. 1A, the application scenario of a TWS earphone is shown.
The TWS earphone includes a left earphone 21 and a right earphone 22, which are received and charged by the earphone box 10. The left earphone 21 and the right earphone 22 include a power receiving terminal 201 thereon, and the earphone box 10 includes a charging terminal 11 thereon, and when the earphone is placed in the earphone box 10 and the battery power of the earphone box 10 is not exhausted, the earphone box 10 charges the earphone after the charging terminal 11 contacts with the power receiving terminal 201.
The earphone box 10 may be provided with a charging interface (not shown in fig. 1A), the earphone box 10 is connected with an adapter through a cable plugged into the charging interface, and after the adapter is connected with a power supply, the earphone box 10 can be charged, so that a battery of the earphone box 10 has a certain electric quantity. When the earphone case 10 is disconnected from the adapter, the earphone case 10 may transfer electric power supplied from its own battery to the earphone.
In addition, the earphone box 10 may be wirelessly charged in a wireless charging manner, that is, the adapter does not need to be directly connected to the earphone box 10, and at this time, the adapter may be connected to a wireless charging device (for example, a wireless charging base) matched with the earphone box 10, so as to wirelessly charge the earphone box 10 through the wireless charging device.
The types of the charging terminal 11 and the power receiving terminal 201 are not limited in the present application, and for example, the charging terminal may be a USB interface, a pogo pin (also called a spring connector or a spring pin connector), a metal spring plate, or made of other materials capable of conducting electricity. It is understood that the power receiving terminal is generally the same type as the charging terminal.
One of the left and right earphones of the TWS may act as a master earphone and the other as a slave earphone. The master earphone may switch between the two earphones. The TWS headset may establish a Bluetooth (Bluetooth) wireless connection with the electronic devices such as tablet 31, cell phone 32, and notebook 33 shown in FIG. 1A.
Referring to fig. 1B, the structure of the TWS earphone provided by the application is schematically shown.
Each of the TWS headphones may include: a power receiving terminal 201, a battery 202, a processor 203, a wireless communication module 204, a receiver 205, a microphone 206, a sensor module 207, a memory 208, an indicator lamp 209, and the like. Wherein the sensor module 207 may include one or more of a pressure sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
It will be appreciated that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the headset. In other embodiments of the application, the headset may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components may be provided. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The memory 208 may be used to store application code, for example, for establishing a bluetooth connection with another headset and for pairing the headset with an electronic device. The processor 203 is configured to control execution of the above application program codes.
The powered terminal 201 is used to charge the battery 202, and the battery 202 is used to power the processor 203, the wireless communication module 204, the receiver 205, the microphone 206, the sensor module 207, the memory 208, the indicator light 209, and the like.
The processor 203 includes one or more processing units, such as: the processor 203 may include a modem processor, a controller, and the like. Wherein the different processing units may be separate devices or may be integrated in one or more processors. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
In some embodiments, the processor 203 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, and the like.
Memory 208 is a cache. The memory may hold instructions or data that has just been used or recycled by the processor 203. If the processor 203 needs to reuse the instruction or data, it can be called directly from the memory 208. Repeated accesses are avoided and the latency of the processor 203 is reduced, thus improving the efficiency of the system.
The memory 208 may also store therein a bluetooth address for uniquely identifying itself, as well as a bluetooth address of another headset. In addition, the memory 208 may also store connection data of the electronic device that has established a connection with itself, where the connection data may include, but is not limited to, a bluetooth address, a model number, an identification name, etc. of the electronic device. Based on the connection data, the earphone can be automatically paired with the electronic device without repeatedly configuring the connection with the electronic device, such as performing verification of validity, or the like. The bluetooth address may be a media access control (media access control, MAC) address.
The headset may implement wireless communication functions through the wireless communication module 204. In some embodiments, the wireless communication module 204 is a bluetooth module for bluetooth connection with another headset and an electronic device.
The sensor module 207 may include a distance sensor or a proximity light sensor. The processor 203 may determine whether the headset is removed from the headset box or worn based on the sampled data from the distance sensor or the proximity sensor.
For example, the processor 203 of the headset may utilize the proximity light sensor to detect whether there is an object in the vicinity of the headset. The proximity light sensor may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. Infrared light is emitted outward by the light emitting diode, and infrared reflected light from a nearby object is detected using the photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the headset. When insufficient reflected light is detected, it can be determined that there is no object in the vicinity of the headset.
The ambient light sensor is used for sensing ambient light brightness. The processor 203 may determine whether the earphone has been removed from the earphone box based on the perceived ambient light level.
The bone conduction sensor may acquire a vibration signal. In some embodiments, the bone conduction sensor may acquire a vibration signal of the human vocal tract vibrating the bone pieces. The processor 203 may analyze the voice signal based on the vibration signal obtained by the bone conduction sensor, so as to implement a control function corresponding to the voice signal.
The pressure sensor is used for sensing a pressure signal and can convert the pressure signal into an electric signal. Pressure sensors are of many kinds, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. When a force is applied to the pressure sensor, the capacitance between the electrodes changes. The processor 203 may determine the strength of the pressure from the change in capacitance. When a touch operation is applied to the earphone, the processor 203 detects the touch operation intensity from the pressure sensor. The processor 203 may also calculate the location of the touch based on the detection signal of the pressure sensor. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: when the touch operation intensity is smaller than the first pressure threshold value, the touch operation acts on adjusting the volume of the earphone. When the touch operation intensity is larger than or equal to the first pressure threshold value, the touch operation acts on the pause of playing the audio or the pause is ended.
The magnetic sensor includes a hall sensor. The processor 203 may detect the opening and closing of the earphone box by using the magnetic sensor, and further determine or assist in verifying whether the earphone is taken out from the earphone box according to the detected opening and closing state of the earphone box.
The fingerprint sensor is used for collecting fingerprints. The processor 203 can utilize the collected fingerprint characteristics to identify the identity of the user, so as to realize the functions of fingerprint unlocking, fingerprint incoming call answering and the like.
A receiver 205, also called a "earpiece", is used to convert the audio electrical signal into a sound signal. When the earphone is used as an audio output device of the electronic device, the receiver 205 on the earphone can convert the audio electric signal into a sound signal for playing when receiving a call or voice information.
Microphone 206, also known as a "microphone," is used to convert sound signals into electrical signals. When making a call or sending voice information, the user may pass a sound signal to the microphone 206 by speaking. At least one microphone 206 may be provided on the headset.
The indicator lamp 209 may be an LED or the like, and may be used to indicate a state of charge, a change in power, an indication message, a missed call, a notification, or the like.
The following specifically describes the function setting steps of the current TWS earphone with reference to the accompanying drawings.
Referring to fig. 2, a flowchart of a function setting of a TWS headset is shown.
The process comprises the following steps:
s11: opening the earphone box, and taking out the TWS earphone.
S12: a connection is established between the master earphone and the slave earphone.
After taking out the earphone, determining a master earphone and a slave earphone, and establishing Bluetooth connection between the two earphones.
In one possible implementation, the TWS headset may be configured such that the headset that is first removed from the headset box is the master headset and the headset that is later removed from the headset box is the slave headset.
In another possible implementation, the TWS headset may be configured such that the headset worn by the user is the master headset and the headset worn by the user is the slave headset.
In yet another possible implementation manner, in order to bring a better use experience to the user, the master earphone and the slave earphone may also be determined according to the real-time residual power of the two earphones, for example, the earphone with the highest residual power value being worn is taken as the master earphone, and the earphone with the lowest residual power value being worn is taken as the slave earphone.
In yet another possible implementation, the TWS headset may be configured to: the earphone which triggers the first control operation by the user is detected to be used as a master earphone, and the other earphone is used as a slave earphone. The first control operation is an operation performed by the user on the earphone, and the embodiment of the application is not limited specifically, for example, the first control operation is a long-press on the sensing surface of the earphone.
It should be understood that the foregoing description is merely illustrative of the manner of determining the master earphone, and is not meant to limit the technical solution of the present application, and that other manners of determining the master earphone may be adopted in practical applications.
S13: the master earphone synchronizes the current function settings to the slave earphone.
The function setting may include a shortcut operation function, which is related to a specific application of the electronic device, and embodiments of the present application are not particularly limited, and are exemplified as follows.
For example, the double-click function is set to play music or wake up a voice assistant, the finger slides upward on the earphone sensing surface to set up the earphone volume, the finger slides downward on the earphone sensing surface to set up the earphone volume, and so on.
S14: the main earphone establishes a Bluetooth connection with the electronic device.
After the Bluetooth connection is established between the master earphone and the electronic device, the electronic device can receive the update of the function setting information, and the updated function setting information is synchronized to the slave earphone. And receiving the audio signals transmitted by the electronic equipment and transmitting the audio signals to the slave earphone through Bluetooth so that the two earphones can play the audio.
S15: the master earphone synchronizes the current function setting information to the APP of the electronic device.
S16: and updating the function setting through the APP.
The user may update the function settings through the APP on the electronic device, for example, by updating the operation corresponding to playing music or waking up the voice assistant from double-clicking to single-clicking.
S17: and the APP sends the updated information of the function setting to the master earphone.
S18: the master earphone updates its own function setting according to the update information.
S19: the master earphone synchronizes the updated function settings to the slave earphone.
Therefore, the function can still be used correctly after the main earphone is switched.
However, in the above scenario, since synchronization to the slave earphone is required for the master earphone function setting, the synchronization process may fail due to disconnection of two earphones or communication abnormality. After the synchronization failure, when the main earphone is switched, the previous function setting is covered by the new function setting, so that the previous function setting is lost, and the use experience of a user is reduced. A scenario that may lead to synchronization failure is specifically described below.
The function settings of the two headphones are indicated in the following description of the application in the form of (function settings ). Wherein the first function in brackets is set to the function setting of the master earphone and the second function is set to the function setting of the slave earphone.
Scene 1: the result after the master earphone and the slave earphone last completed the function setting synchronization is (a, a). The user only uses the left earphone as the main earphone, the right earphone as the auxiliary earphone is not taken out from the earphone box, or the auxiliary earphone is exhausted. At this time, no bluetooth connection is established between the master earphone and the slave earphone. The user updates the function setting of the master earphone to B through the APP, the slave earphone does not realize the update, and the function setting result desired by the user is (B, B). When the earphone is normally connected next time, the right earphone is switched to be the main earphone, the right earphone synchronizes the function setting of the left earphone, and the result after the function setting is synchronized is (A, A), which is not in accordance with the function setting result (B, B) expected when the user uses the earphone last time.
Scene 2: the result after the master earphone and the slave earphone last completed the function setting synchronization is (a, a). When the user uses the left earphone as the main earphone, the function setting of the main earphone is updated to B through the APP, but the function setting synchronization is unsuccessful due to the abnormal communication between the left earphone and the right earphone. The function setting result desired by the user is (B, B). When the earphone is normally connected next time, the right earphone is switched to be the main earphone, the right earphone synchronizes the function setting of the left earphone, and the result after the function setting is synchronized is (A, A), which is not in accordance with the function setting result (B, B) expected when the user uses the earphone last time.
Scene 3: the result after the master earphone and the slave earphone last completed the function setting synchronization is (a, a). When the user uses the earphone, the right earphone is used as the main earphone, and the left earphone is not taken out from the earphone box. At this time, no bluetooth connection is established between the master earphone and the slave earphone. The user updates the function setting of the master earphone to B through the APP, and the slave earphone does not realize the update. The user puts the right earphone into the box, takes out the left earphone to be used as the main earphone, updates the function setting of the left earphone to C, and the function setting result expected by the user is (C, C). When the earphone is normally connected next time, the right earphone is switched to be the main earphone, the right earphone synchronizes the function setting of the left earphone, and the result after the function setting is synchronized is (B, B), which is not in line with the function setting result (B, B) expected when the user uses the earphone last time.
In summary, the synchronization process of function setting between the two earphones may fail due to disconnection or abnormal communication between the two earphones. After the synchronization failure, when the main earphone is switched, the previous function setting is covered by the new function setting, so that the previous function setting is lost, and the use experience of a user is reduced.
In order to solve the above problems, the embodiments of the present application provide a set synchronization method, a TWS headset, and an apparatus system, which cancel a policy that a master headset is directly set as a synchronization standard, but increase update parameters and timestamp parameters as a basis for synchronization update, so as to determine whether the headset needs to perform synchronization or discard synchronization information sent to the ear, avoid a situation that a new setting of a user when using a single headset resumes use failure of the dual headset, and avoid a situation that the user newly sets synchronization failure due to communication abnormality of the dual headset, and improve use experience of the user.
In order to make the solution of the present application more clearly understood by those skilled in the art, the following description will describe the solution of the present application in connection with the accompanying drawings in the embodiments of the present application.
The words "first," "second," and the like in the description of the application are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implying a number of features in the art
In the present application, unless explicitly specified and limited otherwise, the term "connected" is to be construed broadly, and for example, "connected" may be either fixedly connected, detachably connected, or integrally formed; may be directly connected or indirectly connected through an intermediate medium.
Referring to fig. 3, a flowchart of a set synchronization method is provided in an embodiment of the present application.
The method is applied to a real wireless stereo TWS headset, wherein the TWS headset comprises a first headset and a second headset, one headset is a master headset, and the other headset is a slave headset. The master earphone may switch between the two earphones.
The method specifically comprises the following steps:
s21: the first earphone and the second earphone establish wireless connection and mutually transmit synchronous information.
The first parameter value represents the update of setting when the earphone is used as the main earphone, and the second parameter value represents the synchronization that the earphone is not used as the main earphone for setting.
S22: whether the updated parameter of the first earpiece itself is the second parameter value.
If not, indicating that the update parameter of the first earphone is the first parameter value, and executing S23; if yes, S24 is executed.
S23: whether the timestamp parameter of the first earpiece itself is smaller than the timestamp parameter of the second earpiece.
The time stamp parameter is the time when the earphone acquires the update information sent by the electronic equipment, or the time stamp parameter is the time when the earphone performs setting update according to the update information sent by the electronic equipment.
If not, executing S24; otherwise, S25 is performed.
S24: the first earphone performs set synchronization according to the synchronization information sent by the second earphone.
S25: the first earphone does not perform the synchronization of the setting.
When the update parameter of the first earphone is a first parameter value and the timestamp parameter of the first earphone is smaller than the timestamp parameter of the second earphone, the first earphone is characterized in that the setting update time is earlier than the setting update time of the second earphone although the first earphone is used as the main earphone, namely the setting update of the second earphone is the latest setting update, so that the method is more in line with the use expectations of users, and therefore the setting synchronization is carried out according to the synchronization information sent by the second earphone.
And when the update parameter of the first earphone is the second parameter value, the first earphone is characterized in that the first earphone is not used as the main earphone for setting update at the moment, and the synchronization of setting is needed by utilizing the synchronization information sent by the second earphone.
In sum, this scheme avoids the new setting when user's single earphone uses to resume the condition that double earphone used the inefficacy again to and avoid the user to newly set up the condition that leads to synchronous inefficacy because of double earphone communication is unusual, promoted user's use experience.
The following description is made in connection with specific implementations.
The following first describes a manner of implementing earphone setting synchronization when connection communication can be normally performed between the two earphones.
Referring to fig. 4, a flowchart of another synchronization method for earphone setting according to an embodiment of the present application is shown.
S31: and updating the function setting through the APP.
The user may update the function settings through the APP on the electronic device, for example, by updating the operation corresponding to playing music or waking up the voice assistant from double-clicking to single-clicking.
S32: and the APP sends the updated information of the function setting to the master earphone.
S33: and after receiving the update information, the main earphone modifies the update parameter into a first parameter value.
Wherein the first parameter value indicates that the function setting is updated by itself as the master earphone. The second parameter value indicates that no update of the function settings is made when itself is the master earphone. The first parameter value and the second parameter value are not particularly limited in the embodiment of the present application. For example, in some embodiments, the update parameter may be set to UINT8 changeFlag, the first parameter value is true, and the second parameter value is false. And setting the UINT8 changeFlag as true after the main earphone receives the update information, and setting the UINT8 changeFlag as false after the main earphone does not receive the update information.
The update parameter in the embodiment of the application is used for identifying whether the function setting is updated when the update parameter is taken as the main earphone.
S34: the master earphone sets a time stamp parameter according to the time when the update information is received.
In some embodiments, the timestamp parameter may be set to UINT32 changeTimestamp, which is used to document the time at which the update information was obtained.
S35: the master earphone updates its own function setting according to the update information.
S36: the master earphone transmits first synchronization information to the slave earphone.
The first synchronization information is used for indicating that the function setting is updated synchronously from the earphone, namely, the updating information carrying the function setting. The first synchronization information also carries a time stamp parameter of the master earphone. In other embodiments, the first synchronization information further carries updated parameters of the master earphone.
The message transmission between the master earphone and the slave earphone needs to add two fields of an update parameter and a timestamp parameter when the synchronous interface is set.
Because of the increased complexity in synchronizing information between the master earphone and the slave earphone under this mechanism, the method provided by the embodiment of the application can be set to be effective only for key user settings, i.e., can be set to be effective only for function settings. The function settings mainly include shortcut operation settings, and feature function settings. Wherein, the characteristic function setting includes double connection, intelligent wearing, etc.
In order to ensure the accuracy of the system time stamp and prevent the inaccurate time stamp after the earphone is turned off and restarted, the time stamp is needed to be synchronized based on the earphone box, namely, the time recorded in the time stamp parameter is the time of the earphone box when the update information is received. This is because the earphone box is on-line for a long period of time with respect to the earphone, for example, wireless connection with the electronic apparatus is long period of time. The time stamp of the earphone box is more accurate, and compared with an earphone, the earphone box has less shutdown times and less time stamp resetting times.
S37: the slave earphone determines that the own update parameter is a second parameter value, and the own time stamp parameter is smaller than the time stamp parameter of the master earphone, so that the synchronous update of the function setting is performed.
And the slave earphone determines the timestamp parameter of the master earphone at the moment according to the acquired first synchronization information.
The following cases exist from the earphone at this time:
first kind: the updated parameter of the slave earphone is a second parameter value, and the time stamp parameter of the slave earphone is smaller than the time stamp parameter of the master earphone.
When the update parameter of the slave earphone is the second parameter value, that is, the slave earphone is determined to not serve as the master earphone to update the setting parameter, further, the slave earphone is characterized to not serve as the master earphone to update the setting parameter before disconnecting from the master earphone last time. At this time, the slave earphone can perform synchronous update of the function setting according to the update information of the function setting carried in the first synchronous information.
When the self time stamp parameter of the slave earphone is smaller than that of the master earphone, the time of the last time of the update of the setting parameter of the slave earphone is represented, and the update of the setting parameter of the master earphone is needed to be synchronized at present before the time of the update of the setting parameter of the master earphone, at this time, the slave earphone can synchronously update the function setting according to the update information of the function setting carried in the first synchronization information.
Second kind: the update parameter of the slave earphone is a first parameter value, and the time stamp parameter of the slave earphone is smaller than that of the master earphone.
When the update parameter of the slave earphone is a first parameter value, namely, before the slave earphone is disconnected last time, the slave earphone is used as the master earphone to update the setting parameter. But this time switched by the master earphone to the slave earphone. When the self time stamp parameter of the slave earphone is smaller than that of the master earphone, the time of the last time of the update of the setting parameter of the slave earphone is represented, and the update of the setting parameter of the master earphone is needed to be synchronized at present before the time of the update of the setting parameter of the master earphone, at this time, the slave earphone can synchronously update the function setting according to the update information of the function setting carried in the first synchronization information.
In summary, from the earphone: the self updating parameter is a second parameter value, or when the self updating parameter is a first parameter value and the time stamp parameter of the slave earphone is smaller than the time stamp parameter of the master earphone, the slave earphone can control the self to realize synchronous updating of the function setting.
The above setting mode adopted by the application is not affected by switching the single earphone use scene into the double earphone use scene and the disconnection of the ears in the double earphone setting synchronization process, and is specifically described below.
The specific flow when the single-earphone use scene is switched to the double-earphone use scene is first described below.
Referring to fig. 5, a flowchart of a synchronization method of still another earphone setting according to an embodiment of the present application is shown.
S41: opening the earphone box, and taking out one earphone to be used as a main earphone.
S42: the main earphone establishes a Bluetooth connection with the electronic device.
S43: and updating the function setting through the APP.
S44: and the APP sends the updated information of the function setting to the master earphone.
S45: the update parameter is modified to a first parameter value and a time stamp parameter is set according to the time at which the update information was received.
S46: the master earphone updates its own function setting according to the update information.
At this time, since the single earphone is used, the slave earphone is not connected to the master earphone, and thus, the master earphone is not required to synchronize the function setting with the slave earphone.
S47: and after the main earphone is used, putting the main earphone into an earphone box.
S48: opening the earphone box, and taking out the TWS earphone.
S49: and the master earphone and the slave earphone are connected and mutually send synchronous information.
Specifically, the master earphone sends first synchronization information to the slave earphone, where the first synchronization information is used to instruct the master earphone to update the function setting synchronously, that is, to carry the update information of the function setting. The first synchronization information also carries a time stamp parameter of the master earphone. In other embodiments, the first synchronization information further carries updated parameters of the master earphone.
And sending second synchronous information to the master earphone from the slave earphone, wherein the second synchronous information is used for indicating the slave earphone to synchronously update the function setting, namely carrying the update information of the function setting. The second synchronization information also carries a time stamp parameter of the slave earphone. In other embodiments, the second synchronization information further carries updated parameters of the slave earphone.
After taking out the earphone, determining a master earphone and a slave earphone, and establishing Bluetooth connection between the two earphones.
For any earphone, the conditions for setting update synchronization are: when the own update parameter is the second parameter value, synchronously setting up the update; or when the self updating parameter is the first parameter value and the self time stamp parameter is smaller than the time stamp parameter of the other earphone, the synchronous setting is updated. Otherwise, the synchronous setting is not updated.
At this time, the following two cases may occur:
first kind: the main earphone after reconnection of the dual earphone is the same earphone as the main earphone in the previous single earphone use processes S41-S47, for example, both the main earphone and the main earphone are left earphones. At this point, reference is continued to the subsequent step shown in FIG. 5.
S410a: the master earphone determines that the own update parameter is a first parameter value, the own time stamp parameter is larger than the time stamp parameter of the slave earphone, and the set synchronous update is not carried out.
S410b: and determining the update parameter of the earphone as a second parameter value from the earphone, and synchronously updating the function setting.
At this time, the two headphones synchronize the update settings to be the same as the update settings of the master headphones in the previous single-headphone use process S41-S47, conforming to the user' S desired setting results.
Second kind: the main earphone after reconnection of the dual earphone is different from the main earphone in the previous single earphone using process S41-S47, for example, the main earphone after reconnection of the dual earphone is a left earphone, and the main earphone in the single earphone using process S41-S47 is a earphone. The flow chart at this time is specifically shown in fig. 6.
S411a: the slave earphone determines that the own update parameter is a first parameter value, the own time stamp parameter is larger than the time stamp parameter of the master earphone, and the synchronous update of the function setting is not carried out.
S411b: and the main earphone determines the own updating parameter as a second parameter value and synchronously updates the function setting.
At this time, the two headphones synchronize the update settings to the same as the update settings of the master headphones in the previous single-headphone use process S41-S47, and also conform to the desired setting results of the user.
The following is illustrative:
assume that the initial function settings, update parameters, and time stamp parameters of the left and right headphones are respectively: (A, true, T1), (A, false, T1). The change process of the function setting in the above process is specifically as follows:
the left earphone is used as a single earphone: the user changes the function setting into B, the left earphone is set to (B, true, T2), the right earphone is set unchanged, and T2> T1;
after the user switches to the double-earphone for use:
for the first case: the left earphone is a master earphone, and the right earphone is a slave earphone.
At this time, the update parameter of the left earphone is true, the self setting is unchanged, the setting of the right earphone is updated to B, at this time, the setting of the left earphone is (B, true, T2), and the setting of the right earphone is (B, false, T2), which accords with the use expectations of the user.
For the second case: the left earphone is a slave earphone, and the right earphone is a master earphone.
At this time, the update parameter of the left earphone is true, the self setting is unchanged, the setting of the right earphone is updated to B, at this time, the setting of the left earphone is (B, true, T2), and the setting of the right earphone is (B, false, T2), which accords with the use expectations of the user.
It can be understood that in the above description, the update information carrying the function setting in the first synchronization information and the second synchronization information is taken as an example. In other embodiments, the first synchronization information and the second synchronization information may also carry all the function settings, not just the updated content of the function settings. The specific principle of synchronization is similar to that described above and will not be described again here.
In summary, by using the method provided by the embodiment of the application, when the single earphone use scene is switched to the double earphone use scene, the synchronous result of the function setting of the double earphone is always kept to be in line with the expected result of the user, and the use experience of the user is improved.
The following describes the synchronization flow when the connection is restored after the disconnection of the ear during the synchronization of the dual earphone setting.
Referring to fig. 7, a flowchart of another synchronization method for earphone setting according to an embodiment of the present application is shown.
S51: opening the earphone box, and taking out the TWS earphone.
S52: a bluetooth connection is established between the master earphone and the slave earphone.
After taking out the earphone, determining a master earphone and a slave earphone, and establishing Bluetooth connection between the two earphones.
S53: the master earphone synchronizes the current function settings to the slave earphone.
At this time, the connection between the two headphones is normal, so that the setting synchronization can be performed normally, and the specific setting synchronization method can be referred to the corresponding related description of fig. 3 to 6 in the present application, which is not repeated here.
S54: and the main earphone establishes Bluetooth connection with the electronic equipment and synchronizes the current function setting information to the APP.
S55: and updating the function setting through the APP.
S56: and the APP sends the updated information of the function setting to the master earphone.
S57: the update parameter is modified to a first parameter value and a time stamp parameter is set according to the time at which the update information was received.
S58: the master earphone updates its own function setting according to the update information.
S59: the master earphone and the slave earphone are disconnected, and update synchronization fails.
Reasons for disconnection include, but are not limited to, the slave earphone being depleted of power, the slave earphone being put into the earphone box or the slave earphone being physically too far from the master earphone causing an interruption of the information signal connection.
S510: and the master earphone and the slave earphone restore the Bluetooth connection and mutually send synchronous information.
Specifically, the master earphone sends first synchronization information to the slave earphone, where the first synchronization information is used to instruct the master earphone to update the function setting synchronously, that is, to carry the update information of the function setting. The first synchronization information also carries a time stamp parameter of the master earphone. In other embodiments, the first synchronization information further carries updated parameters of the master earphone.
And sending second synchronous information to the master earphone from the slave earphone, wherein the second synchronous information is used for indicating the slave earphone to synchronously update the function setting, namely carrying the update information of the function setting. The second synchronization information also carries a time stamp parameter of the slave earphone. In other embodiments, the second synchronization information further carries updated parameters of the slave earphone.
For any earphone, the conditions for setting update synchronization are: when the own update parameter is the second parameter value, synchronously setting up the update; or when the self updating parameter is the first parameter value and the self time stamp parameter is smaller than the time stamp parameter of the other earphone, the synchronous setting is updated. Otherwise, the synchronous setting is not updated.
S511a: the master earphone does not perform the synchronization update of the settings.
The master earphone determines a time stamp parameter of the slave earphone from the acquired second synchronization information.
The master earphone determines that the own update parameter is a first parameter value, the own time stamp parameter is larger than the time stamp parameter of the slave earphone, and the set synchronous update is not carried out.
S511b: and determining the update parameter of the earphone as a second parameter value from the earphone, and synchronously updating the function setting.
The following is illustrative:
assume that the initial function settings, update parameters, and time stamp parameters of the left and right headphones are respectively: (A, true, T1), (A, false, T1). The change process of the function setting in the above process is specifically as follows:
the user changes the function setting into B, the left earphone is set to (B, true, T2), the disconnection of the two ears leads to the failure of the synchronous setting, the setting of the right earphone is unchanged, and T2 is more than T1;
after the connection of the dual earphone is restored to normal: the left earphone is a master earphone, and the right earphone is a slave earphone.
At this time, the update parameter of the left earphone is true, the self setting is unchanged, the setting of the right earphone is updated to be B, at this time, the setting of the left earphone is (B, true, T2), and the setting of the right earphone is (B, false, T2), so that the user's use expectations are met.
It will be appreciated that in the above description, an example of a disconnection occurring between two speakers is taken as an example, and in the actual use process, multiple disconnection situations may exist between two speakers, and the specific principle is similar to the above flow, and is illustrated below.
Assume that the initial function settings, update parameters, and time stamp parameters of the left and right headphones are respectively: (A, true, T1), (A, false, T1).
The right earphone is taken as a main earphone, the user changes the function setting into B, the right earphone setting into (B, true, T2), and the connection of the two earphone is interrupted at the moment, so that the synchronization is failed. The setting of the double earphone at this time is respectively: (a, true, T1) and (B, true, T2), and T2> T1;
the user uses left earphone as main earphone, and the user changes the function setting into C, and left ear setting changes into (C, true, T3) because this moment double earphone connection breaks, leads to synchronous failure, and the setting of this moment double earphone is respectively: (C, true, T3) and (B, true, T2), and T3> T2;
when the two earphones are reconnected, synchronous information is mutually sent, at the moment, the left earphone determines that the self updating parameter is true, the self time stamp parameter T3 is larger than the time stamp parameter T2 of the slave earphone, and the set synchronous updating is not carried out. The right ear determines that the update parameter of the right ear is true, the timestamp parameter T2 of the right ear is smaller than the timestamp parameter T3 of the slave earphone, synchronous update of the settings is carried out, the updated binaural settings are (C, true, T3) and (C, false, T3) respectively, and the use expectations of users are met.
In summary, by using the method provided by the embodiment of the application, when the connection is restored after the middle ear is disconnected in the synchronization process of the double earphone setting, the synchronization result of the function setting of the double earphone is kept to be in line with the expected result of the user, and the use experience of the user is improved.
The time stamp parameter in the embodiment of the application can be specifically the time when the setting information sent by the electronic equipment is received. In other embodiments, the time for setting and updating the earphone according to the setting information sent by the electronic device may be similar to the specific principle, which is not described herein.
With the description of fig. 3 to 7, it can be found that, according to the scheme of the present application, a policy of directly setting the master earphone as a synchronization standard is cancelled, but an update parameter and a timestamp parameter are added as a basis of synchronization update, so as to determine whether the earphone needs to perform synchronization or discard synchronization information sent to the ear, thereby avoiding a situation that a user resumes use failure of the dual earphone when using the single earphone, avoiding a situation that the user newly sets synchronization failure due to abnormal communication of the dual earphone, and improving use experience of the user.
Based on the synchronization method of the earphone setting provided by the above embodiment, the embodiment of the present application further provides an earphone, where the earphone is a TWS earphone, and the following description is made with reference to a specific implementation manner.
With continued reference to the schematic diagram of the TWS headset of FIG. 1A and the block diagram of the TWS headset of FIG. 1B.
The TWS headset provided by the embodiment of the application comprises a left headset and a right headset. One of the earphones can be used as a master earphone, and the other earphone can be used as a slave earphone. The master earphone may switch between the two earphones.
Each earphone comprises a processor, and in particular, a first earphone of the TWS earphone comprises a first processor for running a program; the second earpiece of the TWS earpiece comprises a second processor for running a program. The program runs to realize the synchronization method of the earphone setting in the above embodiment.
By utilizing the TWS earphone, the situation that the use failure of the double earphone is restored when the single earphone is used by the user is avoided, the situation that the synchronization failure is caused by the abnormal communication of the double earphone when the double earphone is newly set by the user is avoided, and the use experience of the user is improved.
An embodiment of the present application provides a storage medium having a program stored thereon, which when executed by a processor, implements the synchronization method of earphone setting in the above embodiment.
Based on the headphones provided by the above embodiments, the embodiments of the present application further provide an apparatus system, which is specifically described below with reference to the accompanying drawings.
Referring to fig. 8, a schematic diagram of an apparatus system according to an embodiment of the present application is shown.
The device system 80 includes: TWS headset 81 and electronic device 82. The electronic device 82 is configured to wirelessly connect with a main one of the TWS headphones 81.
The electronic device 82 is configured to run an application program for updating the settings of the TWS headset 81 in response to a user operation.
The method by which the TWS headphones 81 achieve setting synchronization is described below.
When the update parameter of the first earphone of the TWS earphone is a first parameter value and the time stamp parameter of the first earphone is smaller than the time stamp parameter of the second earphone, the first earphone of the TWS earphone performs set synchronization according to the synchronization information sent by the second earphone of the TWS earphone; or when the update parameter of the first earphone is the second parameter value, the first earphone performs set synchronization according to the synchronization information sent by the second earphone. Otherwise, the first earphone does not perform the set synchronization.
The first parameter value represents that the earphone is updated when being used as a main earphone, and the second parameter value represents that the earphone is not used as the main earphone for setting synchronization; the time stamp parameter is the time when the earphone acquires the update information sent by the electronic equipment, or the time when the earphone performs setting update according to the update information sent by the electronic equipment.
When the first earphone is in wireless connection with the second earphone, the first earphone is a master earphone, and the second earphone is a slave earphone, the first earphone sends first synchronization information to the second earphone, wherein the first synchronization information comprises master update information and master timestamp parameters. The first earphone receives second synchronous information sent by the second earphone, wherein the second synchronous information comprises update information of the slave earphone and a time stamp parameter of the slave earphone; and when the update parameter of the first earphone is a first parameter value and the time stamp parameter of the first earphone is smaller than the time stamp parameter of the second earphone, the first earphone performs set synchronization according to the update information of the slave earphone in the second synchronization information.
When the first earphone is in wireless connection with the second earphone, and the first earphone is a master earphone, and the second earphone is a slave earphone, the first earphone sends first synchronization information to the second earphone, wherein the first synchronization information comprises update information of the master earphone and timestamp parameters of the master earphone; the first earphone receives second synchronous information sent by the second earphone, wherein the second synchronous information comprises update information of the slave earphone and a time stamp parameter of the slave earphone; and when the update parameter of the first earphone is the second parameter value, the first earphone performs set synchronization according to the update information of the slave earphone in the second synchronization information.
When the first earphone determines that the connection with the second earphone is interrupted before the first earphone sends the first synchronization information to the second earphone, the method further comprises: when the first earphone and the second earphone are restored to be connected, the first earphone sends the first synchronous information to the second earphone, and the first earphone receives the second synchronous information sent by the second earphone.
Before the first earphone sends the first synchronization information to the second earphone, the method further comprises: the first earphone receives update information sent by the electronic equipment; the first earphone sets the self updating parameter as the first parameter value and updates the self time stamp parameter; and the first earphone performs setting updating according to the updating information.
When the first earphone is used as the main earphone to be in wireless connection with the electronic equipment and the first earphone is not in wireless connection with the second earphone, the method further comprises the following steps: the first earphone receives update information sent by the electronic equipment; the first earphone sets the self updating parameter as a first parameter value and updates the self time stamp parameter; the first earphone performs setting update according to the update information.
After the first earphone is used as the main earphone to establish wireless connection with the second earphone, the method further comprises the following steps: the first earphone sends first synchronization information to the second earphone; the first earphone receives second synchronous information sent by the second earphone. When the first earphone and the second earphone are in wireless connection and the second earphone is the main earphone, the method further comprises: the first earphone sends second synchronous information to the second earphone; the first earphone receives first synchronization information sent by the second earphone.
By utilizing the TWS earphone of the equipment system, the situation that the use of the double earphone is disabled when the single earphone of the user is newly set can be avoided, the situation that the synchronization is disabled due to abnormal communication of the double earphone of the user is avoided, and the use experience of the user is improved.
It should be understood that in the present application, "at least one (item)" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. The apparatus embodiments described above are merely illustrative, wherein the units and modules illustrated as separate components may or may not be physically separate. In addition, some or all of the units and modules can be selected according to actual needs to achieve the purpose of the embodiment scheme. Those of ordinary skill in the art will understand and implement the present application without undue burden.
The foregoing is merely illustrative of the embodiments of this application and it will be appreciated by those skilled in the art that variations and modifications may be made without departing from the principles of the application, and it is intended to cover all modifications and variations as fall within the scope of the application.

Claims (12)

1. A method of synchronizing settings for a truly wireless stereo TWS headset, the method comprising:
when the self updating parameter of the first earphone is a first parameter value and the self time stamp parameter is smaller than the time stamp parameter of the second earphone, the first earphone performs function setting synchronization according to the synchronization information sent by the second earphone; or, when the update parameter of the first earphone is a second parameter value, synchronizing function setting according to the synchronizing information sent by the second earphone; the first parameter value represents that the function setting is updated when the earphone is used as a main earphone, and the second parameter value represents that the earphone is not used as the main earphone for the function setting synchronization; the time stamp parameter is the time when the earphone acquires the update information sent by the electronic equipment, or the time when the earphone performs function setting update according to the update information sent by the electronic equipment, and the update parameter is used for identifying whether the earphone performs function setting update when the earphone is used as a main earphone;
Otherwise, the first earphone does not perform synchronization of function setting.
2. The method for synchronizing settings according to claim 1, wherein when the first earphone is wirelessly connected to the second earphone and the first earphone is a master earphone and the second earphone is a slave earphone, the first earphone performs synchronization of function settings according to synchronization information sent by the second earphone when its own update parameter is a first parameter value and its own timestamp parameter is smaller than that of the second earphone, and specifically includes:
the first earphone sends first synchronization information to the second earphone, wherein the first synchronization information comprises update information of the main earphone and a time stamp parameter of the main earphone;
the first earphone receives second synchronous information sent by the second earphone, wherein the second synchronous information comprises updated information of the slave earphone and a time stamp parameter of the slave earphone;
and when the update parameter of the first earphone is a first parameter value and the time stamp parameter of the first earphone is smaller than the time stamp parameter of the second earphone, the first earphone performs function setting synchronization according to the update information of the slave earphone in the second synchronization information.
3. The method for synchronizing settings according to claim 1, wherein when the first earphone is wirelessly connected to the second earphone, and the first earphone is a master earphone, and the second earphone is a slave earphone, the first earphone performs synchronization update of function settings according to synchronization information sent by the second earphone when its own update parameter is a second parameter value, and the method specifically comprises:
the first earphone sends first synchronization information to the second earphone, wherein the first synchronization information comprises update information of the main earphone and a time stamp parameter of the main earphone;
the first earphone receives second synchronous information sent by the second earphone, wherein the second synchronous information comprises updated information of the slave earphone and a time stamp parameter of the slave earphone;
and when the update parameter of the first earphone is a second parameter value, synchronizing function setting according to the update information of the slave earphone in the second synchronization information.
4. A set synchronization method according to claim 2 or 3, characterized in that when the first earpiece determines that the connection with the second earpiece is interrupted before the first earpiece sends first synchronization information to the second earpiece, the method further comprises:
When the first earphone and the second earphone are restored to be connected, the first earphone sends first synchronous information to the second earphone, and the first earphone receives second synchronous information sent by the second earphone.
5. The set synchronization method according to claim 2, wherein before the first earphone transmits the first synchronization information to the second earphone, the method further comprises:
the first earphone receives update information sent by the electronic equipment;
the first earphone sets the self updating parameter as the first parameter value and updates the self time stamp parameter;
and the first earphone performs function setting update according to the update information.
6. The synchronization method of the setting according to claim 2, wherein when the first earphone is wirelessly connected with the electronic device as a master earphone and the first earphone is not wirelessly connected with the second earphone, the method further comprises:
the first earphone receives update information sent by the electronic equipment;
the first earphone sets the self updating parameter as the first parameter value and updates the self time stamp parameter;
And the first earphone performs function setting update according to the update information.
7. The method of synchronizing settings according to claim 6, wherein after the first earpiece has established a wireless connection with the second earpiece as the master earpiece, the method further comprises:
the first earphone sends the first synchronization information to the second earphone;
the first earphone receives the second synchronization information sent by the second earphone.
8. The method of synchronizing settings according to claim 6, wherein when the first earpiece establishes a wireless connection with the second earpiece and the second earpiece is the primary earpiece, the method further comprises:
the first earphone sends the second synchronous information to the second earphone;
the first earphone receives the first synchronization information sent by the second earphone.
9. The method according to claim 2, wherein the first synchronization information further includes update parameters of the master earphone, and the second synchronization information further includes update parameters of the slave earphone.
10. The synchronization method of the setting of claim 1, wherein the TWS headset further comprises a headset box for connecting with the electronic device;
The time stamp parameter is specifically a system time of the earphone box when the earphone itself obtains update information sent by the electronic equipment; or, the time stamp parameter is specifically the system time of the earphone box when the earphone performs function setting update according to the update information sent by the electronic device.
11. A TWS headset, characterized in that the TWS headset comprises a first headset and a second headset, the first headset comprising a first processor for running a program, which when run performs the set synchronization method of any one of claims 1-10; the second earphone comprising a second processor for running a program which, when run, performs the set-up synchronization method of any of claims 1-10.
12. A device system, characterized in that the device system comprises the TWS headset of claim 11, further comprising an electronic device;
the electronic equipment is used for being in wireless connection with a main earphone in the earphone;
the electronic equipment is used for running an application program, and the application program is used for updating the function setting of the TWS earphone in response to the operation of a user.
CN202211340006.4A 2022-10-29 2022-10-29 Set synchronization method, TWS earphone and equipment system Active CN115665623B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211340006.4A CN115665623B (en) 2022-10-29 2022-10-29 Set synchronization method, TWS earphone and equipment system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211340006.4A CN115665623B (en) 2022-10-29 2022-10-29 Set synchronization method, TWS earphone and equipment system

Publications (2)

Publication Number Publication Date
CN115665623A CN115665623A (en) 2023-01-31
CN115665623B true CN115665623B (en) 2023-10-03

Family

ID=84994305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211340006.4A Active CN115665623B (en) 2022-10-29 2022-10-29 Set synchronization method, TWS earphone and equipment system

Country Status (1)

Country Link
CN (1) CN115665623B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854432A (en) * 2010-05-18 2010-10-06 深圳桑菲消费通信有限公司 Mobile phone control method of popping up corresponding functional menu after earphone is plugged in
CN111464920A (en) * 2020-03-31 2020-07-28 歌尔科技有限公司 Earphone debugging method, device and storage medium
CN112866878A (en) * 2021-01-22 2021-05-28 深圳市安特信技术有限公司 Method for interactive arbitration scheduling of left ear and right ear keys of TWS earphone

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111510810A (en) * 2018-07-02 2020-08-07 Oppo广东移动通信有限公司 Master-slave earphone switching control method and related product

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854432A (en) * 2010-05-18 2010-10-06 深圳桑菲消费通信有限公司 Mobile phone control method of popping up corresponding functional menu after earphone is plugged in
CN111464920A (en) * 2020-03-31 2020-07-28 歌尔科技有限公司 Earphone debugging method, device and storage medium
CN112866878A (en) * 2021-01-22 2021-05-28 深圳市安特信技术有限公司 Method for interactive arbitration scheduling of left ear and right ear keys of TWS earphone

Also Published As

Publication number Publication date
CN115665623A (en) 2023-01-31

Similar Documents

Publication Publication Date Title
US10630826B2 (en) Information processing device
KR102384519B1 (en) Method for controlling ear piece and electronic device for supporting the same
US20160219358A1 (en) Wireless earbuds with reciprocating leader and follower configuration
CN112243220A (en) Method for establishing communication connection and wearable device
US20220322470A1 (en) Electronic device using communication channel generated by electrical connection between electronic device and external electronic device, and method for operating electronic device
KR20200110086A (en) Method for establishing wireless communication link and electronic device supporting the same
JP2019193259A (en) Bluetooth subcircuit in multi-component bluetooth device
KR20210034200A (en) Electronic device for audio, electronic device and method for managing communication link
WO2019019050A1 (en) Wireless communication pairing method, wireless receiving device, and wireless transmitting device and system
CN112437371B (en) BLE link switching method, equipment, earphone pair, chip and medium
CN111510902B (en) Bluetooth device and Bluetooth state switching method and device thereof
CN108377453B (en) Method for operating a hearing device and hearing device
EP3255810B1 (en) Wearable device
JP2019193257A (en) Multi-component bluetooth device capable of avoiding signal interruption
KR20220035698A (en) Electronic device and method for updating of the same
KR20210116118A (en) Electronic device for audio, and method for managing power in electronic device for audio
CN107852431B (en) Information processing apparatus, information processing method, and program
CN115665623B (en) Set synchronization method, TWS earphone and equipment system
CN108668204B (en) Multiplexing circuit, wearable device and method for switching working modes of wearable device
CN114780029B (en) Device identification method and related device
CN113645573B (en) Headset configuration data sharing method, headset and storage medium
CN112039150B (en) Charging control method and device, computer readable storage medium and electronic device
KR20210032104A (en) Electronic device for setting address information and method for operating thereof
WO2021256720A1 (en) Method for transmitting request to external device, and electronic device supporting same
CN115250400A (en) Wireless earphone and connection method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant