CN112261535A - Major-minor switching method and device for wireless earphone and readable storage medium - Google Patents

Major-minor switching method and device for wireless earphone and readable storage medium Download PDF

Info

Publication number
CN112261535A
CN112261535A CN202011114535.3A CN202011114535A CN112261535A CN 112261535 A CN112261535 A CN 112261535A CN 202011114535 A CN202011114535 A CN 202011114535A CN 112261535 A CN112261535 A CN 112261535A
Authority
CN
China
Prior art keywords
earphone
state
preset
main
electric quantity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011114535.3A
Other languages
Chinese (zh)
Inventor
张献中
胡路
王奎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Microphone Holdings Co Ltd
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Microphone Holdings 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 Shenzhen Microphone Holdings Co Ltd filed Critical Shenzhen Microphone Holdings Co Ltd
Priority to CN202011114535.3A priority Critical patent/CN112261535A/en
Publication of CN112261535A publication Critical patent/CN112261535A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
    • H04R2201/109Arrangements to adapt hands free headphones for use on both ears

Abstract

The application discloses a main-auxiliary switching method, equipment and a readable storage medium of a wireless earphone, wherein the method comprises the following steps: s11, acquiring the connection state and/or the electric quantity state of the first earphone and/or the second earphone; s12, judging whether a main-auxiliary switching condition is met or not based on the connection state and/or the electric quantity state; and S13, if the conditions are met, switching the main-auxiliary state of the first earphone and the second earphone. The method and the device have the advantages that whether the master-slave state switching is needed or not is determined through the connection state and/or the electric quantity state of the first earphone and/or the second earphone, and when the master-slave state switching is needed, the master-slave state of the first earphone and the second earphone is automatically switched, so that the master-slave switching process of the wireless earphone is more intelligent.

Description

Major-minor switching method and device for wireless earphone and readable storage medium
Technical Field
The present application relates to the field of wireless headset technologies, and in particular, to a method and a device for master-slave switching of a wireless headset, and a readable storage medium.
Background
With the development of Wireless bluetooth technology, TWS (True Wireless Stereo) headsets are favored by various large headset manufacturers. The existing TWS headset consists of: the pair of Bluetooth earphones comprises a pair of Bluetooth earphones and a Bluetooth earphone box, wherein one of the pair of Bluetooth earphones is a main earphone, the other one of the pair of Bluetooth earphones is an auxiliary earphone, and the two earphones are connected through a wireless Bluetooth protocol. When the TWS earphone is used, the main earphone receives audio data output by the audio output end, and the main earphone transmits the audio data to the auxiliary earphone while outputting the audio data, so that the auxiliary earphone can output the audio data.
Therefore, when the user uses the TWS headset, there is a need to switch the secondary headset to the primary headset, however, when the primary and secondary headsets are switched, the user is required to perform manual switching, thereby reducing the user experience.
Therefore, the problem that the existing main-auxiliary switching process of the wireless earphone is not intelligent enough exists.
The foregoing description is provided for general background information and is not admitted to be prior art.
Disclosure of Invention
The present application mainly aims to provide a method, a device and a readable storage medium for switching between a master and a slave of a wireless headset, and aims to solve the technical problem of insufficient intelligence in the master and slave switching process of the existing wireless headset.
In order to achieve the above object, the present application provides a method for switching between a primary and a secondary of a wireless headset, the wireless headset comprising: at least a first earpiece and at least a second earpiece, the method comprising the steps of:
s11, acquiring the connection state and/or the electric quantity state of the first earphone and/or the second earphone;
s12, judging whether a main-auxiliary switching condition is met or not based on the connection state and/or the electric quantity state;
and S13, if the conditions are met, switching the main-auxiliary state of the first earphone and the second earphone.
Preferably, before the step of S11, the method further includes:
detecting whether the state of the first earphone and/or the second earphone is changed in a preset way;
if yes, the step S11 is executed.
Preferably, the preset variation comprises at least one of the following:
changing from a charging state to an off-charging state;
changing from an off-state to a charged state;
changing from a worn state to an unworn state;
changing from an unworn state to a worn state;
changing from a fully charged state to a low charged state;
changing from a low battery state to a fully charged state;
the connection time and/or the connection distance are changed.
Preferably, when it is detected that the state of the second earphone is the second preset state, the step S11 includes:
judging whether the state of the first earphone is a first preset state or not;
and if so, acquiring the connection state and/or the electric quantity information of the first earphone.
Preferably, the first and second electrodes are formed of a metal,
the first preset state comprises at least one of: disconnecting the charging state, the wearing state and the electric quantity sufficient state; and/or the presence of a gas in the gas,
the second preset state comprises at least one of: a charging state, an unworn state, a low battery state.
Preferably, the step of S12 includes:
and if the connection state of the first earphone is an auxiliary earphone state and/or the electric quantity of the first earphone meets a preset electric quantity condition, a main-auxiliary switching condition is met.
Preferably, the step of S12 includes:
if the connection state of the first earphone is an auxiliary earphone state, judging whether the electric quantity of the first earphone is larger than that of the second earphone;
and if so, the main and auxiliary switching conditions are met.
Preferably, before the step of satisfying the primary and secondary switching conditions, the method further includes:
acquiring an electric quantity difference value between the electric quantity of the first earphone and the electric quantity of the second earphone;
if the electric quantity difference value is smaller than a preset electric quantity threshold value, outputting prompt information, and judging whether to switch the first earphone to be in a main earphone state or not according to feedback operation aiming at the prompt information; and/or if the electric quantity difference value is larger than or equal to a preset electric quantity threshold value, the main-auxiliary switching condition is met.
Preferably, the step S12 further includes:
if the connection state of the first earphone is an auxiliary earphone state, judging whether the first earphone is a preset common earphone or not;
if not, the main and auxiliary switching conditions are met.
Preferably, before the step of S13, the method further includes:
if the connection state of the first earphone is a main earphone state, judging whether the connection time of the first earphone exceeds a preset time and/or whether the connection distance exceeds a preset distance;
and if so, the main and auxiliary switching conditions are met.
Preferably, the method further comprises:
if the connection distance of the first earphone exceeds a preset distance, judging whether the connection distance of the second earphone exceeds the preset distance;
and if not, the main and auxiliary switching conditions are met.
Preferably, the method further comprises:
if the connection distance of the first earphone exceeds a preset distance, judging whether the connection distance of the first earphone is greater than that of the second earphone;
and if so, the main and auxiliary switching conditions are met.
Preferably, the method further comprises:
if the connection distance of the first earphone exceeds a preset distance, acquiring a distance difference value between the connection distance of the first earphone and the connection distance of the second earphone;
if the distance difference is smaller than a preset distance threshold, outputting prompt information, and judging whether to switch the first earphone to an auxiliary earphone state or not according to feedback operation aiming at the prompt information; and/or the presence of a gas in the gas,
and if the distance difference is greater than or equal to a preset distance threshold, the main-auxiliary switching condition is met.
Furthermore, to achieve the above object, the present application also provides an apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the master-slave switching method of the wireless headset as described above.
In addition, to achieve the above object, the present application further provides a computer-readable storage medium, on which a main-sub switching program of a wireless headset is stored, and the main-sub switching program of the wireless headset, when executed by a processor, implements the steps of the main-sub switching method of the wireless headset as described above.
The connection state and/or the electric quantity state of the first earphone and/or the second earphone are/is obtained through S11; s12, judging whether a main-auxiliary switching condition is met or not based on the connection state and/or the electric quantity state; and S13, if the conditions are met, switching the main-auxiliary state of the first earphone and the second earphone. Whether the primary and secondary states need to be switched is determined through the connection state and/or the electric quantity state of the first earphone and/or the second earphone, and when the primary and secondary states need to be switched, the primary and secondary states of the first earphone and the second earphone are automatically switched, so that the primary and secondary switching process of the wireless earphone is more intelligent.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic hardware structure diagram of a mobile terminal implementing various embodiments of the present application;
fig. 2 is a communication network system architecture diagram according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a first embodiment of a method for switching between a primary mode and a secondary mode of a wireless headset according to the present invention;
FIG. 4 is a schematic diagram illustrating a display effect of a prompt message according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings. With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
It should be noted that, in this document, 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, the recitation of an element by the phrase "comprising an … …" does not exclude the presence of additional like elements in the process, method, article, or apparatus that comprises the element, and further, where similarly-named elements, features, or elements in different embodiments of the disclosure may have the same meaning, or may have different meanings, that particular meaning should be determined by their interpretation in the embodiment or further by context with the embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. Thus, "A, B or C" or "A, B and/or C" means "any of the following: a; b; c; a and B; a and C; b and C; A. b and C ". An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
It should be noted that step numbers such as S11 and S12 are used herein for the purpose of more clearly and briefly describing the corresponding content, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S12 first and then S11 in specific implementation, which should be within the scope of the present application.
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The apparatus may be embodied in various forms. For example, the devices described in the present application may include mobile terminals such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and fixed terminals such as a Digital TV, a desktop computer, and the like.
The following description will be given taking a mobile terminal as an example, and it will be understood by those skilled in the art that the configuration according to the embodiment of the present application can be applied to a fixed type terminal in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present application, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that may optionally adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 1061 and/or the backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Optionally, the touch detection device detects a touch orientation of a user, detects a signal caused by a touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a program storage area and a data storage area, and optionally, the program storage area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, optionally, the application processor mainly handles operating systems, user interfaces, application programs, etc., and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present application, a communication network system on which the mobile terminal of the present application is based is described below.
Referring to fig. 5, fig. 5 is an architecture diagram of a communication Network system provided in an embodiment of the present application, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Alternatively, the eNodeB2021 may be connected with other enodebs 2022 through a backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. Optionally, the MME2031 is a control node that handles signaling between the UE201 and the EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present application is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, various embodiments of the present application are provided.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a first embodiment of a main-auxiliary switching method for a wireless headset according to the present application.
While the embodiments of the present application provide an embodiment of a method for switching between main and auxiliary systems of a wireless headset, it should be noted that although a logical sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a different sequence than here. The primary and secondary switching method of the wireless headset can be applied to a TWS headset, wherein the TWS headset is a wireless headset, and the wireless headset comprises the following steps: at least one first earphone and at least one second earphone, for convenience of description, the following omits the steps of the main-auxiliary switching method of the wireless earphone. The main-auxiliary switching method of the wireless headset comprises the following steps:
step S11, acquiring a connection status and/or a power status of the first earphone and/or the second earphone.
Optionally, acquiring a connection state of the first earphone, the second earphone, or the first earphone and the second earphone; or acquiring the electric quantity states of the first earphone, the second earphone or the first earphone and the second earphone; or, acquiring the connection state and the electric quantity state of the first earphone, the second earphone or the first earphone and the second earphone. The connection state is a pairing state (for example, whether bluetooth is successfully paired) between the wireless headset and an Audio data output end (for example, a mobile phone, an MP3(Moving Picture Experts Group Audio Layer III, motion Picture Experts Group Audio Layer 3, etc.). The pairing state comprises a pairing state between the first earphone and the audio data output end; or a pairing state between the second earphone and the audio data output end; or a pairing state between the first and second earphones and the audio data output. The electric quantity state is the residual electric quantity of the wireless earphone, and the endurance time of the first earphone or the second earphone can be determined through the residual electric quantity.
Optionally, before the step S11, the method further includes:
step a, detecting whether the state of the first earphone and/or the second earphone is changed in a preset way;
and b, if yes, executing the step S11.
Optionally, detecting whether the state of the first earphone and/or the second earphone is changed in a preset manner, and if the state of the first earphone and/or the second earphone is changed in the preset manner, executing the step of acquiring the connection state and/or the electric quantity state of the first earphone and/or the second earphone; and if the preset change does not occur, the step of the connection state and/or the electric quantity state of the first earphone and/or the second earphone is not executed.
Optionally, the preset variation includes at least one of:
changing from a charging state to an off-charging state;
changing from an off-state to a charged state;
changing from a worn state to an unworn state;
changing from an unworn state to a worn state;
changing from a fully charged state to a low charged state;
changing from a low battery state to a fully charged state;
the connection time and/or the connection distance are changed.
Optionally, the preset change includes changing from a charging state to an off-charging state; changing from an off-state to a charged state; changing from a worn state to an unworn state; changing from an unworn state to a worn state; changing from a fully charged state to a low charged state; changing from a low battery state to a fully charged state; at least one of the connection time and the connection distance is changed.
It can be understood that when the user does not use the first earphone and/or the second earphone, the corresponding earphone is put back into the charging box for charging; and when the first earphone and/or the second earphone is/are needed to be used, the corresponding earphone is taken out of the charging box. Whether the user needs to use the corresponding headset may be determined by whether the first headset and/or the second headset is in a charging state.
Optionally, for a change from the charging state to the disconnected charging state, the corresponding headset may be powered on for use by the user.
Optionally, for a change from the off-charging state to the charging state, the corresponding headset may be powered off and charged.
It can be understood that when the user does not use the first earphone and/or the second earphone, the corresponding earphone is removed from the ear, that is, the corresponding earphone is changed from the wearing state to the non-wearing state; and when the first earphone and/or the second earphone needs to be used, the corresponding earphone is worn on the ear, namely the corresponding earphone is changed from the unworn state to the worn state.
It will be appreciated that since the audio data is transmitted directly to the primary earpiece, the earpiece in the worn state is more suitable as the primary earpiece, particularly for use by a user using only a single earpiece, i.e. only the first earpiece or the second earpiece. For example, if the user takes the primary earphone off, the wearing state of the primary earphone is changed from the wearing state to the non-wearing state, and the wearing state of the secondary earphone is not changed or changed from the non-wearing state to the wearing state.
Optionally, the wireless headset may consume electric energy of a built-in battery during use, when the electric quantity of the battery is low, in order to avoid damage to the battery, when the remaining electric quantity is less than or equal to an electric quantity threshold, a user needs to be reminded to charge the battery, and accordingly, the electric quantity state is changed from a sufficient electric quantity state to a low electric quantity state; when the electric quantity state of the battery is changed from the low electric quantity state to the sufficient electric quantity state, the earphone corresponding to the battery is more suitable to be switched into the main earphone. It can be understood that, for the main earphone, it is necessary to receive the audio data from the audio data output terminal and to transmit the audio data to the sub-earphone, and the power consumption of the main earphone is higher than that of the sub-earphone, so that the remaining power of the main earphone is higher than that of the sub-earphone to maintain the normal use of the main earphone.
Optionally, a connection time is set for the first earphone or the second earphone, where the connection time is used to limit a time for switching the first earphone or the second earphone to the main earphone, and it can be understood that the main earphone can be switched back and forth between the first earphone and the second earphone through the connection time, so as to avoid that the power consumption of the first earphone or the second earphone is too fast due to separately switching the first earphone or the second earphone to the main earphone, so that a user cannot use the first earphone and the second earphone at the same time (i.e., one of the earphones needs to be charged); the connection distance is set for the first earphone and/or the second earphone, it can be understood that the Bluetooth connection is limited in distance, and if the connection distance between the first earphone and/or the second earphone and the audio data output end reaches the distance limit, the quality of the Bluetooth connection is affected and even the Bluetooth connection is disconnected.
The connection distance includes a connection distance between the first earphone and the second earphone and a connection distance between the main earphone and the audio data output device.
Optionally, when it is detected that the state of the second earphone is the second preset state, the step S11 further includes:
and c, judging whether the state of the first earphone is a first preset state or not.
Optionally, when it is detected that the state of the second earphone is the second preset state, it is determined whether the state of the first earphone is the first preset state.
Optionally, the first preset state includes at least one of: disconnecting the charging state, the wearing state and the electric quantity sufficient state; and/or the presence of a gas in the gas,
the second preset state comprises at least one of: a charging state, an unworn state, a low battery state.
Optionally, the first preset state includes at least one of an off-charging state, a wearing state, and a sufficient-charge state; the second preset state comprises at least one of a charging state, a non-wearing state and a low-battery state. It can be understood that when the first preset state is different from the second preset state, whether the main earphone and the auxiliary earphone need to be switched or not needs to be considered; when the first preset state is the same as the second preset state, the main earphone and the auxiliary earphone do not need to be switched. For example, the first preset state is a low power state, and the second preset state is also a low power state, and it is not appropriate whether the first earphone is switched to the primary earphone or the second earphone is switched to the primary earphone, so that switching between the primary earphone and the secondary earphone is not needed.
And d, if so, acquiring the connection state and/or the electric quantity information of the first earphone.
Optionally, if the state of the first earphone is the first preset state, it indicates that the first preset state is different from the second preset state, and the connection state and/or the power information of the first earphone needs to be acquired, so as to determine whether the main and auxiliary earphones need to be switched. Wherein, the electric quantity information is the residual electric quantity.
And step S12, judging whether a main-auxiliary switching condition is met or not based on the connection state and/or the electric quantity state.
Optionally, whether the primary and secondary switching conditions are met is determined based on the connection status, the power status, or the connection status and the power status. The connection state, or the electric quantity state, or the connection state and the electric quantity state need to meet the use requirements of the user (for example, a single earphone needs to be a main earphone), and when the connection state, or the electric quantity state, or the connection state and the electric quantity state do not meet the use requirements of the user, the main-auxiliary switching condition is met; and when the connection state, the electric quantity state or the connection state and the electric quantity state meet the use requirements of users, the main and auxiliary switching conditions are not met.
Preferably, to reduce the influence of the primary-secondary switching on the usage process of the user, the above-mentioned determination process may occur when the user does not use the wireless headset (e.g., the first headset and/or the second headset is taken out of the charging box). It can be understood that the wireless headset interrupts the input and output of data when the primary and secondary headsets are switched, and therefore, the audio output is interrupted (for example, music is stopped playing when the user listens to music), which affects the user experience.
Optionally, the step S12 includes:
and e, if the connection state of the first earphone is an auxiliary earphone state and/or the electric quantity of the first earphone meets a preset electric quantity condition, meeting a main-auxiliary switching condition.
Optionally, if the connection state of the first earphone is an auxiliary earphone state, and/or the electric quantity of the first earphone meets a preset electric quantity condition, a main-auxiliary switching condition is met. The preset electric quantity condition is the minimum electric quantity requirement of the main-auxiliary switching, and the residual electric quantity corresponding to the minimum electric quantity requirement is between the residual electric quantity corresponding to the low electric quantity state and the residual electric quantity corresponding to the electric quantity sufficient state.
Optionally, the step S12 further includes:
step f, if the connection state of the first earphone is an auxiliary earphone state, judging whether the electric quantity of the first earphone is larger than that of the second earphone;
and g, if so, meeting the main and auxiliary switching conditions.
Optionally, if the connection state of the first earphone is the sub-earphone state, determining whether the electric quantity of the first earphone is greater than the electric quantity of the second earphone. If the electric quantity of the first earphone is larger than that of the second earphone, the first earphone is more suitable to be switched into a main earphone compared with the second earphone, namely, a main-auxiliary switching condition is met; if the electric quantity of the first earphone is less than or equal to the electric quantity of the second earphone, the second earphone is more suitable to be switched into the main earphone or the main earphone and the auxiliary earphone are not needed to be switched compared with the first earphone, namely, the main and auxiliary switching condition is not met.
Optionally, before the step of satisfying the primary and secondary switching conditions, the method further includes:
step h, acquiring an electric quantity difference value between the electric quantity of the first earphone and the electric quantity of the second earphone;
step i, if the electric quantity difference value is smaller than a preset electric quantity threshold value, outputting prompt information, and judging whether to switch the first earphone to be in a main earphone state or not according to feedback operation aiming at the prompt information; and/or the presence of a gas in the gas,
and if the electric quantity difference value is greater than or equal to a preset electric quantity threshold value, the main-auxiliary switching condition is met.
Optionally, acquiring an electric quantity difference value between the electric quantity of the first earphone and the electric quantity of the second earphone, outputting a prompt message if the electric quantity difference value is smaller than a preset electric quantity threshold value, and judging whether to switch the first earphone into a main earphone state according to a feedback operation aiming at the prompt message; and if the electric quantity difference value is greater than or equal to the preset electric quantity threshold value, the main and auxiliary switching condition is met. It can be understood that when the power difference is greater than or equal to the preset power threshold, the difference between the power of the first earphone and the power of the second earphone is larger, for example, 40% and 80%, it is more intelligent to switch the primary earphone and the secondary earphone when the difference is larger, and when the difference between the power of the first earphone and the power of the second earphone is smaller, for example, 40% and 42%, it is not necessary to switch the primary earphone and the secondary earphone too much.
It is understood that the prompting message includes information output in the form of a voice prompt (e.g., a voice assistant), a text prompt (e.g., a screen pop), a vibration and voice prompt, a vibration and text prompt, a light and voice prompt, a light and text prompt. Referring to fig. 4, 200 is an audio data output end connected to the wireless headset, and 201 is prompt information output through the audio data output end 200, and is used for prompting a user to switch between the primary and secondary headsets, so as to improve the service life of the wireless headset, and improve user experience.
It can be understood that the feedback operation is a corresponding operation performed by the user for the prompt information. For example, the voice prompts the user whether to switch the first earphone to the main earphone state, and if the feedback operation of the user is to reply yes through voice, the first earphone is switched to the main earphone state.
Optionally, the step S12 further includes:
j, if the connection state of the first earphone is an auxiliary earphone state, judging whether the first earphone is a preset common earphone or not;
and step k, if yes, the main and auxiliary switching conditions are met.
Optionally, if the connection state of the first earphone is the auxiliary earphone state, determining whether the first earphone is a preset common earphone; if the first earphone is a preset common earphone, the earphone is more suitable to be switched to a main earphone, and for the convenience of a user, the connection state of the earphone needs to be switched to the main earphone state, namely, the main-auxiliary switching condition is met.
And step S13, if yes, switching the main-auxiliary state of the first earphone and the second earphone.
Optionally, if the primary-secondary switching condition is met, switching the primary-secondary state of the first earphone and the second earphone; and if the main-auxiliary switching condition is not met, maintaining the main-auxiliary state of the first earphone and the second earphone.
Optionally, before the step S13, the method further includes:
step l, if the connection state of the first earphone is a main earphone state, judging whether the connection time of the first earphone exceeds a preset time and/or whether the connection distance exceeds a preset distance;
and m, if yes, the main and auxiliary switching conditions are met.
Optionally, if the connection state of the first earphone is the main earphone state, it is determined whether the connection time of the first earphone exceeds a preset time and/or the connection distance exceeds a preset distance, and if the connection time of the first earphone exceeds the preset time and/or the connection distance exceeds the preset distance, the main-auxiliary switching condition is satisfied. It will be appreciated that the first earphone is not suitable for continued switching to the primary earphone when the connection time exceeds a preset time; the first earphone is not suitable for continuing to switch to the main earphone when the connection distance exceeds the preset distance. It can be understood that the connection distance of the first earphone is the connection distance between the first earphone and the audio data output end, if the connection distance of the second earphone is smaller than the preset distance and the second earphone is located between the first earphone and the audio data output end, the second earphone can be switched to the main earphone, so that after the connection distance of the first earphone is greater than the preset distance, the user can also use the first earphone, namely, the distance corresponding to the usable range of the first earphone is the sum of the connection distance of the second earphone and the distance between the second earphone and the first earphone.
It should be noted that, when the connection distance is about to exceed the preset distance, the user may be prompted, for example, to output a voice prompt message through the first earphone, so as to prompt the user to stop increasing the connection distance, thereby avoiding that the connection between the first earphone and the audio data output end is disconnected or the switching between the main earphone and the auxiliary earphone occurs under the condition that the user does not know.
Optionally, the method further comprises:
n, if the connection distance of the first earphone exceeds a preset distance, judging whether the connection distance of the second earphone exceeds the preset distance;
and step o, if not, the main and auxiliary switching conditions are met.
Optionally, if the connection distance of the first earphone exceeds a preset distance, determining whether the connection distance of the second earphone exceeds the preset distance, and if not, meeting a primary-secondary switching condition; if the number exceeds the preset value, the main and auxiliary switching conditions are not met. It can be understood that after the connection distance exceeds the preset distance, if the connection distance continues to be used as the main earphone, the connection distance may be disconnected from the audio data output end, which affects the user experience.
Optionally, the method further comprises:
step p, if the connection distance of the first earphone exceeds a preset distance, judging whether the connection distance of the first earphone is greater than that of the second earphone;
and q, if so, meeting the main and auxiliary switching conditions.
Optionally, if the connection distance of the first earphone exceeds a preset distance, determining whether the connection distance of the first earphone is greater than the connection distance of the second earphone, and if the connection distance of the first earphone is greater than the connection distance of the second earphone, satisfying the primary-secondary switching condition; and if the connection distance of the first earphone is less than or equal to that of the second earphone, the main-auxiliary switching condition is not met. It will be appreciated that after the first earpiece fails to act as the primary earpiece, an attempt is made to switch the second earpiece to the primary earpiece to enable the user to use the wireless earpiece as much as possible.
Optionally, the method further comprises:
r, if the connection distance of the first earphone exceeds a preset distance, acquiring a distance difference value between the connection distance of the first earphone and the connection distance of the second earphone;
step s, if the distance difference is smaller than a preset distance threshold, outputting prompt information, and judging whether to switch the first earphone to an auxiliary earphone state according to feedback operation aiming at the prompt information; and/or the presence of a gas in the gas,
and t, if the distance difference value is greater than or equal to a preset distance threshold value, the main-auxiliary switching condition is met.
Optionally, if the connection distance of the first earphone exceeds the preset distance, a distance difference between the connection distance of the first earphone and the connection distance of the second earphone is obtained to determine the distance between the first earphone and the second earphone.
If the distance difference is smaller, it is indicated that the distance between the first earphone and the second earphone is smaller, when the distance difference is smaller than the preset distance threshold, the need for switching between the main earphone and the auxiliary earphone is not needed, but the distance difference may continue to increase, and whether to switch the first earphone to the auxiliary earphone state or not may be judged by outputting a prompt message to prompt a user whether to switch between the main earphone and the auxiliary earphone or not and according to a feedback operation (a user selection result (whether to switch between the main earphone and the auxiliary earphone)) of the user aiming at the prompt message. If the user selects yes, switching between the main earphone and the auxiliary earphone is carried out; and if the user selects no, the switching of the main earphone and the auxiliary earphone is not carried out.
If the distance difference is larger, the main-auxiliary switching condition is met, namely when the distance difference is larger than or equal to a preset distance threshold value, the second earphone with the smaller connection distance is switched to the main earphone.
It should be noted that, in addition to obtaining the distance between the first earphone and the second earphone by obtaining the connection distance of the first earphone and the connection distance of the second earphone, the distance between the first earphone and the second earphone may be directly determined by the first earphone and the second earphone, for example, by the signal transmission time between the main earphone and the auxiliary earphone.
In addition, when the connection distance of the first earphone and the connection distance of the second earphone are both smaller than the distance threshold, if the connection distance of the first earphone is larger than the connection distance of the second earphone and the first earphone is the main earphone, the second earphone can be switched to the main earphone, so that the transmission distance of data in the system of the audio data output end and the wireless earphone is reduced, and the total output power of the system of the audio data output end and the wireless earphone is reduced.
In this embodiment, the connection state and/or the power state of the first earphone and/or the second earphone is obtained through S11; s12, judging whether a main-auxiliary switching condition is met or not based on the connection state and/or the electric quantity state; and S13, if the conditions are met, switching the main-auxiliary state of the first earphone and the second earphone. Whether the primary and secondary states need to be switched is determined through the connection state and/or the electric quantity state of the first earphone and/or the second earphone, and when the primary and secondary states need to be switched, the primary and secondary states of the first earphone and the second earphone are automatically switched, so that the primary and secondary switching process of the wireless earphone is more intelligent.
In addition, this application still provides a main vice auto-change over device of wireless earphone, main vice auto-change over device of wireless earphone includes:
an obtaining module 10, configured to obtain a connection state and/or an electric quantity state of the first earphone and/or the second earphone;
a determining module 20, configured to determine whether a primary-secondary switching condition is met based on the connection state and/or the power state;
and a switching module 30, configured to switch the master-slave states of the first earphone and the second earphone if the first earphone and the second earphone are satisfied.
Further, the main-auxiliary switching device of the wireless earphone also comprises
The detection module is used for detecting whether the state of the first earphone and/or the second earphone is changed in a preset way; if yes, the step S11 is executed.
Further, the obtaining module 10 includes:
the first judgment unit is used for judging whether the state of the first earphone is a first preset state or not;
and the acquisition unit is used for acquiring the connection state and/or the electric quantity information of the first earphone if the connection state and/or the electric quantity information of the first earphone is/are acquired.
Further, the determining module 20 includes:
a second determining unit, configured to determine whether the first earphone is a preset common earphone if the connection state of the first earphone is an auxiliary earphone state; if not, the main and auxiliary switching conditions are met.
Further, the determining module 20 is further configured to determine whether the connection time of the first earphone exceeds a preset time and/or the connection distance exceeds a preset distance if the connection state of the first earphone is the master earphone state; and if so, the main and auxiliary switching conditions are met.
Further, the determining module 20 is further configured to determine whether the connection distance of the second earphone exceeds a preset distance if the connection distance of the first earphone exceeds the preset distance; and if not, the main and auxiliary switching conditions are met.
Further, the determining module 20 is further configured to determine whether the connection distance of the first earphone is greater than the connection distance of the second earphone if the connection distance of the first earphone exceeds a preset distance; and if so, the main and auxiliary switching conditions are met.
Further, the obtaining module 10 is further configured to obtain a distance difference between the connection distance of the first earphone and the connection distance of the second earphone if the connection distance of the first earphone exceeds a preset distance; if the distance difference is smaller than a preset distance threshold, outputting prompt information, and judging whether to switch the first earphone to an auxiliary earphone state or not according to feedback operation aiming at the prompt information; and/or if the distance difference is larger than or equal to a preset distance threshold, the main-auxiliary switching condition is met.
The specific implementation of the main-auxiliary switching device of the wireless headset of the present application is substantially the same as the embodiments of the main-auxiliary switching method of the wireless headset, and will not be described herein again.
In addition, the present application also provides an apparatus. As shown in fig. 5, fig. 5 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present application.
It should be noted that fig. 5 is a schematic structural diagram of a hardware operating environment of the device.
As shown in fig. 5, the apparatus may include: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the device may also include RF (Radio Frequency) circuitry, sensors, audio circuitry, WiFi modules, and the like.
Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 5 is not intended to be limiting of the apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 5, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a main-sub switching program of the wireless headset. The operating system is a program for managing and controlling hardware and software resources of the equipment, and supports the main and auxiliary switching programs of the wireless headset and the running of other software or programs.
In the apparatus shown in fig. 5, the user interface 1003 is mainly used to receive log data; the network interface 1004 is mainly used for the background server and performs data communication with the background server; the processor 1001 may be configured to call a main-sub switching program of the wireless headset stored in the memory 1005 and perform the steps of the main-sub switching method of the wireless headset as described above.
The specific implementation of the device of the present application is substantially the same as the embodiments of the master-slave switching method of the wireless headset, and is not described herein again.
In addition, an embodiment of the present application also provides a computer-readable storage medium, where a main-sub switching program of a wireless headset is stored, and when executed by a processor, the main-sub switching program of the wireless headset implements the steps of the main-sub switching method of the wireless headset as described above.
The specific implementation of the computer-readable storage medium of the present application is substantially the same as the embodiments of the master-slave switching method of the wireless headset, and is not described herein again.
Embodiments of the present application also provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method in the above various possible embodiments.
Embodiments of the present application further provide a chip, which includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the method in the above various possible embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (15)

1. A method of master-slave switching for a wireless headset, the wireless headset comprising: at least one first earpiece and at least one second earpiece, the method comprising the steps of:
s11, acquiring the connection state and/or the electric quantity state of the first earphone and/or the second earphone;
s12, judging whether a main-auxiliary switching condition is met or not based on the connection state and/or the electric quantity state;
and S13, if the conditions are met, switching the main-auxiliary state of the first earphone and the second earphone.
2. The method of claim 1, wherein the step of S11 is preceded by the step of:
detecting whether the state of the first earphone and/or the second earphone is changed in a preset way;
if yes, the step S11 is executed.
3. The method of claim 2, wherein the preset changes comprise at least one of:
changing from a charging state to an off-charging state;
changing from an off-state to a charged state;
changing from a worn state to an unworn state;
changing from an unworn state to a worn state;
changing from a fully charged state to a low charged state;
changing from a low battery state to a fully charged state;
the connection time and/or the connection distance are changed.
4. The method according to any one of claims 1 to 3, wherein when the state of the second earphone is detected to be a second preset state, the step of S11 includes:
judging whether the state of the first earphone is a first preset state or not;
and if so, acquiring the connection state and/or the electric quantity information of the first earphone.
5. The method of claim 4,
the first preset state comprises at least one of: disconnecting the charging state, the wearing state and the electric quantity sufficient state; and/or the presence of a gas in the gas,
the second preset state comprises at least one of: a charging state, an unworn state, a low battery state.
6. The method of claim 4, wherein the step of S12 includes:
and if the connection state of the first earphone is an auxiliary earphone state and/or the electric quantity of the first earphone meets a preset electric quantity condition, a main-auxiliary switching condition is met.
7. The method according to any one of claims 1 to 3, wherein the step of S12 includes:
if the connection state of the first earphone is an auxiliary earphone state, judging whether the electric quantity of the first earphone is larger than that of the second earphone;
and if so, the main and auxiliary switching conditions are met.
8. The method of claim 7, wherein the step of satisfying the primary and secondary handover conditions is preceded by the step of:
acquiring an electric quantity difference value between the electric quantity of the first earphone and the electric quantity of the second earphone;
if the electric quantity difference value is smaller than a preset electric quantity threshold value, outputting prompt information, and judging whether to switch the first earphone to be in a main earphone state or not according to feedback operation aiming at the prompt information; and/or the presence of a gas in the gas,
and if the electric quantity difference value is greater than or equal to a preset electric quantity threshold value, the main-auxiliary switching condition is met.
9. The method according to any one of claims 1 to 3, wherein the step of S12 further comprises:
if the connection state of the first earphone is an auxiliary earphone state, judging whether the first earphone is a preset common earphone or not;
if not, the main and auxiliary switching conditions are met.
10. The method according to any one of claims 1 to 3, wherein the step of S13 is preceded by the step of:
if the connection state of the first earphone is a main earphone state, judging whether the connection time of the first earphone exceeds a preset time and/or whether the connection distance exceeds a preset distance;
and if so, the main and auxiliary switching conditions are met.
11. The method of claim 10, wherein the method further comprises:
if the connection distance of the first earphone exceeds a preset distance, judging whether the connection distance of the second earphone exceeds the preset distance;
and if not, the main and auxiliary switching conditions are met.
12. The method of claim 10, wherein the method further comprises:
if the connection distance of the first earphone exceeds a preset distance, judging whether the connection distance of the first earphone is greater than that of the second earphone;
and if so, the main and auxiliary switching conditions are met.
13. The method of claim 12, wherein the method further comprises:
if the connection distance of the first earphone exceeds a preset distance, acquiring a distance difference value between the connection distance of the first earphone and the connection distance of the second earphone;
if the distance difference is smaller than a preset distance threshold, outputting prompt information, and judging whether to switch the first earphone to an auxiliary earphone state or not according to feedback operation aiming at the prompt information; and/or the presence of a gas in the gas,
and if the distance difference is greater than or equal to a preset distance threshold, the main-auxiliary switching condition is met.
14. An apparatus, characterized in that the apparatus comprises: memory, processor and computer program stored on the memory and executable on the processor, which when executed by the processor, performs the steps of the method of master-slave switching of a wireless headset according to any of claims 1 to 13.
15. A readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of master-slave switching of a wireless headset according to any of claims 1 to 13.
CN202011114535.3A 2020-10-16 2020-10-16 Major-minor switching method and device for wireless earphone and readable storage medium Pending CN112261535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011114535.3A CN112261535A (en) 2020-10-16 2020-10-16 Major-minor switching method and device for wireless earphone and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011114535.3A CN112261535A (en) 2020-10-16 2020-10-16 Major-minor switching method and device for wireless earphone and readable storage medium

Publications (1)

Publication Number Publication Date
CN112261535A true CN112261535A (en) 2021-01-22

Family

ID=74244744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011114535.3A Pending CN112261535A (en) 2020-10-16 2020-10-16 Major-minor switching method and device for wireless earphone and readable storage medium

Country Status (1)

Country Link
CN (1) CN112261535A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113099357A (en) * 2021-04-09 2021-07-09 恒玄科技(上海)股份有限公司 Master-slave switching method and device of wireless earphone and wireless earphone
CN113329290A (en) * 2021-05-18 2021-08-31 RealMe重庆移动通信有限公司 Earphone control method, earphone control device, wireless earphone and storage medium
CN115175065A (en) * 2022-09-06 2022-10-11 荣耀终端有限公司 Broadcasting method, TWS earphone and storage medium
CN116055932A (en) * 2022-08-12 2023-05-02 荣耀终端有限公司 Earphone main and auxiliary ear switching method

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378493A (en) * 2013-08-16 2015-02-25 联想(北京)有限公司 Mode switching method and electronic device
CN106937197A (en) * 2017-01-25 2017-07-07 北京联创志芯科技有限公司 Double-ear wireless earphone and communication control method thereof
CN107071618A (en) * 2017-04-26 2017-08-18 歌尔科技有限公司 A kind of method and apparatus for connecting ears bluetooth earphone
CN107708014A (en) * 2017-11-08 2018-02-16 深圳市沃特沃德股份有限公司 Method and device for automatically switching master-slave relation of wireless earphone and wireless earphone
CN108271090A (en) * 2018-01-10 2018-07-10 深圳市沃特沃德股份有限公司 Bluetooth headset master-slave switching method and device
US20180279038A1 (en) * 2017-03-22 2018-09-27 Bragi GmbH System and Method for Sharing Wireless Earpieces
CN108696784A (en) * 2018-06-06 2018-10-23 歌尔科技有限公司 A kind of method of wireless headset role switching, wireless headset and TWS earphones
CN108769432A (en) * 2018-07-27 2018-11-06 Oppo广东移动通信有限公司 Main earphone switching method, mobile terminal and computer readable storage medium
CN108900939A (en) * 2018-06-07 2018-11-27 广东思派康电子科技有限公司 A kind of TWS earphone and computer readable storage medium being able to achieve master-slave swap
CN109041142A (en) * 2018-07-27 2018-12-18 Oppo广东移动通信有限公司 Main earphone switching method and relevant device
CN109068206A (en) * 2018-07-02 2018-12-21 Oppo广东移动通信有限公司 Principal and subordinate's earphone method for handover control and Related product
CN109743654A (en) * 2019-01-29 2019-05-10 上海与德通讯技术有限公司 A kind of bluetooth headset major-minor ear switching method, device, equipment and medium
CN111132110A (en) * 2019-12-26 2020-05-08 重庆物奇科技有限公司 Device master-slave role switching system and method for wireless communication

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378493A (en) * 2013-08-16 2015-02-25 联想(北京)有限公司 Mode switching method and electronic device
CN106937197A (en) * 2017-01-25 2017-07-07 北京联创志芯科技有限公司 Double-ear wireless earphone and communication control method thereof
US20180279038A1 (en) * 2017-03-22 2018-09-27 Bragi GmbH System and Method for Sharing Wireless Earpieces
CN107071618A (en) * 2017-04-26 2017-08-18 歌尔科技有限公司 A kind of method and apparatus for connecting ears bluetooth earphone
CN107708014A (en) * 2017-11-08 2018-02-16 深圳市沃特沃德股份有限公司 Method and device for automatically switching master-slave relation of wireless earphone and wireless earphone
CN108271090A (en) * 2018-01-10 2018-07-10 深圳市沃特沃德股份有限公司 Bluetooth headset master-slave switching method and device
CN108696784A (en) * 2018-06-06 2018-10-23 歌尔科技有限公司 A kind of method of wireless headset role switching, wireless headset and TWS earphones
CN108900939A (en) * 2018-06-07 2018-11-27 广东思派康电子科技有限公司 A kind of TWS earphone and computer readable storage medium being able to achieve master-slave swap
CN109068206A (en) * 2018-07-02 2018-12-21 Oppo广东移动通信有限公司 Principal and subordinate's earphone method for handover control and Related product
CN108769432A (en) * 2018-07-27 2018-11-06 Oppo广东移动通信有限公司 Main earphone switching method, mobile terminal and computer readable storage medium
CN109041142A (en) * 2018-07-27 2018-12-18 Oppo广东移动通信有限公司 Main earphone switching method and relevant device
CN109743654A (en) * 2019-01-29 2019-05-10 上海与德通讯技术有限公司 A kind of bluetooth headset major-minor ear switching method, device, equipment and medium
CN111132110A (en) * 2019-12-26 2020-05-08 重庆物奇科技有限公司 Device master-slave role switching system and method for wireless communication

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113099357A (en) * 2021-04-09 2021-07-09 恒玄科技(上海)股份有限公司 Master-slave switching method and device of wireless earphone and wireless earphone
CN113099357B (en) * 2021-04-09 2022-11-04 恒玄科技(上海)股份有限公司 Master-slave switching method and device of wireless earphone and wireless earphone
CN113329290A (en) * 2021-05-18 2021-08-31 RealMe重庆移动通信有限公司 Earphone control method, earphone control device, wireless earphone and storage medium
CN116055932A (en) * 2022-08-12 2023-05-02 荣耀终端有限公司 Earphone main and auxiliary ear switching method
CN116055932B (en) * 2022-08-12 2023-09-15 荣耀终端有限公司 Earphone main and auxiliary ear switching method
CN115175065A (en) * 2022-09-06 2022-10-11 荣耀终端有限公司 Broadcasting method, TWS earphone and storage medium

Similar Documents

Publication Publication Date Title
CN112004173B (en) Bluetooth headset switching method, mobile terminal and computer readable storage medium
CN107613489B (en) Wireless charging method, wireless hotspot device, terminal and storage medium
CN110365347B (en) Power amplifier control method, device and computer readable storage medium
CN107645189B (en) Charging protection method and mobile terminal
CN112261535A (en) Major-minor switching method and device for wireless earphone and readable storage medium
CN110784898A (en) Network switching method, mobile terminal and computer readable storage medium
CN109144705B (en) Application management method, mobile terminal and computer readable storage medium
CN109195213B (en) Mobile terminal screen control method, mobile terminal and computer readable storage medium
CN112399215A (en) Screen projection parameter regulation and control method and device and computer readable storage medium
CN112822538A (en) Screen projection display method, screen projection device, terminal and storage medium
CN108600489B (en) Earphone, calibration method of loudspeaker, mobile terminal and readable storage medium
CN109491577B (en) Holding interaction method and device and computer readable storage medium
CN109545120B (en) Screen light sensor adjusting method, mobile terminal and computer readable storage medium
CN107517487B (en) Call control method and mobile terminal
CN112437472B (en) Network switching method, equipment and computer readable storage medium
CN111970738B (en) Network switching control method, device and computer readable storage medium
CN110191477B (en) Network search control method, terminal and computer readable storage medium
CN112102780A (en) Display frame rate regulation and control method, device and computer readable storage medium
CN109151201B (en) Anti-addiction method, mobile terminal and computer storage medium
CN110955397A (en) Method for setting frame rate of game terminal, game terminal and storage medium
CN107728789B (en) Starting method of one-hand operation mode, terminal and storage medium
CN107911778B (en) Playing method based on parallel loudspeaker, mobile terminal and readable storage medium
CN107517445B (en) WLAN hotspot searching method and mobile terminal
CN112667339B (en) Screen refresh rate setting method, terminal and computer readable medium
CN109743443B (en) Terminal control method, terminal and computer readable 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210122

RJ01 Rejection of invention patent application after publication