[go: up one dir, main page]

CN108958481B - Equipment control method and related product - Google Patents

Equipment control method and related product Download PDF

Info

Publication number
CN108958481B
CN108958481B CN201810659485.3A CN201810659485A CN108958481B CN 108958481 B CN108958481 B CN 108958481B CN 201810659485 A CN201810659485 A CN 201810659485A CN 108958481 B CN108958481 B CN 108958481B
Authority
CN
China
Prior art keywords
heart rate
rate data
wearable device
target
electronic device
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.)
Expired - Fee Related
Application number
CN201810659485.3A
Other languages
Chinese (zh)
Other versions
CN108958481A (en
Inventor
林尚波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810659485.3A priority Critical patent/CN108958481B/en
Publication of CN108958481A publication Critical patent/CN108958481A/en
Application granted granted Critical
Publication of CN108958481B publication Critical patent/CN108958481B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/01Indexing scheme relating to G06F3/01
    • G06F2203/011Emotion or mood input determined on the basis of sensed human body parameters such as pulse, heart rate or beat, temperature of skin, facial expressions, iris, voice pitch, brain activity patterns

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)

Abstract

本申请公开了一种设备控制方法及相关产品,所述电子设备包括处理电路,以及与所述处理电路连接的心率传感器和通信电路,所述电子设备还连接于至少一个可穿戴设备,所述方法包括:通过所述心率传感器获取第一心率数据;获取所述至少一个可穿戴设备发送的至少一个第二心率数据,每一可穿戴设备对应一个第二心率数据;将所述第一心率数据与所述至少一个第二心率数据进行匹配,得到与所述第一心率数据匹配成功的目标第二心率数据;获取控制指令,并向所述目标第二心率数据对应的目标可穿戴设备发送所述控制指令。采用本申请实施例可在电子设备连接多个可穿戴设备时,确定与电子设备的心率数据相近的可穿戴设备,并对该可穿戴设备进行播放控制操作,提升控制精度。

Figure 201810659485

The present application discloses a device control method and related products. The electronic device includes a processing circuit, a heart rate sensor and a communication circuit connected to the processing circuit, and the electronic device is also connected to at least one wearable device. The method includes: acquiring first heart rate data through the heart rate sensor; acquiring at least one second heart rate data sent by the at least one wearable device, each wearable device corresponding to one second heart rate data; Matching with the at least one second heart rate data to obtain target second heart rate data that is successfully matched with the first heart rate data; acquiring a control instruction, and sending the target wearable device corresponding to the target second heart rate data the control command. Using the embodiments of the present application, when the electronic device is connected to multiple wearable devices, a wearable device with similar heart rate data to the electronic device can be determined, and a playback control operation can be performed on the wearable device, thereby improving the control accuracy.

Figure 201810659485

Description

Equipment control method and related product
Technical Field
The present application relates to the field of electronic technologies, and in particular, to an apparatus control method and a related product.
Background
With the maturity of wireless technology, wireless earphones are connected with electronic devices such as mobile phones through wireless technology in more and more scenes. After the wireless earphone is connected with the electronic equipment, people can realize various functions such as listening to music, making a call and the like through the wireless earphone. However, since the electronic device can be connected to a plurality of wireless headsets, how to realize the precise control of the electronic device on the wireless headsets needs to be solved.
Disclosure of Invention
The embodiment of the application provides an equipment control method and a related product, which can realize that electronic equipment can accurately control a wireless earphone.
In a first aspect, an embodiment of the present application provides an electronic device, the electronic device including a processing circuit, and a heart rate sensor and a communication circuit connected to the processing circuit, the electronic device further being connected to at least one wearable device, the method including:
the heart rate sensor is used for acquiring first heart rate data;
the communication circuit is configured to acquire at least one piece of second heart rate data sent by the at least one wearable device, where each piece of wearable device corresponds to one piece of 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 is further specifically configured to send the control instruction to a target wearable device corresponding to the target second heart rate data.
In a second aspect, an embodiment of the present application provides a device control method, which is applied to an electronic device, the electronic device including a heart rate sensor, the electronic device being connected to at least one wearable device, the method including:
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 a third aspect, an embodiment of the present application provides an apparatus control device, which is applied to an electronic device, where the electronic device includes a heart rate sensor, the electronic device is connected to at least one wearable device, and the apparatus includes:
a first acquisition unit configured to acquire first heart rate data;
the second acquisition unit is used for acquiring at least one piece of second heart rate data sent by the at least one piece of wearable equipment, and each piece of wearable equipment corresponds to one piece of second heart rate data;
the matching unit is used for 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 the sending unit is used for obtaining a control instruction and sending the control instruction to the target wearable device corresponding to the target second heart rate data.
In a fourth aspect, an embodiment of the present application provides an electronic device, including 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 executing the steps of any of the methods in the second aspect of the embodiment of the present application.
In a fifth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods in the second aspect of the present application.
In a sixth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps described in any one of the methods of the second aspect of the present application. The computer program product may be a software installation package.
It can be seen that the device control method and the related product described in the embodiments of the present application are applied to an electronic device, and are configured to acquire first heart rate data by using a heart rate sensor, acquire 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, match the first heart rate data with the at least one second heart rate data, obtain a target second heart rate data successfully matched with the first heart rate data, acquire a control instruction, and send 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, thereby improving control accuracy and 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 used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
fig. 1B is a network architecture diagram for implementing a device control method according to an embodiment of the present application;
fig. 1C is a schematic flow chart of an apparatus control method disclosed in the embodiments of the present application;
FIG. 2 is a schematic flow chart diagram of another apparatus control method disclosed in the embodiments of the present application;
fig. 3 is a schematic structural diagram of another electronic device disclosed in the embodiments of the present application;
fig. 4 is a schematic structural diagram of an apparatus control device disclosed in an embodiment of the present application.
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
Figure BDA0001706372050000121
Can be as follows:
Figure BDA0001706372050000122
further, the mean square error σ of the extreme point can be obtained.
Figure BDA0001706372050000123
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
Figure BDA0001706372050000124
Figure BDA0001706372050000131
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.

Claims (13)

1.一种电子设备,其特征在于,所述电子设备包括处理电路,以及与所述处理电路连接的心率传感器和通信电路,所述电子设备还连接于至少一个可穿戴设备,所述电子设备包括:1. An electronic device, characterized in that the electronic device comprises a processing circuit, a heart rate sensor and a communication circuit connected to the processing circuit, the electronic device is also connected to at least one wearable device, and the electronic device is include: 所述心率传感器,用于获取第一心率数据;the heart rate sensor for acquiring first heart rate data; 所述通信电路,用于获取所述至少一个可穿戴设备发送的至少一个第二心率数据,每一可穿戴设备对应一个第二心率数据;the communication circuit, configured to acquire 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 that is successfully matched with the first heart rate data, including: if the first heart rate data The heart rate data is the first heart rate data, and the second heart rate data is the second heart rate data, then the second heart rate data that is closest to the first heart rate data in the at least one second heart rate data is determined as the the target second heart rate data that is successfully matched with the first heart rate data; 所述处理电路,还具体用于获取控制指令;The processing circuit is also specifically used to obtain control instructions; 所述通信电路,还具体用于向所述目标第二心率数据对应的目标可穿戴设备发送所述控制指令。The communication circuit is further specifically configured to send the control instruction to the target wearable device corresponding to the target second heart rate data. 2.根据权利要求1所述的电子设备,其特征在于,在所述获取控制指令方面,所述处理电路具体用于:2. The electronic device according to claim 1, characterized in that, in the aspect of acquiring the control instruction, the processing circuit is specifically used for: 按照预设的心率数据与播放控制参数之间的映射关系,确定所述目标第二心率数据对应的目标播放控制参数;According to the preset mapping relationship between the heart rate data and the playback control parameter, determine the target playback control parameter corresponding to the target second heart rate data; 依据所述目标播放控制参数生成所述控制指令。The control instruction is generated according to the target playback control parameter. 3.根据权利要求1或2所述的电子设备,其特征在于,在所述获取所述至少一个可穿戴设备发送的至少一个第二心率数据方面,所述通信电路具体用于:3. The electronic device according to claim 1 or 2, wherein, in the aspect of acquiring at least one second heart rate data sent by the at least one wearable device, the communication circuit is specifically configured to: 获取所述电子设备的握持数据;obtaining the holding data of the electronic device; 在所述握持数据满足第一预设条件时,向所述至少一个可穿戴设备中每一可穿戴设备发送心率获取请求,所述心率获取请求用于请求可穿戴设备进行心率检测,并将检测得到的心率数据发送给所述电子设备;When the holding data satisfies the first preset condition, send a heart rate acquisition request to each wearable device in the at least one wearable device, where the heart rate acquisition request is used to request the wearable device to perform heart rate detection, and sending the detected heart rate data to the electronic device; 接收由所述至少一个可穿戴设备发送的至少一个第二心率数据。At least one second heart rate data sent by the at least one wearable device is received. 4.根据权利要求3所述的电子设备,其特征在于,所述通信电路还具体用于:4. The electronic device according to claim 3, wherein the communication circuit is further specifically used for: 获取所述至少一个可穿戴设备中每一可穿戴设备的电量值,得到至少一个电量值;acquiring the power value of each wearable device in the at least one wearable device to obtain at least one power value; 所述处理电路还具体用于:The processing circuit is also specifically used for: 按照预设的电量与心率检测频率之间的映射关系,确定所述至少一个电量值中每一电量值对应的心率检测频率,得到至少一个目标心率检测频率;Determine the heart rate detection frequency corresponding to each power value in the at least one power value according to the preset mapping relationship between the power and the heart rate detection frequency, and obtain at least one target heart rate detection frequency; 在所述向所述至少一个可穿戴设备中每一可穿戴设备发送心率获取请求,所述心率获取请求用于请求可穿戴设备进行心率检测方面,所述通信电路还具体用于:In the aspect of sending a heart rate acquisition request to each of the at least one wearable device, where the heart rate acquisition request is used to request the wearable device to perform heart rate detection, the communication circuit is further specifically used for: 向所述至少一个可穿戴设备中每一可穿戴设备发送心率获取请求,所述心率获取请求用于请求可穿戴设备依据对应的目标心率检测频率进行心率检测。A heart rate acquisition request is sent to each of the at least one wearable device, where the heart rate acquisition request is used to request the wearable device to perform heart rate detection according to a corresponding target heart rate detection frequency. 5.根据权利要求1或2所述的电子设备,其特征在于,所述电子设备还包括显示屏;5. The electronic device according to claim 1 or 2, wherein the electronic device further comprises a display screen; 所述显示屏,用于显示播放控制界面,所述播放控制界面处于锁屏状态,获取针对所述播放控制界面的触控参数;The display screen is used to display a playback control interface, the playback control interface is in a locked screen state, and touch parameters for the playback control interface are acquired; 在所述通过所述心率传感器获取第一心率数据方面,所述心率传感器具体用于:In the aspect of obtaining the first heart rate data through the heart rate sensor, the heart rate sensor is specifically used for: 在所述触控参数满足第二预设条件时,执行所述通过所述心率传感器获取第一心率数据的步骤。When the touch parameter satisfies the second preset condition, the step of acquiring the first heart rate data by using the heart rate sensor is performed. 6.一种设备控制方法,其特征在于,应用于电子设备,所述电子设备包括心率传感器,所述电子设备连接于至少一个可穿戴设备,所述方法包括:6. A device control method, characterized in that, applied to an electronic device, the electronic device comprising a heart rate sensor, the electronic device being connected to at least one wearable device, the method comprising: 通过所述心率传感器获取第一心率数据;acquiring first heart rate data through the heart rate sensor; 获取所述至少一个可穿戴设备发送的至少一个第二心率数据,每一可穿戴设备对应一个第二心率数据;acquiring 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; 将所述第一心率数据与所述至少一个第二心率数据进行匹配,得到与所述第一心率数据匹配成功的目标第二心率数据,包括:若所述第一心率数据为第一心跳次数,所述第二心率数据为第二心率次数,则将所述至少一个第二心率数据中与所述第一心率数据最接近的第二心率数据,确定为与所述第一心率数据匹配成功的目标第二心率数据;Matching the first heart rate data with the at least one second heart rate data to obtain target second heart rate data that is successfully matched with the first heart rate data, including: if the first heart rate data is the first number of heartbeats , the second heart rate data is the second heart rate number, then the second heart rate data that is closest to the first heart rate data in the at least one second heart rate data is determined to be successfully matched with the first heart rate data target second heart rate data; 获取控制指令,并向所述目标第二心率数据对应的目标可穿戴设备发送所述控制指令。Acquire a control instruction, and send the control instruction to the target wearable device corresponding to the target second heart rate data. 7.根据权利要求6所述的方法,其特征在于,所述获取控制指令,包括:7. The method according to claim 6, wherein the obtaining a control instruction comprises: 按照预设的心率数据与播放控制参数之间的映射关系,确定所述目标第二心率数据对应的目标播放控制参数;According to the preset mapping relationship between the heart rate data and the playback control parameter, determine the target playback control parameter corresponding to the target second heart rate data; 依据所述目标播放控制参数生成所述控制指令。The control instruction is generated according to the target playback control parameter. 8.根据权利要求6或7所述的方法,其特征在于,所述获取所述至少一个可穿戴设备发送的至少一个第二心率数据,包括:The method according to claim 6 or 7, wherein the acquiring at least one second heart rate data sent by the at least one wearable device comprises: 获取所述电子设备的握持数据;obtaining the holding data of the electronic device; 在所述握持数据满足第一预设条件时,向所述至少一个可穿戴设备中每一可穿戴设备发送心率获取请求,所述心率获取请求用于请求可穿戴设备进行心率检测,并将检测得到的心率数据发送给所述电子设备;When the holding data satisfies the first preset condition, send a heart rate acquisition request to each wearable device in the at least one wearable device, where the heart rate acquisition request is used to request the wearable device to perform heart rate detection, and sending the detected heart rate data to the electronic device; 接收由所述至少一个可穿戴设备发送的至少一个第二心率数据。At least one second heart rate data sent by the at least one wearable device is received. 9.根据权利要求8所述的方法,其特征在于,所述方法还包括:9. The method according to claim 8, wherein the method further comprises: 获取所述至少一个可穿戴设备中每一可穿戴设备的电量值,得到至少一个电量值;acquiring the power value of each wearable device in the at least one wearable device to obtain at least one power value; 按照预设的电量与心率检测频率之间的映射关系,确定所述至少一个电量值中每一电量值对应的心率检测频率,得到至少一个目标心率检测频率;Determine the heart rate detection frequency corresponding to each power value in the at least one power value according to the preset mapping relationship between the power and the heart rate detection frequency, and obtain at least one target heart rate detection frequency; 所述向所述至少一个可穿戴设备中每一可穿戴设备发送心率获取请求,所述心率获取请求用于请求可穿戴设备进行心率检测,包括:The sending a heart rate acquisition request to each of the at least one wearable device, where the heart rate acquisition request is used to request the wearable device to perform heart rate detection, includes: 向所述至少一个可穿戴设备中每一可穿戴设备发送心率获取请求,所述心率获取请求用于请求可穿戴设备依据对应的目标心率检测频率进行心率检测。A heart rate acquisition request is sent to each of the at least one wearable device, where the heart rate acquisition request is used to request the wearable device to perform heart rate detection according to a corresponding target heart rate detection frequency. 10.根据权利要求6或7所述的方法,其特征在于,所述通过所述心率传感器获取第一心率数据,包括:10. The method according to claim 6 or 7, wherein the acquiring the first heart rate data through the heart rate sensor comprises: 在所述电子设备的显示屏上显示播放控制界面,所述播放控制界面处于锁屏状态,获取针对所述播放控制界面的触控参数;Displaying a playback control interface on the display screen of the electronic device, where the playback control interface is in a screen-locked state, and acquiring touch parameters for the playback control interface; 在所述触控参数满足第二预设条件时,执行所述通过所述心率传感器获取第一心率数据的步骤。When the touch parameter satisfies the second preset condition, the step of acquiring the first heart rate data by using the heart rate sensor is performed. 11.一种设备控制装置,其特征在于,应用于电子设备,所述电子设备包括心率传感器,所述电子设备连接于至少一个可穿戴设备,所述装置包括:11. A device control device, characterized in that it is applied to an electronic device, the electronic device comprises a heart rate sensor, the electronic device is connected to at least one wearable device, and the device comprises: 第一获取单元,用于获取第一心率数据;a first acquiring unit, configured to acquire first heart rate data; 第二获取单元,用于获取所述至少一个可穿戴设备发送的至少一个第二心率数据,每一可穿戴设备对应一个第二心率数据;a second acquiring unit, configured to acquire 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, configured to match the first heart rate data with the at least one second heart rate data to obtain target second heart rate data that is successfully matched with the first heart rate data, including: if the first heart rate data is the first heart rate data, and the second heart rate data is the second heart rate data, then the second heart rate data that is closest to the first heart rate data in the at least one second heart rate data is determined to be the same as the first heart rate data. The first heart rate data matches the target second heart rate data successfully; 发送单元,用于获取控制指令,向所述目标第二心率数据对应的目标可穿戴设备发送所述控制指令。A sending unit, configured to acquire a control instruction, and send the control instruction to the target wearable device corresponding to the target second heart rate data. 12.一种电子设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求6-10任一项所述的方法中的步骤的指令。12. An electronic device comprising a processor, a memory, a communication interface, and one or more programs, the one or more programs being stored in the memory and configured by the processor Executing, the program includes instructions for performing the steps in the method of any of claims 6-10. 13.一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求6-10任一项所述的方法。13. A computer-readable storage medium, characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 6-10.
CN201810659485.3A 2018-06-25 2018-06-25 Equipment control method and related product Expired - Fee Related CN108958481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810659485.3A CN108958481B (en) 2018-06-25 2018-06-25 Equipment control method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810659485.3A CN108958481B (en) 2018-06-25 2018-06-25 Equipment control method and related product

Publications (2)

Publication Number Publication Date
CN108958481A CN108958481A (en) 2018-12-07
CN108958481B true CN108958481B (en) 2021-06-01

Family

ID=64486267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810659485.3A Expired - Fee Related CN108958481B (en) 2018-06-25 2018-06-25 Equipment control method and related product

Country Status (1)

Country Link
CN (1) CN108958481B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114397956B (en) * 2021-12-07 2024-03-26 甄十信息科技(上海)有限公司 Wearing equipment use mode switching method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106328170A (en) * 2016-08-24 2017-01-11 深圳第蓝筹科技有限公司 Device and method for adjusting music according to motion requirement
CN106789065A (en) * 2016-12-09 2017-05-31 广州视源电子科技股份有限公司 Information verification method and system, wearable device and terminal
CN107528691A (en) * 2016-06-21 2017-12-29 中兴通讯股份有限公司 Communication security control method and wearable device
CN107734140A (en) * 2017-09-12 2018-02-23 江苏赛博宇华科技有限公司 A kind of anti-theft method of mobile phone and mobile phone antitheft system based on bracelet

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107528691A (en) * 2016-06-21 2017-12-29 中兴通讯股份有限公司 Communication security control method and wearable device
CN106328170A (en) * 2016-08-24 2017-01-11 深圳第蓝筹科技有限公司 Device and method for adjusting music according to motion requirement
CN106789065A (en) * 2016-12-09 2017-05-31 广州视源电子科技股份有限公司 Information verification method and system, wearable device and terminal
CN107734140A (en) * 2017-09-12 2018-02-23 江苏赛博宇华科技有限公司 A kind of anti-theft method of mobile phone and mobile phone antitheft system based on bracelet

Also Published As

Publication number Publication date
CN108958481A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN108810693B (en) A wearable device and device control device and method thereof
CN109040887B (en) Master-slave headset switching control method and related products
CN108966067B (en) Play control method and related product
CN108668009B (en) Input operation control method, device, terminal, earphone and readable storage medium
CN109040446B (en) Call processing method and related products
CN109068206A (en) Master-slave earphone switching control method and related product
CN108683968A (en) Display control method and related products
CN108540900B (en) Volume adjusting method and related product
CN109086027B (en) Audio signal playing method and terminal
CN108737923A (en) Volume adjusting method and related product
CN112261202A (en) Electronic equipment and control method and control device thereof
CN109067965B (en) Translation method, translation device, wearable device and storage medium
CN108897516B (en) A kind of wearable device volume adjustment method and related products
CN108769850A (en) Device control method and related products
CN115695620A (en) Smart glasses and control method and system thereof
CN109085985A (en) Sounding control method, device, electronic device and storage medium
CN108429956B (en) Wireless earphone, control operation method and related product
CN108670275A (en) Signal processing method and related product
CN107466387A (en) A kind of method and device for detecting touch manner
CN107484082A (en) Method for controlling audio signal transmission based on sound channel and user terminal
CN109039355B (en) Voice prompt method and related product
CN108668018B (en) Mobile terminal, volume control method and related products
CN108958481B (en) Equipment control method and related product
WO2021103999A1 (en) Method for recognizing touch operation and wearable apparatus
CN109040425B (en) Information processing 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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210601