CN113329378B - Earphone control method and related product - Google Patents
Earphone control method and related product Download PDFInfo
- Publication number
- CN113329378B CN113329378B CN202010129549.6A CN202010129549A CN113329378B CN 113329378 B CN113329378 B CN 113329378B CN 202010129549 A CN202010129549 A CN 202010129549A CN 113329378 B CN113329378 B CN 113329378B
- Authority
- CN
- China
- Prior art keywords
- earphone
- human body
- distance
- selecting
- master
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the application discloses an earphone control method and related products, which are applied to human body equipment, wherein the human body equipment is arranged on a human body, and the method comprises the following steps: when a human body is contacted with the electronic equipment, a human body communication link between the electronic equipment and the human body is established, when the first earphone and the second earphone are contacted with the human body, a first distance and a second distance between the first earphone and the second earphone and the electronic equipment are determined through the human body communication link, a main earphone and a secondary earphone are selected from the first earphone and the second earphone based on the first distance and the second distance, connection between the electronic equipment and the main earphone and the secondary earphone is established, and therefore, based on the human body communication link, the main earphone and the secondary earphone are selected, communication connection between the main earphone and the electronic equipment is established, and improvement of user experience is facilitated.
Description
Technical Field
The application relates to the technical field of communication, in particular to an earphone control method and related products.
Background
The wireless Bluetooth headset can establish a communication link through Bluetooth to realize the control of the electronic equipment on master and slave headset, the principle is that the electronic equipment is firstly connected with one Bluetooth headset, then the first Bluetooth headset is used as a Bluetooth hot spot to recode and send out received media data, and the second headset synchronously plays music in the mobile phone, but the data sources are not the electronic equipment but the headset, so that the operation is complex.
Disclosure of Invention
The embodiment of the application provides an earphone control method and related products, which can select master-slave earphones based on a human body communication link, establish communication connection between the master-slave earphones and electronic equipment and are beneficial to improving user experience.
In a first aspect, an embodiment of the present application provides a human body apparatus, the human body apparatus is disposed on a human body, the human body apparatus includes a human body communication chip and a processing circuit, the human body communication chip is communicatively connected to a first earphone and a second earphone in a manner of using a human body as a medium, and the method includes:
the human body communication chip is used for establishing a human body communication link with the electronic equipment when the human body is contacted with the electronic equipment;
the processing circuit is used for determining a first distance and a second distance between the first earphone and the second earphone and the electronic equipment respectively through the human body communication link when the first earphone and the second earphone are contacted with a human body;
the processing circuit is further configured to select a master earphone and a slave earphone from the first earphone and the second earphone based on the first distance and the second distance;
the human body communication chip is also used for establishing connection between the electronic equipment and the master earphone and between the electronic equipment and the slave earphone.
In a second aspect, an embodiment of the present application provides a method for controlling an earphone, which is applied to a human body device, where the human body device is disposed on a human body, and the method includes:
when the human body is contacted with the electronic equipment, establishing a human body communication link between the human body and the electronic equipment;
determining, through the human body communication link, a first distance and a second distance between the first earphone and the second earphone, respectively, and the electronic device when both the first earphone and the second earphone are contacted with a human body;
selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first distance and the second distance;
and establishing connection between the electronic equipment and the master earphone and the slave earphone.
In a third aspect, an embodiment of the present application provides an earphone control device, which is applied to a first establishment unit, a first determination unit, a first selection unit, and a second establishment unit of a human body device, wherein,
the first establishing unit is used for establishing a human body communication link with the electronic equipment when the human body is contacted with the electronic equipment;
the first determining unit is configured to determine, when the first earphone and the second earphone are both contacted with a human body, a first distance and a second distance between the first earphone and the second earphone and the electronic device, respectively, through the human body communication link;
The first selecting unit is used for selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first distance and the second distance;
the second establishing unit is used for establishing connection between the electronic equipment and the master earphone and the slave earphone.
In a fourth aspect, embodiments of the present application provide a human body device including a processor, a memory, a human body communication chip, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps in the second aspect of embodiments of the present application.
In a fifth aspect, embodiments of the present application provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to perform some or all of the steps as described in the second aspect of the embodiments of the present application.
In a sixth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps as described in the second aspect of embodiments of the present application. The computer program product may be a software installation package.
By implementing the embodiment of the application, the following beneficial effects are achieved:
it can be seen that, the earphone control method and related products described in the embodiments of the present application are applied to a human body device, when a human body is contacted with an electronic device, the human body device establishes a human body communication link with the electronic device, when both the first earphone and the second earphone are contacted with the human body, a first distance and a second distance between the first earphone and the second earphone and the electronic device are determined through the human body communication link, based on the first distance and the second distance, a master earphone and a slave earphone are selected from the first earphone and the second earphone, and connection between the electronic device and the master earphone and the slave earphone is established, so, based on the human body communication link, a master earphone and a slave earphone are selected, and communication connection between the master earphone and the electronic device is established, which is beneficial to improving user experience.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1A is a schematic structural diagram of a human body device according to an embodiment of the present application;
fig. 1B is a schematic illustration of communication principle of human body communication according to an embodiment of the present application;
fig. 1C is a schematic illustration of a human body communication implementation of capacitive coupling based on a human body communication chip according to an embodiment of the present application;
fig. 1D is a schematic illustration of a demonstration for implementing current coupling type human body communication based on a human body communication chip according to an embodiment of the present application;
fig. 1E is a schematic illustration of a body area network according to an embodiment of the present disclosure;
fig. 1F is a schematic flow chart of a headset control method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of another method for controlling an earphone according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a human body device according to an embodiment of the present application;
fig. 4A is a functional unit composition block diagram of an earphone control device provided in the embodiment of the present application;
fig. 4B is a functional unit composition block diagram of another earphone control device provided in the embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims of the present application and in the above-described figures, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" 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 such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The human device according to the embodiments of the present application may be a device implanted in a human body, or a device located near the human body, for example, the human device may include various handheld devices (smart phones, tablet computers, etc.) with wireless communication functions, vehicle devices, wearable devices (smart watches, smart bracelets, wireless headphones, augmented reality/virtual reality devices, smart glasses), computing devices, or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), mobile Stations (MSs), terminal devices (terminal devices), pacemakers, bionic organs (e.g., artificial limbs, bionic eyes, artificial hearts, etc.), implanted chips or sensors, and so on. For convenience of description, the above-mentioned devices may be collectively referred to as a human body device, a human body may be provided with a plurality of human body devices, and the human body device may be a device for communicating with each sensor (such as a temperature sensor, a blood lipid sensor, a blood glucose sensor, a blood pressure sensor, a blood temperature sensor, etc.) of a human body and each other human body device, so that a user may wear the human body device on a wrist, put the device in a bag, bind the device between the waist and even implant the device in the body, and of course, there are many ways in which the human body device is provided on the human body, which is not limited herein.
The electronic device according to the embodiments of the present application may be a wearable electronic device with communication capability, or may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and various forms of user devices (UserEquipment, UE), mobile stations (MobileStation, MS), terminal devices (terminals), and so on.
The embodiments of the present application are described in detail below.
Referring to fig. 1A, fig. 1A is a schematic structural diagram of a human body device according to an embodiment of the present application, the human body device 100 includes a storage and processing circuit 110, and a sensor 170 connected to the storage and processing circuit 110, wherein:
the human device 100 may include control circuitry, which may include storage and processing circuitry 110. The storage and processing circuit 110 may be a memory such as a hard drive memory, a non-volatile memory (e.g., flash memory or other electronically programmable read only memory used to form a solid state drive, etc.), a volatile memory (e.g., static or dynamic random access memory, etc.), etc., as embodiments of the present application are not limited. Processing circuitry in the storage and processing circuitry 110 may be used to control the operation of the human device 100. The processing circuitry may 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 circuitry 110 may be used to run software in the body apparatus 100, such as internet browsing applications, voice over internet protocol (Voice over Internet Protocol, VOIP) telephone call applications, email applications, media playing applications, operating system functions, and the like. Such software may be used to perform some control operations, such as image acquisition based on a camera, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functions implemented based on status indicators such as status indicators of light emitting diodes, touch event detection based on a touch sensor, functions associated with displaying information on multiple (e.g., layered) display screens, 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 other functions in the human device 100, to name a few.
The human device 100 may include an input-output circuit 150. The input-output circuit 150 may be used to cause the human device 100 to perform input and output of data, i.e., to allow the human device 100 to receive data from an external device and also to allow the human device 100 to output data from the human device 100 to the 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, a touch sensor (e.g., based on an optical touch sensor and/or a capacitive touch sensor, where the touch sensor may be part of a touch display screen or may be used independently as a touch sensor structure), an acceleration sensor, a temperature sensor, and other sensors, etc.
The input-output circuit 150 may also include one or more display screens, such as display screen 130. The display 130 may include one or a combination of several of a liquid crystal display, an organic light emitting diode display, an electronic ink display, a plasma display, and a display using other display technologies. Display 130 may include an array of touch sensors (i.e., display 130 may be a touch-sensitive display). The touch sensor may be a capacitive touch sensor formed of an array of transparent touch sensor electrodes, such as Indium Tin Oxide (ITO) electrodes, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, etc., as embodiments of the present application are not limited.
The human device 100 may also include an audio component 140. The audio component 140 may be used to provide audio input and output functions for the human device 100. The audio components 140 in the human device 100 may include speakers, microphones, buzzers, tone generators, and other components for generating and detecting sound.
The communication circuit 120 may be used to provide the capability for the human device 100 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 circuitry in the communication circuitry 120 may include radio frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless communication circuitry in the communication circuitry 120 may include circuitry for supporting near field communication (Near Field Communication, NFC) by transmitting and receiving near field coupled electromagnetic signals. For example, the communication circuit 120 may include a near field communication antenna and a near field communication transceiver. The communication circuit 120 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like. The communication circuit 120 may include a human body communication chip for enabling communication with external devices (such as other human body devices, internet of things devices, or cloud devices).
The human device 100 may further include a battery, power management circuitry, and other input-output units 160. The input-output unit 160 may include buttons, levers, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes, and other status indicators, etc.
The user may control the operation of the human device 100 by inputting commands through the input-output circuit 150, and may use output data of the input-output circuit 150 to enable receiving status information and other outputs from the human device 100.
In one possible example, human body communication (human body communication, HBC), also called intra-body communication (intra-body communication, IBC), may be understood as a short-distance wireless communication mode, a human body is used as a medium for information transmission, a human body device may use a human body communication chip to implement bidirectional data transmission, the human body communication chip may include a transmitter (transmitter) and a receiver (receiver), the human body communication chip may be connected to a plurality of electrodes (electrodes), in this embodiment, a plurality of 2 or more of them may be used as input devices of the human body device, the transmitter may be used as output devices of the human body device, the transmitter and the receiver may be respectively connected to at least one electrode, where the connection mode may be a wireless connection or a wired connection, the human body communication chip may input weak electrical signals into the body through the electrodes, thereby implementing information transmission, the electrodes may carry sensors, or may not carry sensors, and may be used to detect various characteristics such as oxygen content, blood vessel content, physiological parameters (e.g., blood fat content, blood vessel content, etc.), blood fat content, etc. the physiological parameters may be used in the human body, and the like. In particular, the human body equipment is implanted in a human body or worn on the body.
Experiments prove that the research on the conductivity of biological tissues shows that with the increase of the signal frequency, the dielectric constant of most living tissues or organs is greatly reduced, and the conductivity is obviously improved, so that the human body communication is carried out at a higher frequency to reduce the attenuation of signals in the communication process. However, when the frequency is increased, the wavelength of the signal becomes shorter, and when the wavelength is close to the height of a person, the person emits electromagnetic waves to the surrounding as a radio frequency antenna, so that the communication signal is dissipated, and even the signal coupled through the air gradually exceeds the signal coupled through the person, the signal with the too high frequency is not suitable for the communication of the person. Therefore, in most studies on human body communication, the signal frequency can be selected in the range of 10kHz to 100 MHz.
Further, referring specifically to fig. 1B and 1C, a diagram a in fig. 1B, a receiver is taken as an input, a transmitter is taken as an output, and a human body is used as a medium to generate a current, thereby achieving the purpose of communication. As shown in fig. 1B, a schematic structural diagram of different transmission modes of human body communication is divided into two communication modes, namely a capacitive coupling mode and a current coupling mode. Specifically, as shown in fig. 1B, a diagram is a general communication manner, B diagram is a capacitive coupling manner, and C diagram is a current coupling manner, in the two transmission manners, the capacitive coupling manner (B diagram) mainly uses oscillation of a transmitter to generate an electric field for a human body, and a receiver detects a change condition of the electric field, so that human body communication is realized, and a specific structure can also refer to fig. 1C; the current coupling mode (c diagram) is an electromagnetic wave generated by 2 electrodes connected through a transmitter and 2 electrodes connected through a receiver, so that in-vivo communication is realized, and the specific structure can also refer to fig. 1D.
As shown in fig. 1E, a schematic structural diagram of human body communication is shown, where the human body device may be implanted in a human body or worn on a human body, and the human body device may be connected with other human body devices, so as to form a body area network based on a human body, and the body area network may also communicate with devices outside the human body (such as an electronic device, an internet of things device, a local area network device, or a cloud device) through the internet.
The human body device described in fig. 1A may be a human body device, where the human body device is disposed on a human body, and the human body device includes a human body communication chip and a processing circuit, where the human body communication chip is connected with a handshake detection sensor, and may be used to implement the following earphone control method:
the human body communication chip is used for establishing a human body communication link with the electronic equipment when the human body is contacted with the electronic equipment;
the processing circuit is used for determining a first distance and a second distance between the first earphone and the second earphone and the electronic equipment respectively through the human body communication link when the first earphone and the second earphone are contacted with a human body;
the processing circuit is further configured to select a master earphone and a slave earphone from the first earphone and the second earphone based on the first distance and the second distance;
The human body communication chip is also used for establishing connection between the electronic equipment and the master earphone and between the electronic equipment and the slave earphone.
In one possible example, in said selecting a master earphone and a slave earphone from said first earphone and said second earphone based on said first distance and said second distance, said processing circuit is specifically configured to:
if the first distance is smaller than the second distance, selecting the first earphone as the master earphone and the second earphone as the slave earphone;
and if the first distance is greater than the second distance, selecting the second earphone as the master earphone and selecting the first earphone as the slave earphone.
In the aspect of selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first distance and the second distance, the processing circuit is specifically further configured to:
if the first distance is equal to the second distance, a first historical power consumption curve and a second historical power consumption curve respectively corresponding to the first earphone and the second earphone in a preset period are obtained; and selecting a master earphone and a slave earphone from the first earphone and the second earphone according to the first historical power consumption curve and the second historical power consumption curve.
In one possible example, in said selecting a master earphone and a slave earphone from said first earphone and said second earphone according to said first historical power consumption curve and said second historical power consumption curve, said processing circuit is specifically configured to:
according to the first historical power consumption curve and the second historical power consumption curve, determining a first average power consumption rate and a second average power consumption rate respectively corresponding to the first earphone and the second earphone in the preset period;
calculating a difference between the first average power consumption rate and the second average power consumption rate;
if the difference value is larger than a preset threshold value, selecting the second earphone as the master earphone and selecting the first earphone as the slave earphone;
and if the difference value is smaller than or equal to the preset threshold value, selecting the first earphone as the master earphone and selecting the second earphone as the slave earphone.
In one possible example, if the human device further comprises a temperature sensor, wherein,
the environment sensor is used for acquiring the current environment temperature;
the processing circuit is further specifically configured to determine a current application scenario corresponding to the electronic device; determining a first expected remaining capacity and a second expected remaining capacity corresponding to the first earphone and the second earphone respectively based on the current application scene and the current environment temperature; and selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first expected remaining power and the second expected remaining power.
In one possible example, in the determining, based on the current application scenario and the current ambient temperature, a first expected remaining power and a second expected remaining power of the first earphone and the second earphone, respectively, the processing circuit is specifically further configured to:
determining a target temperature corresponding to the current application scene according to a mapping relation between the preset application scene and the preset temperature;
determining a temperature control coefficient corresponding to the current environmental temperature regulated to the target temperature;
acquiring first equipment parameters and second equipment parameters respectively corresponding to the first earphone and the second earphone;
and determining the first predicted remaining capacity and the second predicted remaining capacity respectively corresponding to the first earphone and the second earphone based on the first equipment parameter, the second equipment parameter and the temperature control coefficient.
In one possible example, in said selecting a master earphone and a slave earphone from said first earphone and said second earphone based on said first estimated remaining power and said second estimated remaining power, said processing circuit is specifically further configured to:
determining a first weight and a second weight respectively corresponding to the first predicted remaining capacity and the second predicted remaining capacity;
According to the first equipment parameter and the second equipment parameter, determining a first receiving power and a second receiving power which are respectively corresponding to the first earphone and the second earphone by the human body equipment;
determining a third weight and a fourth weight respectively corresponding to the first received power and the second received power;
weighting the first predicted residual quantity, the first weight, the first receiving power and the third weight to determine a first evaluation value corresponding to the first earphone;
weighting the second predicted residual capacity, the second weight, the second receiving power and the fourth weight to determine a second evaluation value corresponding to the second earphone;
if the first evaluation value is greater than or equal to the second evaluation value, selecting the first earphone as the master earphone and the second earphone as the slave earphone; and if the first evaluation value is smaller than the second evaluation value, selecting the second earphone as the master earphone and selecting the first earphone as the slave earphone.
It can be seen that, the human body device described in the embodiments of the present application is disposed on a human body, when the human body is contacted with the electronic device, a human body communication link is established between the human body device and the electronic device, when both the first earphone and the second earphone are contacted with the human body, a first distance and a second distance between the first earphone and the second earphone and the electronic device are determined through the human body communication link, based on the first distance and the second distance, a master earphone and a slave earphone are selected from the first earphone and the second earphone, and connection between the electronic device and the master earphone and the slave earphone is established, so, based on the human body communication link, a master earphone and a slave earphone are selected, and communication connection between the master earphone and the electronic device is established, which is beneficial to improving user experience.
Referring to fig. 1F, fig. 1F is a flow chart of an earphone control method provided in an embodiment of the present application, as shown in the drawing, applied to a human body device shown in fig. 1A, where the human body device is disposed on a human body, and the human body device includes a human body communication chip and a processor, and the earphone control method includes:
101. when the human body is contacted with the electronic equipment, a human body communication link between the human body and the electronic equipment is established.
The human body device can comprise a human body communication chip, an electrode, a processor and the like, the human body device can be implanted into a human body or worn, when the human body contacts the electronic device, a communication link between the human body and the electronic device can be established through the human body, and data transmission between the electronic device and the human body device can be realized through the communication link, so that communication between the electronic device and the human body device can be realized.
In addition, after the electronic device and the above-mentioned human body device are connected through the human body, communication between the human body device and the electronic device can be maintained through connection modes such as a bluetooth communication network connection mode, an infrared communication network, a mobile communication network (such as 2G, 3G, 4G, 5G, etc.), a wireless fidelity (wireless fidelity, wi-Fi) network connection mode, a terahertz network connection mode, etc., so that when the user does not contact the electronic device, communication connection between the two devices can still be maintained.
Optionally, before the step 101, before the human body communication link is established with the electronic device, the method may further include the following steps:
a1, acquiring identification information corresponding to the electronic equipment;
a2, verifying the identification information;
and A3, if the verification is successful, executing the step of establishing a communication link with the electronic equipment.
Wherein, the labeling information may include at least one of the following: the electronic device model, the electronic device electric quantity, the electronic device physical address, the electronic device IP address, the electronic device name and the like are not limited herein, and the identification information corresponding to the electronic device can be stored in the memory in advance in the human body device, so before the communication link is established, whether the identification information corresponding to the electronic device is matched with the prestored identification information can be verified, if so, the identification information is verified successfully, and the permission of establishing the communication link between the electronic devices is provided, so that the safety can be improved.
102. When the first earphone and the second earphone are both contacted with a human body, a first distance and a second distance between the first earphone and the second earphone and the electronic device are respectively determined through the human body communication link.
The first earphone and the second earphone may be bluetooth earphones of the ear-hanging type or the in-ear type, and when a user corresponding to the human body device touches the first earphone or the second earphone, the first earphone and/or the second earphone may respectively establish a communication connection with the electronic device, for example, the contact may refer to that physical contact is generated between the user and the first earphone.
In a specific implementation, when a user touches the first earphone and/or the second earphone, a communication link between the first earphone and/or the second earphone and the human body device can be established through a human body, and further, a communication link between the electronic device and the first earphone and/or the second earphone is established through the human body communication link, and a first distance and a second distance between the first earphone and the second earphone and the electronic device respectively are determined through the communication link.
103. And selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first distance and the second distance.
The human body equipment can judge the master earphone and the slave earphone in the first earphone and the second earphone through a first distance between the first earphone and the electronic equipment and a second distance between the second earphone and the electronic equipment, and the first earphone and the second earphone can be completely independent in a mechanical structure.
In a possible example, the step 103 of selecting the master earphone and the slave earphone from the first earphone and the second earphone based on the first distance and the second distance may include the steps of:
31. if the first distance is smaller than the second distance, selecting the first earphone as the master earphone and the second earphone as the slave earphone;
32. and if the first distance is greater than the second distance, selecting the second earphone as the master earphone and selecting the first earphone as the slave earphone.
In order to accelerate the efficiency of communication connection, headphones closer to the electronic device can be selected as the master headphones, that is, the headphones closer to the electronic device can be selected from the first headphones and the second headphones by comparing the sizes of the first distance and the second distance, in specific implementation, if the first distance is smaller than the second distance, the first headphones are selected as the master headphones, the second headphones are the slave headphones, if the first distance is larger than the second distance, the second headphones are selected as the master headphones, and the first headphones are all connected with the electronic device in a communication mode, and therefore, on the basis of the judgment of the distance, the headphones closer to the electronic device are selected as the master headphones, the communication connection is directly established with the electronic device through the master headphones, and then the communication connection is established between the master headphones and the slave headphones, so that the electronic device can directly interact with the master headphones, and the communication time is reduced.
In a possible example, the step 103 may select the master earphone and the slave earphone from the first earphone and the second earphone based on the first distance and the second distance, and further include the steps of:
33. if the first distance is equal to the second distance, a first historical power consumption curve and a second historical power consumption curve respectively corresponding to the first earphone and the second earphone in a preset period are obtained; and selecting a master earphone and a slave earphone from the first earphone and the second earphone according to the first historical power consumption curve and the second historical power consumption curve.
The preset period may be set by the user or default by the system, which is not limited herein; the first earphone and the second earphone may include respective processors, batteries, and the like, the power consumption curve represents the power consumption condition of the earphone in a preset period, and if the first distance is equal to the second distance, the power consumption conditions of the two earphones may be different, so that the selection of the master earphone and the slave earphone may be performed according to a first historical power consumption curve and a second power consumption curve respectively corresponding to the first earphone and the second earphone.
In a possible example, the step 33 of selecting the master earphone and the slave earphone from the first earphone and the second earphone according to the first historical power consumption curve and the second historical power consumption curve may include the following steps:
331. according to the first historical power consumption curve and the second historical power consumption curve, determining a first average power consumption rate and a second average power consumption rate respectively corresponding to the first earphone and the second earphone in the preset period;
332. calculating a difference between the first average power consumption rate and the second average power consumption rate;
333. if the difference value is larger than a preset threshold value, selecting the second earphone as the master earphone and selecting the first earphone as the slave earphone;
334. and if the difference value is smaller than or equal to the preset threshold value, selecting the first earphone as the master earphone and selecting the second earphone as the slave earphone.
The preset threshold may be a real number greater than or equal to 0, the setting of the preset threshold may represent a difference between average power consumption rates corresponding to two headphones, the larger the preset threshold is, which indicates that the difference between average power consumption rates is large, and the power consumption conditions of the headphones are different due to the difference of hardware of the headphones, the power consumption conditions of the headphones are represented in a preset period, the power consumption conditions of the headphones are different, and the power consumption conditions may be indicative of the power consumption rate of the headphones, so that the master headphone or the slave headphone may be selected according to the power consumption rate.
Further, the difference between the first average power consumption rate and the second average power consumption rate may be calculated, if the difference is greater than a preset threshold, the second earphone is selected as the master earphone, the first earphone is selected as the slave earphone, otherwise, the first earphone is selected as the master earphone, and the second earphone is selected as the slave earphone, that is, compared with the slave earphone, the power consumption of the master earphone is greater than that of the slave earphone, so that an earphone with a slower power consumption rate may be selected as the master earphone, so that based on the power consumption condition, the master earphone and the slave earphone may be determined, and the switching between the master earphone and the slave earphone may also be performed, so that the number of communication connection between the slave earphone and the electronic device may be reduced, and the power consumption of the slave earphone may be reduced.
Optionally, if the human body device further includes a temperature sensor, the method further includes the following steps:
b1, acquiring the current ambient temperature;
b2, determining a current application scene corresponding to the electronic equipment;
b3, determining a first predicted residual capacity and a second predicted residual capacity respectively corresponding to the first earphone and the second earphone based on the current application scene and the current environment temperature;
And B4, selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first expected residual capacity and the second expected residual capacity.
The human body equipment can further comprise a temperature sensor, the temperature sensor can sense the ambient temperature, and the application scene can comprise at least one of the following: the method includes the steps that when the electronic equipment is in different application scenes, the corresponding transmitting power is different when the electronic equipment is in communication with the human equipment through the human body communication link, the electronic equipment or a hardware structure corresponding to the human equipment is influenced by the environment temperature, the transmitting or receiving of signals are influenced, the earphone is in communication with the electronic equipment through the human equipment, the environment temperature and the application scenes indirectly influence the electric quantity condition of the earphone, therefore, the current environment temperature and the current application scenes corresponding to the electronic equipment can be obtained, the first expected residual electric quantity and the second expected residual electric quantity corresponding to the first earphone and the second earphone are estimated through the data of the two dimensions, accordingly, the using time of the earphone is determined based on the first expected residual electric quantity and the second expected residual electric quantity, the earphone with larger expected residual electric quantity can be selected as a main earphone, and the other earphone is a slave earphone.
In a possible example, the step B3, based on the current application scenario and the current environmental temperature, determines a first estimated remaining power and a second estimated remaining power of the first earphone and the second earphone, respectively, may include the following steps:
b31, determining a target temperature corresponding to the current application scene according to a mapping relation between the preset application scene and the preset temperature;
b32, determining a temperature control coefficient corresponding to the current environment temperature regulated to the target temperature;
b33, acquiring first equipment parameters and second equipment parameters respectively corresponding to the first earphone and the second earphone;
and B34, determining the first expected remaining capacity and the second expected remaining capacity respectively corresponding to the first earphone and the second earphone based on the first equipment parameter, the second equipment parameter and the temperature control coefficient.
The preset application scenario may be set by the user or default by the system, which is not limited herein; the first device parameter may include at least one of: the volume, the temperature, the working power, the resistance and the like are not limited herein, and the mapping relation between the application scene and the preset temperature can be preset in consideration of the influence of the environment temperature and the application scene corresponding to the electronic device on the electric quantity of the earphone.
In a specific implementation, a target temperature corresponding to a current application scene can be determined based on a mapping relation between the preset application scene and a preset temperature, temperature control coefficients corresponding to different preset temperatures can be preset in human equipment, the temperature control coefficients corresponding to the current environment temperature to the target temperature can be determined, at this time, the influence of the current environment temperature on the electronic equipment can be reduced by adjusting the temperature control coefficients, and the first predicted residual electric quantity and the second predicted residual electric quantity corresponding to the first earphone and the second earphone respectively are estimated based on the first equipment parameter and the second equipment parameter, so that the influence of the environment temperature on the electronic equipment can be reduced adaptively, the temperature can be reduced adaptively, and the loss of the earphone electric quantity in the communication process can be reduced.
For example, it may be determined that the first rated power and the second rated power of the first earphone and the second earphone respectively correspond, thenWherein Q is total electric quantity, K is temperature control coefficient, X i And t is the preset time period for the equipment parameter, so that the first predicted remaining capacity and the second predicted remaining capacity corresponding to the first earphone and the second earphone respectively can be estimated based on the formula.
In a possible example, the step B4 may select the master earphone and the slave earphone from the first earphone and the second earphone based on the first expected remaining power and the second expected remaining power, and may include the steps of:
b41, determining a first weight and a second weight respectively corresponding to the first expected residual capacity and the second expected residual capacity;
b42, according to the first equipment parameter and the second equipment parameter, determining that the first earphone and the second earphone respectively receive first receiving power and second receiving power corresponding to the human body equipment;
b43, determining a third weight and a fourth weight respectively corresponding to the first received power and the second received power;
b44, weighting the first predicted residual capacity, the first weight, the first receiving power and the third weight to determine a first evaluation value corresponding to the first earphone;
b45, weighting the second predicted residual capacity, the second weight, the second receiving power and the fourth weight to determine a second evaluation value corresponding to the second earphone;
b46, if the first evaluation value is greater than or equal to the second evaluation value, selecting the first earphone as the master earphone and selecting the second earphone as the slave earphone;
And B47, if the first evaluation value is smaller than the second evaluation value, selecting the second earphone as the master earphone and selecting the first earphone as the slave earphone.
When the master earphone and the slave earphone are in operation, the master earphone is in main control relative to the slave earphone, and generally, the electric quantity loss of the master earphone in operation is larger than that of the slave earphone, so that the requirements of the master earphone on the electric consumption and the receiving power are higher than those of the slave earphone, and therefore, in order to ensure the communication stability between the two earphones, the earphone with higher evaluation value can be selected as the master earphone.
In a specific implementation, the human body device may set different weights based on different intervals of the estimated remaining power, so that the first weight and the second weight corresponding to the first estimated remaining power and the second estimated remaining power may be determined, and since the device parameters corresponding to the different headphones may be different, when the human body device communicates with the first headphones and the second headphones, the transmitting power sent by the human body device is fixed, but the first receiving power and the second receiving power corresponding to the first headphones and the second headphones are different, different weights corresponding to the intervals of the different receiving powers may be preset in the human body device, and then the third weight and the fourth weight corresponding to the first receiving power and the second receiving power may be determined.
Further, the first estimated remaining power, the first weight, the first received power and the third weight may be weighted to determine a first evaluation value corresponding to the first earphone, and similarly, the second estimated remaining power, the second weight, the second received power and the fourth weight may be weighted to determine a second evaluation value corresponding to the first earphone, and finally, if the first evaluation value is greater than or equal to the second evaluation value, the first earphone is selected as a master earphone, and the second earphone is selected as a slave earphone, otherwise, if the first evaluation value is less than the second evaluation value, the second earphone is selected as a master earphone, and the first earphone is selected as a slave earphone.
104. And establishing connection between the electronic equipment and the master earphone and the slave earphone.
When communication is not established between the headset and the electronic device through a bluetooth communication network connection mode, an infrared communication network, a mobile communication network (such as 2G, 3G, 4G, 5G and the like), a wireless fidelity (wireless fidelity, wi-Fi) network connection mode, a terahertz network connection mode and the like, communication can be established through a human body communication link, or the headset can also directly establish communication with the electronic device through the human body communication link, in addition, communication can be established between the slave headset and the master headset through the human body device, after the master headset is selected, in order to ensure the communication stability between the master headset and the slave headset, the electronic device can be in communication connection with the master headset through the human body device, the communication connection can be established between the master headset and the slave headset through the human body device, the electronic device can realize communication with the slave headset through the master headset, but the slave headset is not in direct connection with the electronic device.
It can be seen that, the earphone control method described in the embodiment of the present application is applied to a human body device, where the human body device is disposed on a human body, and when the human body is contacted with an electronic device, the human body device can establish a human body communication link with the electronic device, and when both the first earphone and the second earphone are contacted with the human body, a first distance and a second distance between the first earphone and the second earphone and the electronic device are determined through the human body communication link, based on the first distance and the second distance, a master earphone and a slave earphone are selected from the first earphone and the second earphone, and connection between the electronic device and the master earphone and the slave earphone is established, so, based on the human body communication link, a master earphone and a slave earphone are selected, and communication connection between the master earphone and the electronic device is established, which is beneficial to improving user experience.
In accordance with the embodiment shown in fig. 1F, please refer to fig. 2, fig. 2 is a schematic flow chart of an earphone control method provided in the embodiment of the present application, as shown in the fig. 1A, the human body device is disposed on a human body, the human body device includes a human body communication chip and a processing circuit, and the human body communication chip is connected with a handshake detection sensor, where the earphone control method includes:
201. When the human body is contacted with the electronic equipment, a human body communication link between the human body and the electronic equipment is established.
202. When the first earphone and the second earphone are both contacted with a human body, a first distance and a second distance between the first earphone and the second earphone and the electronic device are respectively determined through the human body communication link.
203. And if the first distance is smaller than the second distance, selecting the first earphone as the master earphone and the second earphone as the slave earphone.
204. And if the first distance is greater than the second distance, selecting the second earphone as the master earphone and selecting the first earphone as the slave earphone.
205. And if the first distance is equal to the second distance, acquiring the current environment temperature.
206. And determining the current application scene corresponding to the electronic equipment.
207. And determining a first expected residual capacity and a second expected residual capacity respectively corresponding to the first earphone and the second earphone based on the current application scene and the current environment temperature.
208. And selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first expected remaining power and the second expected remaining power.
209. And establishing connection between the electronic equipment and the master earphone and the slave earphone.
The specific descriptions of the steps 201 to 209 may refer to the steps 101 to 104 described in fig. 1F, and are not repeated here.
It can be seen that, according to the earphone control method described in the embodiment of the present application, when a human body is contacted with an electronic device, a human body communication link between the electronic device and the human body can be established, when both the first earphone and the second earphone are contacted with the human body, a first distance and a second distance between the first earphone and the second earphone and the electronic device are determined through the human body communication link, if the first distance is smaller than the second distance, the first earphone is selected as a master earphone, the second earphone is selected as a slave earphone, if the first distance is larger than the second distance, the second earphone is selected as a master earphone, the first earphone is selected as a slave earphone, if the first distance is equal to the second distance, a current ambient temperature is acquired, a current application scene corresponding to the electronic device is determined, based on the current application scene and the current ambient temperature, a first predicted residual electric quantity and a second predicted residual electric quantity corresponding to the first earphone and the second earphone are determined, based on the first predicted residual electric quantity and the second predicted residual electric quantity, the master earphone and the slave earphone are selected from the first earphone and the second earphone, connection between the electronic device and the master earphone is established, and the slave earphone is thus, when the master earphone and the slave earphone are selected and the second earphone are not balanced, and the two residual electric quantity are not balanced due to the long-term problem is avoided.
In accordance with the above embodiment, referring to fig. 3, fig. 3 is a schematic structural diagram of a human body device provided in the embodiment of the present application, as shown in the fig. 3, the human body device includes a processor, a memory, a human body communication chip, and one or more programs, the human body communication chip is connected to a handshake detection sensor, the human body device is disposed on a human body, and the one or more programs are stored in the memory and configured to be executed by the processor, where in the embodiment of the present application, the programs include instructions for executing the following steps:
when the human body is contacted with the electronic equipment, establishing a human body communication link between the human body and the electronic equipment;
determining, through the human body communication link, a first distance and a second distance between the first earphone and the second earphone, respectively, and the electronic device when both the first earphone and the second earphone are contacted with a human body;
selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first distance and the second distance;
and establishing connection between the electronic equipment and the master earphone and the slave earphone.
It can be seen that, the human body device described in the embodiments of the present application is disposed on a human body, and when the human body is contacted with the electronic device, the human body device can establish a human body communication link with the electronic device, and when both the first earphone and the second earphone are contacted with the human body, the first distance and the second distance between the first earphone and the second earphone and the electronic device are determined through the human body communication link, based on the first distance and the second distance, the master earphone and the slave earphone are selected from the first earphone and the second earphone, and connection between the electronic device and the master earphone and the slave earphone is established, so, based on the human body communication link, the master earphone and the slave earphone are selected, and communication connection between the master earphone and the electronic device is established, which is beneficial to improving user experience.
In one possible example, in selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first distance and the second distance, the program includes instructions for:
if the first distance is smaller than the second distance, selecting the first earphone as the master earphone and the second earphone as the slave earphone;
and if the first distance is greater than the second distance, selecting the second earphone as the master earphone and selecting the first earphone as the slave earphone.
In one possible example, in selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first distance and the second distance, the program further includes instructions for:
if the first distance is equal to the second distance, a first historical power consumption curve and a second historical power consumption curve respectively corresponding to the first earphone and the second earphone in a preset period are obtained; and selecting a master earphone and a slave earphone from the first earphone and the second earphone according to the first historical power consumption curve and the second historical power consumption curve.
In one possible example, in selecting a master earphone and a slave earphone from the first earphone and the second earphone according to the first historical power consumption curve and the second historical power consumption curve, the program includes instructions for performing the steps of:
according to the first historical power consumption curve and the second historical power consumption curve, determining a first average power consumption rate and a second average power consumption rate respectively corresponding to the first earphone and the second earphone in the preset period;
calculating a difference between the first average power consumption rate and the second average power consumption rate;
if the difference value is larger than a preset threshold value, selecting the second earphone as the master earphone and selecting the first earphone as the slave earphone;
and if the difference value is smaller than or equal to the preset threshold value, selecting the first earphone as the master earphone and selecting the second earphone as the slave earphone.
In one possible example, if the human device further comprises a temperature sensor, the above program further comprises instructions for performing the steps of:
acquiring the current ambient temperature;
determining a current application scene corresponding to the electronic equipment;
Determining a first expected remaining capacity and a second expected remaining capacity corresponding to the first earphone and the second earphone respectively based on the current application scene and the current environment temperature;
and selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first expected remaining power and the second expected remaining power.
In one possible example, in determining a first estimated remaining power and a second estimated remaining power, respectively, of the first earphone and the second earphone based on the current application scenario and the current ambient temperature, the program includes instructions for:
determining a target temperature corresponding to the current application scene according to a mapping relation between the preset application scene and the preset temperature;
determining a temperature control coefficient corresponding to the current environmental temperature regulated to the target temperature;
acquiring first equipment parameters and second equipment parameters respectively corresponding to the first earphone and the second earphone;
and determining the first predicted remaining capacity and the second predicted remaining capacity respectively corresponding to the first earphone and the second earphone based on the first equipment parameter, the second equipment parameter and the temperature control coefficient.
In one possible example, in selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first expected remaining power and the second expected remaining power, the program includes instructions for:
determining a first weight and a second weight respectively corresponding to the first predicted remaining capacity and the second predicted remaining capacity;
according to the first equipment parameter and the second equipment parameter, determining that the first earphone and the second earphone respectively receive first receiving power and second receiving power corresponding to the human body equipment;
determining a third weight and a fourth weight respectively corresponding to the first received power and the second received power;
weighting the first predicted residual quantity, the first weight, the first receiving power and the third weight to determine a first evaluation value corresponding to the first earphone;
weighting the second predicted residual capacity, the second weight, the second receiving power and the fourth weight to determine a second evaluation value corresponding to the second earphone;
if the first evaluation value is greater than or equal to the second evaluation value, selecting the first earphone as the master earphone and the second earphone as the slave earphone;
And if the first evaluation value is smaller than the second evaluation value, selecting the second earphone as the master earphone and selecting the first earphone as the slave earphone.
The foregoing description of the embodiments of the present application has been presented primarily in terms of a method-side implementation. It will be appreciated that the human body device, in order to achieve the above-described functions, comprises corresponding hardware structures and/or software modules performing the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied as hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application may divide the functional units of the human body device according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
Fig. 4A is a functional unit composition block diagram of the headphone control apparatus 400 related to the embodiment of the present application. This earphone controlling means 400 is applied to human equipment, human equipment sets up in the human body, the device 400 includes: a first setup unit 401, a first determination unit 402, a first selection unit 403 and a second setup unit 404, wherein,
the first establishing unit 401 is configured to establish a human body communication link with an electronic device when the human body is contacted with the electronic device;
the first determining unit 402 is configured to determine, when the first earphone and the second earphone are both contacted to a human body, a first distance and a second distance between the first earphone and the second earphone and the electronic device, respectively, through the human body communication link;
the first selecting unit 403 is configured to select a master earphone and a slave earphone from the first earphone and the second earphone based on the first distance and the second distance;
the second establishing unit 404 is configured to establish a connection between the electronic device and the master earphone and the slave earphone.
It can be seen that, the earphone control device described in the embodiments of the present application may establish a human body communication link with an electronic device when a human body is touched by the electronic device, determine, through the human body communication link, a first distance and a second distance between the first earphone and the second earphone and the electronic device, respectively, select a master earphone and a slave earphone from the first earphone and the second earphone based on the first distance and the second distance, and establish connection between the electronic device and the master earphone and the slave earphone, so, select the master earphone and the slave earphone based on the human body communication link, and establish communication connection between the master earphone and the electronic device, thereby being beneficial to improving user experience.
In one possible example, in selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first distance and the second distance, the first selecting unit 403 is specifically configured to:
if the first distance is smaller than the second distance, selecting the first earphone as the master earphone and the second earphone as the slave earphone;
and if the first distance is greater than the second distance, selecting the second earphone as the master earphone and selecting the first earphone as the slave earphone.
In one possible example, in selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first distance and the second distance, the first selecting unit 403 is specifically further configured to:
if the first distance is equal to the second distance, a first historical power consumption curve and a second historical power consumption curve respectively corresponding to the first earphone and the second earphone in a preset period are obtained; and selecting a master earphone and a slave earphone from the first earphone and the second earphone according to the first historical power consumption curve and the second historical power consumption curve.
In one possible example, in selecting a master earphone and a slave earphone from the first earphone and the second earphone according to the first historical power consumption curve and the second historical power consumption curve, the first selecting unit 403 is specifically configured to:
according to the first historical power consumption curve and the second historical power consumption curve, determining a first average power consumption rate and a second average power consumption rate respectively corresponding to the first earphone and the second earphone in the preset period;
calculating a difference between the first average power consumption rate and the second average power consumption rate;
if the difference value is larger than a preset threshold value, selecting the second earphone as the master earphone and selecting the first earphone as the slave earphone;
and if the difference value is smaller than or equal to the preset threshold value, selecting the first earphone as the master earphone and selecting the second earphone as the slave earphone.
In one possible example, as shown in fig. 4B, fig. 4B is a further modified structure of the earphone control device 400 shown in fig. 4A, which may further include, compared to fig. 4A: the acquiring unit 405, the second determining unit 406, and the second selecting unit 407 are specifically as follows:
The acquiring unit 405 is configured to acquire a current ambient temperature;
the second determining unit 406 is configured to determine a current application scenario corresponding to the electronic device;
the second determining unit 406 is further configured to determine a first estimated remaining power and a second estimated remaining power corresponding to the first earphone and the second earphone, respectively, based on the current application scenario and the current environmental temperature;
the second selecting unit 407 is configured to select a master earphone and a slave earphone from the first earphone and the second earphone based on the first predicted remaining power and the second predicted remaining power.
In one possible example, in the aspect of determining the first estimated remaining power and the second estimated remaining power corresponding to the first earphone and the second earphone respectively based on the current application scenario and the current environmental temperature, the second determining unit 406 is specifically configured to:
determining a target temperature corresponding to the current application scene according to a mapping relation between the preset application scene and the preset temperature;
determining a temperature control coefficient corresponding to the current environmental temperature regulated to the target temperature;
acquiring first equipment parameters and second equipment parameters respectively corresponding to the first earphone and the second earphone;
And determining the first predicted remaining capacity and the second predicted remaining capacity respectively corresponding to the first earphone and the second earphone based on the first equipment parameter, the second equipment parameter and the temperature control coefficient.
In one possible example, in the selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first expected remaining power and the second expected remaining power, the second selecting unit 407 is specifically configured to:
determining a first weight and a second weight respectively corresponding to the first predicted remaining capacity and the second predicted remaining capacity;
according to the first equipment parameter and the second equipment parameter, determining that the first earphone and the second earphone respectively receive first receiving power and second receiving power corresponding to the human body equipment;
determining a third weight and a fourth weight respectively corresponding to the first received power and the second received power;
weighting the first predicted residual quantity, the first weight, the first receiving power and the third weight to determine a first evaluation value corresponding to the first earphone;
weighting the second predicted residual capacity, the second weight, the second receiving power and the fourth weight to determine a second evaluation value corresponding to the second earphone;
If the first evaluation value is greater than or equal to the second evaluation value, selecting the first earphone as the master earphone and the second earphone as the slave earphone;
and if the first evaluation value is smaller than the second evaluation value, selecting the second earphone as the master earphone and selecting the first earphone as the slave earphone.
It can be understood that the functions of each program module of the earphone control device of the present embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not repeated herein.
The embodiment of the application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program makes a computer execute part or all of the steps of any one of the method embodiments described in the method embodiments, and the computer includes human body equipment.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, said computer comprising a human device.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the present application, wherein specific examples are provided herein to illustrate the principles and embodiments of the present application, the above examples being provided solely to assist in the understanding of the methods of the present application and the core ideas thereof; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.
Claims (13)
1. The utility model provides a human equipment, its characterized in that, human equipment sets up in the human body, human equipment includes human communication chip and processing circuit, human communication chip uses human mode communication connection first earphone and second earphone as the medium, includes:
The human body communication chip is used for establishing a human body communication link with the electronic equipment when the human body is contacted with the electronic equipment;
the processing circuit is used for determining a first distance and a second distance between the first earphone and the second earphone and the electronic equipment respectively through the human body communication link when the first earphone and the second earphone are contacted with a human body;
the processing circuit is further configured to select a master earphone and a slave earphone from the first earphone and the second earphone based on the first distance and the second distance, and specifically includes the following steps:
if the first distance is smaller than the second distance, selecting the first earphone as the main earphone;
if the first distance is greater than the second distance, selecting the second earphone as the main earphone;
if the first distance is equal to the second distance, a first historical power consumption curve and a second historical power consumption curve respectively corresponding to the first earphone and the second earphone in a preset period are obtained; selecting a master earphone and a slave earphone from the first earphone and the second earphone according to the first historical power consumption curve and the second historical power consumption curve;
The human body communication chip is also used for establishing connection between the electronic equipment and the master earphone and between the electronic equipment and the slave earphone.
2. The human device of claim 1, wherein the processing circuit is configured to, in terms of selecting a master earphone and a slave earphone from the first earphone and the second earphone according to the first historical power consumption curve and the second historical power consumption curve:
according to the first historical power consumption curve and the second historical power consumption curve, determining a first average power consumption rate and a second average power consumption rate respectively corresponding to the first earphone and the second earphone in the preset period;
calculating a difference between the first average power consumption rate and the second average power consumption rate;
if the difference value is larger than a preset threshold value, selecting the second earphone as the master earphone and selecting the first earphone as the slave earphone;
and if the difference value is smaller than or equal to the preset threshold value, selecting the first earphone as the master earphone and selecting the second earphone as the slave earphone.
3. The body apparatus of claim 2, wherein if the body apparatus further comprises a temperature sensor, wherein,
The temperature sensor is used for acquiring the current ambient temperature;
the processing circuit is further specifically configured to determine a current application scenario corresponding to the electronic device; determining a first expected remaining capacity and a second expected remaining capacity corresponding to the first earphone and the second earphone respectively based on the current application scene and the current environment temperature; and selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first expected remaining power and the second expected remaining power.
4. The human device of claim 3, wherein in determining the first predicted remaining power and the second predicted remaining power, respectively, of the first earpiece and the second earpiece based on the current application scenario and the current ambient temperature, the processing circuit is further specifically configured to:
determining a target temperature corresponding to the current application scene according to a mapping relation between the preset application scene and the preset temperature;
determining a temperature control coefficient corresponding to the current environmental temperature regulated to the target temperature;
acquiring first equipment parameters and second equipment parameters respectively corresponding to the first earphone and the second earphone;
And determining the first predicted remaining capacity and the second predicted remaining capacity respectively corresponding to the first earphone and the second earphone based on the first equipment parameter, the second equipment parameter and the temperature control coefficient.
5. The human device of claim 4, wherein in selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first expected remaining power and the second expected remaining power, the processing circuit is further specifically configured to:
determining a first weight and a second weight respectively corresponding to the first predicted remaining capacity and the second predicted remaining capacity;
according to the first equipment parameter and the second equipment parameter, determining a first receiving power and a second receiving power which are respectively corresponding to the first earphone and the second earphone by the human body equipment;
determining a third weight and a fourth weight respectively corresponding to the first received power and the second received power;
weighting the first predicted residual quantity, the first weight, the first receiving power and the third weight to determine a first evaluation value corresponding to the first earphone;
Weighting the second predicted residual capacity, the second weight, the second receiving power and the fourth weight to determine a second evaluation value corresponding to the second earphone;
if the first evaluation value is greater than or equal to the second evaluation value, selecting the first earphone as the master earphone and the second earphone as the slave earphone; and if the first evaluation value is smaller than the second evaluation value, selecting the second earphone as the master earphone and selecting the first earphone as the slave earphone.
6. A headset control method, characterized by being applied to a human body device, the human body device being provided to a human body, the method comprising:
when the human body is contacted with the electronic equipment, establishing a human body communication link between the human body and the electronic equipment;
when both the first earphone and the second earphone are contacted with a human body, determining a first distance and a second distance between the first earphone and the second earphone and the electronic equipment respectively through the human body communication link;
based on the first distance and the second distance, selecting a master earphone and a slave earphone from the first earphone and the second earphone, wherein the method specifically comprises the following steps:
If the first distance is smaller than the second distance, selecting the first earphone as the main earphone;
if the first distance is greater than the second distance, selecting the second earphone as the main earphone;
if the first distance is equal to the second distance, a first historical power consumption curve and a second historical power consumption curve respectively corresponding to the first earphone and the second earphone in a preset period are obtained; selecting a master earphone and a slave earphone from the first earphone and the second earphone according to the first historical power consumption curve and the second historical power consumption curve;
and establishing connection between the electronic equipment and the master earphone and the slave earphone.
7. The method of claim 6, wherein selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first historical power consumption profile and the second historical power consumption profile comprises:
according to the first historical power consumption curve and the second historical power consumption curve, determining a first average power consumption rate and a second average power consumption rate respectively corresponding to the first earphone and the second earphone in the preset period;
Calculating a difference between the first average power consumption rate and the second average power consumption rate;
if the difference value is larger than a preset threshold value, selecting the second earphone as the master earphone and selecting the first earphone as the slave earphone;
and if the difference value is smaller than or equal to the preset threshold value, selecting the first earphone as the master earphone and selecting the second earphone as the slave earphone.
8. The method of claim 7, wherein if the human device further comprises a temperature sensor, the method further comprises:
acquiring the current ambient temperature;
determining a current application scene corresponding to the electronic equipment;
determining a first expected remaining capacity and a second expected remaining capacity corresponding to the first earphone and the second earphone respectively based on the current application scene and the current environment temperature;
and selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first expected remaining power and the second expected remaining power.
9. The method of claim 8, wherein the determining a first expected remaining power and a second expected remaining power of the first earpiece and the second earpiece, respectively, based on the current application scenario and the current ambient temperature, comprises:
Determining a target temperature corresponding to the current application scene according to a mapping relation between the preset application scene and the preset temperature;
determining a temperature control coefficient corresponding to the current environmental temperature regulated to the target temperature;
acquiring first equipment parameters and second equipment parameters respectively corresponding to the first earphone and the second earphone;
and determining the first predicted remaining capacity and the second predicted remaining capacity respectively corresponding to the first earphone and the second earphone based on the first equipment parameter, the second equipment parameter and the temperature control coefficient.
10. The method of claim 9, wherein the selecting a master earphone and a slave earphone from the first earphone and the second earphone based on the first expected remaining power and the second expected remaining power comprises:
determining a first weight and a second weight respectively corresponding to the first predicted remaining capacity and the second predicted remaining capacity;
according to the first equipment parameter and the second equipment parameter, determining that the first earphone and the second earphone respectively receive first receiving power and second receiving power corresponding to the human body equipment;
Determining a third weight and a fourth weight respectively corresponding to the first received power and the second received power;
weighting the first predicted residual quantity, the first weight, the first receiving power and the third weight to determine a first evaluation value corresponding to the first earphone;
weighting the second predicted residual capacity, the second weight, the second receiving power and the fourth weight to determine a second evaluation value corresponding to the second earphone;
if the first evaluation value is greater than or equal to the second evaluation value, selecting the first earphone as the master earphone and the second earphone as the slave earphone;
and if the first evaluation value is smaller than the second evaluation value, selecting the second earphone as the master earphone and selecting the first earphone as the slave earphone.
11. An earphone control device, characterized by being applied to a human body apparatus, comprising: a first establishing unit, a first determining unit, a first selecting unit and a second establishing unit, wherein,
the first establishing unit is used for establishing a human body communication link with the electronic equipment when a human body is contacted with the electronic equipment;
The first determining unit is used for determining a first distance and a second distance between the first earphone and the second earphone and the electronic equipment respectively through the human body communication link when the first earphone and the second earphone are contacted with a human body;
the first selecting unit is configured to select a master earphone and a slave earphone from the first earphone and the second earphone based on the first distance and the second distance, and specifically includes the following steps:
if the first distance is smaller than the second distance, selecting the first earphone as the main earphone;
if the first distance is greater than the second distance, selecting the second earphone as the main earphone;
if the first distance is equal to the second distance, a first historical power consumption curve and a second historical power consumption curve respectively corresponding to the first earphone and the second earphone in a preset period are obtained; selecting a master earphone and a slave earphone from the first earphone and the second earphone according to the first historical power consumption curve and the second historical power consumption curve;
the second establishing unit is used for establishing connection between the electronic equipment and the master earphone and the slave earphone.
12. A body apparatus comprising a processor and a memory, the memory for storing one or more programs and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 6-10.
13. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any of claims 6-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010129549.6A CN113329378B (en) | 2020-02-28 | 2020-02-28 | Earphone control method and related product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010129549.6A CN113329378B (en) | 2020-02-28 | 2020-02-28 | Earphone control method and related product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113329378A CN113329378A (en) | 2021-08-31 |
CN113329378B true CN113329378B (en) | 2023-05-05 |
Family
ID=77412751
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010129549.6A Active CN113329378B (en) | 2020-02-28 | 2020-02-28 | Earphone control method and related product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113329378B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105491470A (en) * | 2015-11-25 | 2016-04-13 | 惠州Tcl移动通信有限公司 | Bluetooth headset and method for realizing automatic turn-on/turn-off of Bluetooth headset through smart wearable contact equipment |
CN108566684A (en) * | 2018-07-02 | 2018-09-21 | Oppo广东移动通信有限公司 | Communicate to connect method for building up and relevant device |
CN108882084A (en) * | 2018-05-31 | 2018-11-23 | Oppo广东移动通信有限公司 | A kind of wearable device electric quantity balancing method and Related product |
CN109040887A (en) * | 2018-07-02 | 2018-12-18 | Oppo广东移动通信有限公司 | Principal and subordinate's earphone method for handover control and Related product |
CN110505023A (en) * | 2019-07-26 | 2019-11-26 | 华为技术有限公司 | A kind of exchange method of information, wearable device and storage medium |
CN110536203A (en) * | 2019-08-13 | 2019-12-03 | Oppo广东移动通信有限公司 | A kind of bluetooth headset, wearable device, control system and control method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9794670B2 (en) * | 2014-10-22 | 2017-10-17 | Sony Mobile Communications Inc. | BT and BCC communication for wireless earbuds |
-
2020
- 2020-02-28 CN CN202010129549.6A patent/CN113329378B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105491470A (en) * | 2015-11-25 | 2016-04-13 | 惠州Tcl移动通信有限公司 | Bluetooth headset and method for realizing automatic turn-on/turn-off of Bluetooth headset through smart wearable contact equipment |
CN108882084A (en) * | 2018-05-31 | 2018-11-23 | Oppo广东移动通信有限公司 | A kind of wearable device electric quantity balancing method and Related product |
CN108566684A (en) * | 2018-07-02 | 2018-09-21 | Oppo广东移动通信有限公司 | Communicate to connect method for building up and relevant device |
CN109040887A (en) * | 2018-07-02 | 2018-12-18 | Oppo广东移动通信有限公司 | Principal and subordinate's earphone method for handover control and Related product |
CN110505023A (en) * | 2019-07-26 | 2019-11-26 | 华为技术有限公司 | A kind of exchange method of information, wearable device and storage medium |
CN110536203A (en) * | 2019-08-13 | 2019-12-03 | Oppo广东移动通信有限公司 | A kind of bluetooth headset, wearable device, control system and control method |
Also Published As
Publication number | Publication date |
---|---|
CN113329378A (en) | 2021-08-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109040887A (en) | Principal and subordinate's earphone method for handover control and Related product | |
CN109068206A (en) | Principal and subordinate's earphone method for handover control and Related product | |
CN108958696A (en) | Principal and subordinate's earphone method for handover control and Related product | |
CN108668009B (en) | Input operation control method, device, terminal, earphone and readable storage medium | |
CN108600059A (en) | Apparatus control method and Related product | |
CN109150221B (en) | Master-slave switching method for wearable equipment and related product | |
CN108897516B (en) | Wearable device volume adjustment method and related product | |
CN110109544B (en) | Method for adjusting motor vibration amplitude, wearable device and readable storage medium | |
CN108737923A (en) | Volume adjusting method and related product | |
CN108834013B (en) | Wearable equipment electric quantity balancing method and related product | |
CN108882084B (en) | Wearable equipment electric quantity balancing method and related product | |
CN108279842A (en) | A kind of function controlling method, function controlling device and terminal device | |
CN108934083A (en) | Communicate to connect method for building up and relevant device | |
CN108668018B (en) | Mobile terminal, volume control method and related product | |
CN109121034A (en) | Master-slave switching method and Related product based on volume | |
CN113329378B (en) | Earphone control method and related product | |
CN109040425B (en) | Information processing method and related product | |
CN113013833B (en) | Equipment control method and related product | |
CN113328812B (en) | Information leakage prevention method and related product | |
CN108958481B (en) | Equipment control method and related product | |
CN113014285B (en) | Data transmission control method and related product | |
CN111898542A (en) | Display screen control method and device and terminal | |
CN112859621B (en) | Intelligent household equipment management method and related products | |
CN112826455B (en) | Health treatment method and related product | |
CN108882085B (en) | Wearable equipment electric quantity balancing method and related product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |