CN103167155B - System and method for achieving control of music player of mobile phone based on range sensor - Google Patents
System and method for achieving control of music player of mobile phone based on range sensor Download PDFInfo
- Publication number
- CN103167155B CN103167155B CN201210358838.9A CN201210358838A CN103167155B CN 103167155 B CN103167155 B CN 103167155B CN 201210358838 A CN201210358838 A CN 201210358838A CN 103167155 B CN103167155 B CN 103167155B
- Authority
- CN
- China
- Prior art keywords
- range sensor
- microprocessor
- cpu
- mobile phone
- control
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 15
- 238000010835 comparative analysis Methods 0.000 claims abstract description 5
- 230000000052 comparative effect Effects 0.000 abstract description 3
- 230000001939 inductive effect Effects 0.000 abstract 5
- 230000006870 function Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
Landscapes
- Telephone Function (AREA)
Abstract
The invention discloses a system and a method for achieving the control of a music player of a mobile phone based on a range sensor. The method comprises the steps: A, obtaining a distance inductive value by the range sensor, and sending the distance inductive value to a microprocessor; B, conducting comparative analysis on the distance inductive value by the microprocessor, generating a control request command according to a comparative analysis result, and sending the result to a central processing unit (CPU); C, generating a control signal by the CPU according to the request command, and sending the control signal to a controller; and D, controlling a module of the music player by the controller according to the control signal. According to the system and the method, after a display screen of the mobile phone is closed, the range sensor is correspondingly started, the distance inductive value is obtained and compared with a distance inductive threshold value, and the CPU controls the module of the music player to play, pause and play a next music according to the comparative result. The system and the method solve the problems that under the situations that the music is played externally by the mobile phone and the screen is closed, the control of the music player cannot be achieved.
Description
Technical field
The present invention relates to mobile phone, what be specifically related to is a kind of control system and method for realizing mobile phone music player based on range sensor, is mainly used in solving mobile phone when screen is closed, and cannot realize the control to music player.
Background technology
Along with the fast development of smart mobile phone, the function of smart mobile phone gets more and more, a lot of user can use smart mobile phone to listen to the music, and being listened to the music by mobile phone at present mainly contains two kinds of modes: one is be connected to mobile phone by earphone to carry out, and carries out X-by-Wire by earphone to mobile phone music player; Two is directly play-over music by putting outward, controls by carrying out operation to mobile phone music player menu.
Line traffic control is carried out by earphone, the control to music player can be realized when mobile phone screen is closed, but directly by putting broadcasting music outside mobile phone, when mobile phone screen is closed, then can not realize the control to music player, after needing to open screen, operate, there is complex operation in it, the problem that frequent unlatching screen power consumption is large.
Summary of the invention
The object of the present invention is to provide a kind of control system and the method that realize mobile phone music player based on range sensor, to solve mobile phone by putting broadcasting music outward, and when screen is closed, the problem of the control to music player cannot be realized.
The object of the invention is to be achieved through the following technical solutions.
A kind of control system realizing mobile phone music player based on range sensor, comprise range sensor, microprocessor, CPU, display screen and musical player module, described range sensor is connected with microprocessor, for obtaining distance influence value, and send to microprocessor to carry out Treatment Analysis, microprocessor is connected with CPU, Treatment Analysis result is sent to CPU, is controlled by CPU to musical player module.
Preferably, described CPU is connected with musical player module by controller, and CPU sends control signal to controller, is controlled musical player module by controller.
Preferably, this system also includes a memory, and this memory is connected with microprocessor, answers threshold value for storing distance perspective.
Preferably, described CPU is connected with display screen, and for obtaining the screen signal that goes out of display screen, and correspondence sends to microprocessor, and carrying out distance perspective by microprocessor startup range sensor should.
In addition, present invention also offers a kind of control method realizing mobile phone music player based on range sensor, specifically comprise step:
A, range sensor obtain distance influence value, and send to microprocessor;
B, microprocessor compare analysis to above-mentioned distance influence value, produce and control request instruction, and send to CPU according to comparative analysis result;
C, CPU, according to above-mentioned request instruction, produce control signal, send to controller;
D, controller control musical player module according to control signal.
Preferably, comprise before steps A:
CPU obtains the screen signal that goes out of display screen, and correspondence sends to microprocessor, and carrying out distance perspective by microprocessor startup range sensor should.
Preferably, also comprise before steps A:
Distance perspective is set and answers threshold value, and by CPU corresponding stored in memory.
Preferably, step B specifically comprises:
The distance perspective that microprocessor calls in memory answers threshold value, itself and above-mentioned distance influence value is compared analysis, if the distance influence value obtained is less than distance perspective answer threshold value, does not then produce control request instruction; If be greater than distance perspective to answer threshold value, then produce and control request instruction, and send to CPU.
The present invention compared with prior art, beneficial effect is: control system and the method realizing mobile phone music player based on range sensor provided by the invention, after mobile phone display screen is closed, corresponding startup range sensor, and obtain distance influence value, answer threshold value to compare with distance perspective, control musical player module according to comparative result by CPU and carry out playing, suspend, play next.The invention solves mobile phone by putting broadcasting music outward, and when screen is closed, the problem of the control to music player cannot be realized.
Accompanying drawing explanation
Fig. 1 is system principle diagram of the present invention.
Fig. 2 is operation principle flow chart of the present invention.
Detailed description of the invention
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Refer to shown in Fig. 1, Fig. 1 is system principle diagram of the present invention.The present invention is to provide a kind of control system realizing mobile phone music player based on range sensor, be mainly used in solving mobile phone by putting broadcasting music outward, and when screen is closed, the control to music player cannot be realized.
Wherein this system includes range sensor, microprocessor, CPU, controller, memory, display screen and musical player module, described range sensor is connected with microprocessor, for obtaining distance influence value, and send to microprocessor to carry out Treatment Analysis, microprocessor is connected with CPU, Treatment Analysis result is sent to CPU, by CPU, musical player module is controlled; Described CPU is connected with musical player module by controller, and CPU sends control signal to controller, is controlled musical player module by controller; Described memory is connected with microprocessor, CPU respectively, answers threshold value for being arranged by CPU and storing distance perspective, and therefrom reads music data; Described CPU is connected with display screen, and for obtaining the screen signal that goes out of display screen, and correspondence sends to microprocessor, and carrying out distance perspective by microprocessor startup range sensor should.
First native system arranges staff near the distance threshold of range sensor and the time of staying on range sensor, and corresponding stored in memory, after such as setting mobile phone display screen closedown, staff (or having object) blocks range sensor, the place of 3cm above range sensor, stop about 2 seconds, then think and need to produce the control signal suspending music player playing function; If staff (or having object) blocks range sensor, the place of 3cm ~ 2 about cm above range sensor, when moving fast, then thinks and needs to produce the control signal playing next music.
Be more than the explanation to the present invention is based on range sensor and realize the control system of mobile phone music player, below in conjunction with accompanying drawing 2, the control method that the present invention is based on range sensor and realize mobile phone music player be further described.
Shown in Figure 2, Fig. 2 is operation principle flow chart of the present invention.Present invention also offers a kind of control method realizing mobile phone music player based on range sensor, it specifically comprises the following steps:
First require that arranging distance perspective answers threshold value according to mobile phone, and by CPU corresponding stored in memory, it specifically arranges as follows: above range sensor, the position of about 3cm is blocked, and about the 2 seconds time of staying, then think and need to produce the control signal suspending music player playing function; The place of 3cm ~ 2 about cm above range sensor, blocks object movement fast, then think and need to produce the control signal playing next music.
Secondly CPU obtains the screen signal that goes out of display screen, and correspondence sends to microprocessor, and carrying out distance perspective by microprocessor startup range sensor should.
A, range sensor obtain distance influence value, and send to microprocessor;
B, microprocessor compare analysis to above-mentioned distance influence value, produce and control request instruction, and send to CPU according to comparative analysis result;
The distance perspective that microprocessor calls in memory answers threshold value, itself and above-mentioned distance influence value is compared analysis, if the distance influence value obtained is less than distance perspective answer threshold value, does not then produce control request instruction; If be greater than distance perspective to answer threshold value, then produce and control request instruction, and send to CPU.
C, CPU, according to above-mentioned request instruction, produce control signal, send to controller;
D, controller control musical player module according to control signal.
Invent after mobile phone display screen is closed, corresponding start range sensor, and obtain distance influence value, answer threshold value to compare with distance perspective, control musical player module according to comparative result by CPU and carry out playing, suspend, play next.The invention solves mobile phone by putting broadcasting music outward, and when screen is closed, the problem of the control to music player cannot be realized.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.
Claims (6)
1. one kind realizes the control system of mobile phone music player based on range sensor, it is characterized in that comprising range sensor, microprocessor, CPU, display screen and musical player module, described range sensor is connected with microprocessor, for obtaining distance influence value, and send to microprocessor to carry out Treatment Analysis, microprocessor is connected with CPU, Treatment Analysis result is sent to CPU, by CPU, musical player module is controlled, described CPU is connected with display screen, for obtaining the screen signal that goes out of display screen, and correspondence sends to microprocessor, carrying out distance perspective by microprocessor startup range sensor should,
Described control system also comprises memory, this memory links with microprocessor, distance perspective for storing setting answers threshold values and the time of staying on range sensor, if the distance influence value that range sensor obtains is preset value, control the broadcasting of music according to the time stopped on range sensor.
2. the control system realizing mobile phone music player based on range sensor according to claim 1, it is characterized in that described CPU is connected with musical player module by controller, CPU sends control signal to controller, is controlled musical player module by controller.
3. the control system realizing mobile phone music player based on range sensor according to claim 1, characterized by further comprising a memory, and this memory is connected with microprocessor, answers threshold value for storing distance perspective.
4. realize a control method for mobile phone music player based on range sensor, it is characterized in that specifically comprising step:
A, range sensor obtain distance influence value, and send to microprocessor;
B, microprocessor compare analysis to above-mentioned distance influence value, particularly, answer the time of staying on threshold values and range sensor to compare with the distance perspective stored in memory, produce and control request instruction, and send to CPU according to comparative analysis result;
C, CPU, according to above-mentioned request instruction, produce control signal, send to controller;
D, controller control musical player module according to control signal; Particularly, if the distance influence value that range sensor obtains is preset value, the broadcasting of music is controlled according to the time stopped on range sensor;
Comprise before described steps A: CPU obtains the screen signal that goes out of display screen, and correspondence sends to microprocessor, carrying out distance perspective by microprocessor startup range sensor should.
5. the control method realizing mobile phone music player based on range sensor according to claim 4, also comprises before it is characterized in that steps A:
Distance perspective is set and answers threshold value, and by CPU corresponding stored in memory.
6. the control method realizing mobile phone music player based on range sensor according to claim 4, is characterized in that step B specifically comprises:
The distance perspective that microprocessor calls in memory answers threshold value, itself and above-mentioned distance influence value is compared analysis, if the distance influence value obtained is less than distance perspective answer threshold value, does not then produce control request instruction; If be greater than distance perspective to answer threshold value, then produce and control request instruction, and send to CPU.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210358838.9A CN103167155B (en) | 2012-09-25 | 2012-09-25 | System and method for achieving control of music player of mobile phone based on range sensor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210358838.9A CN103167155B (en) | 2012-09-25 | 2012-09-25 | System and method for achieving control of music player of mobile phone based on range sensor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103167155A CN103167155A (en) | 2013-06-19 |
| CN103167155B true CN103167155B (en) | 2015-04-29 |
Family
ID=48589887
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210358838.9A Expired - Fee Related CN103167155B (en) | 2012-09-25 | 2012-09-25 | System and method for achieving control of music player of mobile phone based on range sensor |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103167155B (en) |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9723381B2 (en) * | 2013-12-23 | 2017-08-01 | Nike, Inc. | Athletic monitoring system having automatic pausing of media content |
| CN105843522B (en) * | 2016-03-18 | 2020-07-10 | Oppo广东移动通信有限公司 | Music playback control method, device and mobile terminal |
| CN107172266A (en) * | 2017-04-28 | 2017-09-15 | 广东欧珀移动通信有限公司 | Fingerprint identification control method and related products |
| CN107464548A (en) * | 2017-08-03 | 2017-12-12 | 京东方科技集团股份有限公司 | Contactless music sensing device and musical performance method |
| CN107577450A (en) * | 2017-09-18 | 2018-01-12 | 广东小天才科技有限公司 | Audio control method, audio control device and intelligent terminal |
| CN109788361B (en) * | 2019-01-10 | 2021-07-23 | 中科创达软件股份有限公司 | Method and device for controlling video playing |
| CN114879898A (en) * | 2022-06-02 | 2022-08-09 | 湖北星纪时代科技有限公司 | Control method, device, equipment and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101958950A (en) * | 2010-05-17 | 2011-01-26 | 宇龙计算机通信科技(深圳)有限公司 | Volume adjusting method of mobile terminal and mobile terminal |
| CN102202126A (en) * | 2011-05-26 | 2011-09-28 | 惠州Tcl移动通信有限公司 | Method for adjusting mobile phone volume and mobile phone |
| WO2012003688A1 (en) * | 2010-07-07 | 2012-01-12 | 中兴通讯股份有限公司 | Method for controlling music playing and music playing terminal |
| WO2012055361A1 (en) * | 2010-10-28 | 2012-05-03 | 华为终端有限公司 | Processing method for earphones and user equipment |
| CN102469206A (en) * | 2010-11-18 | 2012-05-23 | 西安龙飞软件有限公司 | Method for controlling cellphone by gestures |
-
2012
- 2012-09-25 CN CN201210358838.9A patent/CN103167155B/en not_active Expired - Fee Related
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101958950A (en) * | 2010-05-17 | 2011-01-26 | 宇龙计算机通信科技(深圳)有限公司 | Volume adjusting method of mobile terminal and mobile terminal |
| WO2012003688A1 (en) * | 2010-07-07 | 2012-01-12 | 中兴通讯股份有限公司 | Method for controlling music playing and music playing terminal |
| WO2012055361A1 (en) * | 2010-10-28 | 2012-05-03 | 华为终端有限公司 | Processing method for earphones and user equipment |
| CN102469206A (en) * | 2010-11-18 | 2012-05-23 | 西安龙飞软件有限公司 | Method for controlling cellphone by gestures |
| CN102202126A (en) * | 2011-05-26 | 2011-09-28 | 惠州Tcl移动通信有限公司 | Method for adjusting mobile phone volume and mobile phone |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103167155A (en) | 2013-06-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103167155B (en) | System and method for achieving control of music player of mobile phone based on range sensor | |
| CN204129661U (en) | Wearable device and there is the speech control system of this wearable device | |
| KR102164204B1 (en) | Indoor lighting device, lighting system and an operating method thereof | |
| KR20150032554A (en) | Energy-efficient transmission of content over a wireless connection | |
| WO2015078145A1 (en) | Method and apparatus for enlarging display font | |
| KR102160473B1 (en) | Electronic device and method for controling volume | |
| WO2015081664A1 (en) | Method, apparatus, device and system for controlling wireless network to be switched on/off | |
| CN102611801A (en) | System and method for controlling mobile phone interaction based on eye movement trajectory | |
| CN103634717A (en) | Method, device and terminal equipment utilizing earphone to control | |
| CN104142779A (en) | UI (user interface) control method and device as well as terminal | |
| CN202818560U (en) | Bluetooth headset, mobile terminal and voice control system | |
| CN110072013B (en) | Terminal control method and device | |
| CN106532876B (en) | Power supply control method and device and computer equipment | |
| CN112367203A (en) | Network distribution method and device, smart television and computer readable storage medium | |
| CN102446396A (en) | Method and system for controlling electronic equipment by mobile terminal and mobile terminal | |
| CN103677564A (en) | Sliding operation response method and device and terminal equipment | |
| CN103605532A (en) | Program control method, device and system | |
| CN204180243U (en) | It is a kind of that neck hanging type is wireless answers equipment | |
| CN103167157B (en) | System and method for achieving frequency modulation (FM) control of mobile phone based on range sensor | |
| CN204362266U (en) | Wire control earphone capable of being in wireless communication connection with input source | |
| CN104715769A (en) | Method and system for controlling wireless music through phototonus | |
| CN105896677A (en) | Battery charging management method and device | |
| CN203607096U (en) | Teaching display cabinet voice controller | |
| CN104010040A (en) | Point-reading positioning method of intelligent terminal, intelligent terminal and point-reading positioning device | |
| CN203984637U (en) | A kind of line control earphone with attitude control |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| PP01 | Preservation of patent right |
Effective date of registration: 20180428 Granted publication date: 20150429 |
|
| PP01 | Preservation of patent right | ||
| PD01 | Discharge of preservation of patent |
Date of cancellation: 20210428 Granted publication date: 20150429 |
|
| PD01 | Discharge of preservation of patent | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150429 Termination date: 20200925 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |