CN110913301A - Earphone control method, earphone and readable storage medium - Google Patents

Earphone control method, earphone and readable storage medium Download PDF

Info

Publication number
CN110913301A
CN110913301A CN201911217140.3A CN201911217140A CN110913301A CN 110913301 A CN110913301 A CN 110913301A CN 201911217140 A CN201911217140 A CN 201911217140A CN 110913301 A CN110913301 A CN 110913301A
Authority
CN
China
Prior art keywords
earphone
skin texture
determining
headset
distance measuring
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.)
Pending
Application number
CN201911217140.3A
Other languages
Chinese (zh)
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.)
Goertek Inc
Original Assignee
Goertek Inc
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 Goertek Inc filed Critical Goertek Inc
Priority to CN201911217140.3A priority Critical patent/CN110913301A/en
Publication of CN110913301A publication Critical patent/CN110913301A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a control method of an earphone, which comprises the following steps: determining the state of the headset according to the distance detected by the first distance measuring device and the second distance measuring device; when the earphone is in a non-wearing state, acquiring a current operation mode of the earphone; and determining target data according to the operation mode, and sending the target data to a target terminal, wherein the target data comprises a control instruction or prompt information. The invention also discloses the earphone, the terminal and the computer readable storage medium, which achieve the effect of enriching the control function of the earphone.

Description

Earphone control method, earphone and readable storage medium
Technical Field
The invention relates to the technical field of electronic appliances, in particular to a control method of an earphone, the earphone and a computer readable storage medium.
Background
An earphone is an audio conversion unit that receives electrical signals from a media player or receiver and converts them into audible sound waves using a speaker proximate to the ear. However, when detecting whether a user is in a use state, the conventional headset generally detects whether the headset has been taken out of the headset storage device. Namely, when the earphone is placed in the accommodating device, the earphone is judged not to be in a use state, and the earphone is controlled to be powered off. Because the earphone can only be controlled to be switched on or switched off according to the detection result, the defect of single earphone control function exists.
Disclosure of Invention
The invention mainly aims to provide a control method of an earphone, the earphone and a computer readable storage medium, aiming at achieving the effect of enriching the control function of the earphone.
In order to achieve the above object, the present invention provides a method for controlling an earphone, including the steps of:
determining the state of the headset according to the distance detected by the first distance measuring device and the second distance measuring device;
when the earphone is in a non-wearing state, acquiring a current operation mode of the earphone;
and determining target data according to the operation mode, and sending the target data to a target terminal, wherein the target data comprises a control instruction or prompt information.
Optionally, the step of determining target data according to the operation mode includes:
when the running mode of the earphone is a playing mode, the target data is a playing stopping instruction;
and when the operation mode of the earphone is a call mode, the target data is call abnormity prompt information.
Optionally, the distance measuring device is an ultrasonic detection array, and after the step of determining whether the headset is in a non-wearing state according to the distance detected by the first distance measuring device and/or the second distance measuring device, the method further includes:
when the earphone is in a wearing state and receives an authentication request sent by the other terminal, determining the skin texture characteristics of the target object through the ultrasonic data collected by the ultrasonic detection array;
and sending the skin texture characteristics to the target terminal.
Optionally, the distance measuring device is an ultrasonic detection array, and after the step of determining whether the headset is in a non-wearing state according to the distance detected by the first distance measuring device and/or the second distance measuring device, the method further includes:
when the earphone is in a wearing state and receives an authentication request sent by the target terminal, determining the skin texture characteristics of the target object through ultrasonic data collected by the ultrasonic detection array;
comparing the skin texture features with pre-stored skin texture features;
and determining authority information according to the comparison result, and sending the authority information to the target terminal.
Optionally, the step of determining the permission information according to the comparison result and sending the permission information to the target terminal includes:
determining the similarity between the skin texture features and the pre-stored skin texture features according to the comparison result;
and determining the authority information according to the similarity, and sending the authority information to the target terminal.
Optionally, the distance measuring device is an ultrasonic detection array, and after the step of determining the state of the headset according to the distance detected by the first distance measuring device and the second distance measuring device, the method further includes:
when the earphone is in a wearing state, determining the skin texture characteristics of the target object through ultrasonic data acquired by the ultrasonic detection array;
comparing the skin texture features with pre-stored skin texture features, and determining the similarity between the skin texture features and the pre-stored skin texture features according to the comparison result;
and when the similarity is smaller than the preset similarity, outputting prompt information that the wearing object does not have the earphone using permission.
Optionally, after the step of determining the skin texture characteristics of the target object by using the ultrasonic data acquired by the ultrasonic detection array, the method further includes:
when the earphone is in a wearing state, determining whether the earphone is worn for the first time;
preserving the skin texture characteristics when worn for the first time;
and when the skin-care product is not worn for the first time, comparing the skin texture features with pre-stored skin texture features, and determining the similarity between the skin texture features and the pre-stored skin texture features according to the comparison result.
In addition, to achieve the above object, the present invention further provides an earphone comprising two distance measuring devices, a memory, a processor and a control program of the earphone stored in the memory and executable on the processor, wherein the distance measuring devices are located at different positions of the earphone and configured to detect a distance between the earphone and a target object, and the control program of the earphone, when executed by the processor, implements the steps of the control method of the earphone as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a control program of a headset, which when executed by a processor, implements the steps of the control method of the headset as described above.
According to the control method of the earphone, the earphone and the computer readable storage medium provided by the embodiment of the invention, the state of the earphone is determined according to the distance detected by the first distance measuring device and the second distance measuring device, when the earphone is in a non-wearing state, the current operation mode of the earphone is obtained, target data is determined according to the operation mode, and the target data is sent to a target terminal, wherein the target data comprises a control instruction or prompt information. Thus, the effect of enriching the control function of the earphone is achieved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a control method of an earphone according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of another embodiment of the present invention;
FIG. 4 is a schematic flow chart of another embodiment of the present invention;
fig. 5 is a flowchart illustrating a control method of a terminal according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
An earphone is an audio conversion unit that receives electrical signals from a media player or receiver and converts them into audible sound waves using a speaker proximate to the ear. However, when detecting whether a user is in a use state, the conventional headset generally detects whether the headset has been taken out of the headset storage device. Namely, when the earphone is placed in the accommodating device, the earphone is judged not to be in a use state, and the earphone is controlled to be powered off. Because the earphone can only be controlled to be switched on or switched off according to the detection result, the defect of single earphone control function exists.
To solve the above-mentioned defect, an embodiment of the present invention provides a method for controlling an earphone, which mainly includes the following steps:
determining the state of the headset according to the distance detected by the first distance measuring device and the second distance measuring device;
when the earphone is in a non-wearing state, acquiring a current operation mode of the earphone;
and determining target data according to the operation mode, and sending the target data to a target terminal, wherein the target data comprises a control instruction or prompt information.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a target terminal such as an earphone.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the like, and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a control program of the headset.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the processor 1001 may be configured to invoke a control program for the headset stored in the memory 1005 and perform the following operations:
determining the state of the headset according to the distance detected by the first distance measuring device and the second distance measuring device;
when the earphone is in a non-wearing state, acquiring a current operation mode of the earphone;
and determining target data according to the operation mode, and sending the target data to a target terminal, wherein the target data comprises a control instruction or prompt information.
Further, the processor 1001 may call a control program of the headset stored in the memory 1005, and also perform the following operations:
when the running mode of the earphone is a playing mode, the target data is a playing stopping instruction;
and when the operation mode of the earphone is a call mode, the target data is call abnormity prompt information.
Further, the processor 1001 may call a control program of the headset stored in the memory 1005, and also perform the following operations:
when the earphone is in a wearing state and receives an authentication request sent by the other terminal, determining the skin texture characteristics of the target object through the ultrasonic data collected by the ultrasonic detection array;
and sending the skin texture characteristics to the target terminal.
Further, the processor 1001 may call a control program of the headset stored in the memory 1005, and also perform the following operations:
when the earphone is in a wearing state and receives an authentication request sent by the target terminal, determining the skin texture characteristics of the target object through ultrasonic data collected by the ultrasonic detection array;
comparing the skin texture features with pre-stored skin texture features;
and determining authority information according to the comparison result, and sending the authority information to the target terminal.
Further, the processor 1001 may call a control program of the headset stored in the memory 1005, and also perform the following operations:
determining the similarity between the skin texture features and the pre-stored skin texture features according to the comparison result;
and determining the authority information according to the similarity, and sending the authority information to the target terminal.
Further, the processor 1001 may call a control program of the headset stored in the memory 1005, and also perform the following operations:
when the earphone is in a wearing state, determining the skin texture characteristics of the target object through ultrasonic data acquired by the ultrasonic detection array;
comparing the skin texture features with pre-stored skin texture features, and determining the similarity between the skin texture features and the pre-stored skin texture features according to the comparison result;
and when the similarity is smaller than the preset similarity, outputting prompt information that the wearing object does not have the earphone using permission.
Further, the processor 1001 may call a control program of the headset stored in the memory 1005, and also perform the following operations:
when the earphone is in a wearing state, determining whether the earphone is worn for the first time;
preserving the skin texture characteristics when worn for the first time;
and when the skin-care product is not worn for the first time, comparing the skin texture features with pre-stored skin texture features, and determining the similarity between the skin texture features and the pre-stored skin texture features according to the comparison result.
Referring to fig. 2, in an embodiment of the method for controlling a headset of the present invention, the method for controlling a headset includes the following steps:
step S10, determining the state of the earphone according to the distance detected by the first distance measuring device and the second distance measuring device;
step S20, when the earphone is in a non-wearing state, acquiring the current operation mode of the earphone;
step S30, determining target data according to the operation mode, and sending the target data to a target terminal, wherein the target data comprises a control instruction or prompt information.
In this embodiment, the earphone may include a processor and at least two distance measuring devices disposed at different positions on a side of the earphone near the target object. Wherein the ranging device is arranged to detect a distance between the earpiece and the target object.
As an embodiment, the distance measuring device may be an ultrasonic distance measuring sensor or an infrared distance measuring sensor, etc. The first distance measuring device is arranged at the position where the earphone is in contact with the target object, and the second distance measuring device is arranged at the position where the earphone is not in contact with the target object. The state of the headset can be further determined according to the first distance detected by the first distance measuring device and the second distance detected by the second distance measuring device, namely, whether the headset is in a wearing state or a non-wearing state is determined.
It should be noted that, when the earphone is in the wearing state, the position where the first distance measuring device is disposed is released from the target object, so that the first distance is smaller than the first preset threshold. The distance between the position provided with the second distance measuring device and the target object is changed according to the size change of the earphone, and after the size of the earphone is determined, the distance between the second distance measuring device and the target object is also determined. Therefore, when the target object wears the earphone, the second distance detected by the second distance measuring device is within a preset distance interval. Therefore, when the first distance is smaller than the preset distance and the second distance is within the preset interval, the earphone can be determined to be in a wearing state. The preset threshold and the preset distance interval are data defined by an earphone producer. Here, the number of the carbon atoms is not particularly limited.
Optionally, after the state of the earphone is determined, the state information may be sent to a target terminal connected to the earphone, so that the target terminal may determine the state of the earphone according to the state information.
Further, after determining the state of the headset, while the headset is in a non-worn state, or an operating mode of the headset.
Specifically, the earphone can be connected with the target terminal through a wired or wireless connection mode, so that the audio signal in the target terminal is output under the driving of the target terminal. For example, when playing a multimedia file (e.g., music or video), the target terminal may drive the earphone to output a corresponding audio signal, so that the earphone enters a play mode. Or when the target terminal carries out voice call, the target terminal can output the audio signal sent by the call opposite terminal through the earphone, and/or collect the sound wave sent by the target object through the earphone, convert the sound wave into the audio signal and send the audio signal to the target terminal, so that the target terminal sends the audio signal sent by the earphone to the call opposite terminal through the communication channel, namely the earphone is in a call mode at the moment. Or when the target terminal is in a standby state, the earphone is also in a standby mode because there is no source signal that can be output.
After the operation mode of the earphone is determined, target data can be determined according to the operation mode and sent to a target terminal, wherein the target data comprises a control instruction or prompt information.
Specifically, when the operation mode of the earphone is the play mode, the target data is a play stop instruction. That is, when it is detected that the earphone is in a non-wearing state and the operation mode is the play mode, a play stop instruction may be sent to the target terminal, so that the target terminal stops playing the multimedia file after receiving the play stop instruction.
When the operation mode of the earphone is a call mode, the target data is call abnormity prompt information. Namely, when the earphone is in a non-wearing state and the earphone is in a call mode, a pre-stored audio signal can be sent to the target terminal so as to send call abnormity prompting information to the target terminal.
Illustratively, the voice content corresponding to the audio signal may be "the other earphone has dropped". And after the target terminal receives the audio signal, the audio signal is sent to the opposite call terminal through a voice call channel so as to prompt that an earphone worn by a target object of the opposite call terminal user falls off.
The target data may be status information when the headset is in a standby mode. That is, when the earphone is in the standby mode and the earphone is detected to be in the non-wearing state, the state information may be sent to the target terminal, so that the target terminal can determine whether the earphone is in the wearing state according to the state information.
In the technical scheme disclosed in this embodiment, the state of the headset is determined according to the distance detected by the first distance measuring device and the second distance measuring device, when the headset is in a non-wearing state, the current operating mode of the headset is acquired, target data is determined according to the operating mode, and the target data is sent to a target terminal, wherein the target data includes a control instruction or prompt information. Thus, the effect of enriching the control function of the earphone is achieved.
Referring to fig. 3, based on the foregoing embodiment, in another embodiment, after the step S10, the method further includes:
step S40, when the earphone is in wearing state and receives the authentication request sent by the target terminal, the skin texture characteristics of the target object are determined through the ultrasonic data collected by the ultrasonic detection array;
step S50, comparing the skin texture characteristics with pre-stored skin texture characteristics;
and step S60, determining authority information according to the comparison result, and sending the authority information to the target terminal.
In this embodiment, the distance measuring device is an ultrasonic detection array. The earphone can be in communication connection with the target terminal through a wired or wireless connection mode, so that the earphone can receive an authentication request sent by the target terminal.
When the earphone is in a wearing state and receives the authentication request sent by the target terminal, the earphone can acquire the skin texture characteristics of the target object through the ultrasonic detection array. Because the skin texture characteristics corresponding to different users are different, user authentication can be performed based on the skin texture characteristics to determine the authority information of the target object.
After the skin texture features are obtained, the skin texture features can be compared with pre-stored skin texture features. The pre-stored skin texture features are initial data pre-stored in the earphone, and the earphone can be directly read from a storage medium.
And then determining the similarity between the skin texture features and the pre-stored skin texture features according to the comparison result, and judging that the target object has the control authority when the similarity is greater than or equal to the preset similarity. The judgment result that the target object has the control authority can be sent to the target terminal as the authority information. And when the similarity is smaller than the preset similarity, judging that the target object does not have the control authority. The judgment result that the target object does not have the control authority can be sent to the target terminal as the authority information.
Note that the preset similarity is a custom value, and may be set to [ 75%, 100% ], for example. Illustratively, the preset similarity is set to 80%, 87%, or 95%.
In the technical scheme disclosed in this embodiment, when the earphone is in a wearing state and receives an authentication request sent by the target terminal, the skin texture characteristics of the target object are determined according to the ultrasonic data collected by the ultrasonic detection array, then the skin texture characteristics are compared with the pre-stored skin texture characteristics, the permission information is determined according to the comparison result, and the permission information is sent to the target terminal, so that the earphone has an authentication function.
Referring to fig. 4, based on the embodiment shown in fig. 2, in another embodiment, after the step S10, the method further includes:
step S70, when the earphone is in wearing state and receives the authentication request sent by the other terminal, the skin texture characteristics of the target object are determined through the ultrasonic data collected by the ultrasonic detection array;
and step S80, sending the skin texture characteristics to the target terminal.
In this embodiment, when the earphone is in a wearing state and receives an authentication instruction sent by a target terminal, the skin texture feature of the target object may be collected by the ultrasonic detection array, and then the skin texture feature is sent to the target terminal. And the target terminal determines the authority information of the target object according to the skin texture characteristics. Thus, the effect of enriching the control function of the earphone is achieved.
Based on any one of the above embodiments, in a further embodiment, after step S10, when the earphone is in a wearing state, determining a skin texture feature of the target object according to the ultrasonic data acquired by the ultrasonic detection array, then comparing the skin texture feature with a pre-stored skin texture feature, determining a similarity between the skin texture feature and the pre-stored skin texture feature according to a comparison result, and outputting a prompt message that the wearing object does not have the earphone usage right when the similarity is smaller than a preset similarity.
In this embodiment, when it is detected that the earphone is in a wearing state, the skin texture feature of the earphone wearer (target object) may be obtained, and then the similarity between the skin texture feature and the preset skin texture feature is determined. And when the similarity is smaller than a preset threshold value, judging that the object wearing the earphone at present is an illegal object. Therefore, prompt information that the wearing object does not have the earphone using authority can be output. The prompt message can be output by controlling the indicator light to flash or playing the voice prompt message through the earphone.
Optionally, before determining the skin texture characteristics of the target object through the ultrasonic data acquired by the ultrasonic detection array, whether the earphone has started the single-person use mode may be detected. When the earphone has turned on the single use mode, the step of determining the skin texture characteristics of the target object through the ultrasonic data acquired by the ultrasonic detection array is performed. Otherwise, the headset does not respond.
Optionally, when the headset is in a wearing state, it may be further determined whether the headset is worn for the first time, and when the headset is worn for the first time. The skin line characteristics of the wearer are reached, and the collected skin line characteristics are stored as preset skin line characteristics. Otherwise, comparing the skin texture features with pre-stored skin texture features, determining the similarity between the skin texture features and the pre-stored skin texture features according to the comparison result, and determining whether the wearer has the authority or not according to the similarity.
In the technical scheme disclosed in this embodiment, when the earphone is in a wearing state, the skin texture feature of the target object is determined according to the ultrasonic data acquired by the ultrasonic detection array, the skin texture feature is compared with the pre-stored skin texture feature, the similarity between the skin texture feature and the pre-stored skin texture feature is determined according to the comparison result, and when the similarity is smaller than the preset similarity, prompt information that the wearing object does not have the earphone use permission is output. This achieves the effect of improving the safety of the headset.
Referring to fig. 5, in an embodiment of a method for controlling a terminal according to the present invention, the method for controlling the terminal includes:
step S1, receiving target data sent by the earphone, wherein the target data comprises a play stop instruction or call abnormity prompting information;
and step S2, executing the playing stopping instruction, or sending the abnormal call prompting information to other terminals.
In this embodiment, the terminal is in communication connection with the headset, and when target data sent by the headset is received, specific content corresponding to the target data is identified. And when the target data is a play stopping instruction, determining the multimedia file which is currently played, and pausing the playing of the multimedia file. And when the target data is a call abnormity prompt, the call abnormity prompt is used as a call source signal of the home terminal, and the call abnormity prompt is sent to the opposite terminal so as to prompt that the earphone worn by the target object of the opposite terminal user is fallen off.
Optionally, when receiving the status information sent by the headset, it may be determined whether the headset is in a non-wearing state according to the status information. When the earphone is in a non-wearing state, the operation mode of the earphone can be acquired. When the player is in the play mode, the play is paused. And when the mobile terminal is in a call mode, sending call abnormity prompting information to a call opposite terminal.
In the technical scheme disclosed in this embodiment, target data sent by an earphone is received, where the target data includes a play stop instruction or call abnormality prompt information, and the play stop instruction is executed, or the call abnormality prompt information is sent to another terminal. Thus, the effect of enriching the control function of the earphone is achieved.
Based on the embodiment shown in fig. 5, in an implementation manner, the method for controlling the terminal further includes: when a preset control instruction is received, sending an authentication request to the earphone, then receiving skin texture characteristics fed back by the earphone, determining authority information of a target object according to the skin texture characteristics, and determining whether to execute the preset control instruction according to the authority information.
In this embodiment, when the terminal receives the preset control instruction, the terminal may send an authentication request to the headset. The preset control instruction can be a payment control instruction, an unlocking control instruction and/or a control instruction for opening a locked object.
For example, the terminal may be a mobile phone, and the mobile phone may send an authentication request to the headset when receiving a payment control instruction for payment through a payment device or a WeChat. When the photo album is locked and a control instruction for opening the photo album is received, an authentication instruction is sent to the earphone. When the receiver receives a control instruction for releasing the screen lock, the receiver can send an authentication instruction to the earphone.
After the authentication instruction is sent to the earphone, the skin texture characteristics fed back by the earphone can be received, then the skin texture characteristics are compared with the preset skin texture characteristics, and whether the target object has the control authority or not is determined according to the comparison result.
And when the target object has the control authority, executing the currently received preset control instruction, otherwise, outputting the prompt message without the control authority.
In the technical scheme disclosed by the implementation, when a preset control instruction is received, an authentication request is sent to the earphone, then the skin texture characteristics fed back by the earphone are received, the authority information of a target object is determined according to the skin texture characteristics, and whether the preset control instruction is executed or not is determined according to the authority information. This achieves the effect of improving the security of terminal control.
Based on the embodiment shown in fig. 5, in another implementation manner, the method for controlling the terminal further includes: and when a preset control instruction is received, sending an authentication request to the earphone, then receiving authority information fed back by the earphone, and determining whether to execute the preset control instruction according to the authority information.
Specifically, when the authority information fed back by the earphone is received, whether a target object has the control authority is determined according to the authority information, when the target object has the control authority, the preset control instruction is executed, otherwise, prompt information without the control authority is output. This achieves the effect of improving the security of terminal control.
In addition, an embodiment of the present invention further provides an earphone, where the earphone includes two distance measuring devices, a memory, a processor, and a control program of the earphone stored in the memory and executable on the processor, where the distance measuring devices are located at different positions of the earphone and configured to detect a distance between the earphone and a target object, and the control program of the earphone, when executed by the processor, implements the steps of the control method of the earphone according to the above embodiments.
In addition, an embodiment of the present invention further provides a terminal, where the air conditioner includes: a memory, a processor and a terminal control program stored on the memory and operable on the processor, the terminal control program, when executed by the processor, implementing the steps of the control method of the headset as described in the various embodiments above.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a control program of a headset is stored, and when the control program of the headset is executed by a processor, the steps of the control method of the headset according to the above embodiments are implemented.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention essentially or contributing to the prior art can be embodied in the form of a software product, which is stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a target terminal (e.g. headset, etc.) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A method for controlling a headset, the headset comprising at least two distance measuring devices, the distance measuring devices being located at different positions of the headset and being arranged to detect a distance between the headset and a target object, the method comprising the steps of:
determining the state of the headset according to the distance detected by the first distance measuring device and the second distance measuring device;
when the earphone is in a non-wearing state, acquiring a current operation mode of the earphone;
and determining target data according to the operation mode, and sending the target data to a target terminal, wherein the target data comprises a control instruction or prompt information.
2. The method for controlling the earphone according to claim 1, wherein the step of determining the target data according to the operation mode comprises:
when the running mode of the earphone is a playing mode, the target data is a playing stopping instruction;
and when the operation mode of the earphone is a call mode, the target data is call abnormity prompt information.
3. The method for controlling an earphone according to claim 1, wherein the distance measuring device is an ultrasonic detection array, and the step of determining whether the earphone is in a non-wearing state according to the distance detected by the first distance measuring device and/or the second distance measuring device further comprises:
when the earphone is in a wearing state and receives an authentication request sent by the other terminal, determining the skin texture characteristics of the target object through the ultrasonic data collected by the ultrasonic detection array;
and sending the skin texture characteristics to the target terminal.
4. The method for controlling an earphone according to claim 1, wherein the distance measuring device is an ultrasonic detection array, and the step of determining whether the earphone is in a non-wearing state according to the distance detected by the first distance measuring device and/or the second distance measuring device further comprises:
when the earphone is in a wearing state and receives an authentication request sent by the target terminal, determining the skin texture characteristics of the target object through ultrasonic data collected by the ultrasonic detection array;
comparing the skin texture features with pre-stored skin texture features;
and determining authority information according to the comparison result, and sending the authority information to the target terminal.
5. The method of claim 4, wherein the step of determining the right information according to the comparison result and sending the right information to the target terminal comprises:
determining the similarity between the skin texture features and the pre-stored skin texture features according to the comparison result;
and determining the authority information according to the similarity, and sending the authority information to the target terminal.
6. The method of claim 1, wherein the distance measuring device is an ultrasonic detection array, and the step of determining the state of the headset according to the distance detected by the first distance measuring device and the second distance measuring device further comprises:
when the earphone is in a wearing state, determining the skin texture characteristics of the target object through ultrasonic data acquired by the ultrasonic detection array;
comparing the skin texture features with pre-stored skin texture features, and determining the similarity between the skin texture features and the pre-stored skin texture features according to the comparison result;
and when the similarity is smaller than the preset similarity, outputting prompt information that the wearing object does not have the earphone using permission.
7. The method of claim 6, wherein the step of determining the skin texture of the target subject from the ultrasound data acquired by the ultrasound detection array further comprises, after the step of:
when the earphone is in a wearing state, determining whether the earphone is worn for the first time;
preserving the skin texture characteristics when worn for the first time;
and when the skin-care product is not worn for the first time, comparing the skin texture features with pre-stored skin texture features, and determining the similarity between the skin texture features and the pre-stored skin texture features according to the comparison result.
8. An earphone, characterized in that the earphone comprises: the headset comprises two distance measuring devices, a memory, a processor and a control program for the headset stored on the memory and executable on the processor, wherein the distance measuring devices are located at different positions of the headset and are arranged to detect a distance between the headset and a target object, and the control program for the headset, when executed by the processor, implements the steps of the control method for the headset according to any of claims 1 to 7.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a control program of a headset, which when executed by a processor implements the steps of the control method of a headset according to any one of claims 1 to 7.
CN201911217140.3A 2019-11-28 2019-11-28 Earphone control method, earphone and readable storage medium Pending CN110913301A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911217140.3A CN110913301A (en) 2019-11-28 2019-11-28 Earphone control method, earphone and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911217140.3A CN110913301A (en) 2019-11-28 2019-11-28 Earphone control method, earphone and readable storage medium

Publications (1)

Publication Number Publication Date
CN110913301A true CN110913301A (en) 2020-03-24

Family

ID=69821696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911217140.3A Pending CN110913301A (en) 2019-11-28 2019-11-28 Earphone control method, earphone and readable storage medium

Country Status (1)

Country Link
CN (1) CN110913301A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112083789A (en) * 2020-09-01 2020-12-15 Oppo广东移动通信有限公司 Wearable device control method and device, storage medium and wearable device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024193A (en) * 2012-12-25 2013-04-03 北京百度网讯科技有限公司 Mobile terminal and play control method and play control device for same
CN105760732A (en) * 2016-01-29 2016-07-13 宇龙计算机通信科技(深圳)有限公司 Authentication method, device and system
CN106657640A (en) * 2016-12-23 2017-05-10 重庆墨希科技有限公司 Intelligent terminal for realizing telephone answering and unlocking based on hand back lines and action sensing
US20170214994A1 (en) * 2016-01-25 2017-07-27 Knowles Electronics, Llc Earbud Control Using Proximity Detection
CN108718432A (en) * 2018-05-10 2018-10-30 硕诺科技(深圳)有限公司 A kind of earphone with unlocking function
CN109120788A (en) * 2018-08-22 2019-01-01 北京小米智能科技有限公司 Playback method, device and the computer readable storage medium of message
CN110418236A (en) * 2019-08-16 2019-11-05 歌尔股份有限公司 A kind of wireless headset wears detection device, method and TWS earphone

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024193A (en) * 2012-12-25 2013-04-03 北京百度网讯科技有限公司 Mobile terminal and play control method and play control device for same
US20170214994A1 (en) * 2016-01-25 2017-07-27 Knowles Electronics, Llc Earbud Control Using Proximity Detection
CN105760732A (en) * 2016-01-29 2016-07-13 宇龙计算机通信科技(深圳)有限公司 Authentication method, device and system
CN106657640A (en) * 2016-12-23 2017-05-10 重庆墨希科技有限公司 Intelligent terminal for realizing telephone answering and unlocking based on hand back lines and action sensing
CN108718432A (en) * 2018-05-10 2018-10-30 硕诺科技(深圳)有限公司 A kind of earphone with unlocking function
CN109120788A (en) * 2018-08-22 2019-01-01 北京小米智能科技有限公司 Playback method, device and the computer readable storage medium of message
CN110418236A (en) * 2019-08-16 2019-11-05 歌尔股份有限公司 A kind of wireless headset wears detection device, method and TWS earphone

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112083789A (en) * 2020-09-01 2020-12-15 Oppo广东移动通信有限公司 Wearable device control method and device, storage medium and wearable device

Similar Documents

Publication Publication Date Title
US9756439B2 (en) Method and devices for outputting an audio file
CN107509153B (en) Detection method and device of sound playing device, storage medium and terminal
KR101665277B1 (en) Method for controlling smart terminal device, system, program and recording medium thereof
US8041025B2 (en) Systems and arrangements for controlling modes of audio devices based on user selectable parameters
CN111078448B (en) Method for processing audio abnormity and electronic equipment
US8280540B2 (en) Multimedia playing system and time-counting method applied thereto
CN107765891B (en) Microphone control method and microphone
CN109982228B (en) Microphone fault detection method and mobile terminal
US20010029196A1 (en) Battery-powered mobile phone having additional functions
WO2008005269A3 (en) Signal distribution system with interrupt processing and trick play functionality
US20130155217A1 (en) Audio player and control method thereof
US20130177191A1 (en) Audio recorder
KR101855725B1 (en) Audio Outputting Control Method and Electronic Device supporting the same
CN110827863A (en) Method, device and terminal for intelligently adjusting volume and readable storage medium
US10299037B2 (en) Method and apparatus for identifying audio output outlet
CN110913301A (en) Earphone control method, earphone and readable storage medium
KR20060106299A (en) Method and audio device for providing function of automatic pause and power off by sensing of earphone mounting
US10129382B2 (en) Electronic device and method for controlling electronic device using headset
US20200020330A1 (en) Detecting voice-based attacks against smart speakers
KR20200017702A (en) Electronic device and method for adjusting the output intensity of a speaker based on distance from an external electronic device
WO2016106569A1 (en) Method for preventing loss of terminal, and terminal
KR101609777B1 (en) Earphone wearing identifying method, apparatus, and computer readable recording medium
CN111552453A (en) Control method, terminal and storage medium of sound effect scene
CN115022773A (en) Bluetooth device audio control method, device and storage medium
US10812894B2 (en) Portable communication device and method of operating the same in covert operation mode

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200324