Main and auxiliary earphone switching method and related device

By monitoring the power and power consumption rate of wireless Bluetooth headsets in real time, and switching the role of the main and auxiliary headset when meeting the preset conditions, the problem of how to balance the power consumption of the headset and improve the endurance of the headset.

CN119383508AInactive Publication Date: 2025-01-28REALME MOBILE TELECOMM SHENZHEN CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202310931461.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-26
Publication Date
2025-01-28
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

During the use of existing wireless Bluetooth headphones, how to balance the power consumption of the main and secondary headphones to improve battery life is a difficult problem.

Method used

By obtaining the real -time power of the main headset and auxiliary headset, and determining the power consumption rate at the rate of power change, when the power consumption rate and the power meet the preset conditions, send the switching instruction Essence

Benefits of technology

While improving the battery life of wireless headphones, the power consumption of the main and auxiliary headsets is balanced and the use time of the equipment is extended.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119383508A_ABST
    Figure CN119383508A_ABST
Patent Text Reader

Abstract

The invention provides a main and auxiliary earphone switching method and a related device, which are applied to electronic equipment, the electronic equipment is in paired connection with a first earphone and a second earphone, the first earphone is connected with the second earphone, the first earphone is a main earphone, and the second earphone is an auxiliary earphone. The states of the main and auxiliary earphones can be regularly detected by the electronic equipment, and the main and auxiliary earphones are switched in time when the states of the main and auxiliary earphones meet the switching condition, so that the cruising ability of the wireless earphone is improved, and the power consumption of the main and auxiliary earphones is balanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of wireless earphones, and in particular to a method for switching between a primary earphone and a secondary earphone and a related device. Background Art

[0002] With the development of technology, wireless Bluetooth (True Wireless Stereo, TWS) is currently widely used in connections with smart terminals such as mobile phones, greatly improving the mobility and convenience of users using smart terminals such as mobile phones to make calls, listen to music, and video conferences. Wireless Bluetooth headsets are divided into main headsets and auxiliary headsets. The main headset is like a transfer station and consumes more power than the auxiliary headset. During use, how to balance the power consumption of the two headsets becomes a difficult problem. Summary of the invention

[0003] In view of this, the present application provides a method for switching between a primary and a secondary earphone and a related device, which can balance the power consumption of the primary earphone and the secondary earphone while improving the battery life of the wireless earphone.

[0004] In a first aspect, an embodiment of the present application provides a method for switching between a primary and a secondary earphone, which is applied to an electronic device, wherein the electronic device is paired with a first earphone and a second earphone, the first earphone and the second earphone are connected to each other, the first earphone is a primary earphone, and the second earphone is a secondary earphone; the method includes:

[0005] Obtaining a first real-time power level of the first earphone and a second real-time power level of the second earphone;

[0006] If the change amount of the first real-time power within the first time period is a preset change amount, determining a first power consumption rate of the first earphone, and determining a second power consumption rate of the second earphone according to the change amount of the second real-time power within the first time period;

[0007] If the first power consumption rate and the second power consumption rate meet the preset power consumption condition and / or the first real-time power level and the second real-time power level meet the preset power level condition, a first instruction is sent to the first earphone to enable the first earphone to complete the switching signaling interaction with the second earphone, and the switching signaling interaction is used to switch the first earphone to the auxiliary earphone and the second earphone to the main earphone.

[0008] In a second aspect, an embodiment of the present application provides a method for switching between a primary and a secondary earphone, which is applied to a first earphone, wherein an electronic device is paired with the first earphone and a second earphone, the first earphone and the second earphone are connected to each other, the first earphone is a primary earphone, and the second earphone is a secondary earphone; the method includes:

[0009] receiving a first instruction of the electronic device;

[0010] Sending a primary and secondary earphone switching request to the second earphone;

[0011] A primary-secondary earphone switching response is received from the second earphone to complete a switching signaling interaction, where the switching signaling interaction is used to switch the first earphone to the secondary earphone and the second earphone to the primary earphone.

[0012] In a third aspect, an embodiment of the present application provides a primary-secondary earphone switching device, which is applied to an electronic device, wherein the electronic device is paired with a first earphone and a second earphone, the first earphone and the second earphone are connected to each other, the first earphone is a primary earphone, and the second earphone is a secondary earphone; the device includes:

[0013] An acquiring unit, configured to acquire a first real-time power level of the first earphone and a second real-time power level of the second earphone;

[0014] a power consumption determination unit, configured to determine a first power consumption rate of the first earphone if a change in the first real-time power level within a first time period is a preset change, and to determine a second power consumption rate of the second earphone according to a change in the second real-time power level within the first time period;

[0015] A switching control unit is used to send a first instruction to the first earphone if the first power consumption rate and the second power consumption rate meet a preset power consumption condition and / or the first real-time power level and the second real-time power level meet a preset power level condition, so that the first earphone and the second earphone complete a switching signaling interaction, and the switching signaling interaction is used to switch the first earphone to the auxiliary earphone and the second earphone to the main earphone.

[0016] In a fourth aspect, an embodiment of the present application provides a primary-secondary earphone switching device, which is applied to a first earphone, an electronic device is paired with the first earphone and the second earphone, the first earphone and the second earphone are connected to each other, the first earphone is the primary earphone, and the second earphone is the secondary earphone; the device includes:

[0017] A receiving unit, configured to receive a first instruction from the electronic device;

[0018] A sending unit, configured to send a primary and secondary earphone switching request to the second earphone;

[0019] The switching unit is used to receive a primary-secondary earphone switching response from the second earphone to complete a switching signaling interaction, wherein the switching signaling interaction is used to switch the first earphone to the secondary earphone and the second earphone to the primary earphone.

[0020] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps of any method in the first aspect of the embodiment of the present application.

[0021] In a sixth aspect, an embodiment of the present application provides a wireless headset, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps of any method in the second aspect of the embodiment of the present application.

[0022] In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the above-mentioned computer-readable storage medium stores a computer program for electronic data exchange, wherein the above-mentioned computer program enables a computer to execute part or all of the steps described in any method of the first aspect or the second aspect of the embodiment of the present application.

[0023] In an eighth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in any method of the first aspect of the embodiment of the present application. The computer program product may be a software installation package.

[0024] It can be seen that the above-mentioned method for switching between the main and auxiliary earphones and the related device are applied to an electronic device, the electronic device is paired and connected with a first earphone and a second earphone, the first earphone and the second earphone are connected to each other, the first earphone is the main earphone, and the second earphone is the auxiliary earphone. First, the first real-time power of the first earphone and the second real-time power of the second earphone are obtained; then, if the change amount of the first real-time power in the first time period is a preset change amount, the first power consumption rate of the first earphone is determined, and the second power consumption rate of the second earphone is determined according to the change amount of the second real-time power in the first time period; finally, if the first power consumption rate and the second power consumption rate meet the preset power consumption condition and / or the first real-time power and the second real-time power meet the preset power condition, a first instruction is sent to the first earphone so that the first earphone and the second earphone complete the switching signaling interaction, and the switching signaling interaction is used to switch the first earphone to the auxiliary earphone and the second earphone to the main earphone. The status of the main and auxiliary earphones can be regularly detected, and the main and auxiliary earphones can be switched in time when the status of the main and auxiliary earphones meets the switching condition, so as to balance the power consumption of the main and auxiliary earphones while improving the battery life of the wireless earphones. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0026] Figure 1 A system architecture diagram of a method for switching between primary and secondary earphones provided in an embodiment of the present application;

[0027] Figure 2 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;

[0028] Figure 3 A schematic diagram of a flow chart of a method for switching between a primary and a secondary earphone provided in an embodiment of the present application;

[0029] Figure 4 A schematic diagram of a flow chart of another method for switching between primary and secondary earphones provided in an embodiment of the present application;

[0030] Figure 5 A block diagram of the functional units of a primary and secondary earphone switching device provided in an embodiment of the present application;

[0031] Figure 6 This is a block diagram of the functional units of another primary and secondary earphone switching device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0033] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0034] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article indicates that the associated objects before and after are in an "or" relationship. The "plurality" appearing in the embodiments of the present application refers to two or more.

[0035] In the embodiments of the present application, "at least one item" or similar expressions refer to any combination of these items, including any combination of single items or plural items, and refer to one or more, and multiple refers to two or more. For example, at least one item of a, b, or c can represent the following seven situations: a, b, c, a and b, a and c, b and c, a, b, and c. Among them, each of a, b, and c can be an element or a set containing one or more elements.

[0036] The "connection" that appears in the embodiments of the present application refers to various connection methods such as direct connection or indirect connection to achieve communication between devices, and the embodiments of the present application do not impose any limitations on this.

[0037] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0038] The following is an explanation of the relevant contents, concepts, meanings, technical issues, technical solutions, beneficial effects, etc. involved in the embodiments of the present application. Background technology:

[0040] In the embodiment of the present application, the first headset and the second headset are both wireless headsets. After the first headset and the second headset are paired, they can be used as a pair of headsets. The wireless headset and the electronic device can communicate through the following technologies: wireless fidelity (Wi-Fi) technology, Bluetooth technology, visible light communication technology, invisible light communication technology (infrared communication technology, ultraviolet communication technology), etc. In a specific implementation, the first headset can be a master headset, and the second headset can be a slave headset. A first data transmission link is established between the master headset and the electronic device. Through the first data transmission link, data transmission between the wireless headset and the electronic device is realized. The slave headset and the electronic device do not actively communicate. The master headset and the slave headset can be paired through Bluetooth technology to realize communication between the master headset and the slave headset.

[0041] Optionally, the wireless headset may be an ear-hook headset, an earbud headset, or a head-mounted headset, which is not limited in the embodiments of the present application.

[0042] The wireless earphones can be stored in an earphone box, which may include: two receiving cavities (a first receiving cavity and a second receiving cavity), the size and shape of which are designed to receive a pair of wireless earphones (a left earplug and a right earplug); one or more earphone shell magnetic components arranged in the box, which are used to magnetically attract and magnetically fix a pair of wireless earphones to the two receiving cavities. The earphone box may also include an earphone cover. The size and shape of the first receiving cavity are designed to receive the first earphone, and the size and shape of the second receiving cavity are designed to receive the second earphone.

[0043] A wireless headset may include an earphone housing, a rechargeable battery (e.g., a lithium battery) disposed in the earphone housing, a plurality of metal contacts for connecting the battery to a charging device, and a speaker assembly including a driver unit and a directional sound port, wherein the driver unit includes a magnet, a voice coil, and a diaphragm, and the driver unit is used to emit sound from the directional sound port, and the plurality of metal contacts are disposed on the outer surface of the earphone housing.

[0044] In a possible implementation, the wireless headset may further include a touch area, which may be located on the outer surface of the headset housing, and at least one touch sensor is disposed in the touch area for detecting a touch operation, and the touch sensor may include a capacitive sensor. When a user touches the touch area, the at least one capacitive sensor may detect a change in its own capacitance to thereby identify the touch operation.

[0045] In a possible implementation, the wireless headset may further include an acceleration sensor and a three-axis gyroscope, which may be disposed in the headset housing, and the acceleration sensor and the three-axis gyroscope are used to identify the picking up action and the taking down action of the wireless headset.

[0046] In a possible implementation, the wireless headset may further include at least one air pressure sensor, which may be disposed on the surface of the headset housing and used to detect the air pressure in the ear after the wireless headset is worn. The air pressure sensor may be used to detect the tightness of the wireless headset. When it is detected that the wireless headset is worn loosely, the wireless headset may send a prompt message to an electronic device connected to the wireless headset to prompt the user that the wireless headset is at risk of falling.

[0047] During use, they are generally divided into main earphones and sub-earphones. The main earphones act as a transfer station to communicate and interact with electronic devices and sub-earphones respectively, which will cause the main earphones to consume more power than the sub-earphones. At present, in order to balance the power consumption of the main and sub-earphones, the solution adopted is that the main earphones obtain their own current power in real time, and the main earphones obtain the current power of the sub-earphones in real time through the connection path with the sub-earphones. If the power of the main earphones is less than that of the sub-earphones, the main earphones send a switching request to the sub-earphones to switch the main and sub-earphones to achieve a balance in the power consumption rate. However, this method requires the main earphones to continuously monitor the real-time power of themselves and the sub-earphones, and needs to compare the real-time power multiple times, which increases the power consumption of the main and sub-earphones, resulting in reduced battery life, and it is also necessary to configure complex computing and storage structures for the main and sub-earphones.

[0048] To solve the above problems, the present invention provides a method and a related device for switching between a primary and a secondary earphone, which can significantly improve the

[0049] Combine the following Figure 1 The system architecture of a method for switching between a primary and a secondary earphone in an embodiment of the present application is described. Figure 1 A system architecture diagram of a method for switching between a primary and a secondary earphone provided in an embodiment of the present application includes an electronic device 110, a first earphone 121, and a second earphone 122.

[0050] The electronic device 110 is paired and connected with the first earphone 121 and the second earphone 122 respectively, and the first earphone 121 and the second earphone 122 are connected to each other.

[0051] Among them, the electronic device 110 may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication functions, as well as various forms of user equipment (UE), mobile stations (MS), terminal devices, etc.

[0052] The first earphone 121 is a main earphone, and the second earphone 122 is a secondary earphone. The first earphone 121 can receive instructions from the electronic device and perform signaling interaction with the second earphone 122.

[0053] It can be understood that the first earphone 121 and the second earphone 122 communicate with each other through a wireless network, and the wireless network can be Bluetooth, infrared, etc. A data transmission link is established between the first earphone 121 and the electronic device 110 through a wireless network, and a data transmission link is established between the second earphone 122 and the electronic device 110 through a wireless network, and the wireless network can be Wi-Fi technology, Bluetooth technology, visible light communication technology, invisible light communication technology (infrared, ultraviolet communication technology), etc. Based on the data transmission link, voice data, image data, video data, text data, etc. can be transmitted between the first earphone 121, the second earphone 122 and the electronic device.

[0054] It should be noted that the electronic device 110 can obtain the power data of the first earphone 121 from the first earphone 121, obtain the power data of the second earphone 122 from the second earphone 122, or obtain the power data of the first earphone 121 and the power data of the second earphone 122 from the first earphone 121, which is not specifically limited here.

[0055] Combine the following Figure 2 The terminal device in the embodiment of the present application is described. Figure 2 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the terminal device includes one or more application processors 220, a memory 230, a communication module 240 and one or more programs 231. The application processor 220 is communicatively connected with the memory 230 and the communication module 240 via an internal communication bus.

[0056] The one or more programs 231 are stored in the memory 230 and configured to be executed by the application processor 220 . The one or more programs 231 include instructions for executing any step in the method embodiment.

[0057] Among them, the application processor 220 can be, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, units and circuits described in conjunction with the disclosure of this application. The application processor 220 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of DSP and microprocessors, and the like. The communication unit can be a communication module 240, a transceiver, a transceiver circuit, etc., and the storage unit can be a memory 230.

[0058] The memory 230 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable ROM (PROM), an erasable programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus RAM (DR RAM).

[0059] It is understandable that the terminal device 20 may include more or fewer structural elements than those in the above structural block diagram, for example, including a power module, a physical button, a Wi-Fi module, a speaker, a Bluetooth module, a sensor, a display module, etc., which are not limited here. The terminal device 20 can be any one of the electronic device, the first headset, and the second headset in the embodiment of the present application.

[0060] After understanding the software and hardware architecture of the embodiment of the present application, Figure 3 A method for switching between a primary and a secondary earphone in an embodiment of the present application is described. Figure 3 A flow chart of a method for switching between a primary and a secondary earphone provided in an embodiment of the present application is applied to an electronic device, wherein the electronic device is paired with a first earphone and a second earphone, the first earphone and the second earphone are connected to each other, the first earphone is a primary earphone, and the second earphone is a secondary earphone, specifically comprising the following steps:

[0061] Step 301: Obtain a first real-time power level of a first earphone and a second real-time power level of a second earphone.

[0062] Among them, since the electronic device is paired and connected with the first earphone and the second earphone, the real-time power of the first earphone can be directly obtained as the first real-time power, and the real-time power of the second earphone can be obtained as the second real-time power.

[0063] Step 302: If the change in the first real-time power level within the first time period is a preset change, determine the first power consumption rate of the first earphone, and determine the second power consumption rate of the second earphone according to the change in the second real-time power level within the first time period.

[0064] Among them, the time duration for the change in the first real-time power to reach a preset change can be determined as the first time period, and the first power consumption rate can be obtained according to the quotient of the preset change and the first time period. At the same time, the change in the second real-time power of the second earphone within the same first time period can be determined, and the second power consumption rate can be obtained according to the quotient of the change in the second real-time power and the first time period.

[0065] For example, the preset change can be 20% of the total power of the first earphone. When the change in the first real-time power reaches 20% of the total power of the first earphone, one hour has passed. It can be determined that the first power consumption rate consumes 20% of the total power of the first earphone per hour. At the same time, the change in the second real-time power within the same hour is 15% of the total power of the second earphone. It can be determined that the second power consumption rate consumes 15% of the total power of the second earphone per hour.

[0066] In a possible embodiment, the preset change amount can be flexibly set according to the usage scenario, and the usage scenario of the first earphone and the second earphone can be determined, and then the scene power consumption rate can be determined according to the usage scenario, and finally the preset change amount can be determined according to the scene power consumption rate, and the preset change amount is inversely correlated with the scene power consumption rate. For example, the usage scenarios may include call scenarios, video scenarios, music listening scenarios, book listening scenarios, etc. There are differences in the use of the first earphone and the second earphone in different usage scenarios. For example, the call scenario requires the main earphone to act as a microphone, and the main earphone and the auxiliary earphone need to act as handset functions. I will not go into details here. The mapping relationship between the usage scenario and the scene power consumption rate can be established in advance. When the corresponding usage scenario is directly identified in actual use, the scene power consumption rate corresponding to the usage scenario can be called.

[0067] It can be understood that the power consumption rate of this scene is the power consumption rate of the wireless headset. The faster the scene power consumption rate, the smaller the preset change amount can be set to prevent the situation where the power of either headset is exhausted and can no longer be used due to untimely switching of the main and sub-earphones. Similarly, the slower the scene power consumption rate, the larger the preset change amount can be set, and the electronic device does not need to frequently send switching instructions to the main headset, thereby improving the battery life of the main and sub-earphones.

[0068] Step 303: If the first power consumption rate and the second power consumption rate meet the preset power consumption condition and / or the first real-time power level and the second real-time power level meet the preset power level condition, a first instruction is sent to the first headset.

[0069] The first instruction may enable the first earphone and the second earphone to complete a switching signaling interaction, where the switching signaling interaction is used to enable the first earphone to switch to the secondary earphone and the second earphone to switch to the primary earphone.

[0070] In a possible embodiment, if the first power consumption rate is greater than the second power consumption rate, or if the first power consumption rate is greater than the second power consumption rate and the difference between the first power consumption rate and the second power consumption rate is greater than a preset rate difference threshold, the first instruction is sent to the first earphone.

[0071] In a possible embodiment, if the first real-time power level is less than the second real-time power level, or if the first real-time power level is less than the second real-time power level and the difference between the first real-time power level and the second real-time power level is greater than a preset power difference threshold, the first instruction is sent to the first earphone.

[0072] In a possible embodiment, the electronic device may send the first instruction again when the above two embodiments are satisfied at the same time, which will not be elaborated here.

[0073] It can be seen that through the above-mentioned method of switching between the main and sub-earphones, the electronic device can regularly detect the status of the main and sub-earphones, and switch the main and sub-earphones in time when the status of the main and sub-earphones meets the switching conditions, thereby improving the battery life of the wireless headphones while balancing the power consumption of the main and sub-earphones.

[0074] In a possible embodiment, if the first real-time power level and / or the second real-time power level is lower than a preset power threshold, the electronic device can receive a prompt message from the first earphone and / or the second earphone, and display a prompt control on the electronic device based on the prompt message. The prompt control may include at least one of text information, voice information, picture information, video information, and vibration information, which is used to prompt the user that the power of the first earphone and / or the second earphone is low and needs to be charged in time, thereby greatly improving the user experience.

[0075] In a possible embodiment, the electronic device can automatically calculate and estimate the power consumption rate of the first earphone and the second earphone under different habits according to the user's different usage habits, and realize adaptive switching of the TWS Bluetooth headset through the control of the electronic device, reduce the switching requests between the primary and secondary earphones, and realize the battery life of the TWS Bluetooth headset.

[0076] Combine the following Figure 4 Another method for switching between primary and secondary earphones in an embodiment of the present application is described. Figure 4 A flow chart of another method for switching between a primary and a secondary earphone provided in an embodiment of the present application is applied to a first earphone, an electronic device is paired and connected with the first earphone and the second earphone, the first earphone and the second earphone are connected to each other, the first earphone is the primary earphone, and the second earphone is the secondary earphone, and the method specifically includes the following steps:

[0077] Step 401: Receive a first instruction from an electronic device.

[0078] The first instruction is used to enable the first headset and the second headset to complete the switching signaling interaction.

[0079] Step 402: Send a primary / secondary earphone switching request to the second earphone.

[0080] At this time, the first earphone is the main earphone, and sends a request for switching between the main and auxiliary earphones to the second earphone.

[0081] Step 403: Receive a primary-secondary earphone switching response from the second earphone to complete the switching signaling interaction.

[0082] The switching signaling interaction is used to switch the first earphone to the secondary earphone and the second earphone to the primary earphone.

[0083] It can be seen that through the above-mentioned method of switching between the main and sub-earphones, the electronic device can regularly detect the status of the main and sub-earphones, and switch the main and sub-earphones in time when the status of the main and sub-earphones meets the switching conditions, thereby improving the battery life of the wireless headphones while balancing the power consumption of the main and sub-earphones.

[0084] In a possible embodiment, if the first real-time power level and / or the second real-time power level is lower than a preset power threshold, the first earphone and / or the second earphone can send a prompt message to the electronic device, and the electronic device can display a prompt control on the electronic device based on the prompt message. The prompt control may include at least one of text information, voice information, picture information, video information, and vibration information, which is used to prompt the user that the power of the first earphone and / or the second earphone is low and needs to be charged in time, thereby greatly improving the user experience.

[0085] The steps not described in detail above can be found in Figure 3 The description of the steps of the method will not be repeated here.

[0086] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0087] The embodiment of the present application can divide the electronic device into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0088] In the case of dividing each functional module into corresponding functional modules, Figure 5 A functional unit composition block diagram of a main-sub-headphone switching device provided in an embodiment of the present application is applied to an electronic device, wherein the electronic device is paired with a first headphone and a second headphone, the first headphone and the second headphone are connected to each other, the first headphone is a main headphone, and the second headphone is a sub-headphone; the main-sub-headphone switching device 500 includes:

[0089] An acquiring unit 510 is configured to acquire a first real-time power level of the first earphone and a second real-time power level of the second earphone;

[0090] a power consumption determination unit 520, configured to determine a first power consumption rate of the first headset if a change in the first real-time power level within a first time period is a preset change, and determine a second power consumption rate of the second headset according to a change in the second real-time power level within the first time period;

[0091] The switching control unit 530 is used to send a first instruction to the first earphone if the first power consumption rate and the second power consumption rate meet the preset power consumption condition and / or the first real-time power level and the second real-time power level meet the preset power level condition, so that the first earphone and the second earphone complete the switching signaling interaction, and the switching signaling interaction is used to switch the first earphone to the auxiliary earphone and the second earphone to the main earphone.

[0092] It can be seen that the above-mentioned method for switching between the main and auxiliary earphones and the related device are applied to an electronic device, the electronic device is paired and connected with a first earphone and a second earphone, the first earphone and the second earphone are connected to each other, the first earphone is the main earphone, and the second earphone is the auxiliary earphone. First, the first real-time power of the first earphone and the second real-time power of the second earphone are obtained; then, if the change amount of the first real-time power in the first time period is a preset change amount, the first power consumption rate of the first earphone is determined, and the second power consumption rate of the second earphone is determined according to the change amount of the second real-time power in the first time period; finally, if the first power consumption rate and the second power consumption rate meet the preset power consumption condition and / or the first real-time power and the second real-time power meet the preset power condition, a first instruction is sent to the first earphone so that the first earphone and the second earphone complete the switching signaling interaction, and the switching signaling interaction is used to switch the first earphone to the auxiliary earphone and the second earphone to the main earphone. The status of the main and auxiliary earphones can be regularly detected, and the main and auxiliary earphones can be switched in time when the status of the main and auxiliary earphones meets the switching condition, so as to balance the power consumption of the main and auxiliary earphones while improving the battery life of the wireless earphones.

[0093] It should be noted that the specific implementation of each operation can adopt the corresponding description of the method embodiment shown above, and the primary and secondary earphone switching device 500 can be used to execute the above method embodiment of the present application, which will not be described in detail.

[0094] In the case of dividing each functional module into corresponding functional modules, Figure 6A functional unit composition block diagram of a primary-secondary earphone switching device provided in an embodiment of the present application is applied to a first earphone, an electronic device is paired with the first earphone and the second earphone, the first earphone and the second earphone are connected to each other, the first earphone is the primary earphone, and the second earphone is the secondary earphone; the primary-secondary earphone switching device 600 includes:

[0095] A receiving unit 610 is configured to receive a first instruction from the electronic device;

[0096] A sending unit 620, configured to send a primary and secondary earphone switching request to the second earphone;

[0097] The switching unit 630 is configured to receive a primary-secondary earphone switching response from the second earphone to complete a switching signaling interaction, wherein the switching signaling interaction is used to switch the first earphone to the secondary earphone and the second earphone to the primary earphone.

[0098] It can be seen that the above-mentioned method for switching between the main and auxiliary earphones and the related device are applied to an electronic device, the electronic device is paired and connected with a first earphone and a second earphone, the first earphone and the second earphone are connected to each other, the first earphone is the main earphone, and the second earphone is the auxiliary earphone. First, the first real-time power of the first earphone and the second real-time power of the second earphone are obtained; then, if the change amount of the first real-time power in the first time period is a preset change amount, the first power consumption rate of the first earphone is determined, and the second power consumption rate of the second earphone is determined according to the change amount of the second real-time power in the first time period; finally, if the first power consumption rate and the second power consumption rate meet the preset power consumption condition and / or the first real-time power and the second real-time power meet the preset power condition, a first instruction is sent to the first earphone so that the first earphone and the second earphone complete the switching signaling interaction, and the switching signaling interaction is used to switch the first earphone to the auxiliary earphone and the second earphone to the main earphone. The status of the main and auxiliary earphones can be regularly detected, and the main and auxiliary earphones can be switched in time when the status of the main and auxiliary earphones meets the switching condition, so as to balance the power consumption of the main and auxiliary earphones while improving the battery life of the wireless earphones.

[0099] It should be noted that the specific implementation of each operation can adopt the corresponding description of the method embodiment shown above, and the primary and secondary earphone switching device 600 can be used to execute the above method embodiment of the present application, which will not be described in detail.

[0100] An embodiment of the present application also provides a chip, including a processor, a memory, and a computer program or instructions stored in the memory, wherein the processor executes the computer program or instructions to implement the steps described in the above method embodiment.

[0101] An embodiment of the present application also provides a chip module, including a transceiver component and a chip, the chip including a processor, a memory and a computer program or instructions stored in the memory, wherein the processor executes the computer program or instructions to implement the steps described in the above method embodiment.

[0102] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method recorded in the above method embodiment, and the above computer includes an electronic device.

[0103] The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes an electronic device.

[0104] It should be noted that, for the above-mentioned various embodiments, for the sake of simple description, they are all expressed as a series of action combinations. Those skilled in the art should be aware that the present application is not limited by the described order of actions, because some steps in the embodiments of the present application can be performed in other orders or simultaneously. In addition, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions, steps, modules or units involved are not necessarily required by the embodiments of the present application.

[0105] In the above embodiments, the embodiments of the present application have different focuses on the description of each embodiment. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0106] The steps of the method or algorithm described in the embodiments of the present application can be implemented in hardware or by executing software instructions by a processor. The software instructions can be composed of corresponding software modules, and the software modules can be stored in RAM, flash memory, ROM, EPROM, electrically erasable programmable read-only memory (electrically EPROM, EEPROM), registers, hard disks, mobile hard disks, read-only compact disks (CD-ROMs) or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a terminal device or a management device. Of course, the processor and the storage medium can also be present in a terminal device or a management device as discrete components.

[0107] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can 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 the computer program instructions are loaded and executed on a computer, the process or function described in the embodiments of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server, or data center to another website site, computer, server, or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0108] The modules / units included in the devices and products described in the above embodiments may be software modules / units or hardware modules / units, or may be partially software modules / units and partially hardware modules / units. For example, for the devices and products applied to or integrated in the chip, the modules / units included therein may all be implemented in the form of hardware such as circuits, or at least some of the modules / units may be implemented in the form of software programs, which run on the processor integrated inside the chip, and the remaining (if any) modules / units may be implemented in the form of hardware such as circuits; for the devices and products applied to or integrated in the chip module, the modules / units included therein may all be implemented in the form of hardware such as circuits, and different modules / units may be located in the same component (such as a chip, circuit module, etc.) or in different components of the chip module, or at least some of the modules / units may be implemented in the form of software programs. The software programs run on the processor integrated inside the chip, and the remaining (if any) modules / units may be implemented in the form of hardware such as circuits. It is implemented in the form of a software program, which runs on a processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in hardware such as circuits; for various devices and products applied to or integrated in the terminal equipment, the various modules / units contained therein can be implemented in hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or in different components in the terminal equipment, or, at least some modules / units can be implemented in the form of a software program, which runs on a processor integrated inside the terminal equipment, and the remaining (if any) modules / units can be implemented in hardware such as circuits.

[0109] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the embodiments of the present application. It should be understood that the above description is only the specific implementation method of the embodiments of the present application and is not intended to limit the protection scope of the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the embodiments of the present application should be included in the protection scope of the embodiments of the present application.

Claims

1. A method for switching between a primary and a secondary earphone, characterized in that: Applied to an electronic device, the electronic device is paired with a first earphone and a second earphone, the first earphone and the second earphone are connected to each other, the first earphone is a main earphone, and the second earphone is a secondary earphone; the method comprises: Obtaining a first real-time power level of the first earphone and a second real-time power level of the second earphone; If the change amount of the first real-time power within the first time period is a preset change amount, determining a first power consumption rate of the first earphone, and determining a second power consumption rate of the second earphone according to the change amount of the second real-time power within the first time period; If the first power consumption rate and the second power consumption rate meet the preset power consumption condition and / or the first real-time power level and the second real-time power level meet the preset power level condition, a first instruction is sent to the first earphone to enable the first earphone to complete the switching signaling interaction with the second earphone, and the switching signaling interaction is used to switch the first earphone to the auxiliary earphone and the second earphone to the main earphone.

2. The method according to claim 1, characterized in that: The method further comprises: Determining usage scenarios of the first headset and the second headset; Determining a scenario power consumption rate according to the usage scenario; The preset change amount is determined according to the scene power consumption rate, and the preset change amount is inversely correlated with the scene power consumption rate.

3. The method according to claim 1, characterized in that If the first power consumption rate and the second power consumption rate meet a preset power consumption condition, sending a first instruction to the first headset includes: If the first power consumption rate is greater than the second power consumption rate, or if the first power consumption rate is greater than the second power consumption rate and the difference between the first power consumption rate and the second power consumption rate is greater than a preset rate difference threshold, the first instruction is sent to the first earphone.

4. The method according to claim 1, characterized in that: If the first real-time power level and the second real-time power level meet a preset power level condition, sending a first instruction to the first headset includes: If the first real-time power level is less than the second real-time power level, or if the first real-time power level is less than the second real-time power level and the difference between the first real-time power level and the second real-time power level is greater than a preset power difference threshold, the first instruction is sent to the first earphone.

5. A method for switching between a primary and a secondary earphone, characterized in that: Applied to a first headset, an electronic device is paired and connected with the first headset and a second headset, the first headset and the second headset are connected to each other, the first headset is a main headset, and the second headset is a secondary headset; the method includes: receiving a first instruction of the electronic device; Sending a primary and secondary earphone switching request to the second earphone; A primary-secondary earphone switching response is received from the second earphone to complete a switching signaling interaction, where the switching signaling interaction is used to switch the first earphone to the secondary earphone and the second earphone to the primary earphone.

6. A device for switching between primary and secondary earphones, characterized in that: Applied to an electronic device, the electronic device is paired with a first earphone and a second earphone, the first earphone and the second earphone are connected to each other, the first earphone is a main earphone, and the second earphone is a secondary earphone; the device comprises: An acquiring unit, configured to acquire a first real-time power level of the first earphone and a second real-time power level of the second earphone; a power consumption determination unit, configured to determine a first power consumption rate of the first earphone if a change in the first real-time power level within a first time period is a preset change, and to determine a second power consumption rate of the second earphone according to a change in the second real-time power level within the first time period; A switching control unit is used to send a first instruction to the first earphone if the first power consumption rate and the second power consumption rate meet a preset power consumption condition and / or the first real-time power level and the second real-time power level meet a preset power level condition, so that the first earphone and the second earphone complete a switching signaling interaction, and the switching signaling interaction is used to switch the first earphone to the auxiliary earphone and the second earphone to the main earphone.

7. A device for switching between primary and secondary earphones, characterized in that: Applied to a first earphone, the electronic device is paired with the first earphone and the second earphone, the first earphone and the second earphone are connected to each other, the first earphone is a main earphone, and the second earphone is a secondary earphone; the device includes: A receiving unit, configured to receive a first instruction from the electronic device; A sending unit, configured to send a primary and secondary earphone switching request to the second earphone; The switching unit is used to receive a primary-secondary earphone switching response from the second earphone to complete a switching signaling interaction, wherein the switching signaling interaction is used to switch the first earphone to the secondary earphone and the second earphone to the primary earphone.

8. An electronic device, characterized in that: include: A processor, a memory, and one or more programs; the one or more programs are stored in the memory and are configured to be executed by the processor, the programs comprising instructions for executing the steps in the method according to any one of claims 1 to 4.

9. A wireless headset, characterized in that: include: a processor, a memory, and one or more programs; The one or more programs are stored in the memory and configured to be executed by the processor, the programs comprising instructions for executing the steps in the method of claim 5 .

10. A computer storage medium, characterized in that: The computer storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method according to any one of claims 1 to 7 or claim 5.

Citation Information

Cited By

  • Wearable device, intelligent device, working method and audio data reasoning system

    CN120526765A

  • Intelligent wearable device and response system

    CN120872146A

  • Smart wearable device and response system

    CN120872146B