CN109151195B - Earphone control method and control system during running exercise - Google Patents
Earphone control method and control system during running exercise Download PDFInfo
- Publication number
- CN109151195B CN109151195B CN201810940166.XA CN201810940166A CN109151195B CN 109151195 B CN109151195 B CN 109151195B CN 201810940166 A CN201810940166 A CN 201810940166A CN 109151195 B CN109151195 B CN 109151195B
- Authority
- CN
- China
- Prior art keywords
- value
- detection
- pressure
- distance
- earphone
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72442—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Environmental & Geological Engineering (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Telephone Function (AREA)
Abstract
The invention relates to a control method and a control system for controlling pause and opening based on earphone distance change during running movement.
Description
Technical Field
The invention belongs to the field of intelligent systems, and particularly relates to a control method and a control system for controlling pause opening based on earphone distance change during running exercise.
Background
In daily life, when a user listens to music and the like by using an earphone, sometimes due to some reasons, for example, in running sports, the earphone can be separated from ears due to running vibration, but audio can be continuously played until a player is passively paused, and as a plurality of runners place mobile phones on arms, tedious operations are required to be performed to listen to a song again, so that the use is inconvenient, and the user experience is very influenced.
In the prior art, document CN107920298A discloses a system and a method for controlling an earphone, in which the system determines whether the earphone of a user is separated from the ear by determining a change of an audio signal, and the system can determine whether the earphone is separated from the ear in a specific environment, but when the system is affected by an external condition, such as a loud noise light, the system may generate an erroneous determination, which results in a decrease in user experience, so that it is necessary to invent a system and a method for controlling the same for correctly detecting whether the earphone is separated from the ear.
Disclosure of Invention
The invention aims to provide a control method and a control system for controlling pause and opening based on earphone distance change during running movement.
Judging that the user is in a motion state, calculating the downward distance difference and the pressure condition of the earphone of the user, and judging whether music pause and music play are needed to be carried out on the earphone of the user, wherein the control method also specifically comprises the following control steps:
s1: the method comprises the steps that a user mobile phone detects the change value of the gravity change value of the mobile phone, judges that the user is in a running exercise state, starts sound wave distance detection devices on two sides of an earphone when the sound output of the user is in an earphone output state and the mobile phone outputs music, detects two distance values of the two sides of the earphone in the downward direction, takes the maximum distance value and sends the distance value to a control terminal;
s2: the control terminal takes a left earphone detection distance value as a first detection distance value, takes a right earphone detection distance value as a second detection distance value, compares whether the first detection distance value and the second detection distance value reach a preset distance fixed value, starts pressure detection devices of the earphones at two sides if the first detection distance value and the second detection distance value reach a preset value, detects a first pressure value of the left earphone and a second pressure value of the right earphone, judges whether the first pressure value and the second pressure value reach the preset pressure fixed value, does not perform any operation if the first pressure value and the second pressure value reach the preset pressure fixed value, and controls the mobile phone program to pause music playing if the preset pressure fixed value is not reached;
s3: when the first detection distance value and the second detection distance value are both lower than the maximum distance value and the first pressure value and the second pressure value reach preset pressure set values, judging whether the gravity change of the mobile phone of the user is in a motion state, and if the gravity change of the mobile phone of the user is in the motion state, controlling the mobile phone program to pause music playing by the control terminal;
s4: and when the first detection distance value and the second detection distance value reach the preset value and the first pressure detection value and the second pressure detection value reach the preset value, the control terminal controls the mobile phone program to perform music playing re-detection.
In step S1, the determining of the running state of the user includes acquiring a gravity sensing program in the mobile phone of the user, and determining whether the gravity sensing program in the mobile phone of the user frequently changes in a short time, so as to determine whether the user is in the running state, and detecting the downward distance values of the earphones at the two sides of the ear through the sound wave detection device.
In step S2, the control detection method further includes the following steps:
s10: acquiring a first detection distance value and a second detection distance value, judging whether the difference value between the first detection distance and the second detection distance is 0, and acquiring a first pressure value and a second pressure value if the difference value is not 0;
s11: when the difference value between the first detection distance and the second detection distance is not 0, judging whether the first pressure value and the second pressure value are both larger than 0, and if one of the first pressure value and the second pressure value is 0, judging that the earphone on one side of the user is separated;
s12: when the difference value between the first detection distance and the second detection distance is not 0, judging whether the first pressure value and the second pressure value are both larger than 0, if the first pressure value and the second pressure value are both larger than 0, judging that the music is normal, and if the music is in a pause state, recovering to a play state.
When the music is in a pause state, and when the distance value detection of the earphones on the two sides reaches a set value and a pressure value is detected, the mobile phone program controls the mobile phone music to be played.
Has the advantages that:
the invention judges whether the earphone Bluetooth earphone is in a falling state or not and whether the earphone Bluetooth earphone is in a state of needing music pause and play or not according to the change calculation of the distance between the two Bluetooth earphones and the pressure value, and intelligently controls the pause and the play of the mobile phone music.
Drawings
Fig. 1 is a detection and judgment flowchart of a method and a system for controlling pause opening based on earphone distance change during running exercise according to the present invention.
Fig. 2 is a structural diagram of a control method for controlling a pause to be opened based on a change in a distance of an earphone during a running exercise and a control system thereof according to the present invention.
Detailed Description
Hereinafter, a pause open control method and a control system thereof based on a change in a distance of an earphone during a running exercise according to an embodiment of the present invention will be described with reference to the accompanying drawings.
As shown in fig. 1-2, a control method and a control system for controlling pause and open based on earphone distance variation during running exercise, comprising an acoustic wave detection device, a control terminal, a running detection program, a pressure detection module, a wireless module, wherein the pressure detection module and the acoustic wave detection module transmit detection values to the control terminal through the wireless module, and the system judges whether a user earphone is in a falling state or not by detecting distance values of the acoustic wave detection device and pressure detection values of the pressure detection module, so as to pause and play music of a mobile phone.
Judging that the user is in a motion state, calculating the downward distance difference and the pressure condition of the earphone of the user, and judging whether music pause and music play are needed to be carried out on the earphone of the user, wherein the control method also specifically comprises the following control steps:
s1: the method comprises the steps that a user mobile phone detects the change value of the gravity change value of the mobile phone, judges that the user is in a running exercise state, starts sound wave distance detection devices on two sides of an earphone when the sound output of the user is in an earphone output state and the mobile phone outputs music, detects two distance values of the two sides of the earphone in the downward direction, takes the maximum distance value and sends the distance value to a control terminal;
s2: the control terminal takes a left earphone detection distance value as a first detection distance value, takes a right earphone detection distance value as a second detection distance value, compares whether the first detection distance value and the second detection distance value reach a preset distance fixed value, starts pressure detection devices of the earphones at two sides if the first detection distance value and the second detection distance value reach the preset distance fixed value, detects a first pressure value of the left earphone and a second pressure value of the right earphone, judges whether the first pressure value and the second pressure value reach a preset value, does not perform any operation if the first pressure value and the second pressure value reach the preset pressure fixed value, and controls a mobile phone program to pause music playing if the preset pressure fixed value is not reached;
s3: when the first detection distance value and the second detection distance value are both lower than the maximum distance value and the first pressure value and the second pressure value reach preset pressure set values, judging whether the gravity change of the mobile phone of the user is in a motion state, and if the gravity change of the mobile phone of the user is in the motion state, controlling the mobile phone program to pause music playing by the control terminal;
s4: and when the first detection distance value and the second detection distance value reach the preset value and the first pressure detection value and the second pressure detection value reach the preset value, the control terminal controls the mobile phone program to perform music playing re-detection.
Step S1, the determining of the running state of the user includes acquiring a gravity sensing program in the mobile phone of the user, and determining whether the gravity sensing program in the mobile phone of the user frequently changes in a short time, thereby determining whether the user is in the running state, and detecting the downward distance values of the ear earphones at both sides by the sound wave detection device.
Step S2, wherein the control detection method further includes the following steps:
s10: acquiring a first detection distance value and a second detection distance value, judging whether the difference value between the first detection distance and the second detection distance is 0, and acquiring a first pressure value and a second pressure value if the difference value is not 0;
s11: when the difference value between the first detection distance and the second detection distance is not 0, judging whether the first pressure value and the second pressure value are both larger than 0, and if one of the first pressure value and the second pressure value is 0, judging that the earphone on one side of the user is separated;
s12: when the difference value between the first detection distance and the second detection distance is not 0, judging whether the first pressure value and the second pressure value are both larger than 0, if the first pressure value and the second pressure value are both larger than 0, judging the music to be normal, if the music is in a pause state, recovering the music to be in a play state, and after the music is in the pause state, when the distance value detection of the earphones at two sides reaches a set value and the pressure value is detected, controlling the music play of the mobile phone by a mobile phone program.
Claims (5)
1. A control method for controlling pause opening based on earphone distance change during running exercise is characterized in that a user is judged to be in an exercise state, the downward distance difference and the pressure condition of the user earphone are calculated, and whether music pause and music play on the user earphone are needed or not is judged, wherein the control method further comprises the following control steps:
step S1: the method comprises the steps that a user mobile phone detects the change value of the gravity change value of the mobile phone, judges that the user is in a running exercise state, starts sound wave distance detection devices on two sides of an earphone when the sound output of the user is in an earphone output state and the mobile phone outputs music, detects two distance values of the two sides of the earphone in the downward direction, takes the maximum distance value and sends the distance value to a control terminal;
step S2: the control terminal takes a left earphone detection distance value as a first detection distance value, takes a right earphone detection distance value as a second detection distance value, compares whether the first detection distance value and the second detection distance value reach a preset distance fixed value, starts pressure detection devices of the earphones at two sides if the first detection distance value and the second detection distance value reach a preset value, detects a first pressure value of the left earphone and a second pressure value of the right earphone, judges whether the first pressure value and the second pressure value reach the preset pressure fixed value, does not perform any operation if the first pressure value and the second pressure value reach the preset pressure fixed value, and controls the mobile phone program to pause music playing if the preset pressure fixed value is not reached;
step S3: when the first detection distance value and the second detection distance value are both lower than the maximum distance value and the first pressure value and the second pressure value reach preset pressure set values, judging whether the gravity change of the mobile phone of the user is in a motion state, and if the gravity change of the mobile phone of the user is in the motion state, controlling the mobile phone program to pause music playing by the control terminal;
step S4: when the first detection distance value and the second detection distance value reach a preset value and the first pressure detection value and the second pressure detection value reach the preset value, the control terminal controls the mobile phone program to perform music playing re-detection;
the step S2 further includes the steps of:
(1) acquiring a first detection distance value and a second detection distance value, judging whether the difference value between the first detection distance and the second detection distance is 0, and acquiring a first pressure value and a second pressure value if the difference value is not 0;
(2) when the difference value between the first detection distance and the second detection distance is not 0, judging whether the first pressure value and the second pressure value are both larger than 0, and if one of the first pressure value and the second pressure value is 0, judging that the earphone on one side of the user is separated;
(3) when the difference value between the first detection distance and the second detection distance is not 0, judging whether the first pressure value and the second pressure value are both larger than 0, if the first pressure value and the second pressure value are both larger than 0, judging that the music is normal, and if the music is in a pause state, recovering to a play state.
2. The method as claimed in claim 1, wherein the step of determining the running state of the user comprises obtaining a gravity sensing program in the user 'S mobile phone, determining whether the gravity sensing program in the user' S mobile phone changes frequently in a short time, thereby determining whether the user is in the running state, and detecting a downward distance value of the earphones at both sides of the ear by the sound wave detecting device, according to step S1.
3. The method as claimed in claim 1, wherein the mobile phone program controls the music playing of the mobile phone when the distance value detection of the earphones reaches a set value and a pressure value is detected after the music is in a pause state.
4. The system of claim 1, wherein the system comprises a sound wave detection device, a control terminal, a running detection program, a pressure detection module, and a wireless module, wherein the pressure detection module and the sound wave detection module transmit detection values to the control terminal through the wireless module, and the system determines whether the earphone of the user is in a falling state through the detection of the distance value by the sound wave detection device and the detection of the pressure by the pressure detection module, so that music of the mobile phone is paused and played.
5. The control system of claim 4, wherein the pressure detecting means and the sound wave distance detecting means are disposed on the earphones for detecting a pressure value on the earphones and a downward distance value of the two earphones, and transmitting the detected distance value to the control terminal for judgment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810940166.XA CN109151195B (en) | 2018-08-17 | 2018-08-17 | Earphone control method and control system during running exercise |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810940166.XA CN109151195B (en) | 2018-08-17 | 2018-08-17 | Earphone control method and control system during running exercise |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109151195A CN109151195A (en) | 2019-01-04 |
CN109151195B true CN109151195B (en) | 2021-01-19 |
Family
ID=64790119
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810940166.XA Active CN109151195B (en) | 2018-08-17 | 2018-08-17 | Earphone control method and control system during running exercise |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109151195B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110493678B (en) * | 2019-08-14 | 2021-01-12 | Oppo(重庆)智能科技有限公司 | Earphone control method and device, earphone and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100902356B1 (en) * | 2007-04-06 | 2009-06-12 | 윤종열 | Earphone |
CN201774574U (en) * | 2010-07-21 | 2011-03-23 | 惠州Tcl移动通信有限公司 | Mobile terminal capable of automatically controlling volume |
CN104185109A (en) * | 2014-09-01 | 2014-12-03 | 联想(北京)有限公司 | Control system, earphone, electronic device and control method |
CN106790966A (en) * | 2016-11-04 | 2017-05-31 | 上海斐讯数据通信技术有限公司 | The changing method of intelligent terminal motor pattern, system and intelligent terminal |
CN106775571A (en) * | 2017-03-21 | 2017-05-31 | 北京小米移动软件有限公司 | Audio frequency playing method and device |
-
2018
- 2018-08-17 CN CN201810940166.XA patent/CN109151195B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100902356B1 (en) * | 2007-04-06 | 2009-06-12 | 윤종열 | Earphone |
CN201774574U (en) * | 2010-07-21 | 2011-03-23 | 惠州Tcl移动通信有限公司 | Mobile terminal capable of automatically controlling volume |
CN104185109A (en) * | 2014-09-01 | 2014-12-03 | 联想(北京)有限公司 | Control system, earphone, electronic device and control method |
CN106790966A (en) * | 2016-11-04 | 2017-05-31 | 上海斐讯数据通信技术有限公司 | The changing method of intelligent terminal motor pattern, system and intelligent terminal |
CN106775571A (en) * | 2017-03-21 | 2017-05-31 | 北京小米移动软件有限公司 | Audio frequency playing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109151195A (en) | 2019-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5438759B2 (en) | Improved headset | |
WO2020019846A1 (en) | Method for controlling volume of wireless headset, wireless headset and mobile terminal | |
CN107613146B (en) | Volume adjustment method and device and mobile terminal | |
WO2017032012A1 (en) | Volume adjusting method and user terminal | |
CN108681413B (en) | Control method of display module and mobile terminal | |
CN111343540B (en) | Piano audio processing method and electronic equipment | |
KR102133004B1 (en) | Method and device that automatically adjust the volume depending on the situation | |
CN104754462A (en) | Automatic regulating device and method for volume and earphone | |
WO2022160759A1 (en) | Earphone step-counting method, earphone and storage medium | |
US11297429B2 (en) | Proximity detection for wireless in-ear listening devices | |
WO2015026859A1 (en) | Audio apparatus and methods | |
CN110058837B (en) | Audio output method and terminal | |
CN109151195B (en) | Earphone control method and control system during running exercise | |
CN109168098B (en) | System for automatically controlling to suspend and open Bluetooth headset when mobile phone is away from ear and control method thereof | |
CN109068226B (en) | Earphone and control method thereof | |
CN111028838A (en) | Voice wake-up method, device and computer readable storage medium | |
CN113660597A (en) | In-ear detection method and device for wireless earphone and storage medium | |
CN117440282A (en) | Earphone wearing state detection method and device, earphone and storage medium | |
CN111049972B (en) | Audio playing method and terminal equipment | |
EP4018681A1 (en) | Microphone blocking detection control | |
WO2022135071A1 (en) | Earphone playback control method and apparatus, and electronic device and storage medium | |
CN114567849B (en) | Detection method and device, wireless earphone and storage medium | |
CN105472128A (en) | Call control method and call control device | |
CN112181349A (en) | Volume adjusting method and device, electronic equipment and storage medium | |
CN109151699B (en) | Microphone hole blockage detection 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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20201228 Address after: Room 101, building 12, No. 60, Xiangyuan East Road, Liaobu Town, Dongguan City, Guangdong Province 523000 Applicant after: GUANGDONG MEITA INDUSTRIAL INVESTMENT Co.,Ltd. Address before: 536009 no.0305, building 4, Beibu Gulf science and technology entrepreneurship center, No.45, Golden Coast Avenue, Yinhai District, Beihai City, Guangxi Zhuang Autonomous Region Applicant before: BEIHAI FEIJIUTIAN ELECTRONIC TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |