CN103167155A - 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
- CN103167155A CN103167155A CN2012103588389A CN201210358838A CN103167155A CN 103167155 A CN103167155 A CN 103167155A CN 2012103588389 A CN2012103588389 A CN 2012103588389A CN 201210358838 A CN201210358838 A CN 201210358838A CN 103167155 A CN103167155 A CN 103167155A
- Authority
- CN
- China
- Prior art keywords
- cpu
- microprocessor
- mobile phone
- distance
- music player
- 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.)
- Granted
Links
Images
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 the method that distance-based transducer is realized the mobile phone music player, is mainly used in solving mobile phone in the situation that screen is closed, and can't realize the control to music player.
Background technology
Fast development along with smart mobile phone, the function of smart mobile phone is more and more, a lot of users can listen to the music with smart mobile phone, and listening to the music by mobile phone at present mainly contains dual mode: the one, and be connected to mobile phone by earphone and carry out, by earphone, the mobile phone music player is carried out X-by-Wire; The 2nd, directly connect broadcast music by straightening outward, by mobile phone music player menu is operated control.
Carry out line traffic control by earphone, can be in the situation that mobile phone screen be closed the control that realizes music player, but directly put the broadcast music outward by mobile phone, in the situation that mobile phone screen is closed, can not realize the control to music player, after need to opening screen, operate, there is complex operation in it, frequently opens the large problem of screen power consumption.
Summary of the invention
The object of the present invention is to provide a kind of distance-based transducer to realize control system and the method for mobile phone music player, solving mobile phone by putting the broadcast music outward, and in the screen situation of closing, can't realize the problem to the control of music player.
The objective of the invention is to be achieved through the following technical solutions.
A kind of distance-based transducer is realized the control system of mobile phone music player, comprise range sensor, microprocessor, CPU, display screen and musical player module, described range sensor is connected with microprocessor, be used for obtaining apart from influence value, and send to microprocessor to carry out Treatment Analysis, microprocessor is connected with CPU, and the Treatment Analysis result is sent to CPU, by CPU, musical player module is controlled.
Preferably, described CPU is connected with musical player module by controller, and CPU sends control signal to controller, by controller, musical player module is controlled.
Preferably, this system also includes a memory, and this memory is connected with microprocessor, is used for the storage distance perspective and answers threshold value.
Preferably, described CPU is connected with display screen, is used for obtaining the screen signal that goes out of display screen, and correspondence sends to microprocessor, starts range sensor by microprocessor and carries out distance perspective and answer.
In addition, the present invention also provides a kind of distance-based transducer to realize the control method of mobile phone music player, specifically comprises step:
A, range sensor obtain apart from influence value, and send to microprocessor;
B, microprocessor compare analysis to above-mentioned apart from influence value, produce according to the comparative analysis result and control request instruction, and send to CPU;
C, CPU produce control signal according to above-mentioned request instruction, send to controller;
D, controller are controlled 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, by microprocessor start range sensor carry out distance perspective should.
Preferably, also comprise before steps A:
Distance perspective is set answers threshold value, and pass through the CPU corresponding stored in memory.
Preferably, step B specifically comprises:
The distance perspective that microprocessor calls in memory is answered threshold value, with it and above-mentionedly compare analysis apart from influence value, if obtain answer threshold value apart from influence value less than distance perspective, do not produce the control request instruction; If answer threshold value greater than distance perspective, produce and control request instruction, and send to CPU.
The present invention compared with prior art, beneficial effect is: distance-based transducer provided by the invention is realized control system and the method for mobile phone music player, after mobile phone display screen is closed, the corresponding range sensor that starts, and obtain apart from influence value, answer threshold value to compare with distance perspective, control musical player module according to comparative result by CPU and play, suspend, play next.The invention solves mobile phone by putting the broadcast music outward, and in the screen situation of closing, can't realize the problem to the control of music player.
Description of drawings
Fig. 1 is system principle diagram of the present invention.
Fig. 2 is operation principle flow chart of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, 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, is not intended to limit the present invention.
See also shown in Figure 1ly, Fig. 1 is system principle diagram of the present invention.The present invention is to provide a kind of distance-based transducer and realize the control system of mobile phone music player, be mainly used in solving mobile phone by putting the broadcast music outward, and in the screen situation of closing, can't realize the control to music player.
Wherein this system includes range sensor, microprocessor, CPU, controller, memory, display screen and musical player module, described range sensor is connected with microprocessor, be used for obtaining apart from influence value, and send to microprocessor to carry out Treatment Analysis, microprocessor is connected with CPU, the 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, by controller, musical player module is controlled; Described memory is connected with microprocessor, CPU respectively, is used for arranging and store distance perspective by CPU and answers threshold value, and therefrom read the music data; Described CPU is connected with display screen, is used for obtaining the screen signal that goes out of display screen, and correspondence sends to microprocessor, starts range sensor by microprocessor and carries out distance perspective and answer.
At first native system arranges staff near the distance threshold of range sensor and the time of staying on range sensor, and corresponding stored is in memory, such as after setting mobile phone display screen and closing, staff (or object is arranged) blocks range sensor, the place of 3cm above range sensor, stopped about 2 seconds, thinking needs to produce the control signal of suspending the music player playing function; If staff (or object is arranged) blocks range sensor, the place about 3cm above range sensor ~ 2 cm, during fast moving, thinking needs to produce the control signal of playing next music.
Be more than to realize the explanation of the control system of mobile phone music player to the present invention is based on range sensor, the present invention is based on range sensor below in conjunction with 2 pairs, accompanying drawing and realize that the control method of mobile phone music player is further described.
Shown in Figure 2, Fig. 2 is operation principle flow chart of the present invention.The present invention also provides a kind of distance-based transducer to realize the control method of mobile phone music player, and it specifically comprises the following steps:
At first require that according to mobile phone distance perspective is set and answer threshold value, and pass through the CPU corresponding stored in memory, it specifically arranges as follows: block the position of 3cm left and right above range sensor, and about 2 seconds time of staying, thinking needs to produce the control signal of suspending the music player playing function; The object fast moving is blocked in place about 3cm above range sensor ~ 2 cm, and thinking needs to produce the control signal of playing next music.
Secondly CPU obtains the screen signal that goes out of display screen, and correspondence sends to microprocessor, starts range sensor by microprocessor and carries out distance perspective and answer.
A, range sensor obtain apart from influence value, and send to microprocessor;
B, microprocessor compare analysis to above-mentioned apart from influence value, produce according to the comparative analysis result and control request instruction, and send to CPU;
The distance perspective that microprocessor calls in memory is answered threshold value, with it and above-mentionedly compare analysis apart from influence value, if obtain answer threshold value apart from influence value less than distance perspective, do not produce the control request instruction; If answer threshold value greater than distance perspective, produce and control request instruction, and send to CPU.
C, CPU produce control signal according to above-mentioned request instruction, send to controller;
D, controller are controlled musical player module according to control signal.
Invention is after mobile phone display screen is closed, and correspondence starts range sensor, and obtains apart from influence value, answers threshold value to compare with distance perspective, controls musical player module according to comparative result by CPU and plays, suspends, plays next.The invention solves mobile phone by putting the broadcast music outward, and in the screen situation of closing, can't realize the problem to the control of music player.
The above is only preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., within all should being included in protection scope of the present invention.
Claims (8)
1. a distance-based transducer is realized the control system of mobile phone music player, it is characterized in that comprising range sensor, microprocessor, CPU, display screen and musical player module, described range sensor is connected with microprocessor, be used for obtaining apart from influence value, and send to microprocessor to carry out Treatment Analysis, microprocessor is connected with CPU, and the Treatment Analysis result is sent to CPU, by CPU, musical player module is controlled.
2. distance-based transducer according to claim 1 is realized the control system of mobile phone music player, it is characterized in that described CPU is connected with musical player module by controller, CPU sends control signal to controller, by controller, musical player module is controlled.
3. distance-based transducer according to claim 1 is realized the control system of mobile phone music player, characterized by further comprising a memory, and this memory is connected with microprocessor, is used for the storage distance perspective and answers threshold value.
4. distance-based transducer according to claim 1 is realized the control system of mobile phone music player, it is characterized in that described CPU is connected with display screen, be used for obtaining the screen signal that goes out of display screen, and correspondence sends to microprocessor, by microprocessor start range sensor carry out distance perspective should.
5. a distance-based transducer is realized the control method of mobile phone music player, it is characterized in that specifically comprising step:
A, range sensor obtain apart from influence value, and send to microprocessor;
B, microprocessor compare analysis to above-mentioned apart from influence value, produce according to the comparative analysis result and control request instruction, and send to CPU;
C, CPU produce control signal according to above-mentioned request instruction, send to controller;
D, controller are controlled musical player module according to control signal.
6. distance-based transducer according to claim 5 is realized the control method of mobile phone music player, it is characterized in that comprising before steps A:
CPU obtains the screen signal that goes out of display screen, and correspondence sends to microprocessor, by microprocessor start range sensor carry out distance perspective should.
7. distance-based transducer according to claim 5 is realized the control method of mobile phone music player, it is characterized in that also comprising before steps A:
Distance perspective is set answers threshold value, and pass through the CPU corresponding stored in memory.
8. distance-based transducer according to claim 5 is realized the control method of mobile phone music player, it is characterized in that step B specifically comprises:
The distance perspective that microprocessor calls in memory is answered threshold value, with it and above-mentionedly compare analysis apart from influence value, if obtain answer threshold value apart from influence value less than distance perspective, do not produce the control request instruction; If answer threshold value greater than distance perspective, 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 true CN103167155A (en) | 2013-06-19 |
CN103167155B 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) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105843522A (en) * | 2016-03-18 | 2016-08-10 | 广东欧珀移动通信有限公司 | Music play control method and apparatus as well as mobile terminal |
CN107172266A (en) * | 2017-04-28 | 2017-09-15 | 广东欧珀移动通信有限公司 | Method for controlling fingerprint identification and Related product |
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 |
CN109788361A (en) * | 2019-01-10 | 2019-05-21 | 中科创达软件股份有限公司 | A kind of method and device controlling video playing |
CN110345947A (en) * | 2013-12-23 | 2019-10-18 | 耐克创新有限合伙公司 | Motion monitoring system with media content automatic pause |
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 |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110345947A (en) * | 2013-12-23 | 2019-10-18 | 耐克创新有限合伙公司 | Motion monitoring system with media content automatic pause |
CN110345947B (en) * | 2013-12-23 | 2024-06-28 | 耐克创新有限合伙公司 | Motion monitoring system with automatic suspension of media content |
CN105843522A (en) * | 2016-03-18 | 2016-08-10 | 广东欧珀移动通信有限公司 | Music play control method and apparatus as well as mobile terminal |
CN105843522B (en) * | 2016-03-18 | 2020-07-10 | Oppo广东移动通信有限公司 | Music playing control method and device and mobile terminal |
CN107172266A (en) * | 2017-04-28 | 2017-09-15 | 广东欧珀移动通信有限公司 | Method for controlling fingerprint identification and Related product |
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 |
CN109788361A (en) * | 2019-01-10 | 2019-05-21 | 中科创达软件股份有限公司 | A kind of method and device controlling video playing |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN103167155B (en) | 2015-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103167155A (en) | System and method for achieving control of music player of mobile phone based on range sensor | |
JP6871891B2 (en) | Speech processing methods, devices and computer-readable storage media | |
CN204129661U (en) | Wearable device and there is the speech control system of this wearable device | |
US11283641B2 (en) | Method, apparatus, device, system and storage medium for controlling smart home | |
CN109743654A (en) | A kind of bluetooth headset major-minor ear switching method, device, equipment and medium | |
KR20140074549A (en) | Method and apparatus for providing context aware service using speech recognition | |
CN107005800B (en) | Audio file transmission and receiving method, device, equipment and system | |
CN107329843A (en) | Application program sound control method, device, equipment and storage medium | |
KR102160473B1 (en) | Electronic device and method for controling volume | |
CN105139874A (en) | Navigation prompt method and apparatus | |
CN102572670A (en) | One-to-many wireless frequency modulation (FM) loudspeaker box system | |
CN108684023A (en) | A kind of control method interconnecting multiple bluetooth equipments with gesture motion | |
CN107911777B (en) | Processing method and device for return-to-ear function and mobile terminal | |
CN111179923A (en) | Audio playing method based on wearable device and wearable device | |
CN111045518B (en) | Method and related device for acquiring attitude data | |
WO2010095264A1 (en) | Content transmission device, content output system, transmission control method, transmission control program, and recording medium | |
WO2022267468A1 (en) | Sound processing method and apparatus thereof | |
US10129382B2 (en) | Electronic device and method for controlling electronic device using headset | |
CN106921913A (en) | A kind of intelligent music play device | |
CN109149669A (en) | Battery modules and its control method, charging adapter and its control method | |
KR20150029197A (en) | Mobile terminal and operation method thereof | |
CN110377208A (en) | Audio frequency playing method, device, terminal and computer readable storage medium | |
CN103167125A (en) | Mobile phone music playing system and method for the blind | |
CN115273431A (en) | Device retrieving method and device, storage medium and electronic device | |
CN103167157A (en) | System and method for achieving frequency modulation (FM) control of mobile phone based on range sensor |
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 | ||
PP01 | Preservation of patent right |
Effective date of registration: 20180428 Granted publication date: 20150429 |
|
PD01 | Discharge of preservation of patent | ||
PD01 | Discharge of preservation of patent |
Date of cancellation: 20210428 Granted publication date: 20150429 |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150429 Termination date: 20200925 |