CN115086823A - Earphone control method and device and wireless earphone - Google Patents
Earphone control method and device and wireless earphone Download PDFInfo
- Publication number
- CN115086823A CN115086823A CN202210593891.0A CN202210593891A CN115086823A CN 115086823 A CN115086823 A CN 115086823A CN 202210593891 A CN202210593891 A CN 202210593891A CN 115086823 A CN115086823 A CN 115086823A
- Authority
- CN
- China
- Prior art keywords
- earphone
- message
- state
- charging box
- update
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1025—Accumulators or arrangements for charging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R5/00—Stereophonic arrangements
- H04R5/033—Headphones for stereophonic communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2201/00—Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
- H04R2201/10—Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Computer Networks & Wireless Communication (AREA)
- Telephone Function (AREA)
Abstract
The application provides an earphone control method and device and a wireless earphone, and belongs to the technical field of portable listening equipment. The method comprises the steps that when the condition of the earphone charging box is detected to change, a first message corresponding to a first condition of the earphone charging box is determined; and sending the first message to the first earphone, and sending the first message to the second earphone, wherein the first earphone updates a second state of the first earphone when receiving the first message for the first time and controls the second earphone to update a third state corresponding to the second earphone, and the second earphone forwards the first message to the first earphone when receiving the first message, so as to improve the success rate of message delivery.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to an earphone control method and apparatus, and a wireless earphone.
Background
With the development of science and technology, the wireless earphone is widely applied due to the characteristics of wireless and convenient use. Among them, a True Wireless Stereo (TWS) headset is popular with consumers because it has a dual headset Wireless connection, and the current TWS headset is equipped with a headset and a charging box for charging the headset. And the charging box is also used for directly sending a message to the main earphone through the contact point contacted with the main earphone so as to instruct the main earphone to switch the working state (such as connection or disconnection with the communication equipment).
However, if the main earphone and the charging box are in poor contact, the main earphone cannot receive the message sent by the charging box, and thus the communication reliability is low.
Disclosure of Invention
An object of the embodiments of the present application is to provide an earphone control method and apparatus, and a wireless earphone, so as to solve the problem that a charging box directly sends a message to a main earphone through a contact in contact with the main earphone, which is low in communication reliability. The specific technical scheme is as follows:
in a first aspect, a method for controlling an earphone is provided, and is applied to an earphone charging box, where the earphone charging box is used for placing a first earphone and a second earphone, and the method includes:
when the state of the earphone charging box is detected to be changed, determining a first message corresponding to a first state of the earphone charging box;
and sending the first message to the first earphone, and sending the first message to the second earphone, wherein the first earphone updates a second state of the first earphone when receiving the first message for the first time and controls the second earphone to update a third state corresponding to the second earphone, and the second earphone forwards the first message to the first earphone when receiving the first message.
Optionally, when receiving the first message, the second headset forwards the first message to the first headset, including:
when the first message is a wake-up message, the second earphone forwards the wake-up message to the first earphone when receiving the wake-up message;
or the like, or, alternatively,
when the first message is a sleep message, the second earphone forwards the sleep message to the first earphone when receiving the sleep message.
Optionally, the updating, by the first headset, the second state of the first headset when the first message is received for the first time and the controlling, by the second headset, the second state corresponding to the second headset may be updated, where the updating includes:
when the first earphone receives the awakening message for the first time, the second state of the first earphone is updated to be an awakening state, and the second earphone is controlled to update the third state to be the awakening state;
or the like, or, alternatively,
and when the first earphone receives the sleep message for the first time, updating the second state of the first earphone to a sleep state, and controlling the second earphone to update the third state to the sleep state.
Optionally, the method further includes:
obtaining a first state of the earphone charging box according to the state change of the earphone charging box;
generating the first message based on the first state.
Optionally, the method further includes:
detecting a contact voltage of a preset contact, wherein the preset contact is a contact used for charging the first earphone and the second earphone in the earphone charging box;
and when the contact voltage is a preset voltage value, determining that the first earphone and the second earphone are in a box-in state, and executing the step of obtaining the first state of the earphone charging box according to the state change of the earphone charging box.
Optionally:
when the first message is a wake-up message, a first state corresponding to the wake-up message is an open state;
and when the first message is a sleep message, the first state corresponding to the awakening message is a closed state.
In a second aspect, there is provided a headset controlling method applied to a first headset, wherein a headset charging box is used for placing the first headset and a second headset, the method comprising:
and when the first earphone receives a first message for the first time, responding to the first message, and controlling the first earphone to update the second state of the first earphone and the second earphone to update the third state of the second earphone.
In a third aspect, there is provided an earphone control method applied to a second earphone, where an earphone charging box is used for placing a first earphone and the second earphone, the method including:
receiving a first message sent by the earphone charging box;
and sending the first message to the first earphone, wherein the first earphone updates the second state of the first earphone when receiving the first message for the first time and controls the second earphone to update the third state corresponding to the second earphone.
Optionally, the first message includes a target identifier,
prior to the sending the first message to the first earpiece, the method further comprises:
acquiring the target identification from the first message;
and when the target identifier is inconsistent with the device identifier of the second earphone, executing the step of sending the first message to the first earphone.
In a fourth aspect, there is provided a headphone control apparatus, the apparatus comprising:
the determining module is used for determining a first message corresponding to a first state of the earphone charging box when the state of the earphone charging box is detected to change;
and the sending module is used for sending the first message to the first earphone and sending the first message to the second earphone, wherein the first earphone updates the second state of the first earphone when receiving the first message for the first time and controls the second earphone to update the third state corresponding to the second earphone, and the second earphone forwards the first message to the first earphone when receiving the first message.
In a fifth aspect, there is provided a headphone control apparatus, the apparatus comprising:
and the control module is used for responding to the first message when the first earphone receives the first message for the first time, controlling the first earphone to update the second state of the first earphone and controlling the second earphone to update the third state of the second earphone.
In a sixth aspect, there is provided a headphone control apparatus, the apparatus comprising:
the receiving module is used for receiving a first message sent by the earphone charging box;
and the forwarding module is used for sending the first message to the first earphone, wherein the first earphone updates the second state of the first earphone when receiving the first message for the first time and controls the second earphone to update the third state corresponding to the second earphone.
In a seventh aspect, there is provided a wireless headset comprising a memory for storing a computer program and a processor for implementing the steps of the method of any one of the above when executing the computer program.
In an eighth aspect, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the above-described headphone control methods.
The embodiment of the application has the following beneficial effects:
the embodiment of the application provides an earphone control method, an earphone control device and a wireless earphone, wherein when the condition of an earphone charging box is detected to change, a first message corresponding to a first condition of the earphone charging box is determined; and then, sending the first message to the first earphone, and sending the first message to the second earphone, wherein the first earphone updates a second state of the first earphone when receiving the first message for the first time and controls the second earphone to update a third state corresponding to the second earphone, and wherein the second earphone forwards the first message to the first earphone when receiving the first message.
Through the application, when the earphone charging box directly sends the message to the first earphone, the message can be sent to the second earphone, so that the message can be forwarded to the first earphone through the second earphone.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a flowchart of an earphone control method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of an earphone control method according to another embodiment of the present application;
fig. 3 is a flowchart of an earphone control method according to another embodiment of the present application;
fig. 4 is an application scenario diagram of an earphone control method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an earphone control device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
The following describes in detail a headphone control method provided in an embodiment of the present application with reference to a specific embodiment, as shown in fig. 1, the specific steps are as follows:
s101, when the condition of the earphone charging box is detected to change, determining a first message corresponding to a first condition of the earphone charging box.
S102, sending the first message to the first earphone, and sending the first message to the second earphone, where the first earphone updates a second state of the first earphone when receiving the first message for the first time and controls the second earphone to update a third state corresponding to the second earphone, and the second earphone forwards the first message to the first earphone when receiving the first message.
The earphone control method provided by the embodiment of the application can be applied to an earphone charging box, wherein the earphone charging box is used for placing a first earphone and a second earphone, for example, the first earphone can be a master earphone in a wireless earphone, and the second earphone can be a slave earphone in the wireless earphone, also called a secondary earphone.
In this embodiment, the earphone charging box may detect whether the state of the earphone charging box changes in real time, and when the state of the earphone charging box changes, the first message corresponding to the first state (i.e., the changed state) of the earphone charging box may be determined.
Further, as shown in fig. 2, the earphone charging box sends the first message to the first earphone (left ear in fig. 2) through the charging contact point, and sends the first message to the second earphone (right ear in fig. 2) through the charging contact point, where the first message is used to indicate the first earphone to update the second state of the first earphone and the third state of the second earphone when the first earphone receives the first message for the first time, and is further used to indicate the second earphone to forward the first message to the first earphone when the second earphone receives the first message.
Further, the headset charging box may send the first message to the first headset and the second headset via a single-wire communication protocol.
Further, the second headset may transmit the first message to the first headset through a TWS (True Wireless direct, bluetooth protocol).
Further, the step of forwarding the first message to the first headset by the second headset upon receipt of the first message may comprise the steps of:
when the first message is a wake-up message, the second earphone forwards the wake-up message to the first earphone when receiving the wake-up message; or, when the first message is a sleep message, the second headset forwards the sleep message to the first headset when receiving the sleep message.
The wake-up message is used for indicating the first earphone to update the corresponding second state to the wake-up state and controlling the second earphone to update the corresponding third state to the wake-up state; the sleep message is used for instructing the first earphone to update the corresponding second state to the sleep state and controlling the second earphone to update the corresponding third state to the sleep state.
Further, the updating, by the first headset, the second state of the first headset when the first message is received for the first time and the controlling, by the second headset, the second state corresponding to the second headset may include the following steps:
when the first earphone receives the awakening message for the first time, the second state of the first earphone is updated to be an awakening state, and the second earphone is controlled to update the third state to be the awakening state; or when the first earphone receives the sleep message for the first time, the second state of the first earphone is updated to the sleep state, and the second earphone is controlled to update the third state to the sleep state.
When the first earphone and the second earphone are in the sleep state, the first earphone and the second earphone can be disconnected from the communication equipment.
Further, when the first message is a wake-up message, a first state corresponding to the wake-up message is an on state; and when the first message is a sleep message, the first state corresponding to the awakening message is a closed state.
Through the application, when the earphone charging box directly sends the message to the first earphone, the message can be sent to the second earphone, so that the message can be forwarded to the first earphone through the second earphone.
In yet another embodiment of the present application, the method may further comprise the steps of:
step one, obtaining a first state of the earphone charging box according to the state change of the earphone charging box.
And step two, generating the first message based on the first state.
In this embodiment of the application, the first state of the earphone charging box may be obtained according to a state change of the earphone charging box, and different first states correspond to different first messages (i.e., a wake-up message and a sleep message), so that the corresponding first messages may be generated based on the first state, where the first messages carry a target identifier of the first earphone.
Through the scheme, the message for indicating the updating state of the first earphone can be generated according to the state change of the earphone charging box, so that the automatic control of the first earphone is realized, and the control portability is improved.
In yet another embodiment of the present application, the method may further comprise the steps of:
the method comprises the steps of firstly, detecting the contact voltage of a preset contact, wherein the preset contact is a contact used for charging the first earphone and the second earphone in the earphone charging box.
And step two, when the contact voltage is a preset voltage value, determining that the first earphone and the second earphone are in a box-in state, and executing the step of obtaining the first state of the earphone charging box according to the state change of the earphone charging box.
In the embodiment of the present application, the preset contact is a contact in the earphone charging box for charging the first earphone and the second earphone. When the first earphone and the second earphone are placed in the earphone charging box, the first earphone and the second earphone are in contact with the earphone charging box through the preset contact, and when the first earphone and the second earphone are in contact with the earphone charging box through the preset contact, the voltage of the preset contact can be increased to be a preset voltage value, so that whether the first earphone and the second earphone are in a box-in state or not can be determined through the contact voltage of the preset contact (namely, when the first earphone and the second earphone are placed in the earphone charging box).
Specifically, the contact voltage of a preset contact is detected in real time, when the contact voltage is a preset voltage value, it is determined that the first earphone and the second earphone are in a box-in state, at the moment, the first earphone and the second earphone are in contact with the earphone charging box through the preset contact, and the earphone charging box can send a first message to the first earphone and the second earphone through the preset contact, so that the step of obtaining the first state of the earphone charging box according to the state change of the earphone charging box can be executed.
If the contact voltage is a non-preset voltage value, the first earphone and the second earphone are not in contact with the earphone charging box through the preset contact, at the moment, the earphone charging box cannot send a first message to the first earphone and the second earphone through the preset contact, and the step of obtaining the first state of the earphone charging box according to the state change of the earphone charging box does not need to be executed.
According to the scheme, whether the step of obtaining the first state of the earphone charging box according to the state change of the earphone charging box is executed or not can be determined through the contact voltage of the preset contact, so that the step of determining the first state is avoided when the first earphone and the second earphone are in the non-box-entering state, unnecessary calculation amount is increased, and calculation resources are wasted.
In another embodiment of the present application, the S102 may include the following steps:
after sending the first message to the first headset, sending the first message to the second headset.
In this embodiment, since the communication link for directly sending the first message to the first headset is shorter than the communication link for forwarding the first message to the first headset via the second headset, sending the first message to the first headset is preferentially performed, which may improve the speed of message delivery.
In yet another embodiment of the present application, the method may further comprise the steps of:
determining a sending device corresponding to a first message received by the first earphone first; when the sending device is the earphone charging box, sending the first message to the second earphone after sending the first message to the first earphone; and when the sending equipment is the second earphone, after the first message is sent to the second earphone, the first message is sent to the first earphone.
By the scheme, the sending equipment corresponding to the first message received by the first earphone first can be determined, and the sending sequence of the first message is further determined according to the sending equipment, so that the sending speed of the first message is increased.
The embodiment of the application also provides another earphone control method, which comprises the following specific steps:
and when the first earphone receives a first message for the first time, responding to the first message, and controlling the first earphone to update the second state of the first earphone and the second earphone to update the third state of the second earphone.
The embodiment of the application can be applied to a first earphone, wherein the earphone charging box is used for placing the first earphone and a second earphone, and the earphone charging box can generate a first message according to the state change of the earphone charging box and send the first message to the first earphone.
Specifically, when the first message is received by the first earphone for the first time, the first earphone may be controlled to update the second state and the second earphone may be controlled to update the third state in response to the indication of the first message. Therefore, the states of the first earphone and the second earphone are automatically updated according to the first message, and the control portability is improved.
In yet another embodiment of the present application, the first message is ignored when the first message is not first received by the first headset.
In this embodiment, the earphone charging box may send the first message to the first earphone multiple times, and after the first earphone receives the first message for the first time, if the same first message is received again, the first message may be ignored, and by using this scheme, the first earphone may avoid repeatedly responding to the first message, thereby reducing waste of computing resources.
The embodiment of the application further provides another earphone control method, as shown in fig. 3, the specific steps are as follows:
s201, receiving a first message sent by the earphone charging box.
S202, the first message is sent to the first earphone, wherein the first earphone updates the second state of the first earphone when receiving the first message for the first time and controls the second earphone to update the third state corresponding to the second earphone.
The embodiment of the application can be applied to a second earphone, wherein the earphone charging box is used for placing a first earphone and the second earphone, and the earphone charging box can generate a first message according to the state change of the earphone charging box and send the first message to the second earphone.
Specifically, after receiving the first message, the second earphone sends the first message to the first earphone, where the first message is used to instruct the first earphone to update the second state of the first earphone when the first earphone receives the first message for the first time and to control the second earphone to update the third state corresponding to the second earphone.
In this embodiment, the message sent by the earphone charging box may be forwarded to the first earphone through the second earphone, thereby improving the success rate of the first message delivery.
In yet another embodiment of the present application, the method may further comprise the steps of:
step one, the target identification is obtained from the first message.
And step two, when the target identification is inconsistent with the equipment identification of the second earphone, the step of sending the first message to the first earphone is executed.
In this embodiment of the application, the first message includes a target identifier, where the target identifier may be an equipment identifier of the first earphone, and before the first message is sent to the first earphone, the second earphone may obtain the target identifier from the first message, and compare whether the target identifier is compared with the own equipment identifier, and when the target identifier is inconsistent with the equipment identifier of the second earphone, execute the step of sending the first message to the first earphone.
Through the scheme, the second earphone can determine whether to send the first message to the first earphone or not by comparing the target identifier, the earphone charging box is not required to send a control instruction additionally, and the data transmission quantity between the earphone charging box and the second earphone is reduced.
Based on the same technical concept, an embodiment of the present application further provides an earphone control device, as shown in fig. 4, the device includes:
the determining module 301 is configured to determine, when it is detected that a state of the earphone charging box changes, a first message corresponding to a first state of the earphone charging box;
a sending module 302, configured to send the first message to the first earphone, and send the first message to the second earphone, where the first earphone updates a second state of the first earphone when receiving the first message for the first time and controls the second earphone to update a third state corresponding to the second earphone, and the second earphone forwards the first message to the first earphone when receiving the first message.
Optionally, the sending module is specifically configured to:
when the first message is a wake-up message, the second earphone forwards the wake-up message to the first earphone when receiving the wake-up message;
or the like, or, alternatively,
when the first message is a sleep message, the second earphone forwards the sleep message to the first earphone when receiving the sleep message.
Optionally, the sending module is further configured to:
when the first earphone receives the awakening message for the first time, the second state of the first earphone is updated to be an awakening state, and the second earphone is controlled to update the third state to be the awakening state;
or the like, or, alternatively,
and when the first earphone receives the sleep message for the first time, updating the second state of the first earphone to a sleep state, and controlling the second earphone to update the third state to the sleep state.
Optionally, the apparatus further includes a generation module, where the generation module is configured to:
obtaining a first state of the earphone charging box according to the state change of the earphone charging box;
generating the first message based on the first state.
Optionally, the apparatus further includes a detection module, where the detection module is configured to:
detecting a contact voltage of a preset contact, wherein the preset contact is a contact used for charging the first earphone and the second earphone in the earphone charging box;
and when the contact voltage is a preset voltage value, determining that the first earphone and the second earphone are in a box-in state, and executing the step of obtaining the first state of the earphone charging box according to the state change of the earphone charging box.
Optionally:
when the first message is a wake-up message, a first state corresponding to the wake-up message is an open state;
and when the first message is a sleep message, the first state corresponding to the awakening message is a closed state.
Through the application, when the earphone charging box directly sends the message to the first earphone, the message can be sent to the second earphone, so that the message can be forwarded to the first earphone through the second earphone.
The embodiment of the present application further provides another earphone control device, and the device includes:
and the control module is used for responding to the first message when the first earphone receives the first message for the first time, controlling the first earphone to update the second state of the first earphone and controlling the second earphone to update the third state of the second earphone.
An embodiment of the present application further provides another earphone control device, as shown in fig. 5, the device includes:
a receiving module 401, configured to receive a first message sent by the headset charging box;
a forwarding module 402, configured to send the first message to the first headset, where the first headset updates a second state of the first headset when receiving the first message for the first time and controls the second headset to update a third state corresponding to the second headset.
Based on the same technical concept, an embodiment of the present application further provides a wireless headset, including a memory and a processor, where the memory is used to store a computer program, and the processor is used to implement the following steps when executing the computer program:
when the state of the earphone charging box is detected to be changed, determining a first message corresponding to a first state of the earphone charging box;
sending the first message to the first earphone, and sending the first message to the second earphone, wherein the first earphone updates a second state of the first earphone when receiving the first message for the first time and controls the second earphone to update a third state corresponding to the second earphone, and wherein the second earphone forwards the first message to the first earphone when receiving the first message;
or the like, or, alternatively,
and when the first earphone receives a first message for the first time, responding to the first message, and controlling the first earphone to update the second state of the first earphone and the second earphone to update the third state of the second earphone.
Or the like, or, alternatively,
receiving a first message sent by the earphone charging box;
and sending the first message to the first earphone, wherein the first earphone updates the second state of the first earphone when receiving the first message for the first time and controls the second earphone to update the third state corresponding to the second earphone.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In a further embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the above-described headset control methods.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (13)
1. An earphone control method is applied to an earphone charging box, wherein the earphone charging box is used for placing a first earphone and a second earphone, and the method comprises the following steps:
when the state of the earphone charging box is detected to be changed, determining a first message corresponding to a first state of the earphone charging box;
and sending the first message to the first earphone, and sending the first message to the second earphone, wherein the first earphone updates the second state of the first earphone and the third state of the second earphone when receiving the first message for the first time, and the second earphone forwards the first message to the first earphone when receiving the first message.
2. The method of claim 1, wherein the second headset, upon receipt of the first message, forwards the first message to the first headset, comprising:
when the first message is a wake-up message, the second earphone forwards the wake-up message to the first earphone when receiving the wake-up message;
or the like, or a combination thereof,
when the first message is a sleep message, the second earphone forwards the sleep message to the first earphone when receiving the sleep message.
3. The method of claim 2, wherein the first headset updates the second state of the first headset when the first message is first received and controls the second headset to update a corresponding third state of the second headset, comprising:
when the first earphone receives the awakening message for the first time, the second state of the first earphone is updated to be an awakening state, and the second earphone is controlled to update the third state to be the awakening state;
or the like, or, alternatively,
and when the first earphone receives the sleep message for the first time, updating the second state of the first earphone to a sleep state, and controlling the second earphone to update the third state to the sleep state.
4. The method of claim 1, further comprising:
obtaining a first state of the earphone charging box according to the state change of the earphone charging box;
generating the first message based on the first state.
5. The method of claim 4, further comprising:
detecting a contact voltage of a preset contact, wherein the preset contact is a contact used for charging the first earphone and the second earphone in the earphone charging box;
and when the contact voltage is a preset voltage value, determining that the first earphone and the second earphone are in a box-in state, and executing the step of obtaining the first state of the earphone charging box according to the state change of the earphone charging box.
6. The method of claim 1, wherein:
when the first message is a wake-up message, a first state corresponding to the wake-up message is an open state;
and when the first message is a sleep message, the first state corresponding to the awakening message is a closed state.
7. An earphone control method applied to a first earphone, wherein an earphone charging box is used for placing the first earphone and a second earphone, and the method comprises the following steps:
and when the first earphone receives a first message for the first time, responding to the first message, and controlling the first earphone to update the second state of the first earphone and the second earphone to update the third state of the second earphone.
8. An earphone control method is applied to a second earphone, and an earphone charging box is used for placing a first earphone and the second earphone, and the method comprises the following steps:
receiving a first message sent by the earphone charging box;
and sending the first message to the first earphone, wherein the first earphone updates the second state of the first earphone when receiving the first message for the first time and controls the second earphone to update the third state corresponding to the second earphone.
9. The method of claim 8, wherein the first message includes a target identification,
prior to the sending the first message to the first earpiece, the method further comprises:
acquiring the target identification from the first message;
and when the target identifier is inconsistent with the device identifier of the second earphone, executing the step of sending the first message to the first earphone.
10. An earphone control device, applied to an earphone charging box for placing a first earphone and a second earphone, the device comprising:
the determining module is used for determining a first message corresponding to a first state of the earphone charging box when the state of the earphone charging box is detected to change;
and the sending module is used for sending the first message to the first earphone and sending the first message to the second earphone, wherein the first earphone updates the second state of the first earphone when receiving the first message for the first time and controls the second earphone to update the third state corresponding to the second earphone, and the second earphone forwards the first message to the first earphone when receiving the first message.
11. An earphone control device applied to a first earphone, wherein an earphone charging box is used for placing the first earphone and a second earphone, the device comprising:
and the control module is used for responding to the first message when the first earphone receives the first message for the first time, controlling the first earphone to update the second state of the first earphone and controlling the second earphone to update the third state of the second earphone.
12. An earphone control device, applied to a second earphone, and a charging box for placing a first earphone and the second earphone, the device comprising:
the receiving module is used for receiving a first message sent by the earphone charging box;
and the forwarding module is used for sending the first message to the first earphone, wherein the first earphone updates the second state of the first earphone when receiving the first message for the first time and controls the second earphone to update the third state corresponding to the second earphone.
13. A wireless headset, comprising: comprising a memory for storing a computer program, a processor for implementing the steps of the method of any of claims 1-9 when executing said computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210593891.0A CN115086823A (en) | 2022-05-27 | 2022-05-27 | Earphone control method and device and wireless earphone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210593891.0A CN115086823A (en) | 2022-05-27 | 2022-05-27 | Earphone control method and device and wireless earphone |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115086823A true CN115086823A (en) | 2022-09-20 |
Family
ID=83248663
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210593891.0A Pending CN115086823A (en) | 2022-05-27 | 2022-05-27 | Earphone control method and device and wireless earphone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115086823A (en) |
-
2022
- 2022-05-27 CN CN202210593891.0A patent/CN115086823A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11095967B2 (en) | Wireless audio output devices | |
US10939490B2 (en) | Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices, and dual-mode Bluetooth device | |
EP3592004B1 (en) | Broadcast processing method, device, storage medium and terminal device | |
CN107889092A (en) | Bluetooth devices control method, device, terminal device and storage medium | |
US20190302867A1 (en) | Method and apparatus for reducing continuous-wakeup delay of bluetooth loudspeaker, and bluetooth loudspeaker | |
WO2018103405A1 (en) | Method for identifying access point and hotspot, and related product | |
EP3654591B1 (en) | Method and device for transmitting multimedia message, storage medium, and electronic apparatus | |
CN104168269A (en) | Secure connection establishing method, apparatus and system | |
CN105430711A (en) | Information transmission method and device, and equipment | |
WO2020125074A1 (en) | Message arrival rate determination method and device, data statistics server and storage medium | |
CN111131951A (en) | Wireless earphone positioning method, wireless earphone, electronic equipment and storage medium | |
CN104735657A (en) | Security terminal verification method, device and system and wireless access point binding method | |
WO2019047708A1 (en) | Resource configuration method and related product | |
WO2020102928A1 (en) | Wireless signal transmission method, wireless signal transmission device and terminal device | |
CN111273955B (en) | Thermal restoration plug-in optimization method and device, storage medium and electronic equipment | |
US11706301B2 (en) | Server node selection method and terminal device | |
US20160241472A1 (en) | Method, system, control device and node device for data transmission | |
CN104427118A (en) | Method for recommending contents and mobile terminal | |
CN106953852A (en) | Register method, device and the terminal device of radio receiver | |
JP2019185771A (en) | Method, device for processing data of bluetooth speaker, and bluetooth speaker | |
CN109787900B (en) | Transmission method, device, equipment and machine readable medium | |
EP2960792A2 (en) | Electronic device and data copy method between electronic devices | |
CN115086823A (en) | Earphone control method and device and wireless earphone | |
US11228537B2 (en) | Resource processing method and system, storage medium and electronic device | |
CN115086827A (en) | Earphone in-box detection method and device, earphone and storage medium |
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 |