WO2020025033A1 - 基于音量的主从切换方法及相关产品 - Google Patents

基于音量的主从切换方法及相关产品 Download PDF

Info

Publication number
WO2020025033A1
WO2020025033A1 PCT/CN2019/098951 CN2019098951W WO2020025033A1 WO 2020025033 A1 WO2020025033 A1 WO 2020025033A1 CN 2019098951 W CN2019098951 W CN 2019098951W WO 2020025033 A1 WO2020025033 A1 WO 2020025033A1
Authority
WO
WIPO (PCT)
Prior art keywords
volume
master
power consumption
slave
earphone
Prior art date
Application number
PCT/CN2019/098951
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 EP19843777.4A priority Critical patent/EP3829189B1/en
Publication of WO2020025033A1 publication Critical patent/WO2020025033A1/zh
Priority to US17/163,042 priority patent/US11265639B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0258Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity controlling an operation mode according to history or models of usage information, e.g. activity schedule or time of day
    • 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
    • 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
    • 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/1016Earpieces of the intra-aural type
    • 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/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • Embodiments of the present invention relate to the technical field of terminals, and in particular, to a volume-based master-slave switching method and related products.
  • Wireless earphones have the advantage of convenient connection with smartphones.
  • there are generally two earplugs which are respectively a master earphone and a slave earphone.
  • the embodiments of the present application provide a volume-based master-slave switching method and a wearable device, so as to perform the interchange between the master earphone and the slave earphone based on the volume based on the volume to improve the user experience.
  • an embodiment of the present application provides a master-slave switching method based on volume.
  • the method is applied to a wearable device.
  • the wearable device includes a master earphone and a slave earphone.
  • the method includes the following steps:
  • the master-slave switching command is used to instruct the electronic device to perform switching between a master earphone and a slave earphone.
  • a wearable device includes: a master earphone and a slave earphone; the master earphone or the slave earphone includes: a processing component and a wireless transceiver, wherein;
  • the processing unit is configured to obtain a first volume of the master earphone and a second volume of the slave earphone; calculate a first power consumption speed of the master earphone according to the first volume; and calculate a slave earphone according to the second volume.
  • a second power consumption speed determining a master-slave switching strategy between a master earphone and a slave earphone according to the first power consumption speed and the second power consumption speed;
  • the processing component is further configured to control the wireless transceiver to send a master-slave switching command to an electronic device connected to the wearable device according to the master-slave switching policy, and the master-slave switching command is used to instruct the The electronic device performs switching between the master earphone and the slave earphone.
  • 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 comprising a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to execute the method provided in the second aspect
  • the technical solution provided in this application obtains the first volume of the master earphone and the second volume of the slave earphone, and separately estimates the first power consumption speed and the second power consumption speed according to two different volume, and then according to the first A power consumption speed and a second power consumption speed determine the master-slave switching strategy, so that the master-slave earplugs can be switched according to the volume, so that the power balance between the master-slave earplugs, the advantage of extending the battery life, and improving the 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. 3a provides a schematic diagram of a first angle curve for the present application.
  • FIG. 3b provides a schematic diagram of a second angle curve for the present application.
  • FIG. 4 is a schematic structural diagram of a wearable device of the present application.
  • FIG. 5 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 volume may affect the power consumption of the master earphone and the slave earphone, which reduces the user experience.
  • the determining a master-slave switching strategy between a master earphone and a slave earphone according to the first power consumption speed and the second power consumption speed specifically includes:
  • the method before determining the master-slave switching strategy between the master earphone and the slave earphone according to the first power consumption speed and the second power consumption speed, the method further includes:
  • a first historical volume of the master earphone and a second historical volume of the slave earphone are obtained, a first power consumption speed is adjusted according to the first historical volume, and a second power consumption speed is adjusted according to the second historical volume.
  • the method further includes:
  • a third power consumption speed of the main earphone is calculated according to the third volume, and determined based on a difference between the third power consumption speed and the second power consumption speed.
  • a fourth power consumption speed of the slave earphone is calculated according to the fourth volume, and a master is determined according to a difference between the first power consumption speed and the fourth power consumption speed Switch from strategy.
  • the first historical volume is an average value of all the volumes of the master earbud before the first volume
  • the second historical volume is the slave earbud at the second The average of all volumes before the volume.
  • the method for acquiring the first historical volume includes:
  • the method further includes:
  • the adjusting the volume of the wearable device according to changes in multiple angle values specifically includes:
  • the absolute value is greater than or equal to ⁇ * K, and the x-th point is deleted from the first angle curve to obtain a second angle curve, and the maximum monotonic interval of the second angle curve and the first time interval corresponding to the maximum monotonic interval are obtained.
  • a time interval is greater than the time threshold and the maximum monotonic interval is a monotonically increasing interval.
  • the rotation direction is determined to be counterclockwise to reduce the volume of the wearable device.
  • the first time interval is greater than the time threshold and the maximum monotonic interval is a monotonically decreasing interval.
  • the method further includes:
  • n-1 slopes Traverse the slopes of all two adjacent points of the second angle curve according to the detection time sequence to obtain n-1 slopes, and find the abrupt slopes from the n-1 slopes, the abrupt slopes are the abrupt slopes
  • the slope of the polarity of the previous slope is opposite to the slope of the mutation, and the slopes of two adjacent mutations form a monotone interval.
  • the n is the total number of points included in the second angle curve.
  • the processing component is specifically configured to calculate a difference between the first power consumption speed and the second power consumption speed, such as the difference is a positive value Determining that the master-slave switching strategy is to perform a master-slave switching, and if the difference is negative, determining that the master-slave switching strategy is not to perform a master-slave switching.
  • the processing component is specifically configured to obtain a first historical volume of the master earphone and a second historical volume of the slave earphone, and adjust the first power consumption speed according to the first historical volume , Adjusting the second power consumption speed according to the second historical volume.
  • the processing component is specifically configured to calculate a third power consumption speed of the main earphone according to the third volume as the first volume changes to a third volume, and A difference between the third power consumption speed and the second power consumption speed determines a master-slave switching strategy;
  • a fourth power consumption speed of the slave earphone is calculated according to the fourth volume, and a master is determined according to a difference between the first power consumption speed and the fourth power consumption speed Switch from strategy.
  • the first historical volume is an average value of all the volumes of the master earphone before the first volume
  • the second historical volume is the value of the slave earphone in the The average of all the volumes before the second volume is described.
  • the processing component is further configured to obtain a first application currently running on the electronic device, and obtain an average value of historical volume of the first application, and the average The value is the first historical volume.
  • the wearable device further includes: a gyroscope
  • the gyroscope is configured to periodically detect the angle of the wearable device to obtain multiple angle values
  • the processing component is specifically configured to adjust the volume of the wearable device according to changes in multiple angle values.
  • the processing unit is further configured to map the multiple angle values to a preset angle coordinate system to obtain multiple points, each point corresponding to an angle value and a At the detection time, a plurality of points adjacent two points are connected by a straight line to obtain a first angle curve, and an average value K of the absolute values of the slopes of the two adjacent points in the first angle curve is calculated, as in the first angle curve.
  • the absolute values of the slopes K x and x-1 of the x-th point and the x-1 point are greater than or equal to ⁇ * K, and the x-th point is deleted from the first angle curve to obtain a second angle curve, and the first The maximum monotonic interval of the two-angle curve and the first time interval corresponding to the maximum monotonic interval. For example, if the first time interval is greater than the time threshold and the maximum monotonic interval is a monotonically increasing interval, the rotation direction is determined to be counterclockwise to reduce the wearable.
  • the volume of the device if the first time interval is greater than the time threshold and the maximum monotonic interval is a monotonically decreasing interval, determine that the rotation direction is clockwise rotation to increase the volume of the wearable device, where the value of ⁇ is large Equal to 1.
  • the processing component is further configured to traverse the slopes of all two adjacent points of the second angle curve in order of detection in order to obtain n-1 slopes, Find the abrupt slope from the n-1 slopes.
  • the abrupt slope is the slope of the previous slope whose polarity is opposite to the abrupt slope.
  • Two adjacent abrupt slopes form a monotonic interval.
  • the monotone interval with the largest number of points in all monotone intervals of the two-angle curve is determined as the largest monotone interval, and n is the total number of points included in the second angle curve.
  • 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 master earphone and a slave earphone, wherein the master earphone or the slave earphone may include: a processing component 201, a wireless transceiver 203, and an audio component 202; wherein the processing component 201 is separate from the audio component 202 and the wireless transceiver 203, respectively. connection.
  • 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.
  • a processing unit 201 is configured to obtain a first volume of the master earphone and a second volume of the slave earphone, calculate a first power consumption speed of the master earphone according to the first volume, and calculate a second power consumption of the slave earphone according to the second volume. Electrical speed, determining a master-slave switching strategy between the master earphone and the slave earphone according to the first power consumption speed and the second power consumption speed;
  • the first volume may be a volume of an audio component, and the audio component may have multiple types of audio components according to different audio sounding methods. For example, if the sound is generated by a sound wave method, the audio component may be a microphone or a speaker. If the sound is produced by a bone conduction vocalization method, the audio component may be a bone conduction sounder.
  • the method of obtaining the first volume and the second volume may also be different. Specifically, if the processing component 201 is located in the main earplug, the processing component 201 directly extracts the first volume of the main earplug. A volume, and then control the wireless transceiver to send a volume acquisition request to the earbud, and receive a volume acquisition response sent from the earbud, the volume acquisition response includes a second volume, so that the processor 201 can obtain the second volume.
  • the manner for obtaining the first volume may refer to the foregoing manner for the processing component 201 to be located in the primary earphone, and details are not described herein again.
  • the processing component 201 is further configured to determine whether to control the wireless transceiver 203 to send a master-slave switching command to an electronic device connected to the wearable device according to the master-slave switching strategy.
  • the foregoing wireless transceiver may have multiple types according to different connection methods, such as a Bluetooth module, a radio frequency module, and of course, other short-distance transmission methods. This application does not limit the specific expression of the foregoing wireless transceiver.
  • the technical solution provided in the present application obtains the first volume of the master earbud and the second volume of the slave earbud, and separately estimates the first power consumption speed and the second power consumption speed according to two different volume, and then according to the first power consumption speed And the second power consumption speed determines the master-slave switching strategy, so that the master-slave earbuds can be switched according to the volume, so that the power balance between the master-slave earbuds, the advantages of extending the battery life, and improving the user experience.
  • the implementation manner of determining the master-slave switching strategy between the master earphone and the slave earphone according to the first power consumption speed and the second power consumption speed may specifically include:
  • the processing unit 201 is specifically configured to calculate a difference between the first power consumption speed and the second power consumption speed. If the difference value is positive, determine the master-slave switching strategy to perform the master-slave switching. If the difference is negative Value to determine that the master-slave switchover strategy is to not perform a master-slave switchover.
  • the method may further include:
  • the processing component 201 is further configured to obtain a first historical volume of the master earphone and a second historical volume of the slave earphone, adjust the first power consumption speed according to the first historical volume, and adjust the second power consumption speed according to the second historical volume.
  • the first historical volume of the main earphone may be an average value of historical data of the volume of the main earphone before the first volume.
  • the first historical volume may also be obtained by other methods.
  • the first application currently running on the electronic device is acquired, and the average value of the historical volume of the first application is obtained as the first historical volume. This method is more than directly obtaining the average value of the historical volume of all applications. To be accurate, because for individual users, the volume used by each application is relatively fixed, then obtaining the historical volume of the same application to adjust the power consumption speed can better reflect the speed of power consumption.
  • the processing component 201 is further configured to calculate the third power consumption speed of the main earphone according to the third volume if the first volume changes to the third volume, and between the third power consumption speed and the second power consumption speed. The difference determines the master-slave switching strategy.
  • processing unit 201 is further configured to: if the second volume changes to the fourth volume, calculate the fourth power consumption speed from the earphone according to the fourth volume, and determine based on the difference between the first power consumption speed and the fourth power consumption speed. Master-slave switching strategy.
  • the above-mentioned wearable device may further include: a gyroscope for periodically detecting the angle of the wearable device to obtain multiple angle values;
  • the processing component is specifically configured to establish an angular coordinate system, wherein an X axis of the angular coordinate system is a detection time, and a Y axis of the angular coordinate system is an angle value, and a plurality of angle values are mapped into the angle coordinate system.
  • the average value K of the absolute value of the slope such as the absolute value of the slope K x and x-1 of the first angle curve in the first angle curve, and the absolute value of x-1 is greater than or equal to ⁇ * K.
  • the technical solution provided by the present application can increase or decrease the volume by rotating.
  • FIG. 3a is a schematic diagram of a first angle curve of the present application.
  • point A due to a large change in its slope, after experimental verification, point A is likely to be The point of misdetection, because when the user normally rotates the earplug, the change in its slope generally does not have a large change. The response is on the curve, and the curve is relatively smooth. Therefore, changes similar to point A need to be filtered out. That is, the second angle curve is deleted to avoid the influence of the erroneous detection point on the rotation reverse judgment, and the detection accuracy is improved.
  • FIG. 3b is a schematic diagram of a second angle curve of the present application. As shown in FIG. 3b, the corresponding slope is relatively smooth.
  • the processing component is specifically configured to traverse the slopes of all adjacent two points of the second angle curve in order of detection time to obtain n-1 slopes, and find the abrupt slope from the n-1 slopes, and the abrupt slope is The polarity of the previous slope (that is, positive or negative) of the abrupt slope is opposite to that of the abrupt slope.
  • Two adjacent abrupt slopes form a monotonic interval.
  • the monotonic interval with the most points in all monotonic intervals of the second angle curve is determined Is the largest monotonic interval.
  • n is the total number of points included in the second angle curve.
  • FIG. 4 provides a volume-based master-slave switching method.
  • the method is performed by a wearable device.
  • the wearable device includes a master earphone and a slave earphone.
  • the method may include the following steps:
  • Step S401 Acquire a first volume of the master earbud and a second volume of the slave earbud;
  • the first volume may be a volume of an audio component, and the audio component may have multiple types of audio components according to different audio sounding methods. For example, if the sound is generated by a sound wave method, the audio component may be a microphone or a speaker. If the sound is produced by a bone conduction vocalization method, the audio component may be a bone conduction sounder.
  • Step S402 Calculate a first power consumption speed of the master earphone according to the first volume, calculate a second power consumption speed of the slave earphone according to the second volume, and determine the main earphone according to the first power consumption speed and the second power consumption speed.
  • Master-slave switching strategy with slave earbuds
  • Step S403 Determine whether to send a master-slave switching command to an electronic device connected to the wearable device according to the master-slave switching policy.
  • the master-slave switching command is used to instruct the electronic device to perform a master-slave earplug switch.
  • the foregoing wireless transceiver may have multiple types according to different connection methods, such as a Bluetooth module, a radio frequency module, and of course, other short-distance transmission methods. This application does not limit the specific expression of the foregoing wireless transceiver.
  • the technical solution provided in the present application obtains the first volume of the master earbud and the second volume of the slave earbud, and separately estimates the first power consumption speed and the second power consumption speed according to two different volume, and then according to the first power consumption speed And the second power consumption speed determines the master-slave switching strategy, so that the master-slave earbuds can be switched according to the volume, so that the power balance between the master-slave earbuds, the advantages of extending the battery life, and improving the user experience.
  • the implementation manner of determining the master-slave switching strategy between the master earphone and the slave earphone according to the first power consumption speed and the second power consumption speed may specifically include:
  • the method may further include:
  • the first historical volume of the master earphone and the second historical volume of the slave earphone are obtained, the first power consumption speed is adjusted according to the first historical volume, and the second power consumption speed is adjusted according to the second historical volume.
  • the first historical volume of the main earphone may be an average value of historical data of the volume of the main earphone before the first volume.
  • the first historical volume may also be obtained by other methods.
  • the first application currently running on the electronic device is acquired, and the average value of the historical volume of the first application is obtained as the first historical volume. This method is more than directly obtaining the average value of the historical volume of all applications. To be accurate, because for individual users, the volume used by each application is relatively fixed, then obtaining the historical volume of the same application to adjust the power consumption speed can better reflect the speed of power consumption.
  • the above method further includes:
  • the third power consumption speed of the master earphone is calculated according to the third volume, and the master-slave switching strategy is determined according to the difference between the third power consumption speed and the second power consumption speed.
  • the fourth power consumption speed of the slave earphone is calculated according to the fourth volume, and the master-slave switching strategy is determined according to the difference between the first power consumption speed and the fourth power consumption speed.
  • the above-mentioned wearable device may further include: a gyroscope for periodically detecting the angle of the wearable device to obtain multiple angle values; the method further includes:
  • An angular coordinate system is established, the X axis of the angular coordinate system is the detection time, the Y axis of the angular coordinate system is the angle value, and multiple angle values are mapped into the angular coordinate system to obtain multiple points, each point Corresponding to an angle value and a detection time, a plurality of points adjacent two points are connected by a straight line to obtain a first angle curve, and an average value K of the absolute values of the slopes of the two adjacent points in the first angle curve is calculated, For example, if the absolute values of the slopes K x and x-1 of the x-th point and the x-1 point in the first angle curve are greater than or equal to ⁇ * K, delete the x-th point from the first angle curve to obtain the first A two-angle curve, to obtain the maximum monotonic interval of the second angle curve and the first time interval corresponding to the maximum monotonic interval.
  • the rotation direction is counterclockwise rotation .
  • Decrease the volume if the first time interval is greater than the time threshold and the largest monotonic interval is a monotonically decreasing interval, determine that the rotation direction is clockwise rotation to increase the volume, where the value of ⁇ is greater than or equal to 1.
  • the technical solution provided by the present application can increase or decrease the volume by rotating.
  • FIG. 5 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, an audio collector 960, a wireless fidelity (WiFi) module 970, and an application processor AP980, power supply 990 and other components.
  • RF radio frequency
  • the wearable device structure shown in FIG. 5 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,
  • a radio frequency circuit 910 configured to implement a wireless connection with an electronic device
  • An application processor AP980 configured to obtain a first volume of the master earphone and a second volume of the slave earphone; calculate a first power consumption speed of the master earphone according to the first volume, and calculate a slave earphone according to the second volume; A second power consumption speed, determining a master-slave switching strategy between a master earphone and a slave earphone according to the first power consumption speed and the second power consumption speed;
  • the application processor AP980 is further configured to control the radio frequency circuit 910 to send a master-slave switching command to an electronic device connected to the wearable device according to the master-slave switching policy, and the master-slave switching command is used to instruct the electronic device Perform switching between the master and slave earbuds.
  • the application processor AP980 is further configured to calculate a difference between the first power consumption speed and the second power consumption speed. If the difference is a positive value, it is determined that the master-slave switching strategy is executed. Master-slave switching, if the difference is negative, determining that the master-slave switching strategy is not to perform master-slave switching.
  • the application processor AP980 is specifically configured to obtain a first historical volume of the master earphone and a second historical volume of the slave earphone, adjust a first power consumption speed according to the first historical volume, and adjust the first historical volume according to the second historical volume. Adjust the second power consumption speed.
  • the application processor AP980 is specifically configured to calculate a third power consumption speed of the main earphone according to the third volume when the first volume is changed to a third volume, and to calculate the third power consumption speed according to the third power consumption speed and the second power consumption.
  • the difference between the electrical speeds determines the master-slave switching strategy
  • a fourth power consumption speed of the slave earphone is calculated according to the fourth volume, and a master is determined according to a difference between the first power consumption speed and the fourth power consumption speed Switch from strategy.
  • 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. 5 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 wireless transceiver is controlled to send a master-slave switch command to the electronic device, so that Interconnection between them, so as to achieve the switching between the master and slave earplugs according to the user's wishes, and improve 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 master-slave based on volume described in the above 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 volume-based 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.

Abstract

本申请实施例公开了一种基于音量的主从切换方法及相关产品,所述方法应用于可穿戴式设备,所述可穿戴式设备包括:主耳塞和从耳塞;所述方法包括如下步骤:获取主耳塞的第一音量以及从耳塞的第二音量;依据所述第一音量计算出主耳塞的第一耗电速度,依据所述第二音量计算出从耳塞的第二耗电速度,依据所述第一耗电速度和所述第二耗电速度确定主耳塞与从耳塞之间的主从切换策略;依据所述主从切换策略向与所述可穿戴式设备连接的电子装置发送主从切换命令,所述主从切换命令用于指示所述电子装置执行主耳塞与从耳塞之间的切换。本申请提供的技术方案具有用户体验度高的优点。

Description

基于音量的主从切换方法及相关产品 技术领域
本发明实施例涉及终端技术领域,尤其涉及一种基于音量的主从切换方法及相关产品。
背景技术
随着智能手机的普及和应用,用户越来越多的依赖智能手机,可穿戴式设备,例如,无线耳机、智能手表、智能手环等等设备也随着智能手机的兴起得到了广泛的应用。对于可穿戴式设备,这里以无线耳机为例,无线耳机具有与智能手机连接便利的优点,对于无线耳机,一般具有两个耳塞,两个耳塞分别为主耳塞和从耳塞。
发明内容
本申请实施例提供了一种基于音量的主从切换方法及可穿戴式设备,以期依据基于音量执行主耳塞与从耳塞之间的互换,提高用户体验度。
第一方面,本申请实施例提供一种基于音量的主从切换方法,所述方法应用于可穿戴式设备,所述可穿戴式设备包括:主耳塞和从耳塞;所述方法包括如下步骤:
获取主耳塞的第一音量以及从耳塞的第二音量;
依据所述第一音量计算出主耳塞的第一耗电速度,依据所述第二音量计算出从耳塞的第二耗电速度,依据所述第一耗电速度和所述第二耗电速度确定主耳塞与从耳塞之间的主从切换策略;
依据所述主从切换策略向与所述可穿戴式设备连接的电子装置发送主从切换命令,所述主从切换命令用于指示所述电子装置执行主耳塞与从耳塞之间的切换。
第二方面,提供一种可穿戴式设备,所述可穿戴式设备包括:主耳塞和从耳塞;所述主耳塞或从耳塞包括:处理部件和无线收发器,其中;
所述处理部件,用于获取主耳塞的第一音量以及从耳塞的第二音量;依据所述第一音量计算出主耳塞的第一耗电速度,依据所述第二音量计算出从耳塞的第二耗电速度,依据所述第一耗电速度和所述第二耗电速度确定主耳塞与从耳塞之间的主从切换策略;
所述处理部件,还用于依据所述主从切换策略控制所述无线收发器向与所述可穿戴式设备连接的电子装置发送主从切换命令,所述主从切换命令用于指示所述电子装置执行主耳塞与从耳塞之间的切换。
第三方面,提供一种计算机可读存储介质,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行二方面提供的方法。
第四方面,提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的 非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行第二方面提供的方法
可以看出,本申请提供的技术方案获取主耳塞的第一音量以及从耳塞的第二音量,依据两个不同的音量分别预算处第一耗电速度以及第二耗电速度,然后依据该第一耗电速度以及第二耗电速度确定主从切换策略,这样能够依据音量实现对主从耳塞之间的切换,使得主从耳塞之间的电量均衡,延长续航时间的优点,提高用户体验度。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是一种可穿戴式设备与无线通信设备的连接构架示意图。
图1a是本申请提供的一种无线耳机的结构示意图。
图1b是本申请提供的一种无线耳机的另一种结构示意图。
图2是本申请提供的一种可穿戴式设备与电子装置的结构示意图。
图3a为本申请提供了一种第一角度曲线示意图。
图3b为本申请提供了一种第二角度曲线示意图。
图4为本申请的一种可穿戴设备的结构示意图。
图5为本申请的一种手机的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本申请实施例所涉及到的无线通信设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形 式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为无线通信设备。
对于无线耳机具有主耳塞以及从耳塞,上述主耳塞以及从耳塞无法基于音量进行自动的切换,因此音量可能影响主耳塞以及从耳塞耗电不一致,降低了用户体验度。
在第一方面提供的方法中,所述依据所述第一耗电速度和所述第二耗电速度确定主耳塞与从耳塞之间的主从切换策略具体包括:
计算所述第一耗电速度与所述第二耗电速度之间的差值,如所述差值为正值,确定主从切换策略为执行主从切换,如所述差值为负值,确定所述主从切换策略为不执行主从切换。
在第一方面提供的方法中,所述方法在依据所述第一耗电速度和所述第二耗电速度确定主耳塞与从耳塞之间的主从切换策略之前还包括:
获取主耳塞的第一历史音量以及从耳塞的第二历史音量,依据所述第一历史音量调整第一耗电速度,依据所述第二历史音量调整第二耗电速度。
在第一方面提供的方法中,所述方法还包括:
如所述第一音量变化成第三音量,依据所述第三音量计算主耳塞的第三耗电速度,依据所述第三耗电速度与所述第二耗电速度之间的差值确定主从切换策略;
或如所述第二音量变化成第四音量,依据所述第四音量计算从耳塞的第四耗电速度,依据第一耗电速度与所述第四耗电速度之间的差值确定主从切换策略。
在第一方面提供的方法中,所述第一历史音量为所述主耳塞在所述第一音量之前的所有音量的平均值,所述第二历史音量为所述从耳塞在所述第二音量之前的所有音量的平均值。
在第一方面提供的方法中,所述第一历史音量的获取方式包括:
获取所述电子装置当前运行的第一应用程序,获取所述第一应用程序的历史音量的平均值,所述平均值为所述第一历史音量。
在第一方面提供的方法中,所述方法还包括:
周期性的检测所述可穿戴设备的角度得到多个角度值,依据多个角度值的变化调整所述可穿戴设备的音量。
在第一方面提供的方法中,所述依据多个角度值的变化调整所述可穿戴设备的音量具体包括:
将所述多个角度值映射到预设的角度坐标系内得到多个点,每个点对应一个角度值以及一个检测时间,将多个点相邻两个点用直线连接起来得到第一角度曲线,计算所述第一角度曲线中相邻两个点的斜率绝对值的平均值K,如第一角度曲线中第x个点与第x-1个点的斜率K x、x-1的绝对值大于等于α*K,将第x个点从所述第一角度曲线中删除得到第二角度曲线,获取第二角度曲线的最大单调区间以及最大单调区间对应的第一时间区间,如第一时间区间大于时间阈值且最大单调区间为单调递增区间,确定所述旋转方向为逆时针旋转,减少所述可穿戴设备的音量,如第一时间区间大于时间阈值且最大单调区间为单调递减区间,确定所述旋转方向为顺时针旋转,增加所述可穿戴设备音量,其中所述α取值 大于等于1。
在第一方面提供的方法中,所述方法还包括:
按所述检测按检测时间顺序遍历所述第二角度曲线所有相邻两个点的斜率得到n-1个斜率,从n-1个斜率中查找出突变斜率,所述突变斜率为突变斜率的前一个斜率的极性与所述突变斜率相反的斜率,相邻两个突变斜率形成一个单调区间,确定所述第二角度曲线的所有单调区间中点数量最多的单调区间确定为最大单调区间,所述n为第二角度曲线包含的点的总数量。
在第二方面提供的可穿戴式设备中,所述处理部件,具体用于计算所述第一耗电速度与所述第二耗电速度之间的差值,如所述差值为正值,确定主从切换策略为执行主从切换,如所述差值为负值,确定所述主从切换策略为不执行主从切换。
在第二方面提供的可穿戴式设备中,所述处理部件,具体用于获取主耳塞的第一历史音量以及从耳塞的第二历史音量,依据所述第一历史音量调整第一耗电速度,依据所述第二历史音量调整第二耗电速度。
在第二方面提供的可穿戴式设备中,所述处理部件,具体用于如所述第一音量变化成第三音量,依据所述第三音量计算主耳塞的第三耗电速度,依据所述第三耗电速度与所述第二耗电速度之间的差值确定主从切换策略;
或如所述第二音量变化成第四音量,依据所述第四音量计算从耳塞的第四耗电速度,依据第一耗电速度与所述第四耗电速度之间的差值确定主从切换策略。
在第二方面提供的可穿戴式设备中,所述第一历史音量为所述主耳塞在所述第一音量之前的所有音量的平均值,所述第二历史音量为所述从耳塞在所述第二音量之前的所有音量的平均值。
在第二方面提供的可穿戴式设备中,所述处理部件,还用于获取所述电子装置当前运行的第一应用程序,获取所述第一应用程序的历史音量的平均值,所述平均值为所述第一历史音量。
在第二方面提供的可穿戴式设备中,所述可穿戴设备还包括:陀螺仪;
所述陀螺仪,用于周期性的检测所述可穿戴设备的角度得到多个角度值;
所述处理部件,具体用于依据多个角度值的变化调整所述可穿戴设备的音量。
在第二方面提供的可穿戴式设备中,所述处理单元,还用于将所述多个角度值映射到预设的角度坐标系内得到多个点,每个点对应一个角度值以及一个检测时间,将多个点相邻两个点用直线连接起来得到第一角度曲线,计算所述第一角度曲线中相邻两个点的斜率绝对值的平均值K,如第一角度曲线中第x个点与第x-1个点的斜率K x、x-1的绝对值大于等于α*K,将第x个点从所述第一角度曲线中删除得到第二角度曲线,获取第二角度曲线的最大单调区间以及最大单调区间对应的第一时间区间,如第一时间区间大于时间阈值且最大单调区间为单调递增区间,确定所述旋转方向为逆时针旋转,减少所述可穿戴设备的音量,如第一时间区间大于时间阈值且最大单调区间为单调递减区间,确定所述旋转方向为顺时针旋转,增加所述可穿戴设备音量,其中所述α取值大于等于1。
在第二方面提供的可穿戴式设备中,所述处理部件,还用于按所述检测按检测时间顺 序遍历所述第二角度曲线所有相邻两个点的斜率得到n-1个斜率,从n-1个斜率中查找出突变斜率,所述突变斜率为突变斜率的前一个斜率的极性与所述突变斜率相反的斜率,相邻两个突变斜率形成一个单调区间,确定所述第二角度曲线的所有单调区间中点数量最多的单调区间确定为最大单调区间,所述n为第二角度曲线包含的点的总数量。
请参阅图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、无线收发器203和音频部件202;其中,该处理部件201与音频部件202、无线收发器203分别连接。如图2所示的电子装置包括:通信部件301、处理器302,其中该处理器302与该通信部件电连接。
处理部件201,用于获取主耳塞的第一音量以及从耳塞的第二音量,依据该第一音量计算出主耳塞的第一耗电速度,依据该第二音量计算出从耳塞的第二耗电速度,依据第一耗电速度和第二耗电速度确定主耳塞与从耳塞之间的主从切换策略;
上述第一音量可以为音频部件的音量,上述音频部件根据不同的音频发声方式可以有多种类型的音频部件,例如,如果通过声波方式发声,那么该音频部件可以为麦克或扬声器,又如,如果通过骨传导发声方式发声,那么该音频部件可以为骨传导发声器。
另外,对于处理部件201位于不同的耳塞内,其获取第一音量以及第二音量的方式也可以不同,具体的,如该处理部件201位于主耳塞内,那么处理部件201直接提取主耳塞 的第一音量,然后控制无线收发器向从耳塞发送音量获取请求,接收从耳塞发送的音量获取响应,该音量获取响应包括第二音量,这样处理器201即可以获取到第二音量。
当然,如果处理部件201位于从耳塞内,其获取第一音量的方式可以参见上述处理部件201位于主耳塞内获取第二音量的方式,这里不再赘述。
处理部件201,还用于依据该主从切换策略确定是否控制无线收发器203向与可穿戴设备连接的电子装置发送主从切换命令。
上述无线收发器依据不同的连接方式可以有多种,例如蓝牙模块,射频模块,当然还可以为其他的短距离传输方式,本申请并不限制上述无线收发器的具体表现形式。
本申请提供的技术方案获取主耳塞的第一音量以及从耳塞的第二音量,依据两个不同的音量分别预算处第一耗电速度以及第二耗电速度,然后依据该第一耗电速度以及第二耗电速度确定主从切换策略,这样能够依据音量实现对主从耳塞之间的切换,使得主从耳塞之间的电量均衡,延长续航时间的优点,提高用户体验度。
可选的,上述依据第一耗电速度和第二耗电速度确定主耳塞与从耳塞之间的主从切换策略的实现方式具体可以包括:
处理部件201,具体用于计算第一耗电速度与第二耗电速度之间的差值,如该差值为正值,确定主从切换策略为执行主从切换,如该差值为负值,确定主从切换策略为不执行主从切换。
可选的,上述依据第一耗电速度和第二耗电速度确定主耳塞与从耳塞之间的主从切换策略之前还可以包括:
处理部件201,还用于获取主耳塞的第一历史音量以及从耳塞的第二历史音量,依据该第一历史音量调整第一耗电速度,依据第二历史音量调整第二耗电速度。
上述主耳塞的第一历史音量可以为主耳塞在第一音量之前的音量的历史数据的均值,当然在实际应用中,上述第一历史音量还可以通过其他方式来获得,例如,在本申请一个可选的实施例中,获取电子装置当前运行的第一应用程序,获取第一应用程序的历史音量的平均值作为第一历史音量,此方式比直接获取所有的应用程序的历史音量的平均值要准确,因为对于个人用户来说,每个应用程序其习惯的音量相对固定,那么获取相同的应用程序的历史音量来调整耗电速度就能够更好的体现耗电的速度。
可选的,处理部件201,还用于如第一音量变化成第三音量,则依据第三音量计算主耳塞的第三耗电速度,依据第三耗电速度与第二耗电速度之间的差值确定主从切换策略。
或处理部件201,还用于如第二音量变化成第四音量,依据第四音量计算从耳塞的第四耗电速度,依据第一耗电速度与第四耗电速度之间的差值确定主从切换策略。
可选的,上述可穿戴式设备还可以包括:陀螺仪,用于周期性的检测所述可穿戴式设备的角度得到多个角度值;
所述处理部件,具体用于建立角度坐标系,所述角度坐标系的X轴为检测时间,所述角度坐标系的Y轴为角度值,将多个角度值映射到所述角度坐标系内得到多个点,每个点对应一个角度值以及一个检测时间,将多个点相邻两个点用直线连接起来得到第一角度曲线,计算所述第一角度曲线中相邻两个点的斜率绝对值的平均值K,如第一角度曲线中第 x个点与第x-1个点的斜率K x、x-1的绝对值大于等于α*K,将第x个点从所述第一角度曲线中删除得到第二角度曲线,获取第二角度曲线的最大单调区间以及最大单调区间对应的第一时间区间,如第一时间区间大于时间阈值且最大单调区间为单调递增区间,确定所述旋转方向为逆时针旋转,减少音量,如第一时间区间大于时间阈值且最大单调区间为单调递减区间,确定所述旋转方向为顺时针旋转,增加音量,其中所述α取值大于等于1。
本申请提供的技术方案通过旋转即能够实现音量的增加或减少。
参阅图3a,图3a为本申请的一个第一角度曲线示意图,如图3a所示,在A点,由于其斜率有一个较大的变化,经过实验验证,此时的A点很有可能是误检测的点,因为检测用户正常旋转耳塞时,其斜率的变化一般不会有一个较大的变化,反应在曲线上,该曲线即比较平滑,所以对于类似A点的变化,需要过滤掉,即删除得到第二角度曲线,这样避免了误检测的点对旋转反向判断的影响,提高了检测精度。
参阅图3b,图3b为本申请的一个第二角度曲线示意图,如图3b所示,其对应的斜率比较平滑。
可选的,处理部件,具体用于按检测时间顺序遍历第二角度曲线所有相邻两个点的斜率得到n-1个斜率,从n-1个斜率中查找出突变斜率,该突变斜率为突变斜率的前一个斜率的极性(即正负)与该突变斜率相反的斜率,相邻两个突变斜率形成一个单调区间,确定第二角度曲线的所有单调区间中点数量最多的单调区间确定为最大单调区间。其中n为第二角度曲线包含的点的总数量。
参阅图4,图4提供可一种基于音量的主从切换方法,该方法由可穿戴式设备执行,该可穿戴式设备包括:主耳塞和从耳塞,该方法可以包括如下步骤:
步骤S401、获取主耳塞的第一音量以及从耳塞的第二音量;
上述第一音量可以为音频部件的音量,上述音频部件根据不同的音频发声方式可以有多种类型的音频部件,例如,如果通过声波方式发声,那么该音频部件可以为麦克或扬声器,又如,如果通过骨传导发声方式发声,那么该音频部件可以为骨传导发声器。
步骤S402、依据该第一音量计算出主耳塞的第一耗电速度,依据该第二音量计算出从耳塞的第二耗电速度,依据第一耗电速度和第二耗电速度确定主耳塞与从耳塞之间的主从切换策略;
步骤S403、依据该主从切换策略确定是否向与可穿戴设备连接的电子装置发送主从切换命令,上述主从切换命令用于指示电子装置执行主从耳塞的切换。
上述无线收发器依据不同的连接方式可以有多种,例如蓝牙模块,射频模块,当然还可以为其他的短距离传输方式,本申请并不限制上述无线收发器的具体表现形式。
本申请提供的技术方案获取主耳塞的第一音量以及从耳塞的第二音量,依据两个不同的音量分别预算处第一耗电速度以及第二耗电速度,然后依据该第一耗电速度以及第二耗电速度确定主从切换策略,这样能够依据音量实现对主从耳塞之间的切换,使得主从耳塞之间的电量均衡,延长续航时间的优点,提高用户体验度。
可选的,上述依据第一耗电速度和第二耗电速度确定主耳塞与从耳塞之间的主从切换策略的实现方式具体可以包括:
计算第一耗电速度与第二耗电速度之间的差值,如该差值为正值,确定主从切换策略为执行主从切换,如该差值为负值,确定主从切换策略为不执行主从切换。
可选的,上述依据第一耗电速度和第二耗电速度确定主耳塞与从耳塞之间的主从切换策略之前还可以包括:
获取主耳塞的第一历史音量以及从耳塞的第二历史音量,依据该第一历史音量调整第一耗电速度,依据第二历史音量调整第二耗电速度。
上述主耳塞的第一历史音量可以为主耳塞在第一音量之前的音量的历史数据的均值,当然在实际应用中,上述第一历史音量还可以通过其他方式来获得,例如,在本申请一个可选的实施例中,获取电子装置当前运行的第一应用程序,获取第一应用程序的历史音量的平均值作为第一历史音量,此方式比直接获取所有的应用程序的历史音量的平均值要准确,因为对于个人用户来说,每个应用程序其习惯的音量相对固定,那么获取相同的应用程序的历史音量来调整耗电速度就能够更好的体现耗电的速度。
可选的,上述方法还包括:
如第一音量变化成第三音量,则依据第三音量计算主耳塞的第三耗电速度,依据第三耗电速度与第二耗电速度之间的差值确定主从切换策略。
或如第二音量变化成第四音量,依据第四音量计算从耳塞的第四耗电速度,依据第一耗电速度与第四耗电速度之间的差值确定主从切换策略。
可选的,上述可穿戴式设备还可以包括:陀螺仪,用于周期性的检测所述可穿戴式设备的角度得到多个角度值;所述方法还包括:
建立角度坐标系,所述角度坐标系的X轴为检测时间,所述角度坐标系的Y轴为角度值,将多个角度值映射到所述角度坐标系内得到多个点,每个点对应一个角度值以及一个检测时间,将多个点相邻两个点用直线连接起来得到第一角度曲线,计算所述第一角度曲线中相邻两个点的斜率绝对值的平均值K,如第一角度曲线中第x个点与第x-1个点的斜率K x、x-1的绝对值大于等于α*K,将第x个点从所述第一角度曲线中删除得到第二角度曲线,获取第二角度曲线的最大单调区间以及最大单调区间对应的第一时间区间,如第一时间区间大于时间阈值且最大单调区间为单调递增区间,确定所述旋转方向为逆时针旋转,减少音量,如第一时间区间大于时间阈值且最大单调区间为单调递减区间,确定所述旋转方向为顺时针旋转,增加音量,其中所述α取值大于等于1。
本申请提供的技术方案通过旋转即能够实现音量的增加或减少。
图5示出的是与本申请实施例提供的移动终端连接的可穿戴式设备的部分结构的框图。参考图5,可穿戴式设备包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、传感器950、音频采集器960、无线保真(Wireless Fidelity,WiFi)模块970、应用处理器AP980、电源990等部件。本领域技术人员可以理解,图5中示出的可穿戴式设备结构并不构成对可穿戴式设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,例如该射频电路910可以连接单根或多根天线。
下面结合图5对可穿戴式设备的各个构成部件进行具体的介绍:
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功 能控制有关的键信号输入。具体地,输入单元930可包括触控显示屏933以及其他输入设备932。具体地,其他输入设备932可以包括但不限于物理按键、功能键(比如音量控制按键、开关按键等)、轨迹球、操作杆等中的一种或多种。其中,
射频电路910,用于与电子装置实现无线连接;
应用处理器AP980,用于获取主耳塞的第一音量以及从耳塞的第二音量;依据所述第一音量计算出主耳塞的第一耗电速度,依据所述第二音量计算出从耳塞的第二耗电速度,依据所述第一耗电速度和所述第二耗电速度确定主耳塞与从耳塞之间的主从切换策略;
应用处理器AP980,还用于依据所述主从切换策略控制射频电路910向与所述可穿戴式设备连接的电子装置发送主从切换命令,所述主从切换命令用于指示所述电子装置执行主耳塞与从耳塞之间的切换。
可选的,应用处理器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可以帮助用户收发数据等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块970,但是可以理解的是,其并不属于可穿戴式设备的必须构成,完全可以根据需要在不改变申请的本质的范围内而省略。
该可穿戴式设备还可以包括蓝牙模块,该蓝牙模块用于实现与电子装置之间的连接,该蓝牙模块可以单独设置,当然在实际应用中,由于选择的应用处理器不同,也可以集成在应用处理器内。
可穿戴式设备还包括给各个部件供电的电源990(比如电池),可选的,电源可以通过电源管理系统与AP980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,可穿戴式设备还可以包括摄像头、补光装置、光线传感器等,在此不再赘述。
可以看出,本申请提供的技术方案的采集器获取用户发出的信号后,确定该信号为主从耳塞切换时,控制无线收发器向电子装置发送主从切换命令,这样实现了主从耳塞之间的互联,从而实现依据用户的意愿来实现主从耳塞的切换,提高用户体验度。
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种基于音量的主从切换方法的部分或全部步骤。
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种基于音量的主从切换方法的部分或全部步骤。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种 逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模块的形式实现。
以上是本申请实施例的实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请实施例原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本申请的保护范围。

Claims (21)

  1. 一种基于音量的主从切换方法,其特征在于,所述方法应用于可穿戴式设备,所述可穿戴式设备包括:主耳塞和从耳塞;所述方法包括如下步骤:
    获取主耳塞的第一音量以及从耳塞的第二音量;
    依据所述第一音量计算出所述主耳塞的第一耗电速度,依据所述第二音量计算出所述从耳塞的第二耗电速度,依据所述第一耗电速度和所述第二耗电速度确定所述主耳塞与所述从耳塞之间的主从切换策略;
    依据所述主从切换策略向与所述可穿戴式设备连接的电子装置发送主从切换命令,所述主从切换命令用于指示所述电子装置执行主耳塞与从耳塞之间的切换。
  2. 根据权利要求1所述的方法,其特征在于,所述依据所述第一耗电速度和所述第二耗电速度确定所述主耳塞与所述从耳塞之间的主从切换策略具体包括:
    计算所述第一耗电速度与所述第二耗电速度之间的差值,如所述差值为正值,确定所述主从切换策略为执行主从切换,如所述差值为负值,确定所述主从切换策略为不执行主从切换。
  3. 根据权利要求1所述的方法,其特征在于,所述方法在依据所述第一耗电速度和所述第二耗电速度确定所述主耳塞与所述从耳塞之间的主从切换策略之前还包括:
    获取所述主耳塞的第一历史音量以及所述从耳塞的第二历史音量,依据所述第一历史音量调整所述第一耗电速度,依据所述第二历史音量调整所述第二耗电速度。
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    如所述第一音量变化成第三音量,依据所述第三音量计算主耳塞的第三耗电速度,依据所述第三耗电速度与所述第二耗电速度之间的差值确定主从切换策略;
    或如所述第二音量变化成第四音量,依据所述第四音量计算所述从耳塞的第四耗电速度,依据所述第一耗电速度与所述第四耗电速度之间的差值确定主从切换策略。
  5. 根据权利要求3所述的方法,其特征在于,
    所述第一历史音量为所述主耳塞在所述第一音量之前的所有音量的平均值,所述第二历史音量为所述从耳塞在所述第二音量之前的所有音量的平均值。
  6. 根据权利要求5所述的方法,其特征在于,所述第一历史音量的获取方式包括:
    获取所述电子装置当前运行的第一应用程序,获取所述第一应用程序的历史音量的平均值,所述平均值为所述第一历史音量。
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    周期性的检测所述可穿戴设备的角度得到多个角度值,依据多个角度值的变化调整所述可穿戴设备的音量。
  8. 根据权利要求7所述的方法,其特征在于,所述依据多个角度值的变化调整所述可穿戴设备的音量具体包括:
    将所述多个角度值映射到预设的角度坐标系内得到多个点,每个点对应一个角度值以及一个检测时间,将多个点相邻两个点用直线连接起来得到第一角度曲线,计算所述第一角度曲线中相邻两个点的斜率绝对值的平均值K,如第一角度曲线中第x个点与第x-1个 点的斜率K x、x-1的绝对值大于等于α*K,将第x个点从所述第一角度曲线中删除得到第二角度曲线,获取第二角度曲线的最大单调区间以及最大单调区间对应的第一时间区间,如第一时间区间大于时间阈值且最大单调区间为单调递增区间,确定所述旋转方向为逆时针旋转,减少所述可穿戴设备的音量,如第一时间区间大于时间阈值且最大单调区间为单调递减区间,确定所述旋转方向为顺时针旋转,增加所述可穿戴设备音量,其中所述α取值大于等于1。
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:
    按所述检测按检测时间顺序遍历所述第二角度曲线所有相邻两个点的斜率得到n-1个斜率,从n-1个斜率中查找出突变斜率,所述突变斜率为突变斜率的前一个斜率的极性与所述突变斜率相反的斜率,相邻两个突变斜率形成一个单调区间,确定所述第二角度曲线的所有单调区间中点数量最多的单调区间确定为最大单调区间,所述n为第二角度曲线包含的点的总数量。
  10. 一种可穿戴式设备,所述可穿戴式设备包括:主耳塞和从耳塞;其特征在于,所述主耳塞或从耳塞包括:处理部件和无线收发器,其中;
    所述处理部件,用于获取主耳塞的第一音量以及从耳塞的第二音量;依据所述第一音量计算出所述主耳塞的第一耗电速度,依据所述第二音量计算出所述从耳塞的第二耗电速度,依据所述第一耗电速度和所述第二耗电速度确定所述主耳塞与所述从耳塞之间的主从切换策略;
    所述处理部件,还用于依据所述主从切换策略控制所述无线收发器向与所述可穿戴式设备连接的电子装置发送主从切换命令,所述主从切换命令用于指示所述电子装置执行主耳塞与从耳塞之间的切换。
  11. 根据权利要求10所述的可穿戴式设备,其特征在于,
    所述处理部件,具体用于计算所述第一耗电速度与所述第二耗电速度之间的差值,如所述差值为正值,确定所述主从切换策略为执行主从切换,如所述差值为负值,确定所述主从切换策略为不执行主从切换。
  12. 根据权利要求10所述的可穿戴式设备,其特征在于,
    所述处理部件,具体用于获取所述主耳塞的第一历史音量以及所述从耳塞的第二历史音量,依据所述第一历史音量调整第一耗电速度,依据所述第二历史音量调整第二耗电速度。
  13. 根据权利要求10所述的可穿戴式设备,其特征在于,
    所述处理部件,具体用于如所述第一音量变化成第三音量,依据所述第三音量计算主耳塞的第三耗电速度,依据所述第三耗电速度与所述第二耗电速度之间的差值确定主从切换策略;
    或如所述第二音量变化成第四音量,依据所述第四音量计算从耳塞的第四耗电速度,依据第一耗电速度与所述第四耗电速度之间的差值确定主从切换策略。
  14. 根据权利要求13所述的可穿戴式设备,其特征在于,
    所述第一历史音量为所述主耳塞在所述第一音量之前的所有音量的平均值,所述第二 历史音量为所述从耳塞在所述第二音量之前的所有音量的平均值。
  15. 根据权利要求14所述的可穿戴设备,其特征在于,
    所述处理部件,还用于获取所述电子装置当前运行的第一应用程序,获取所述第一应用程序的历史音量的平均值,所述平均值为所述第一历史音量。
  16. 根据权利要求10所述的可穿戴设备,其特征在于,所述可穿戴设备还包括:陀螺仪;
    所述陀螺仪,用于周期性的检测所述可穿戴设备的角度得到多个角度值;
    所述处理部件,具体用于依据多个角度值的变化调整所述可穿戴设备的音量。
  17. 根据权利要求16所述的可穿戴设备,其特征在于,
    所述处理单元,还用于将所述多个角度值映射到预设的角度坐标系内得到多个点,每个点对应一个角度值以及一个检测时间,将多个点相邻两个点用直线连接起来得到第一角度曲线,计算所述第一角度曲线中相邻两个点的斜率绝对值的平均值K,如第一角度曲线中第x个点与第x-1个点的斜率K x、x-1的绝对值大于等于α*K,将第x个点从所述第一角度曲线中删除得到第二角度曲线,获取第二角度曲线的最大单调区间以及最大单调区间对应的第一时间区间,如第一时间区间大于时间阈值且最大单调区间为单调递增区间,确定所述旋转方向为逆时针旋转,减少所述可穿戴设备的音量,如第一时间区间大于时间阈值且最大单调区间为单调递减区间,确定所述旋转方向为顺时针旋转,增加所述可穿戴设备音量,其中所述α取值大于等于1。
  18. 根据权利要求17所述的可穿戴设备,其特征在于,
    所述处理部件,还用于按所述检测按检测时间顺序遍历所述第二角度曲线所有相邻两个点的斜率得到n-1个斜率,从n-1个斜率中查找出突变斜率,所述突变斜率为突变斜率的前一个斜率的极性与所述突变斜率相反的斜率,相邻两个突变斜率形成一个单调区间,确定所述第二角度曲线的所有单调区间中点数量最多的单调区间确定为最大单调区间,所述n为第二角度曲线包含的点的总数量。
  19. 一种可穿戴设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现以下步骤:
    获取主耳塞的第一音量以及从耳塞的第二音量;
    依据所述第一音量计算出所述主耳塞的第一耗电速度,依据所述第二音量计算出所述从耳塞的第二耗电速度,依据所述第一耗电速度和所述第二耗电速度确定所述主耳塞与所述从耳塞之间的主从切换策略;
    依据所述主从切换策略向与所述可穿戴式设备连接的电子装置发送主从切换命令,所述主从切换命令用于指示所述电子装置执行主耳塞与从耳塞之间的切换。
  20. 一种计算机可读存储介质,其特征在于,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。
  21. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-9任一项所述的方法。
PCT/CN2019/098951 2018-08-01 2019-08-01 基于音量的主从切换方法及相关产品 WO2020025033A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP19843777.4A EP3829189B1 (en) 2018-08-01 2019-08-01 Volume-based master-slave switching method and related products
US17/163,042 US11265639B2 (en) 2018-08-01 2021-01-29 Method for earbud switching, wearable device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810866720.4A CN109121034B (zh) 2018-08-01 2018-08-01 基于音量的主从切换方法及相关产品
CN201810866720.4 2018-08-01

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/163,042 Continuation US11265639B2 (en) 2018-08-01 2021-01-29 Method for earbud switching, wearable device, and storage medium

Publications (1)

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

Family

ID=64862496

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/098951 WO2020025033A1 (zh) 2018-08-01 2019-08-01 基于音量的主从切换方法及相关产品

Country Status (4)

Country Link
US (1) US11265639B2 (zh)
EP (1) EP3829189B1 (zh)
CN (1) CN109121034B (zh)
WO (1) WO2020025033A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109121034B (zh) 2018-08-01 2020-06-12 Oppo广东移动通信有限公司 基于音量的主从切换方法及相关产品
CN109803191B (zh) * 2019-02-18 2021-04-20 京东方科技集团股份有限公司 一种音频调整的方法及装置
CN113727231B (zh) * 2020-05-25 2023-03-03 华为技术有限公司 一种耳机音量调节方法及其设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120218158A1 (en) * 2011-02-25 2012-08-30 Samsung Electronics Co. Ltd. Earphone antenna of mobile terminal
CN106937197A (zh) * 2017-01-25 2017-07-07 北京联创志芯科技有限公司 双耳无线耳机及其通信控制方法
CN107071618A (zh) * 2017-04-26 2017-08-18 歌尔科技有限公司 一种连接双耳蓝牙耳机的方法和装置
CN107708014A (zh) * 2017-11-08 2018-02-16 深圳市沃特沃德股份有限公司 无线耳机主从关系自动切换的方法、装置及无线耳机
CN107820155A (zh) * 2017-11-08 2018-03-20 深圳市沃特沃德股份有限公司 无线耳机的控制方法、装置和无线耳机
CN108271090A (zh) * 2018-01-10 2018-07-10 深圳市沃特沃德股份有限公司 蓝牙耳机主从切换方法及装置
CN109121034A (zh) * 2018-08-01 2019-01-01 Oppo广东移动通信有限公司 基于音量的主从切换方法及相关产品

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102348151B (zh) * 2011-09-10 2015-07-29 歌尔声学股份有限公司 噪声消除系统和方法、智能控制方法和装置、通信设备
US9949205B2 (en) * 2012-05-26 2018-04-17 Qualcomm Incorporated Smart battery wear leveling for audio devices
JP2017121060A (ja) * 2016-01-02 2017-07-06 音來多有限公司 イヤホン
US10397684B2 (en) * 2016-01-05 2019-08-27 Voxx International Corporation Wireless speaker system
US20170295421A1 (en) * 2016-04-12 2017-10-12 Mavin Technology Inc. Wireless earphone set
CN107734589A (zh) * 2017-10-09 2018-02-23 维沃移动通信有限公司 一种基于无线耳机的数据传输方法及移动终端
CN108958696A (zh) * 2018-07-02 2018-12-07 Oppo广东移动通信有限公司 主从耳机切换控制方法及相关产品

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120218158A1 (en) * 2011-02-25 2012-08-30 Samsung Electronics Co. Ltd. Earphone antenna of mobile terminal
CN106937197A (zh) * 2017-01-25 2017-07-07 北京联创志芯科技有限公司 双耳无线耳机及其通信控制方法
CN107071618A (zh) * 2017-04-26 2017-08-18 歌尔科技有限公司 一种连接双耳蓝牙耳机的方法和装置
CN107708014A (zh) * 2017-11-08 2018-02-16 深圳市沃特沃德股份有限公司 无线耳机主从关系自动切换的方法、装置及无线耳机
CN107820155A (zh) * 2017-11-08 2018-03-20 深圳市沃特沃德股份有限公司 无线耳机的控制方法、装置和无线耳机
CN108271090A (zh) * 2018-01-10 2018-07-10 深圳市沃特沃德股份有限公司 蓝牙耳机主从切换方法及装置
CN109121034A (zh) * 2018-08-01 2019-01-01 Oppo广东移动通信有限公司 基于音量的主从切换方法及相关产品

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
EP3829189A1 (en) 2021-06-02
US11265639B2 (en) 2022-03-01
EP3829189A4 (en) 2022-04-27
EP3829189B1 (en) 2024-05-01
US20210152914A1 (en) 2021-05-20
CN109121034A (zh) 2019-01-01
CN109121034B (zh) 2020-06-12

Similar Documents

Publication Publication Date Title
WO2020007221A1 (en) Method for controlling earphone switching, earphone, and earphone system
US11102697B2 (en) Method for controlling earphone switching and earphone
WO2020025034A1 (zh) 一种可穿戴设备主从切换方法及相关产品
CN108540669B (zh) 无线耳机、基于耳机检测的控制方法及相关产品
WO2020025033A1 (zh) 基于音量的主从切换方法及相关产品
CN109710150B (zh) 按键控制方法及终端
WO2021129750A1 (zh) 射频电路、电子设备及srs发送方法
JP7271699B2 (ja) 移動端末及び音声出力制御方法
CN108834013B (zh) 一种可穿戴设备电量均衡方法及相关产品
WO2020216209A1 (zh) 指示空间关系信息的方法及装置、通信设备
WO2021109931A1 (zh) 触摸控制方法及穿戴设备
WO2020007174A1 (zh) 通信连接建立方法及相关设备
WO2019011335A1 (zh) 一种移动终端及其控制方法和可读存储介质
WO2022033176A1 (zh) 音频播放控制方法、装置、电子设备及存储介质
CN108897516B (zh) 一种可穿戴设备音量调整方法及相关产品
CN108882084B (zh) 一种可穿戴设备电量均衡方法及相关产品
WO2017031647A1 (zh) 一种检测触摸方式的方法及装置
WO2020221043A1 (zh) 充电控制电路、终端设备及数据线
CN110837319B (zh) 一种可视角度调节方法及电子设备
JP7274036B2 (ja) 上りリンク送信廃棄方法、上りリンク送信廃棄配置方法及び関連機器
CN109218922B (zh) 输出音频信号的控制方法、终端及音频信号输出装置
CN108882085B (zh) 一种可穿戴设备电量均衡方法及相关产品
WO2020077493A1 (zh) 耳机断开连接的方法、相关设备及计算机可读存储介质
CN111010480A (zh) 一种通信控制及相关设备
JP7340022B2 (ja) 時間情報の取得方法、送信方法、端末及びネットワーク機器

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: 19843777

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: 2019843777

Country of ref document: EP

Effective date: 20210224