Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively 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 can be included in at least one embodiment of the application. The appearances of the phrase 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. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Electronic devices may include various handheld devices, vehicle mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication capabilities, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal Equipment (terminal device), and so forth. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
The wearable device may include at least one of: wireless earphones, brain wave acquisition devices, Augmented Reality (AR)/Virtual Reality (VR) devices, smart glasses, and the like, wherein the wireless earphones may implement communication by: wireless fidelity (Wi-Fi) technology, bluetooth technology, visible light communication technology, invisible light communication technology (infrared communication technology, ultraviolet communication technology), and the like. When the wearable device in the embodiment of the present application is a wireless headset, the wearable device includes a left earplug and a right earplug, the left earplug can be an independent component, and the right earplug can also be an independent component.
Optionally, the wireless headset may be an ear-hook headset, an ear-plug headset, or a headset, which is not limited in the embodiments of the present application.
The wireless headset may be housed in a headset case, which may include: two receiving cavities (a first receiving cavity and a second receiving cavity) sized and shaped to receive a pair of wireless headsets (a left earbud and a right earbud); one or more earphone housing magnetic components disposed within the case for magnetically attracting and respectively magnetically securing a pair of wireless earphones into the two receiving cavities. The earphone box may further include an earphone cover. Wherein the first receiving cavity is sized and shaped to receive a first wireless headset and the second receiving cavity is sized and shaped to receive a second wireless headset.
The wireless headset may include a headset housing, a rechargeable battery (e.g., a lithium battery) disposed within the headset housing, a plurality of metal contacts for connecting the battery to a charging device, the driver unit including a magnet, a voice coil, and a diaphragm, the driver unit for emitting sound from a directional sound port, and a speaker assembly including a directional sound port, the plurality of metal contacts disposed on an exterior surface of the headset housing.
In one possible implementation, the wireless headset may further include a touch area, which may be located on an outer surface of the headset housing, and at least one touch sensor is disposed in the touch area for detecting a touch operation, and the touch sensor may include a capacitive sensor. When a user touches the touch area, the at least one capacitive sensor may detect a change in self-capacitance to recognize a touch operation.
In one possible implementation, the wireless headset may further include an acceleration sensor and a triaxial gyroscope, the acceleration sensor and the triaxial gyroscope may be disposed within the headset housing, and the acceleration sensor and the triaxial gyroscope are used to identify a picking up action and a taking down action of the wireless headset.
In a possible implementation manner, the wireless headset may further include at least one air pressure sensor, and the air pressure sensor may be disposed on a surface of the headset housing and configured to detect air pressure in the ear after the wireless headset is worn. The wearing tightness of the wireless earphone can be detected through the air pressure sensor. When it is detected that the wireless earphone is worn loosely, the wireless earphone can send prompt information to an electronic device connected with the wireless earphone so as to prompt a user that the wireless earphone has a risk of falling.
Referring to fig. 1A, fig. 1A is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application, the electronic device 100 includes a storage and processing circuit 110, and a sensor 170 and a communication circuit 120 connected to the storage and processing circuit 110, where:
the electronic device 100 may include control circuitry, which may include storage and processing circuitry 110. The storage and processing circuitry 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., and the embodiments of the present application are not limited thereto. Processing circuitry in storage and processing circuitry 110 may be used to control the operation of electronic 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 electronic device 100, such as an Internet browsing application, a Voice Over Internet Protocol (VOIP) telephone call application, an email application, a media playing application, operating system functions, and so forth. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality based on status indicators such as status indicator lights of light emitting diodes, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) displays, 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 electronic device 100, and the like, without limitation of embodiments of the present application.
The electronic device 100 may also include input-output circuitry 150. The input-output circuit 150 may be used to enable the electronic device 100 to input and output data, i.e., to allow the electronic device 100 to receive data from an external device and also to allow the electronic device 100 to output data from the electronic device 100 to the external device. The input-output circuit 150 may further include a sensor 170. The sensors 170 may include ambient light sensors, heart rate sensors, light and capacitance based proximity sensors, touch sensors (e.g., light based touch sensors and/or capacitive touch sensors, or pressure sensors, ultrasonic sensors, etc., wherein the touch sensors may be part of a touch screen display or may be used independently as a touch sensor structure), acceleration sensors, and other sensors, among others. The heart rate sensor may be disposed on a front surface, a side surface, or a back surface of the electronic device, and is not limited herein, and the heart rate sensor is configured to detect a heart rate of a user.
Input-output circuitry 150 may also include one or more displays, such as display 130. Display 130 may include one or a combination of liquid crystal displays, organic light emitting diode displays, electronic ink displays, plasma displays, displays using other display technologies. Display 130 may include an array of touch sensors (i.e., display 130 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The audio component 140 may be used to provide audio input and output functionality for the electronic device 100. The audio components 140 in the electronic device 100 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sound.
The communication circuit 120 may be used to provide the electronic device 100 with the capability 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 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 Communication circuitry 120 may include circuitry to support 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 communications circuitry 120 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuitry and antenna, and so forth.
The electronic device 100 may further include a battery, power management circuitry, and other input-output units 160. The input-output unit 160 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, and the like.
A user may input commands through input-output circuitry 150 to control the operation of electronic device 100, and may use output data of input-output circuitry 150 to enable receipt of status information and other outputs from electronic device 100.
Referring to fig. 1B, fig. 1B is a system network architecture diagram for implementing the device control method provided in the present application, where a plurality of wearable devices communicate with an electronic device through a wireless network, where the wireless network may be at least one of the following: Wi-Fi technology, Bluetooth technology, visible light communication technology, invisible light communication technology (infrared and ultraviolet communication technology), and the like.
Based on the electronic device described in fig. 1A and the system network architecture shown in fig. 1B, the following functions may be implemented:
the heart rate sensor is used for acquiring first heart rate data;
the communication circuit 120 is configured to obtain at least one second heart rate data sent by the at least one wearable device, where each wearable device corresponds to one second heart rate data;
the processing circuit is configured to match the first heart rate data with the at least one second heart rate data to obtain target second heart rate data successfully matched with the first heart rate data;
the processing circuit is further specifically configured to obtain a control instruction;
the communication circuit 120 is further specifically configured to send the control instruction to a target wearable device corresponding to the target second heart rate data.
It can be seen that, the electronic device described in the embodiment of the present application obtains the first heart rate data through the heart rate sensor, obtains the at least one second heart rate data sent by the at least one wearable device, and each wearable device corresponds to one second heart rate data, matches the first heart rate data with the at least one second heart rate data, obtains the target second heart rate data successfully matched with the first heart rate data, obtains the control instruction, and sends the control instruction to the target wearable device corresponding to the target second heart rate data, so that when the electronic device is connected to a plurality of wearable devices, the wearable device close to the heart rate data of the electronic device is determined, and the wearable device is subjected to play control operation, thereby improving control accuracy and improving user experience.
In one possible example, in terms of the fetch control instruction, the processing circuit is specifically configured to:
determining a target playing control parameter corresponding to the target second heart rate data according to a preset mapping relation between the heart rate data and the playing control parameter;
and generating the control instruction according to the target playing control parameter.
In one possible example, in the obtaining of the at least one second heart rate data sent by the at least one wearable device, the communication circuit 120 is specifically configured to:
acquiring holding data of the electronic equipment;
when the holding data meet a first preset condition, sending a heart rate acquisition request to each wearable device in the at least one wearable device, wherein the heart rate acquisition request is used for requesting the wearable device to perform heart rate detection, and sending detected heart rate data to the electronic device;
receiving at least one second heart rate data transmitted by the at least one wearable device.
In one possible example, the communication circuit 120 is further specifically configured to:
acquiring an electric quantity value of each wearable device in the at least one wearable device to obtain at least one electric quantity value;
the processing circuit is further specifically configured to:
determining a heart rate detection frequency corresponding to each electric quantity value in the at least one electric quantity value according to a preset mapping relation between the electric quantity and the heart rate detection frequency to obtain at least one target heart rate detection frequency;
in the aspect of sending a heart rate obtaining request to each wearable device of the at least one wearable device, where the heart rate obtaining request is used to request the wearable device to perform heart rate detection, the communication circuit 120 is further specifically configured to:
sending a heart rate acquisition request to each wearable device in the at least one wearable device, wherein the heart rate acquisition request is used for requesting the wearable device to perform heart rate detection according to the corresponding target heart rate detection frequency.
In one possible example, the display screen is configured to display a play control interface, where the play control interface is in a screen lock state, and a touch parameter for the play control interface is acquired;
in the aspect of acquiring the first heart rate data by the heart rate sensor, the heart rate sensor is specifically configured to:
and when the touch parameter meets a second preset condition, executing the step of acquiring first heart rate data through the heart rate sensor.
Based on the electronic device described in fig. 1A and the system network architecture diagram shown in fig. 1B, the following device control method is further executed, specifically as follows:
the heart rate sensor acquires first heart rate data;
the communication circuit 120 obtains at least one second heart rate data sent by the at least one wearable device, where each wearable device corresponds to one second heart rate data;
the processing circuit matches the first heart rate data with the at least one second heart rate data to obtain target second heart rate data successfully matched with the first heart rate data;
the processing circuit acquires a control instruction;
the communication circuit 120 sends the control instruction to a target wearable device corresponding to the target second heart rate data.
Referring to fig. 1C, fig. 1C is a schematic flow chart illustrating an apparatus control method according to an embodiment of the present disclosure. The method for controlling the electronic device is applied to the electronic device shown in fig. 1A and the system network architecture diagram shown in fig. 1B, the electronic device comprises a heart rate sensor, the electronic device is connected with at least one wearable device, and the method for controlling the electronic device comprises the following steps.
101. First heart rate data is acquired by the heart rate sensor.
Wherein, the first heart rate data may be at least one of the following: heart rate, heart rate amplitude, electrocardiogram, etc., without limitation. The electronic device can control the heart rate sensor to acquire the first heart rate data according to a preset frequency, wherein the preset frequency is set by a user or is set by a system in a default mode.
Optionally, in step 101, acquiring the first heart rate data by the heart rate sensor may include the following steps:
11. displaying a play control interface on a display screen of the electronic equipment, wherein the play control interface is in a screen locking state, and acquiring a touch parameter aiming at the play control interface;
12. and when the touch parameter meets a second preset condition, executing the step of acquiring first heart rate data through the heart rate sensor.
The touch parameter may be at least one of the following: the touch force of the display screen of the touch electronic device, the touch duration of the display screen of the touch electronic device, the touch area of the display screen of the touch electronic device, and the like are not limited herein. The method includes the steps that a play control interface is displayed on a display screen of the electronic device, the play control interface is in a screen locking state, at this time, a user does not unlock the electronic device, but carries out touch parameters for the play control interface, then the touch parameters for the play control interface can be obtained, the second preset condition can be set by the user or is set by a system in a default mode, for example, the second preset condition is that: the touch pressing is in a preset touch pressure range, the preset touch pressure range can be set by a user or defaulted by a system, and for example, the second preset condition is as follows: the touch area is within a preset touch area range, the preset touch area range can be set by a user or defaulted by a system, and the like, if the touch parameter meets a second preset condition, the step 101 is executed, otherwise, the step 101 is not executed, and thus, false touch prevention can be realized to a certain extent.
102. And acquiring at least one second heart rate data sent by the at least one wearable device, wherein each wearable device corresponds to one second heart rate data.
Wherein, the second heart rate data may be at least one of: heart rate, heart rate amplitude, electrocardiogram, etc., without limitation. In the embodiment of the application, a plurality of wearable devices can be connected to electronic equipment, and each wearable device all can set up heart rate sensor, and heart rate sensor is used for gathering user's rhythm of the heart data to give electronic equipment with the rhythm of the heart data transmission of gathering, after electronic equipment is connected with a plurality of wearable devices, can realize data transmission, can realize that electronic equipment carries out wireless charging etc. to wearable device.
Optionally, the step 102 of obtaining at least one second heart rate data sent by the at least one wearable device may include the following data:
21. acquiring holding data of the electronic equipment;
22. when the holding data meet a first preset condition, sending a heart rate acquisition request to each wearable device in the at least one wearable device, wherein the heart rate acquisition request is used for requesting the wearable device to perform heart rate detection, and sending detected heart rate data to the electronic device;
23. receiving at least one second heart rate data transmitted by the at least one wearable device.
Wherein, the pressure sensor detects holding data for holding the electronic device, and the holding data may include at least one of the following: the holding posture, holding strength, holding duration, holding area, etc., are not limited herein. The electronic equipment can acquire the holding data of the electronic equipment and match the holding data with the preset holding data, if the holding data is successfully matched with the preset holding data, confirming that the holding data meets the first preset condition, wherein the preset holding data can be held in the electronic device in advance, the shell of the electronic device can cover the pressure sensor array, taking the holding gesture as an example, when a user holds the electronic equipment, the holding posture of the electronic equipment can be detected, when the holding posture is matched with the preset holding posture, the holding data is confirmed to meet the first preset condition, when the holding data meets a first preset condition, the electronic device may send a heart rate acquisition request to each wearable device of the at least one wearable device, the heart rate acquisition request requesting the wearable device to perform heart rate detection, and sending the detected heart rate data to the electronic device, and receiving, by the electronic device, at least one second heart rate data sent by the at least one wearable device.
Further optionally, between the step 21 and the step 22, the following steps may be further included:
a1, obtaining an electric quantity value of each wearable device in the at least one wearable device to obtain at least one electric quantity value;
a2, determining a heart rate detection frequency corresponding to each electric quantity value in the at least one electric quantity value according to a preset mapping relation between the electric quantity and the heart rate detection frequency to obtain at least one target heart rate detection frequency;
in step 22, the sending a heart rate obtaining request to each wearable device of the at least one wearable device, where the heart rate obtaining request is used to request the wearable device to perform heart rate detection, may be implemented as follows:
sending a heart rate acquisition request to each wearable device in the at least one wearable device, wherein the heart rate acquisition request is used for requesting the wearable device to perform heart rate detection according to the corresponding target heart rate detection frequency.
The electronic device can acquire an electric quantity value of each wearable device in at least one wearable device to obtain at least one electric quantity value, a mapping relation between preset electric quantity and heart rate detection frequency can be prestored in the electronic device, furthermore, the heart rate detection frequency corresponding to each electric quantity value in at least one electric quantity value is determined according to the mapping relation, at least one target heart rate detection frequency is obtained, a heart rate acquisition request is sent to each wearable device in at least one wearable device, the heart rate acquisition request is used for requesting the wearable device to perform heart rate detection according to the corresponding target heart rate detection frequency, so that if the wearable device is in different electric quantities, heart rate detection can be performed according to the corresponding frequency, and the power consumption of the wearable device can be saved to a certain extent.
103. And matching the first heart rate data with the at least one second heart rate data to obtain target second heart rate data successfully matched with the first heart rate data.
The electronic device may match the first heart rate data with at least one second heart rate data, for example, when the first heart rate data is a first heart rate number and the second heart rate data is a second heart rate number, the first heart rate number may be obtained, and a second heart rate number closest to the first heart rate number is selected from the plurality of second heart rate numbers, for example, when the first heart rate data is a first electrocardiogram and the second heart rate data is a second electrocardiogram, the first electrocardiogram is matched with the at least one second electrocardiogram to obtain a target second electrocardiogram.
Optionally, the step 103 of matching the first heart rate data with the at least one second heart rate data may include the following steps:
31. matching the first heartbeat frequency with a second heartbeat frequency of second heart rate data i, wherein the second heart rate data i is any one of the at least one second heart rate data;
32. matching the first electrocardiogram with a second electrocardiogram of the second heart rate data i;
33. and when the first heartbeat frequency is successfully matched with the second heartbeat frequency of the second heart rate data i and the electrocardiogram of the first electrocardiogram and the second heart rate data i is successfully matched, confirming that the first heart rate data is successfully matched with the second heart rate data i.
And when the first heart rate data comprises the heart beat frequency and the electrocardiogram and both the heart beat frequency and the electrocardiogram in the second heart rate data are required to be successfully matched, the first heart rate data and the second heart rate data are confirmed to be successfully matched.
Optionally, in the step 32, matching the first electrocardiogram with the second electrocardiogram of the second heart rate data i may include the following steps:
321. determining a plurality of extreme points of a second electrocardiogram of the second heart rate data i;
322. taking the mean square error of the extreme points as a first reference emotion value;
323. determining a target emotion corresponding to the first reference emotion value according to a preset mapping relation between emotion values and emotions;
324. and when the target emotion is the same as the emotion corresponding to the first electrocardiogram, confirming that the first electrocardiogram is successfully matched with the second electrocardiogram of the second heart rate data i.
Wherein the emotion may include at least one of the following types: happiness, anger, sadness, happiness, tiredness, melancholia, depression, irritability, fear, worry, etc., to which the present application does not intend to be limited. The method can extract a plurality of extreme points of the electrocardiogram, the extreme points can comprise a maximum value and a minimum value, the mean square error of the extreme points can be determined, the mean square error expresses emotion fluctuation of a user to a certain extent, therefore, the mean square error is used as a first reference emotion value, the mapping relation between the emotion value and the emotion can be stored in the electronic equipment in advance, and further, a first emotion corresponding to the first reference emotion value can be determined according to the mapping relation.
By way of example, how to obtain the first reference sentiment value is explained in detail below.
Assuming that there are the following 5 extreme points A, B, C, D and E, then the average of the 5 extreme points
Can be as follows:
further, the mean square error σ of the extreme point can be obtained.
It should be noted that the mean square error σ obtained as described above may be used as the first reference emotion value.
The mapping relationship between emotion value and emotion is described in detail below in conjunction with table 1. As shown in table 1.
TABLE 1
Wherein σ represents an emotional value, a, b, c, d, e, f, g, h, i, k, l are all constants, and b ≦ c, d ≦ e, f ≦ g, h ≦ i, and j ≦ k. For example, when a ≦ σ ≦ b, the emotion corresponding to the electrocardiogram of the user at that time is determined as a favorite.
104. And acquiring a control instruction, and sending the control instruction to a target wearable device corresponding to the target second heart rate data.
Wherein the control instruction can be input by a user or generated by the electronic device according to the heart rate data.
Optionally, the step 104 of obtaining the control command may include the following steps:
41. determining a target playing control parameter corresponding to the target second heart rate data according to a preset mapping relation between the heart rate data and the playing control parameter;
42. and generating the control instruction according to the target playing control parameter.
Wherein, the playing control parameter may be at least one of the following: volume parameter, play speed parameter, sound effect parameter, track switching parameter, pause parameter, etc. The electronic equipment prestores a mapping relation between preset heart rate data and playing control parameters, further determines target playing control parameters corresponding to target second heart rate data, generates control instructions according to the target playing control parameters, and controls corresponding wearable equipment to output audio through the control instructions.
For example, when the electronic device is connected to a plurality of wearable devices, if the user wears a wearable device, the user can determine which wearable device is worn by the user by detecting the heart rate of the wearable device and the heart rate of the electronic device and comparing the heart rates, thereby realizing the play control of the user on a single wearable device.
It can be seen that the device control method described in the embodiment of the present application is applied to an electronic device, and is implemented by acquiring first heart rate data through a heart rate sensor, acquiring at least one second heart rate data sent by at least one wearable device, where each wearable device corresponds to one second heart rate data, matching the first heart rate data with the at least one second heart rate data, obtaining target second heart rate data successfully matched with the first heart rate data, acquiring a control instruction, and sending the control instruction to a target wearable device corresponding to the target second heart rate data, so that when the electronic device is connected to multiple wearable devices, a wearable device close to the heart rate data of the electronic device is determined, and the wearable device is subjected to play control operation, so that control accuracy is improved, and user experience is improved.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating an apparatus control method according to an embodiment of the present disclosure. The method for controlling the electronic device is applied to the electronic device shown in fig. 1A and the system network architecture diagram shown in fig. 1B, the electronic device comprises a heart rate sensor, the electronic device is connected with at least one wearable device, and the method for controlling the electronic device comprises the following steps.
201. First heart rate data is acquired by the heart rate sensor.
202. And acquiring holding data of the electronic equipment.
203. And when the holding data meet a first preset condition, acquiring an electric quantity value of each wearable device in the at least one wearable device to obtain at least one electric quantity value.
204. And determining the heart rate detection frequency corresponding to each electric quantity value in the at least one electric quantity value according to a preset mapping relation between the electric quantity and the heart rate detection frequency to obtain at least one target heart rate detection frequency.
205. And sending a heart rate acquisition request to each wearable device in the at least one wearable device, wherein the heart rate acquisition request is used for requesting the wearable device to perform heart rate detection according to the corresponding target heart rate detection frequency, and sending the detected heart rate data to the electronic device.
206. Receiving at least one second heart rate data sent by the at least one wearable device, one second heart rate data for each wearable device.
207. And matching the first heart rate data with the at least one second heart rate data to obtain target second heart rate data successfully matched with the first heart rate data.
208. And acquiring a control instruction, and sending the control instruction to a target wearable device corresponding to the target second heart rate data.
The detailed description of the steps 201 to 208 may refer to the device control method described in fig. 1C, and is not repeated herein.
It can be seen that the device control method described in the foregoing embodiment of the present application is applied to an electronic device, and includes obtaining first heart rate data by a heart rate sensor, obtaining holding data of the electronic device, obtaining an electric quantity value of each wearable device in at least one wearable device when the holding data meets a first preset condition, obtaining at least one electric quantity value, determining a heart rate detection frequency corresponding to each electric quantity value in the at least one electric quantity value according to a mapping relationship between preset electric quantity and heart rate detection frequencies, obtaining at least one target heart rate detection frequency, sending a heart rate obtaining request to each wearable device in the at least one wearable device, where the heart rate obtaining request is used to request the wearable device to perform heart rate detection according to the corresponding target heart rate detection frequency, sending the detected heart rate data to the electronic device, and receiving at least one second heart rate data sent by the at least one wearable device, each wearable device corresponds a second heart rate data, match first heart rate data with at least one second heart rate data, obtain the target second heart rate data that matches successfully with first heart rate data, acquire control command, and send control command to the wearable device of target that target second heart rate data corresponds, thereby, can be when a plurality of wearable devices are connected to electronic equipment, confirm the wearable device similar with electronic equipment's heart rate data, and play control operation to this wearable device, control accuracy has been promoted, user experience has been promoted.
Referring to fig. 3, fig. 3 is a schematic structural diagram of another electronic device disclosed in the embodiment of the present application, and as shown in the drawing, the electronic device includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for performing the following steps:
acquiring first heart rate data by the heart rate sensor;
acquiring at least one second heart rate data sent by the at least one wearable device, wherein each wearable device corresponds to one second heart rate data;
matching the first heart rate data with the at least one second heart rate data to obtain target second heart rate data successfully matched with the first heart rate data;
and acquiring a control instruction, and sending the control instruction to a target wearable device corresponding to the target second heart rate data.
In one possible example, in terms of the acquisition control instructions, the program includes instructions for performing the steps of:
determining a target playing control parameter corresponding to the target second heart rate data according to a preset mapping relation between the heart rate data and the playing control parameter;
and generating the control instruction according to the target playing control parameter.
In one possible example, in said obtaining at least one second heart rate data transmitted by said at least one wearable device, the above procedure comprises instructions for performing the following steps:
acquiring holding data of the electronic equipment;
when the holding data meet a first preset condition, sending a heart rate acquisition request to each wearable device in the at least one wearable device, wherein the heart rate acquisition request is used for requesting the wearable device to perform heart rate detection, and sending detected heart rate data to the electronic device;
receiving at least one second heart rate data transmitted by the at least one wearable device.
In one possible example, the program further includes instructions for performing the steps of:
acquiring an electric quantity value of each wearable device in the at least one wearable device to obtain at least one electric quantity value;
determining a heart rate detection frequency corresponding to each electric quantity value in the at least one electric quantity value according to a preset mapping relation between the electric quantity and the heart rate detection frequency to obtain at least one target heart rate detection frequency;
the sending a heart rate obtaining request to each wearable device of the at least one wearable device, where the heart rate obtaining request is used to request the wearable device to perform heart rate detection, and the method includes:
sending a heart rate acquisition request to each wearable device in the at least one wearable device, wherein the heart rate acquisition request is used for requesting the wearable device to perform heart rate detection according to the corresponding target heart rate detection frequency.
In one possible example, in said acquiring first heart rate data by said heart rate sensor, the above program comprises instructions for performing the steps of:
displaying a play control interface on a display screen of the electronic equipment, wherein the play control interface is in a screen locking state, and acquiring a touch parameter aiming at the play control interface;
and when the touch parameter meets a second preset condition, executing the step of acquiring first heart rate data through the heart rate sensor.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives 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.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an apparatus control device disclosed in an embodiment of the present application, and the apparatus control device is applied to an electronic device, where the electronic device includes a heart rate sensor, and the electronic device is further connected to at least one wearable device, and the apparatus includes: the first obtaining unit 401, the second obtaining unit 402, the matching unit 403, and the sending unit 404 are as follows:
a first obtaining unit 401, configured to obtain first heart rate data;
a second obtaining unit 402, configured to obtain at least one second heart rate data sent by the at least one wearable device, where each wearable device corresponds to one second heart rate data;
a matching unit 403, configured to match the first heart rate data with the at least one second heart rate data, so as to obtain target second heart rate data successfully matched with the first heart rate data;
a sending unit 404, configured to obtain a control instruction, and send the control instruction to a target wearable device corresponding to the target second heart rate data.
It can be seen that the device control apparatus described in the embodiment of the present application is applied to an electronic device, and obtains first heart rate data through a heart rate sensor, obtains at least one second heart rate data sent by at least one wearable device, where each wearable device corresponds to one second heart rate data, matches the first heart rate data with the at least one second heart rate data, obtains a target second heart rate data successfully matched with the first heart rate data, obtains a control instruction, and sends the control instruction to a target wearable device corresponding to the target second heart rate data, so that when the electronic device is connected to multiple wearable devices, a wearable device close to the heart rate data of the electronic device can be determined, and the wearable device is subjected to play control operation, so that control accuracy is improved, and user experience is improved.
In a possible example, in terms of the obtaining control instruction, the sending unit 404 is specifically configured to:
determining a target playing control parameter corresponding to the target second heart rate data according to a preset mapping relation between the heart rate data and the playing control parameter;
and generating the control instruction according to the target playing control parameter.
In one possible example, in the aspect of the acquiring at least one second heart rate data sent by the at least one wearable device, the second acquiring unit 402 is specifically configured to:
acquiring holding data of the electronic equipment;
when the holding data meet a first preset condition, sending a heart rate acquisition request to each wearable device in the at least one wearable device, wherein the heart rate acquisition request is used for requesting the wearable device to perform heart rate detection, and sending detected heart rate data to the electronic device;
receiving at least one second heart rate data transmitted by the at least one wearable device.
In a possible example, the second obtaining unit 402 is further specifically configured to:
acquiring an electric quantity value of each wearable device in the at least one wearable device to obtain at least one electric quantity value; determining the heart rate detection frequency corresponding to each electric quantity value in the at least one electric quantity value according to a preset mapping relation between the electric quantity and the heart rate detection frequency to obtain at least one target heart rate detection frequency;
in the aspect of sending a heart rate obtaining request to each wearable device of the at least one wearable device, where the heart rate obtaining request is used to request the wearable device to perform heart rate detection, the second obtaining unit 402 is specifically configured to:
sending a heart rate acquisition request to each wearable device in the at least one wearable device, wherein the heart rate acquisition request is used for requesting the wearable device to perform heart rate detection according to the corresponding target heart rate detection frequency.
In one possible example, in the aspect of acquiring the first heart rate data by the heart rate sensor, the first acquiring unit 401 is specifically configured to:
displaying a play control interface on a display screen of the electronic equipment, wherein the play control interface is in a screen locking state, and acquiring a touch parameter aiming at the play control interface;
and when the touch parameter meets a second preset condition, executing the step of acquiring first heart rate data through the heart rate sensor.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
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 of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific implementation and application scope, and in view of the above, the content of the present specification should not be construed as a limitation to the present application.