WO2020025034A1 - 一种可穿戴设备主从切换方法及相关产品 - Google Patents

一种可穿戴设备主从切换方法及相关产品 Download PDF

Info

Publication number
WO2020025034A1
WO2020025034A1 PCT/CN2019/098952 CN2019098952W WO2020025034A1 WO 2020025034 A1 WO2020025034 A1 WO 2020025034A1 CN 2019098952 W CN2019098952 W CN 2019098952W WO 2020025034 A1 WO2020025034 A1 WO 2020025034A1
Authority
WO
WIPO (PCT)
Prior art keywords
earbud
audio type
earphone
master
remaining power
Prior art date
Application number
PCT/CN2019/098952
Other languages
English (en)
French (fr)
Inventor
龚金华
李宝提
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to EP19843547.1A priority Critical patent/EP3826322A4/en
Publication of WO2020025034A1 publication Critical patent/WO2020025034A1/zh
Priority to US17/163,060 priority patent/US11395059B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/3827Portable transceivers
    • H04B1/385Transceivers carried on the body, e.g. in helmets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/6058Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
    • H04M1/6066Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone including a wireless connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • 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
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/3827Portable transceivers
    • H04B1/385Transceivers carried on the body, e.g. in helmets
    • H04B2001/3872Transceivers carried on the body, e.g. in helmets with extendable microphones or earphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/07Applications of wireless loudspeakers or wireless microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2460/00Details of hearing devices, i.e. of ear- or headphones covered by H04R1/10 or H04R5/033 but not provided for in any of their subgroups, or of hearing aids covered by H04R25/00 but not provided for in any of its subgroups
    • H04R2460/03Aspects of the reduction of energy consumption in hearing devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2499/00Aspects covered by H04R or H04S not otherwise provided for in their subgroups
    • H04R2499/10General applications
    • H04R2499/11Transducers incorporated or for use in hand-held devices, e.g. mobile phones, PDA's, camera's

Definitions

  • the present application relates to the technical field of mobile terminal accessories, and in particular, to a wearable device master-slave switching method and related products.
  • Wireless headphones have the advantage of convenient connection with smart phones.
  • the embodiments of the present application provide a wearable device master-slave switching method and a wearable device, with a view to performing a master-slave switch on two earbuds according to an application program, improving the battery life of the earbuds, and improving user experience.
  • an embodiment of the present application provides a wearable device master-slave switching method.
  • the wearable device includes a first earplug and a second earplug, and the wearable device is connected to an electronic device.
  • the method includes The following steps:
  • the electronic device obtains a first earphone audio type adapted to the first earphone and a second earphone audio type adapted to the second earphone, and different audio types correspond to different priorities; the electronic device determines a first application program currently running;
  • the electronic device determines, according to the first application program, the first earphone audio type, and the second earphone audio type, whether to perform a master-slave earphone switching on the wearable device.
  • an electronic device includes: a communication component and a processor;
  • the communication component is configured to implement a wireless connection with a wearable device, and obtain, through the wireless connection, an adapted first earbud audio type and a second earbud adapted second earbud audio type of the wearable device.
  • Earphone audio type different audio types correspond to different priorities;
  • the processor is configured to determine a currently running first application program, and determine whether to perform a master-slave earphone switching on the wearable device according to the first application program, the first earphone audio type, and the second earphone audio type. .
  • a computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method provided in the two aspects.
  • a 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 the method provided by the second aspect.
  • the electronic device of the technical solution provided in the present application obtains the first earphone audio type and the second earphone audio type of the two earphones, and then selects the master earphone and the slave earphone according to the currently running first application program, so that the master and slave The earbuds match the first application currently running, improving user experience.
  • FIG. 1 is a schematic diagram of a connection structure between a wearable device and a wireless communication device.
  • FIG. 1a is a schematic structural diagram of a wireless headset provided by the present application.
  • FIG. 1b is another schematic structural diagram of a wireless headset provided by the present application.
  • FIG. 2 is a schematic structural diagram of a wearable device and an electronic device provided by the present application.
  • FIG. 3 is a schematic flowchart of a wearable device master-slave switching method.
  • FIG. 4 is a schematic structural diagram of a mobile phone according to the present application.
  • an embodiment herein means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application.
  • the appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they independent or alternative embodiments that are 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.
  • the wireless communication devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and various forms of user equipment ( User (Equipment, UE), mobile station (Mobile, Station, MS), terminal device (terminal) and so on.
  • User Equipment
  • UE mobile station
  • MS mobile station
  • terminal terminal
  • wireless communication devices the devices mentioned above are collectively referred to as wireless communication devices.
  • the above wireless communication device can be connected to a wearable device.
  • the wearable device such as a wireless headset, generally has two earbuds.
  • the two earbuds have separate batteries and a power supply system.
  • the battery life of the two earbuds can be short, which affects user experience. .
  • the first earbud audio type is determined by an application that plays the first earbud audio
  • the second earbud audio type is determined by an application that plays the second earbud audio
  • the electronic device determines, according to the first application program, the first earphone audio type, and the second earphone audio type, whether to perform a master-slave earphone switching on the wearable device.
  • the switching of the master and slave earbuds is not performed;
  • the audio type determined by the first application program is not dependent on the first earbud audio type but is dependent on the second earbud audio type, and the switching of the master and slave earbuds is performed.
  • the electronic device determines, according to the first application program, the first earphone audio type, and the second earphone audio type, whether to perform a master-slave earphone switching on the wearable device.
  • the audio type determined by the first application program is not dependent on the first earbud audio type but is dependent on the second earbud audio type, and the first remaining power and the The second remaining power of the second earbud, calculating a first difference between the second remaining power and the first remaining power, if the first difference is greater than a power threshold, performing a switch of the master and slave earbuds, If the first difference is a negative value and is smaller than the power threshold, the switching of the master and slave earplugs is not performed.
  • the method further includes: if the first difference value is negative and less than a power threshold and the switching between not performing the master-slave earplugs further includes:
  • the first remaining power and the second remaining power are obtained again, and the second difference between the second remaining power and the first remaining power after the set time is calculated, as in the first The difference is negative and less than the power threshold, and it is determined that the switching between the master and slave earbuds is not performed.
  • the electronic device determines, according to the first application program, the first earphone audio type, and the second earphone audio type, whether to perform a master-slave earphone switching on the wearable device.
  • the audio type determined by the first application program is not dependent on the first earbud audio type but is dependent on the second earbud audio type, and the first remaining power and the The second remaining power of the second earphone, calculating a first difference between the second remaining power and the first remaining power, such as the first difference is negative and the second remaining power is less than the minimum power , Do not switch the primary earbud to the second earbud.
  • the method further includes:
  • the remaining power is determined according to the first remaining power and the second remaining power whether the master-slave earplug needs to be switched off.
  • the determining whether to switch off the master-slave earplug switching based on the first remaining power and the second remaining power specifically includes:
  • both the first remaining power and the second remaining power are less than the minimum power, the switching of the master and slave earplugs is turned off.
  • the performing the switching of the master-slave earplugs specifically includes:
  • the second earplug is switched to a master earplug, and the first earplug is switched to a slave earplug.
  • the processor is further configured to determine a first earbud audio type by using an application program that plays the first earbud audio, and determine a second earbud audio type by using an application that plays the second earbud audio.
  • the processor is specifically configured to
  • the main earbud is the first earbud and the audio type determined by the first application is dependent on the first earbud audio type, switching between the master and slave earbuds is not performed; if it is determined that the main earbud is the first earbud, the first earbud is determined by the first An audio type determined by an application program is not dependent on the first earphone audio type but dependent on the second earphone audio type, and performs switching of the master and slave earphones.
  • the processor is specifically configured to, if it is determined that the main earphone is the first earphone, the audio type determined by the first application program is not dependent on the first earphone audio type but is dependent on the first earphone Two earbuds audio type, obtaining a first remaining power of the first earbud and a second remaining power of the second earbud, calculating a first difference between the second remaining power and the first remaining power, If the first difference is greater than the power threshold, switching between the master and slave earbuds is performed, and if the first difference is negative and less than the power threshold, switching between the master and slave earbuds is not performed.
  • the processor is specifically configured to obtain the first remaining power and the second remaining power again after a set time delay, and calculate the second remaining power after the set time. A second difference between the power amount and the first remaining power amount. If the second difference value is negative and less than a power amount threshold, it is determined that switching between the master and the slave earbuds is not performed.
  • the processor is specifically configured to, if it is determined that the main earphone is the first earphone, the audio type determined by the first application program is not dependent on the first earphone audio type but is dependent on the first earphone Two earbuds audio type, obtaining a first remaining power of the first earbud and a second remaining power of the second earbud, calculating a first difference between the second remaining power and the first remaining power, If the first difference value is negative and the second remaining power is less than the minimum power, it is prohibited to switch the main earplug to the second earplug.
  • the processing component is further configured to obtain the type and running time of the first application, determine the number of earplugs running the first application according to the type, and determine the number of earplugs and The running time calculates the first remaining power of the first earbud and the second remaining power of the second earbud, and determines whether to switch off the master-slave earplug according to the first remaining power and the second remaining power.
  • the processing component is specifically configured to turn off the switching of the master and slave earplugs if both the first remaining power and the second remaining power are less than the minimum power.
  • FIG. 1 is a schematic diagram of a connection structure of a wireless headset disclosed in an embodiment of the present application.
  • the network architecture may include an electronic device and a wireless headset.
  • the wireless headset may pass a wireless network (for example, Bluetooth, infrared, or WiFi). ) Communicate with the electronic device.
  • the wireless earphone may include one or more earplugs, which are not limited in the embodiments of the present application.
  • the wireless headset may send a pairing request to the electronic device method, and the electronic device may receive the pairing request sent by the wearable device.
  • the wearable device includes at least one independent component, and responds to the pairing request to detect the number of components included in the wearable device. Displays information about wearable devices based on the number of parts, such as battery level, number of pairs, and more.
  • FIG. 1a is a structural diagram of a wireless earphone provided by an embodiment of the present application.
  • the wireless earphone includes two earphones, each earphone includes: an earphone housing 121, and a battery provided in the earphone housing 121.
  • the earphone may further include a wireless transceiver 122, a processing chip (not shown in the figure) (Drawn), and a touchpad (not shown), the processing chip is electrically connected to the touchpad, and a wireless transceiver.
  • the battery powers all electronic devices in the earphone.
  • the electronic devices include but are not Limited to: wireless transceiver 122, processing chip, touchpad, etc.
  • the electrical connection method may be connected through a bus method.
  • the foregoing electrical connection may also be connected through other connection methods.
  • FIG. 1b is a schematic structural diagram of an electronic device 100 disclosed in an embodiment of the present application.
  • the electronic device 100 includes a storage and processing circuit 110, a communication circuit 120 and an audio component connected to the storage and processing circuit 110. 140.
  • a display component 130 or a touch component may be further provided.
  • the electronic device 100 may include a control circuit, which may include a storage and processing circuit 110.
  • the storage and processing circuit 110 may be a memory, such as a hard disk drive memory, a non-volatile memory (such as a flash memory or other electronic programmable read-only memory used to form a solid-state drive, etc.), a volatile memory (such as a static or dynamic random access memory). Access to memory, etc.), this embodiment is not limited.
  • the processing circuit in the storage and processing circuit 110 may be used to control the operation of the electronic device 100.
  • the processing circuit can be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
  • the storage and processing circuit 110 can be used to run software in the electronic device 100, such as Voice over Internet Protocol (VOIP) telephone call applications, simultaneous translation functions, media playback applications, operating system functions, and the like. These software can be used to perform some control operations, such as camera-based image acquisition, ambient light sensor-based ambient light measurement, proximity sensor-based proximity sensor measurement, and information based on status indicators such as LED status indicators Display functions, touch event detection based on touch sensors, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and the electronic device 100 Other functions in the embodiment are not limited in the embodiments of the present application.
  • VOIP Voice over Internet Protocol
  • These software can be used to perform some control operations, such as camera-based image acquisition, ambient light sensor-based ambient light measurement, proximity sensor-based proximity sensor measurement, and information based on status indicators such as LED status indicators Display functions, touch event detection based on touch sensors, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with
  • the electronic device 100 may further include an input-output circuit 150.
  • the input-output circuit 150 may be used to enable the electronic device 100 to input and output data, that is, to allow the electronic device 100 to receive data from an external device and also allow the electronic device 100 to output data from the electronic device 100 to an external device.
  • the input-output circuit 150 may further include a sensor 170.
  • the sensor 170 may include an ambient light sensor, a proximity sensor based on light and capacitance, and a touch sensor (for example, a light touch sensor and / or a capacitive touch sensor, where the touch sensor may be part of a touch display screen or may be used as a The touch sensor structure is used independently), acceleration sensors, and other sensors.
  • the input-output circuit 150 may further include a touch sensor array (ie, the display 130 may be a touch display screen).
  • the touch sensor can be a capacitive touch sensor formed by a transparent array of touch sensor electrodes (such as indium tin oxide (ITO) electrodes), or it can be a touch sensor formed using other touch technologies, such as sonic touch, pressure-sensitive touch, resistance Touch, optical touch, etc. are not limited in the embodiments of the present application.
  • the electronic device 100 may further include an audio component 140.
  • the audio component 140 may be used to provide audio input and output functions for the electronic device 100.
  • the audio component 140 in the electronic device 100 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sound.
  • the communication circuit 120 may be used to provide the electronic device 100 with the ability to communicate with external devices.
  • the communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and / or optical signals.
  • the wireless communication circuit in the communication circuit 120 may include a radio frequency transceiver circuit, a power amplifier circuit, a low noise amplifier, a switch, a filter, and an antenna.
  • the wireless communication circuit in the communication circuit 120 may include a circuit for supporting near field communication (NFC) by transmitting and receiving near field coupled electromagnetic signals.
  • the communication circuit 120 may include a near field communication antenna and a near field communication transceiver.
  • the communication circuit 120 may further include a cellular phone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
  • the electronic device 100 may further include a battery, a power management circuit, and other input-output units 160.
  • the input-output unit 160 may include a button, a joystick, a click wheel, a scroll wheel, a touch pad, a keypad, a keyboard, a camera, a light emitting diode, or other status indicators.
  • a user may input commands through the input-output circuit 150 to control the operation of the electronic device 100, and may use output data of the input-output circuit 150 to realize receiving status information and other outputs from the electronic device 100.
  • FIG. 2 is a schematic structural diagram of an electronic device and a wearable device provided in this application.
  • the wearable device includes: a first earplug and a second earplug, wherein the first earplug or the second earplug may include: a processing component 201, an audio playback component 202, and a wireless transceiver 203; wherein the processing component 201 and the audio playback component
  • the 202 and the wireless transceiver 203 are respectively connected; the audio playback component may be a variety of types, such as a speaker, and also a bone-conduction sound-emitting component.
  • the electronic device shown in FIG. 2 includes a communication component 301 and a processor 302, wherein the processor 302 is electrically connected to the communication component. among them,
  • a communication component 301 is configured to implement a wireless connection with a wearable device, and obtain an adapted first earphone audio type and a second earphone audio type adapted to the second earphone through the wireless connection.
  • Different audio types correspond to different priorities. level;
  • the foregoing determines the first earbud audio type by using the application program that plays the first earbud audio, and determines the second earbud audio type by using the application that plays the second earbud audio.
  • the foregoing wireless connection may specifically be a wireless connection method such as a Bluetooth connection, a wifi connection, a radio frequency connection, and of course, in actual applications, other wireless connection methods may also be adopted, and the present application does not limit the specific method of the wireless connection.
  • the processor 302 is configured to determine a currently running first application program, and determine whether to perform switching of the master and slave earphones according to the first application program, the first earphone audio type, and the second earphone audio type.
  • the technical solution provided in this application implements a wireless connection with a wearable device
  • the first earphone audio type of the first earphone and the second earphone audio type of the second earphone are obtained through the wireless connection, and then the first application program is determined
  • the switching strategy of the master-slave headset is determined, so that the earphones that are adapted to the application can be dynamically switched according to different applications, which can improve the earplugs.
  • the wearable device uses a wireless headset as an example.
  • the corresponding applications can be a call application and a music application.
  • An earphone audio application determines that the first earphone audio type application may be a call application.
  • For a second earphone it determines that the second earphone audio type application may be music by playing the second earphone audio application.
  • Application then if the electronic device is in a call application, and the primary earbud is the second earbud, the electronic device can perform the switching of the master and slave earbuds, that is, the first earbud is switched to the master earbud, and the second earbud is switched to the slave earbud.
  • this switch can make the calling application more closely fit the first earphone, which can improve the effect of the call, thereby improving the experience of the earphones, and can improve the battery life.
  • the electronic device If the electronic device is in a music application, and the primary earphone is the first earphone, the electronic device can perform the switching between the master and slave earphones, that is, the second earphone is switched to the master earphone, and the first earphone is switched to the slave earphone. Make the calling application more closely fit the second earbud, which can improve the effect of the call, thereby improving the experience of the earbud, and improving the battery life.
  • the specific implementation manner of determining whether to perform the switching of the master and slave earphones according to the first application program, the first earphone audio type, and the second earphone audio type may be:
  • the processor 302 is specifically configured to, if it is determined that the master earbud is the first earbud and the audio type determined by the first application program is dependent on the first earbud audio type, and does not perform the switch of the master and slave earbuds; An earphone, the audio type determined by the first application program is not dependent on the first earphone audio type but dependent on the second earphone audio type, and performs switching of the master and slave earphones.
  • the specific implementation manners according to the first application, the first earphone audio type, and the second earphone audio type may be:
  • the processor 302 is specifically configured to, if it is determined that the main earbud is the first earbud, the audio type determined by the first application program is not dependent on the first earbud audio type but dependent on the second earbud audio type, to obtain the first earbud first A remaining power and a second remaining power of the second earbud, calculate a first difference between the second remaining power and the first remaining power, if the first difference is greater than the power threshold, perform a switch between the master and slave earbuds, as The first difference is a negative value and is smaller than the power threshold, and the switching of the master and slave earbuds is not performed.
  • the purpose of this setting is to avoid excessive power difference between the first earphone and the second earphone, because for the first earphone and the second earphone, the separation is the earphone as an example, it has a separate battery and a power supply system That is, the power between the first earbud and the second earbud cannot be shared, so the remaining power between the first earbud and the second earbud may be different.
  • the power consumption of the main earbud is generally The power consumption of the slave earbuds.
  • the first earplug and the second earplug are interchangeable.
  • the first earplug and the second earplug in this application are only used to distinguish the two earplugs, and there are no other restrictions. .
  • the processor 201 is further configured to delay the set time, obtain the first remaining power and the second remaining power again, and calculate the time between the set time, as the first difference is negative and less than the power threshold. After the second difference between the second remaining power amount and the first remaining power amount, if the second difference value is negative and smaller than the power amount threshold, it is determined that the switching between the master and slave earplugs is not performed.
  • the technical solution here verifies the first difference by calculating the difference between the remaining power of the two earbuds again after a set time delay, so as to avoid the problem of frequent switching of the master and slave earbuds caused by the wrong detection of power.
  • the processor 201 is further configured to obtain the type and running time of the first application program, determine the number of earplugs running the first application program according to the type, and calculate the remaining power and The remaining power of the second earbud is determined based on the remaining power of the first earbud and the remaining power of the second earbud.
  • the number of earplugs to be run is determined by the type of the first running application, and then the first remaining power and the second remaining power are calculated according to the number of earplugs and the running time, and then it is determined whether to switch off the master and slave earplugs.
  • This technical solution avoids a large gap between the remaining power of the master earbuds and the remaining power of the slave earbuds caused by the long-term non-switching of the master earbuds, which exacerbates the difference in power between the master and slave earbuds.
  • the above-mentioned determining whether to switch off the master-slave earphone according to the remaining power of the first earphone and the remaining power of the second earphone may specifically include:
  • the processor is specifically configured to turn off the switching between the master and slave earbuds if the remaining power of the first earbuds and the remaining power of the second earbuds are less than the minimum power.
  • FIG. 3 provides a wearable device master-slave switching method.
  • the wearable device includes a first earphone and a second earphone.
  • the foregoing method may be implemented by using a terminal as shown in FIG. 1b or FIG. 2.
  • the method includes the following steps:
  • Step S301 Obtain a first earphone audio type adapted for the first earphone and a second earphone audio type adapted for the second earphone.
  • Different audio types correspond to different priorities, and the same audio type of different earphones may also correspond to different priority;
  • Step S302 Determine a currently running first application program
  • Step S303 Determine whether to perform a master-slave earphone switching on the wearable device according to the first application program, the first earphone audio type, and the second earphone audio type.
  • the technical solution provided in this application implements a wireless connection with a wearable device
  • the first earbud audio type of the first earbud and the second earbud audio type of the second earbud are obtained through the wireless connection, and then the first application is determined according to The first earbud audio type, the first application, and the second earbud audio type determine to execute the switching strategy of the master-slave headset.
  • This can dynamically switch the earbuds adapted to the application according to different applications, which can improve the experience of the earbuds and Endurance and improve user experience.
  • the above-mentioned determining whether to perform a master-slave earphone switching on the wearable device based on the first application program, the first earphone audio type, and the second earphone audio type specifically includes:
  • the switching of the master and slave earbuds is not performed;
  • the audio type determined by the first application program is not dependent on the first earbud audio type but is dependent on the second earbud audio type, and the switching of the master and slave earbuds is performed.
  • the above-mentioned determining whether to perform a master-slave earphone switching on the wearable device based on the first application program, the first earphone audio type, and the second earphone audio type specifically includes:
  • the audio type determined by the first application program is not dependent on the first earbud audio type but is dependent on the second earbud audio type, and the first remaining power and the The second remaining power of the second earbud, calculating a first difference between the second remaining power and the first remaining power, if the first difference is greater than a power threshold, performing a switch of the master and slave earbuds, If the first difference is a negative value and is smaller than the power threshold, the switching of the master and slave earplugs is not performed.
  • the method further includes:
  • the first remaining power and the second remaining power are obtained again, and the second difference between the second remaining power and the first remaining power after the set time is calculated, as in the first The difference is negative and less than the power threshold, and it is determined that the switching between the master and slave earbuds is not performed.
  • the above method further includes:
  • the amount of power is determined based on the remaining power of the first earbud and the remaining power of the second earbud.
  • FIG. 4 is a block diagram showing a partial structure of a wearable device connected to a mobile terminal according to an embodiment of the present application.
  • the wearable device includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a sensor 950, a first audio playback component 960 (such as an audio collector), and wireless fidelity (Wireless Fidelity, WiFi) module 970, application processor AP980, power supply 990, second audio playback component 999 and other components.
  • RF radio frequency
  • the wearable device structure shown in FIG. 4 does not constitute a limitation on the wearable device, and may include more or fewer parts than those shown in the figure, or combine some parts, or be different
  • the radio frequency circuit 910 can be connected to a single antenna or multiple antennas.
  • the input unit 930 may be used to receive inputted numeric or character information, and generate key signal inputs related to user settings and function control of the mobile phone.
  • the input unit 930 may include a touch display screen 933 and other input devices 932.
  • the other input devices 932 may include, but are not limited to, one or more of physical keys, function keys (such as volume control keys, switch keys, etc.), trackballs, joysticks, and the like. among them,
  • the radio frequency circuit 910 is configured to implement a wireless connection with a wearable device, and obtain a first earphone audio type of a first earphone of the wearable device and a first earphone audio type of the second earphone of the wearable device through the wireless connection.
  • Two earbuds audio types different audio types can have different priorities in different earbuds;
  • An application processor AP980 configured to determine a currently running first application program, and determine whether to perform a master-slave earplug on the wearable device according to the first application program, the first earphone audio type, and the second earphone audio type Switch.
  • the application processor AP980 is specifically used to determine that the primary earbud is the first earbud and the audio type determined by the first application program is dependent on the first earbud audio type, and does not perform the switching of the master and slave earbuds;
  • the first earbud, the audio type determined by the first application program is not dependent on the first earbud audio type but is dependent on the second earbud audio type, and performs switching of the master and slave earbuds.
  • the application processor AP980 is specifically configured to, if it is determined that the main earbud is the first earbud, the audio type determined by the first application program is not dependent on the first earbud audio type but dependent on the second earbud audio type, to obtain the first earbud Calculate a first difference between the second remaining power and the first remaining power of the first remaining power of the earbuds and the second remaining power of the second earbuds, such as the first difference is greater than a power threshold , Performing the switching of the master-slave earbuds, if the first difference is negative and smaller than the power threshold, the switching of the master-slave earbuds is not performed.
  • the application processor AP980 is specifically configured to obtain the first remaining power and the second remaining power again after a set time delay, and calculate the first remaining power between the second remaining power and the first remaining power after the set time. If the second difference is a negative value and is smaller than a power threshold, it is determined that the switching between the master and the slave earplugs is not performed.
  • the application processor AP980 is specifically configured to obtain the type and running time of the first application program, determine the number of earplugs running the first application program according to the type, and calculate the number of earplugs of the first earphone according to the number of earplugs and the running time.
  • the remaining power and the remaining power of the second earbud are determined according to the remaining power of the first earbud and the remaining power of the second earbud whether the master-slave earbud switch needs to be turned off.
  • the AP980 is the control center of the wearable device. It uses various interfaces and lines to connect various parts of the entire wearable device. It runs or executes software programs and / or modules stored in the memory 920 and calls stored in the memory 920. Data, perform various functions of the wearable device and process data, so as to monitor the overall wearable device.
  • the AP980 may include one or more processing units; optionally, the AP980 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, etc.
  • the tuning processor mainly handles wireless communication. It can be understood that the aforementioned modem processor may not be integrated into the AP980.
  • the memory 920 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one flash memory device, or other volatile solid-state memory devices.
  • the RF circuit 910 can be used for receiving and transmitting information.
  • the RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • the RF circuit 910 can also communicate with a network and other devices through wireless communication.
  • the above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Bluetooth, wifi, Global System for Mobile Communications, general packet wireless service, code division multiple access, broadband code division multiple access, long-term evolution, new air interface, and the like.
  • the wearable device may further include at least one sensor 950, such as an ultrasonic sensor, an angle sensor, a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may detect the brightness of the ambient light, and the motion sensor may detect whether the wearable device is in a plug state, and adjust the touch display according to the plug state.
  • the brightness of the screen, the proximity sensor can turn off the touch display and / or backlight when the wearable device is moved to the ear.
  • an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, which can be used to identify the posture of wearable devices (such as horizontal and vertical screens Switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc .; as for wearable devices, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. can also be configured The sensors are not repeated here.
  • the audio collector 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the wearable device.
  • the audio collector 960 may transmit the received electrical data converted electrical signals to a speaker 961, which is converted into a sound signal for playback; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal and is collected by the audio.
  • the receiver 960 converts the audio data into audio data, and then plays the audio data to the AP 980 for processing, and then sends it to, for example, a mobile phone via the RF circuit 910, or plays the audio data to the memory 920 for further processing.
  • WiFi is a short-range wireless transmission technology.
  • the wearable device can help users send and receive data through the WiFi module 970, which provides users with wireless broadband Internet access.
  • FIG. 4 shows the WiFi module 970, it can be understood that it does not belong to the necessary configuration of the wearable device, and can be omitted as needed without changing the nature of the application.
  • the wearable device may also include a Bluetooth module, which is used to achieve connection with the electronic device.
  • the Bluetooth module can be set separately. Of course, in actual applications, due to different application processors selected, it can also be integrated in the Within the application processor.
  • the wearable device also includes a power supply 990 (such as a battery) that supplies power to various components.
  • a power supply 990 (such as a battery) that supplies power to various components.
  • the power supply can be logically connected to the AP980 through a power management system, thereby implementing functions such as managing charging, discharging, and power management through the power management system. .
  • the wearable device may further include a camera, a light supplement device, a light sensor, and the like, and details are not described herein again.
  • the electronic device of the technical solution provided in the present application obtains the first earphone audio type and the second earphone audio type of the two earphones, and then selects the master earphone and the slave earphone according to the currently running first application program, so that the master and slave The earbuds match the first application currently running, improving user experience.
  • An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes a computer to execute any one of the wearable device masters and slaves described in the foregoing method embodiments. Switch some or all steps of the method.
  • An embodiment of the present application further provides a computer program product, 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 perform the operations described in the foregoing method embodiments. Part or all of the steps of any wearable device master-slave switching method.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or may be combined. Integration into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • the functional units in the embodiments of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software program modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Headphones And Earphones (AREA)

Abstract

本申请实施例公开了一种可穿戴设备主从切换方法及相关产品,所述可穿戴式设备包括:第一耳塞与第二耳塞,所述可穿戴式设备与电子装置连接,所述方法包括如下步骤:电子装置获取第一耳塞适配的第一耳塞音频类型以及第二耳塞适配的第二耳塞音频类型,不同的音频类型对应不同的优先级;电子装置确定当前运行的第一应用程序;电子装置依据所述第一应用程序、所述第一耳塞音频类型和第二耳塞音频类型确定是否对所述可穿戴式设备执行主从耳塞的切换。本申请提供的技术方案具有用户体验度高的优点。

Description

一种可穿戴设备主从切换方法及相关产品 技术领域
本申请涉及移动终端配件技术领域,具体涉及一种可穿戴设备主从切换方法及相关产品。
背景技术
随着智能手机的普及和应用,用户越来越多的依赖智能手机,可穿戴式设备,例如,无线耳机、智能手表、智能手环等等设备也随着智能手机的兴起得到了广泛的应用。对于可穿戴式设备,这里以无线耳机为例,无线耳机具有与智能手机连接便利的优点。
发明内容
本申请实施例提供了一种可穿戴设备主从切换方法及可穿戴式设备,以期依据应用程序对两个耳塞执行主从切换,提高耳塞电池的续航能力,提高用户体验度。
第一方面,本申请实施例提供一种可穿戴设备主从切换方法,所述可穿戴式设备包括:第一耳塞与第二耳塞,所述可穿戴式设备与电子装置连接,所述方法包括如下步骤:
电子装置获取第一耳塞适配的第一耳塞音频类型以及第二耳塞适配的第二耳塞音频类型,不同的音频类型对应不同的优先级;电子装置确定当前运行的第一应用程序;
电子装置依据所述第一应用程序、所述第一耳塞音频类型和第二耳塞音频类型确定是否对所述可穿戴式设备执行主从耳塞的切换第二方面,提供一种电子装置,所述电子装置包括:通信部件和处理器;其中;
所述通信部件,用于与可穿戴式设备实现无线连接,通过所述无线连接获取所述可穿戴式设备的第一耳塞的适配的第一耳塞音频类型以及第二耳塞适配的第二耳塞音频类型,不同的音频类型对应不同的优先级;
所述处理器,用于确定当前运行的第一应用程序,依据所述第一应用程序、第一耳塞音频类型和第二耳塞音频类型确定是否对所述可穿戴式设备执行主从耳塞的切换。
第三方面,提供一种计算机可读存储介质,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行二方面提供的方法。
第四方面,提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行第二方面提供的方法
可以看出,本申请提供的技术方案的电子装置获取二个耳塞的第一耳塞音频类型和第二耳塞音频类型,然后依据当前运行的第一应用程序来选择主耳塞以及从耳塞,使得主从 耳塞与当前运行的第一应用程序匹配,提高用户体验度。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是一种可穿戴式设备与无线通信设备的连接构架示意图。
图1a是本申请提供的一种无线耳机的结构示意图。
图1b是本申请提供的一种无线耳机的另一种结构示意图。
图2是本申请提供的一种可穿戴式设备与电子装置的结构示意图。
图3为本申请的可穿戴设备主从切换方法的流程示意图。
图4为本申请的一种手机的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本申请实施例所涉及到的无线通信设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为无线通信设备。
上述无线通信设备可以与可穿戴设备连接,该可穿戴设备例如无线耳机,一般具有两个耳塞,两个耳塞具有单独的电池和供电系统,两个耳塞的电池续航能够较短,影响用户体验度。
在第一方面提供的方法中,所述第一耳塞音频类型通过播放第一耳塞音频的应用程序 确定,所述第二耳塞音频类型通过播放第二耳塞音频的应用程序确定。
在第一方面提供的方法中,所述电子装置依据所述第一应用程序、所述第一耳塞音频类型和第二耳塞音频类型确定是否对所述可穿戴式设备执行主从耳塞的切换具体包括:
如确定主耳塞为所述第一耳塞且由所述第一应用程序确定的音频类型从属第一耳塞音频类型,不执行主从耳塞的切换;
如确定主耳塞为第一耳塞,由所述第一应用程序确定的音频类型不从属第一耳塞音频类型但从属第二耳塞音频类型,执行主从耳塞的切换。
在第一方面提供的方法中,所述电子装置依据所述第一应用程序、所述第一耳塞音频类型和第二耳塞音频类型确定是否对所述可穿戴式设备执行主从耳塞的切换具体包括:
如确定主耳塞为所述第一耳塞,由所述第一应用程序确定的音频类型不从属第一耳塞音频类型但从属第二耳塞音频类型,获取所述第一耳塞的第一剩余电量和所述第二耳塞的第二剩余电量,计算所述第二剩余电量与所述第一剩余电量之间的第一差值,如所述第一差值大于电量阈值,执行主从耳塞的切换,如所述第一差值为负值且小于电量阈值,不执行主从耳塞的切换。
在第一方面提供的方法中,所述方法如所述第一差值为负值且小于电量阈值与所述不执行主从耳塞的切换之间还包括:
延时设定时间后,再次获取第一剩余电量与第二剩余电量,计算所述设定时间之间后的第二剩余电量与第一剩余电量之间的第二差值,如所述第二差值为负值且小于电量阈值,确定不执行主从耳塞之间的切换。
在第一方面提供的方法中,所述电子装置依据所述第一应用程序、所述第一耳塞音频类型和第二耳塞音频类型确定是否对所述可穿戴式设备执行主从耳塞的切换具体包括:
如确定主耳塞为所述第一耳塞,由所述第一应用程序确定的音频类型不从属第一耳塞音频类型但从属第二耳塞音频类型,获取所述第一耳塞的第一剩余电量和所述第二耳塞的第二剩余电量,计算所述第二剩余电量与所述第一剩余电量之间的第一差值,如所述第一差值为负值且第二剩余电量小于最小电量,禁止将主耳塞切换至第二耳塞。
在第一方面提供的方法中,所述方法还包括:
获取第一应用程序的类型和运行时间,依据该类型确定运行所述第一应用程序的耳塞数量,依据所述耳塞数量以及运行时间计算第一耳塞的第一剩余电量和第二耳塞的第二剩余电量,依据所述第一剩余电量和所述第二剩余电量确定是否需要关闭主从耳塞切换。
在第一方面提供的方法中,所述依据所述第一剩余电量和所述第二剩余电量确定是否需要关闭主从耳塞切换具体包括:
如所述第一剩余电量以及所述第二剩余电量均小于最低电量,关闭主从耳塞的切换。
在第一方面提供的方法中,所述执行主从耳塞的切换具体包括:
将所述第二耳塞切换成主耳塞,将所述第一耳塞切换成从耳塞。
在第二方面提供的电子装置中,所述处理器,还用于通过播放第一耳塞音频的应用程序确定第一耳塞音频类型,通过播放第二耳塞音频的应用程序确定第二耳塞音频类型。
在第二方面提供的电子装置中,所述处理器,具体用于
如确定主耳塞为所述第一耳塞且由所述第一应用程序确定的音频类型从属第一耳塞音频类型,不执行主从耳塞的切换;如确定主耳塞为第一耳塞,由所述第一应用程序确定的音频类型不从属第一耳塞音频类型但从属第二耳塞音频类型,执行主从耳塞的切换。
在第二方面提供的电子装置中,所述处理器,具体用于如确定主耳塞为所述第一耳塞,由所述第一应用程序确定的音频类型不从属第一耳塞音频类型但从属第二耳塞音频类型,获取所述第一耳塞的第一剩余电量和所述第二耳塞的第二剩余电量,计算所述第二剩余电量与所述第一剩余电量之间的第一差值,如所述第一差值大于电量阈值,执行主从耳塞的切换,如所述第一差值为负值且小于电量阈值,不执行主从耳塞的切换。
在第二方面提供的电子装置中,所述处理器,具体用于延时设定时间后,再次获取第一剩余电量与第二剩余电量,计算所述设定时间之间后的第二剩余电量与第一剩余电量之间的第二差值,如所述第二差值为负值且小于电量阈值,确定不执行主从耳塞之间的切换。
在第二方面提供的电子装置中,所述处理器,具体用于如确定主耳塞为所述第一耳塞,由所述第一应用程序确定的音频类型不从属第一耳塞音频类型但从属第二耳塞音频类型,获取所述第一耳塞的第一剩余电量和所述第二耳塞的第二剩余电量,计算所述第二剩余电量与所述第一剩余电量之间的第一差值,如所述第一差值为负值且第二剩余电量小于最小电量,禁止将主耳塞切换至第二耳塞。
在第二方面提供的电子装置中,所述处理部件,还用于获取第一应用程序的类型和运行时间,依据该类型确定运行所述第一应用程序的耳塞数量,依据所述耳塞数量以及运行时间计算第一耳塞的第一剩余电量和第二耳塞的第二剩余电量,依据所述第一剩余电量和所述第二剩余电量确定是否需要关闭主从耳塞切换。
在第二方面提供的电子装置中,所述处理部件,具体用于如所述第一剩余电量以及所述第二剩余电量均小于最低电量,关闭主从耳塞的切换。
请参阅图1,图1是本申请实施例公开的一种无线耳机的连接构架示意图,该网络架构可以包括电子装置和无线耳机,其中,无线耳机可以通过无线网络(例如,蓝牙、红外线或WiFi)与电子装置通信连接。需要说明的是,无线耳机可包含一个或者多个耳塞,本申请实施例不作限定。具体实施中,无线耳机可向电子装置法发送配对请求,电子装置可接收由可穿戴设备发送的配对请求,可穿戴设备包括至少一个独立部件,响应配对请求,检测可穿戴设备包含的部件数量,依据部件数量显示可穿戴设备的信息,例如电量、配对数量等等。
如图1a所示,图1a是本申请实施例提供的一种无线耳机的结构图,如图1a所示的,两个耳塞可以完全分离设置。如图1a所示,该无线耳机包括:二个耳塞,每个耳塞包括:耳塞外壳121、设置在耳塞外壳121内的电池,该耳塞还可以包括:无线收发器122、处理芯片(图中未画出)、和触控板(图中未画出),该处理芯片与触控板、无线收发器之间电连接,该电池对该耳塞内的所有电子器件供电,该电子器件包括但不限于:无线收发器122、处理芯片、触控板等等。具体的,该电连接的方式可以通过总线方式来连接,当然在实际应用中,上述电连接也可以是通过其他连接方式来连接。
请参阅图1b,图1b是本申请实施例公开的一种电子装置100的结构示意图,电子装 置100包括存储和处理电路110,以及与所述存储和处理电路110连接的通信电路120和音频组件140,其中,在一些特定的电子装置100内,还可以设置显示组件130或触控组件。
电子装置100可以包括控制电路,该控制电路可以包括存储和处理电路110。该存储和处理电路110可以存储器,例如硬盘驱动存储器,非易失性存储器(例如闪存或用于形成固态驱动器的其它电子可编程只读存储器等),易失性存储器(例如静态或动态随机存取存储器等)等,本申请实施例不作限制。存储和处理电路110中的处理电路可以用于控制电子装置100的运转。该处理电路可以基于一个或多个微处理器,微控制器,数字信号处理器,基带处理器,功率管理单元,音频编解码器芯片,专用集成电路,显示驱动器集成电路等来实现。
存储和处理电路110可用于运行电子装置100中的软件,例如互联网协议语音(Voice over Internet Protocol,VOIP)电话呼叫应用程序,同声翻译功能,媒体播放应用程序,操作系统功能等。这些软件可以用于执行一些控制操作,例如,基于照相机的图像采集,基于环境光传感器的环境光测量,基于接近传感器的接近传感器测量,基于诸如发光二极管的状态指示灯等状态指示器实现的信息显示功能,基于触摸传感器的触摸事件检测,与执行无线通信功能相关联的操作,与收集和产生音频信号相关联的操作,与收集和处理按钮按压事件数据相关联的控制操作,以及电子装置100中的其它功能等,本申请实施例不作限制。
电子装置100还可以包括输入-输出电路150。输入-输出电路150可用于使电子装置100实现数据的输入和输出,即允许电子装置100从外部设备接收数据和也允许电子装置100将数据从电子装置100输出至外部设备。输入-输出电路150可以进一步包括传感器170。传感器170可以包括环境光传感器,基于光和电容的接近传感器,触摸传感器(例如,基于光触摸传感器和/或电容式触摸传感器,其中,触摸传感器可以是触控显示屏的一部分,也可以作为一个触摸传感器结构独立使用),加速度传感器,和其它传感器等。
输入-输出电路150还可以包括触摸传感器阵列(即,显示器130可以是触控显示屏)。触摸传感器可以是由透明的触摸传感器电极(例如氧化铟锡(ITO)电极)阵列形成的电容式触摸传感器,或者可以是使用其它触摸技术形成的触摸传感器,例如音波触控,压敏触摸,电阻触摸,光学触摸等,本申请实施例不作限制。
电子装置100还可以包括音频组件140。音频组件140可以用于为电子装置100提供音频输入和输出功能。电子装置100中的音频组件140可以包括扬声器,麦克风,蜂鸣器,音调发生器以及其它用于产生和检测声音的组件。
通信电路120可以用于为电子装置100提供与外部设备通信的能力。通信电路120可以包括模拟和数字输入-输出接口电路,和基于射频信号和/或光信号的无线通信电路。通信电路120中的无线通信电路可以包括射频收发器电路、功率放大器电路、低噪声放大器、开关、滤波器和天线。举例来说,通信电路120中的无线通信电路可以包括用于通过发射和接收近场耦合电磁信号来支持近场通信(Near Field Communication,NFC)的电路。例如,通信电路120可以包括近场通信天线和近场通信收发器。通信电路120还可以包括蜂窝电话收发器和天线,无线局域网收发器电路和天线等。
电子装置100还可以进一步包括电池,电力管理电路和其它输入-输出单元160。输入-输出单元160可以包括按钮,操纵杆,点击轮,滚动轮,触摸板,小键盘,键盘,照相机,发光二极管或其它状态指示器等。
用户可以通过输入-输出电路150输入命令来控制电子装置100的操作,并且可以使用输入-输出电路150的输出数据以实现接收来自电子装置100的状态信息和其它输出。
本申请提供一种电子装置,该电子装置与可穿戴式设备连接,参阅图2,图2为本申请提供的一种电子装置与可穿戴式设备的结构示意图,如图2所示,该可穿戴式设备包括:第一耳塞和第二耳塞,其中,第一耳塞或第二耳塞可以包括:处理部件201、音频播放部件202和无线收发器203;其中,该处理部件201与该音频播放部件202以及无线收发器203分别连接;该音频播放部件可以为多种,例如扬声器,又如骨传导发声部件。如图2所示的电子装置包括:通信部件301、处理器302,其中该处理器302与该通信部件电连接。其中,
通信部件301,用于与可穿戴式设备实现无线连接,通过所述无线连接获取适配的第一耳塞音频类型以及第二耳塞适配的第二耳塞音频类型,不同的音频类型对应不同的优先级;
上述通过播放第一耳塞音频的应用程序确定第一耳塞音频类型,通过播放第二耳塞音频的应用程序确定第二耳塞音频类型。
上述无线连接具体可以为,蓝牙连接、wifi连接、射频连接等等无线连接方式,当然在实际应用中,也可以采用其他的无线连接方式,本申请并不局限上述无线连接的具体方式。
处理器302,用于确定当前运行的第一应用程序,依据所述第一应用程序、第一耳塞音频类型和第二耳塞音频类型确定是否执行主从耳塞的切换。
本申请提供的技术方案在实现与可穿戴式设备的无线连接后,通过无线连接获取第一耳塞的第一耳塞音频类型和第二耳塞的第二耳塞音频类型,然后确定第一应用程序后,依据第一应用程序、第一耳塞音频类型、第二耳塞音频类型确定执行主从耳机的切换策略,这样能够依据不同的应用程序动态的切换与该应用程序适配的耳塞,这样能够提高耳塞的体验以及续航能力,提高用户体验度。
下面通过一个例子来说明本申请的技术效果,这里的可穿戴式设备以无线耳机为例,其对应的应用程序可以为,通话应用程序和音乐应用程序,对于第一耳塞来说,通过播放第一耳塞音频的应用程序确定第一耳塞音频类型的应用程序可以为通话应用程序,对于第二耳塞来说,其通过播放第二耳塞音频的应用程序确定第二耳塞音频类型的应用程序可以为音乐应用程序,那么,如果电子装置处于通话应用程序,如此时的主耳塞为第二耳塞,则电子装置可以执行主从耳塞的切换,即将第一耳塞切换成主耳塞,将第二耳塞切换成从耳塞,此切换能够让通话应用程序与第一耳塞更加的贴合,这样能够提高通话的效果,进而提高耳塞的体验度,并且能够提升续航能力。如果电子装置处于音乐应用程序,如此时的主耳塞为第一耳塞,则电子装置可以执行主从耳塞的切换,即将第二耳塞切换成主耳塞,将第一耳塞切换成从耳塞,此切换能够让通话应用程序与第二耳塞更加的贴合,这样能够 提高通话的效果,进而提高耳塞的体验度,并且能够提升续航能力。
可选的,上述依据所述第一应用程序、第一耳塞音频类型和第二耳塞音频类型确定是否执行主从耳塞的切换的具体实现方式可以为:
处理器302,具体用于如确定主耳塞为所述第一耳塞且由所述第一应用程序确定的音频类型从属第一耳塞音频类型,不执行主从耳塞的切换;如确定主耳塞为第一耳塞,由所述第一应用程序确定的音频类型不从属第一耳塞音频类型但从属第二耳塞音频类型,执行主从耳塞的切换。
可选的,上述依据所述第一应用程序、第一耳塞音频类型和第二耳塞音频类型的具体实现方式可以为:
处理器302,具体用于如确定主耳塞为所述第一耳塞,由所述第一应用程序确定的音频类型不从属第一耳塞音频类型但从属第二耳塞音频类型,获取第一耳塞的第一剩余电量和第二耳塞的第二剩余电量,计算第二剩余电量与第一剩余电量之间的第一差值,如该第一差值大于电量阈值,执行主从耳塞的切换,如该第一差值为负值且小于电量阈值,不执行主从耳塞的切换。
此设置的目的是为了避免第一耳塞与第二耳塞之间的电量差值过大,因为对于第一耳塞以及第二耳塞来说,以分离是耳塞为例,其具有单独的电池以及供电系统,即第一耳塞与第二耳塞之间的电量无法共用,这样就可能第一耳塞与第二耳塞之间的剩余电量不同,对于主从耳塞模式来说,一般主耳塞的耗电量要与从耳塞的耗电量,这样如果需要执行主从耳塞的切换,例如需要将主耳塞从第一耳塞切换至第二耳塞,但是第二耳塞的第二剩余电量远小于第一耳塞的第一剩余电量,此种情况下如果仍然执行主从耳塞的切换,必将增大第一耳塞与第二耳塞剩余电量的差值,所以此方案将此种情况禁止切换,即在差值较大且第二耳塞剩余电量较小的情况下,禁止将主耳塞切换至第二耳塞,从而对第二耳塞的剩余电量进行一定的保护,使得第一耳塞与第二耳塞之间的电量保持均衡。
可选的,在一种实施例中,上述第一耳塞与第二耳塞之间可以互换,本申请中的第一耳塞与第二耳塞仅仅只是为了区分二个耳塞,并未有其他的限定。
可选的,处理器201,还用于如所述第一差值为负值且小于电量阈值,延时设定时间,再次获取第一剩余电量与第二剩余电量,计算设定时间之间后的第二剩余电量与第一剩余电量之间的第二差值,如第二差值为负值且小于电量阈值,确定不执行主从耳塞之间的切换。
这里的技术方案通过延时设定时间后再次计算两个耳塞剩余电量的差值来对第一差值进行验证,这样避免了检测电量错误导致的主、从耳塞频繁切换的问题。
可选的,处理器201,还用于获取第一应用程序的类型和运行时间,依据该类型确定运行第一应用程序的耳塞数量,依据该耳塞数量以及运行时间计算第一耳塞的剩余电量和第二耳塞的剩余电量,依据第一耳塞的剩余电量和第二耳塞的剩余电量确定是否需要关闭主从耳塞切换。
本技术方案通过运行的第一应用程序的类型来确定需运行的耳塞数量,然后依据该耳塞数量以及运行时间计算第一剩余电量和第二剩余电量,进而确定是否关闭主从耳塞之间 的切换,此技术方案避免了主耳塞长期不切换导致的主耳塞的剩余电量与从耳塞的剩余电量差距过大,加剧主、从耳塞之间的电量差异。
上述依据第一耳塞的剩余电量和第二耳塞的剩余电量确定是否需要关闭主从耳塞切换具体可以包括:
处理器,具体用于如第一耳塞的剩余电量以及第二耳塞的剩余电量均小于最低电量,关闭主从耳塞的切换。
参阅图3,图3提供了一种可穿戴设备主从切换方法,所述可穿戴式设备包括:第一耳塞与第二耳塞,上述方法可以通过如图1b或图2所示的终端实现,所述方法包括如下步骤:
步骤S301、获取第一耳塞适配的第一耳塞音频类型以及第二耳塞适配的第二耳塞音频类型,不同的音频类型对应不同的优先级,不同的耳塞相同的音频类型也可以对应不同的优先级;
步骤S302、确定当前运行的第一应用程序;
步骤S303、依据所述第一应用程序、所述第一耳塞音频类型和第二耳塞音频类型确定是否对所述可穿戴式设备执行主从耳塞的切换。
本申请提供的技术方案在实现与可穿戴式设备的无线连接后,通过无线连接获取第一耳塞的第一耳塞音频类型和第二耳塞的第二耳塞音频类型,然后确定第一应用后,依据第一耳塞音频类型、第一应用、第二耳塞音频类型确定执行主从耳机的切换策略,这样能够依据不同的应用程序动态的切换与该应用程序适配的耳塞,这样能够提高耳塞的体验以及续航能力,提高用户体验度。
可选的,上述依据所述第一应用程序、所述第一耳塞音频类型和第二耳塞音频类型确定是否对所述可穿戴式设备执行主从耳塞的切换具体包括:
如确定主耳塞为所述第一耳塞且由所述第一应用程序确定的音频类型从属第一耳塞音频类型,不执行主从耳塞的切换;
如确定主耳塞为第一耳塞,由所述第一应用程序确定的音频类型不从属第一耳塞音频类型但从属第二耳塞音频类型,执行主从耳塞的切换。
可选的,上述依据所述第一应用程序、所述第一耳塞音频类型和第二耳塞音频类型确定是否对所述可穿戴式设备执行主从耳塞的切换具体包括:
如确定主耳塞为所述第一耳塞,由所述第一应用程序确定的音频类型不从属第一耳塞音频类型但从属第二耳塞音频类型,获取所述第一耳塞的第一剩余电量和所述第二耳塞的第二剩余电量,计算所述第二剩余电量与所述第一剩余电量之间的第一差值,如所述第一差值大于电量阈值,执行主从耳塞的切换,如所述第一差值为负值且小于电量阈值,不执行主从耳塞的切换。
可选的,上述方法如所述第一差值为负值且小于电量阈值与所述不执行主从耳塞的切换之间还包括:
延时设定时间后,再次获取第一剩余电量与第二剩余电量,计算所述设定时间之间后的第二剩余电量与第一剩余电量之间的第二差值,如所述第二差值为负值且小于电量阈值, 确定不执行主从耳塞之间的切换。
可选的,上述方法还包括:
获取所述第一应用程序的类型和运行时间,依据所述类型确定运行所述第一应用程序的耳塞数量,依据所述耳塞数量以及运行时间计算第一耳塞的剩余电量和第二耳塞的剩余电量,依据第一耳塞的剩余电量和第二耳塞的剩余电量确定是否需要关闭主从耳塞切换。
图4示出的是与本申请实施例提供的移动终端连接的可穿戴式设备的部分结构的框图。参考图4,可穿戴式设备包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、传感器950、第一音频播放部件960(例如音频采集器)、无线保真(Wireless Fidelity,WiFi)模块970、应用处理器AP980、电源990、第二音频播放部件999等部件。本领域技术人员可以理解,图4中示出的可穿戴式设备结构并不构成对可穿戴式设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,例如该射频电路910可以连接单根或多根天线。
下面结合图4对可穿戴式设备的各个构成部件进行具体的介绍:
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括触控显示屏933以及其他输入设备932。具体地,其他输入设备932可以包括但不限于物理按键、功能键(比如音量控制按键、开关按键等)、轨迹球、操作杆等中的一种或多种。其中,
射频电路910,用于与可穿戴式设备实现无线连接,通过所述无线连接获取所述可穿戴式设备的第一耳塞的第一耳塞音频类型以及所述可穿戴式设备的第二耳塞的第二耳塞音频类型,不同的音频类型在不同耳塞的优先级可以不同;
应用处理器AP980,用于确定当前运行的第一应用程序,依据所述第一应用程序、所述第一耳塞音频类型和第二耳塞音频类型确定是否对所述可穿戴式设备执行主从耳塞的切换。
应用处理器AP980,具体用于如确定主耳塞为所述第一耳塞且由所述第一应用程序确定的音频类型从属第一耳塞音频类型,不执行主从耳塞的切换;如确定主耳塞为第一耳塞,由所述第一应用程序确定的音频类型不从属第一耳塞音频类型但从属第二耳塞音频类型,执行主从耳塞的切换。
应用处理器AP980,具体用于如确定主耳塞为所述第一耳塞,由所述第一应用程序确定的音频类型不从属第一耳塞音频类型但从属第二耳塞音频类型,获取所述第一耳塞的第一剩余电量和所述第二耳塞的第二剩余电量,计算所述第二剩余电量与所述第一剩余电量之间的第一差值,如所述第一差值大于电量阈值,执行主从耳塞的切换,如所述第一差值为负值且小于电量阈值,不执行主从耳塞的切换。
应用处理器AP980,具体用于延时设定时间后,再次获取第一剩余电量与第二剩余电量,计算所述设定时间之间后的第二剩余电量与第一剩余电量之间的第二差值,如所述第二差值为负值且小于电量阈值,确定不执行主从耳塞之间的切换。
应用处理器AP980,具体用于获取所述第一应用程序的类型和运行时间,依据所述类型确定运行所述第一应用程序的耳塞数量,依据所述耳塞数量以及运行时间计算第一耳塞 的剩余电量和第二耳塞的剩余电量,依据第一耳塞的剩余电量和第二耳塞的剩余电量确定是否需要关闭主从耳塞切换。
AP980是可穿戴式设备的控制中心,利用各种接口和线路连接整个可穿戴式设备的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行可穿戴式设备的各种功能和处理数据,从而对可穿戴式设备进行整体监控。可选的,AP980可包括一个或多个处理单元;可选的,AP980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到AP980中。
此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个闪存器件、或其他易失性固态存储器件。
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于蓝牙、wifi、全球移动通讯系统、通用分组无线服务、码分多址、宽带码分多址、长期演进、新空口等。
可穿戴式设备还可包括至少一种传感器950,比如超声波传感器、角度传感器、光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗,运动传感器可以检测可穿戴式设备是否处于插耳状态,依据该插耳状态来调节触控显示屏的亮度,接近传感器可在可穿戴式设备移动到耳边时,关闭触控显示屏和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别可穿戴式设备姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于可穿戴式设备还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频采集器960、扬声器961,传声器962可提供用户与可穿戴式设备之间的音频接口。音频采集器960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频采集器960接收后转换为音频数据,再将音频数据播放AP980处理后,经RF电路910以发送给比如手机,或者将音频数据播放至存储器920以便进一步处理。
WiFi属于短距离无线传输技术,可穿戴式设备通过WiFi模块970可以帮助用户收发数据等,它为用户提供了无线的宽带互联网访问。虽然图4示出了WiFi模块970,但是可以理解的是,其并不属于可穿戴式设备的必须构成,完全可以根据需要在不改变申请的本质的范围内而省略。
该可穿戴式设备还可以包括蓝牙模块,该蓝牙模块用于实现与电子装置之间的连接,该蓝牙模块可以单独设置,当然在实际应用中,由于选择的应用处理器不同,也可以集成在应用处理器内。
可穿戴式设备还包括给各个部件供电的电源990(比如电池),可选的,电源可以通过电源管理系统与AP980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,可穿戴式设备还可以包括摄像头、补光装置、光线传感器等,在此不再赘述。
可以看出,本申请提供的技术方案的电子装置获取二个耳塞的第一耳塞音频类型和第二耳塞音频类型,然后依据当前运行的第一应用程序来选择主耳塞以及从耳塞,使得主从耳塞与当前运行的第一应用程序匹配,提高用户体验度。
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种可穿戴设备主从切换方法的部分或全部步骤。
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种可穿戴设备主从切换方法的部分或全部步骤。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模块的形式实现。
以上是本申请实施例的实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请实施例原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本申请的保护范围。

Claims (20)

  1. 一种可穿戴设备主从切换方法,其特征在于,所述可穿戴式设备包括:第一耳塞与第二耳塞,所述可穿戴式设备与电子装置连接,所述方法包括如下步骤:
    电子装置获取第一耳塞适配的第一耳塞音频类型以及第二耳塞适配的第二耳塞音频类型,不同的音频类型对应不同的优先级;电子装置确定当前运行的第一应用程序;
    电子装置依据所述第一应用程序、所述第一耳塞音频类型和所述第二耳塞音频类型确定是否对所述可穿戴式设备执行主从耳塞的切换。
  2. 根据权利要求1所述的方法,其特征在于,
    所述第一耳塞音频类型通过播放第一耳塞音频的应用程序确定,所述第二耳塞音频类型通过播放第二耳塞音频的应用程序确定。
  3. 根据权利要求1所述的方法,其特征在于,所述电子装置依据所述第一应用程序、所述第一耳塞音频类型和第二耳塞音频类型确定是否对所述可穿戴式设备执行主从耳塞的切换具体包括:
    如确定主耳塞为所述第一耳塞且由所述第一应用程序确定的音频类型从属第一耳塞音频类型,不执行主从耳塞的切换;
    如确定主耳塞为第一耳塞,由所述第一应用程序确定的音频类型不从属第一耳塞音频类型但从属第二耳塞音频类型,执行主从耳塞的切换。
  4. 根据权利要求1所述的方法,其特征在于,所述电子装置依据所述第一应用程序、所述第一耳塞音频类型和第二耳塞音频类型确定是否对所述可穿戴式设备执行主从耳塞的切换具体包括:
    如确定主耳塞为所述第一耳塞,由所述第一应用程序确定的音频类型不从属第一耳塞音频类型但从属第二耳塞音频类型,获取所述第一耳塞的第一剩余电量和所述第二耳塞的第二剩余电量,计算所述第二剩余电量与所述第一剩余电量之间的第一差值,如所述第一差值大于电量阈值,执行主从耳塞的切换,如所述第一差值为负值且小于电量阈值,不执行主从耳塞的切换。
  5. 根据权利要求4所述的方法,其特征在于,所述方法如所述第一差值为负值且小于电量阈值与所述不执行主从耳塞的切换之间还包括:
    延时设定时间后,再次获取第一剩余电量与第二剩余电量,计算所述设定时间之间后的第二剩余电量与第一剩余电量之间的第二差值,如所述第二差值为负值且小于电量阈值,确定不执行主从耳塞之间的切换。
  6. 根据权利要求1所述的方法,其特征在于,所述电子装置依据所述第一应用程序、所述第一耳塞音频类型和第二耳塞音频类型确定是否对所述可穿戴式设备执行主从耳塞的切换具体包括:
    如确定主耳塞为所述第一耳塞,由所述第一应用程序确定的音频类型不从属第一耳塞音频类型但从属第二耳塞音频类型,获取所述第一耳塞的第一剩余电量和所述第二耳塞的第二剩余电量,计算所述第二剩余电量与所述第一剩余电量之间的第一差值,如所述第一差值为负值且第二剩余电量小于最小电量,禁止将主耳塞切换至第二耳塞。
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    获取第一应用程序的类型和运行时间,依据该类型确定运行所述第一应用程序的耳塞数量,依据所述耳塞数量以及运行时间计算第一耳塞的第一剩余电量和第二耳塞的第二剩余电量,依据所述第一剩余电量和所述第二剩余电量确定是否需要关闭主从耳塞切换。
  8. 根据权利要求7所述的方法,其特征在于,所述依据所述第一剩余电量和所述第二剩余电量确定是否需要关闭主从耳塞切换具体包括:
    如所述第一剩余电量以及所述第二剩余电量均小于最低电量,关闭主从耳塞的切换。
  9. 根据权利要求1所述的方法,其特征在于,所述执行主从耳塞的切换具体包括:
    将所述第二耳塞切换成主耳塞,将所述第一耳塞切换成从耳塞。
  10. 一种电子装置,其特征在于,所述电子装置包括:通信部件和处理器;其中;
    所述通信部件,用于与可穿戴式设备实现无线连接,通过所述无线连接获取所述可穿戴式设备的第一耳塞的适配的第一耳塞音频类型以及第二耳塞适配的第二耳塞音频类型,不同的音频类型对应不同的优先级;
    所述处理器,用于确定当前运行的第一应用程序,依据所述第一应用程序、所述第一耳塞音频类型和所述第二耳塞音频类型确定是否对所述可穿戴式设备执行主从耳塞的切换。
  11. 根据权利要求10所述的电子装置,其特征在于,
    所述处理器,还用于通过播放第一耳塞音频的应用程序确定第一耳塞音频类型,通过播放第二耳塞音频的应用程序确定第二耳塞音频类型。
  12. 根据权利要求10所述的电子装置,其特征在于,
    所述处理器,具体用于如确定主耳塞为所述第一耳塞且由所述第一应用程序确定的音频类型从属第一耳塞音频类型,不执行主从耳塞的切换;如确定主耳塞为第一耳塞,由所述第一应用程序确定的音频类型不从属第一耳塞音频类型但从属第二耳塞音频类型,执行主从耳塞的切换。
  13. 根据权利要求10所述的电子装置,其特征在于,
    所述处理器,具体用于如确定主耳塞为所述第一耳塞,由所述第一应用程序确定的音频类型不从属第一耳塞音频类型但从属第二耳塞音频类型,获取所述第一耳塞的第一剩余电量和所述第二耳塞的第二剩余电量,计算所述第二剩余电量与所述第一剩余电量之间的第一差值,如所述第一差值大于电量阈值,执行主从耳塞的切换,如所述第一差值为负值且小于电量阈值,不执行主从耳塞的切换。
  14. 根据权利要求13所述的电子装置,其特征在于,
    所述处理器,具体用于延时设定时间后,再次获取第一剩余电量与第二剩余电量,计算所述设定时间之间后的第二剩余电量与第一剩余电量之间的第二差值,如所述第二差值为负值且小于电量阈值,确定不执行主从耳塞之间的切换。
  15. 根据权利要求10所述的电子装置,其特征在于,
    所述处理器,具体用于如确定主耳塞为所述第一耳塞,由所述第一应用程序确定的音频类型不从属第一耳塞音频类型但从属第二耳塞音频类型,获取所述第一耳塞的第一剩余 电量和所述第二耳塞的第二剩余电量,计算所述第二剩余电量与所述第一剩余电量之间的第一差值,如所述第一差值为负值且第二剩余电量小于最小电量,禁止将主耳塞切换至第二耳塞。
  16. 根据权利要求10所述的电子装置,其特征在于,
    所述处理部件,还用于获取第一应用程序的类型和运行时间,依据该类型确定运行所述第一应用程序的耳塞数量,依据所述耳塞数量以及运行时间计算第一耳塞的第一剩余电量和第二耳塞的第二剩余电量,依据所述第一剩余电量和所述第二剩余电量确定是否需要关闭主从耳塞切换。
  17. 根据权利要求16所述的电子装置,其特征在于,
    所述处理部件,具体用于如所述第一剩余电量以及所述第二剩余电量均小于最低电量,关闭主从耳塞的切换。
  18. 一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现以下步骤:
    获取第一耳塞适配的第一耳塞音频类型以及第二耳塞适配的第二耳塞音频类型,不同的音频类型对应不同的优先级;电子装置确定当前运行的第一应用程序;
    依据所述第一应用程序、所述第一耳塞音频类型和所述第二耳塞音频类型确定是否对所述可穿戴式设备执行主从耳塞的切换。
  19. 一种计算机可读存储介质,其特征在于,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。
  20. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-9任一项所述的方法。
PCT/CN2019/098952 2018-08-01 2019-08-01 一种可穿戴设备主从切换方法及相关产品 WO2020025034A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP19843547.1A EP3826322A4 (en) 2018-08-01 2019-08-01 MASTER / SLAVE SWITCHING PROCEDURE FOR WEARABLE DEVICE AND CORRESPONDING PRODUCT
US17/163,060 US11395059B2 (en) 2018-08-01 2021-01-29 Master/slave switching method for wearable apparatus and related product

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810866658.9A CN109150221B (zh) 2018-08-01 2018-08-01 一种可穿戴设备主从切换方法及相关产品
CN201810866658.9 2018-08-01

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/163,060 Continuation US11395059B2 (en) 2018-08-01 2021-01-29 Master/slave switching method for wearable apparatus and related product

Publications (1)

Publication Number Publication Date
WO2020025034A1 true WO2020025034A1 (zh) 2020-02-06

Family

ID=64799490

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/098952 WO2020025034A1 (zh) 2018-08-01 2019-08-01 一种可穿戴设备主从切换方法及相关产品

Country Status (4)

Country Link
US (1) US11395059B2 (zh)
EP (1) EP3826322A4 (zh)
CN (1) CN109150221B (zh)
WO (1) WO2020025034A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109150221B (zh) * 2018-08-01 2020-05-26 Oppo广东移动通信有限公司 一种可穿戴设备主从切换方法及相关产品
CN114556816B (zh) * 2019-10-16 2024-05-14 雷蛇(亚太)私人有限公司 音频设备以及运行音频设备的方法
CN111343541A (zh) * 2020-04-15 2020-06-26 Oppo广东移动通信有限公司 无线耳机的控制方法、装置、移动终端及存储介质
US11375058B2 (en) * 2020-06-24 2022-06-28 Motorola Mobility Llc Methods and systems for providing status indicators with an electronic device
CN111985252B (zh) * 2020-08-21 2024-05-07 Oppo广东移动通信有限公司 对话翻译方法及装置、存储介质和电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611961A (zh) * 2011-01-20 2012-07-25 三星电子(中国)研发中心 一种终端的多路音频切换方法及装置
CN103312889A (zh) * 2012-02-13 2013-09-18 宏达国际电子股份有限公司 应用程控方法与相关的移动电子装置
CN107820155A (zh) * 2017-11-08 2018-03-20 深圳市沃特沃德股份有限公司 无线耳机的控制方法、装置和无线耳机
EP3300396A1 (en) * 2016-09-23 2018-03-28 Apple Inc. Broadcasting a device state in a wireless communication network
CN109150221A (zh) * 2018-08-01 2019-01-04 Oppo广东移动通信有限公司 一种可穿戴设备主从切换方法及相关产品

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8180078B2 (en) * 2007-12-13 2012-05-15 At&T Intellectual Property I, Lp Systems and methods employing multiple individual wireless earbuds for a common audio source
KR102448786B1 (ko) * 2016-03-10 2022-09-30 삼성전자주식회사 전자 장치 및 그의 동작 방법
CN105933817A (zh) * 2016-07-01 2016-09-07 歌尔科技有限公司 Vr设备的双边无线耳机系统和vr设备的双边无线耳机
US10178711B2 (en) * 2016-09-21 2019-01-08 Apple Inc. Real-time relay of wireless communications
US10517111B2 (en) * 2016-09-21 2019-12-24 Apple Inc. Mitigating scheduling conflicts in wireless communication devices
CN106792441B (zh) * 2016-11-29 2019-12-31 Oppo广东移动通信有限公司 一种蓝牙切换方法、装置及存储介质
CN107071618A (zh) * 2017-04-26 2017-08-18 歌尔科技有限公司 一种连接双耳蓝牙耳机的方法和装置
CN107071620B (zh) * 2017-05-11 2019-05-10 建荣半导体(深圳)有限公司 一种蓝牙耳机及其配对方法、蓝牙芯片和存储装置
CN107277668B (zh) * 2017-07-28 2019-05-31 广州黑格智能科技有限公司 一种双蓝牙耳机
CN108271090A (zh) * 2018-01-10 2018-07-10 深圳市沃特沃德股份有限公司 蓝牙耳机主从切换方法及装置
CN109068206B (zh) * 2018-07-02 2020-01-21 Oppo广东移动通信有限公司 主从耳机切换控制方法及相关产品

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611961A (zh) * 2011-01-20 2012-07-25 三星电子(中国)研发中心 一种终端的多路音频切换方法及装置
CN103312889A (zh) * 2012-02-13 2013-09-18 宏达国际电子股份有限公司 应用程控方法与相关的移动电子装置
EP3300396A1 (en) * 2016-09-23 2018-03-28 Apple Inc. Broadcasting a device state in a wireless communication network
CN107820155A (zh) * 2017-11-08 2018-03-20 深圳市沃特沃德股份有限公司 无线耳机的控制方法、装置和无线耳机
CN109150221A (zh) * 2018-08-01 2019-01-04 Oppo广东移动通信有限公司 一种可穿戴设备主从切换方法及相关产品

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3826322A4 *

Also Published As

Publication number Publication date
CN109150221A (zh) 2019-01-04
US20210152920A1 (en) 2021-05-20
CN109150221B (zh) 2020-05-26
EP3826322A4 (en) 2021-08-25
US11395059B2 (en) 2022-07-19
EP3826322A1 (en) 2021-05-26

Similar Documents

Publication Publication Date Title
US11102697B2 (en) Method for controlling earphone switching and earphone
US11043980B2 (en) Method for controlling earphone switching, earphone, and earphone system
WO2020025034A1 (zh) 一种可穿戴设备主从切换方法及相关产品
WO2020007222A1 (en) Method for controlling earphone switching, earphone, and earphone system
WO2019228163A1 (zh) 扬声器控制方法及移动终端
WO2020019847A1 (zh) 主耳机切换方法及相关设备
WO2021129750A1 (zh) 射频电路、电子设备及srs发送方法
WO2020019820A1 (zh) 麦克风堵孔检测方法及相关产品
JP7271699B2 (ja) 移動端末及び音声出力制御方法
CN108897516B (zh) 一种可穿戴设备音量调整方法及相关产品
CN108834013B (zh) 一种可穿戴设备电量均衡方法及相关产品
WO2020216209A1 (zh) 指示空间关系信息的方法及装置、通信设备
WO2018024003A1 (zh) 射频控制电路及移动终端
WO2022033176A1 (zh) 音频播放控制方法、装置、电子设备及存储介质
WO2020073852A1 (zh) 显示控制方法及相关产品
WO2020025033A1 (zh) 基于音量的主从切换方法及相关产品
WO2020007174A1 (zh) 通信连接建立方法及相关设备
CN108683980B (zh) 一种音频信号的传输方法及移动终端
CN108882084B (zh) 一种可穿戴设备电量均衡方法及相关产品
JP7274036B2 (ja) 上りリンク送信廃棄方法、上りリンク送信廃棄配置方法及び関連機器
CN109618062B (zh) 语音交互方法、装置、设备以及计算机可读存储介质
CN108882085B (zh) 一种可穿戴设备电量均衡方法及相关产品
WO2020077493A1 (zh) 耳机断开连接的方法、相关设备及计算机可读存储介质
WO2020019822A1 (zh) 麦克风堵孔检测方法及相关产品
WO2019084752A1 (zh) 一种语音调节耳机音量的方法及相关产品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19843547

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2019843547

Country of ref document: EP

Effective date: 20210218