CN102780820B - The system and method for music is play in mobile phone and communication process thereof - Google Patents
The system and method for music is play in mobile phone and communication process thereof Download PDFInfo
- Publication number
- CN102780820B CN102780820B CN201110119237.8A CN201110119237A CN102780820B CN 102780820 B CN102780820 B CN 102780820B CN 201110119237 A CN201110119237 A CN 201110119237A CN 102780820 B CN102780820 B CN 102780820B
- Authority
- CN
- China
- Prior art keywords
- processing unit
- central processing
- external
- music
- chip
- 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
Landscapes
- Telephone Function (AREA)
Abstract
A kind of mobile phone, this mobile phone comprises a control circuit, this control circuit comprises central processing unit, external MP3 chip and mic circuit, this control circuit also comprises analog switch, switch control rule pin and multiple electric capacity, wherein: when switch control rule pin input low level, external MP3 chip signal through the switching of analog switch export to pin MIC+, MIC of central processing unit-; When switch control rule pin input high level, the signal of external MP3 chip exports pin LINE_INP, LINE_INM of central processing unit to through the switching of analog switch.The present invention also provides a kind of mobile phone in communication process, play the system and method for music.Utilize the present invention in the communication process of mobile phone, directly can carry out the broadcasting of music, be reduced by the trouble that other modes carry out song transmission.
Description
Technical field
The present invention relates to the system and method playing music in a kind of mobile phone and communication process thereof.
Background technology
When user is in communication process, rise for the moment, want the song stored in mobile phone to share with the other side, at this moment, common way is issued the other side with multimedia message, or is sent to the other side by network on computers after hanging up the telephone exactly etc.Sending by other means, is practices well, but cumbersome.If the broadcasting of music directly can be carried out in communication process, just such trouble can be avoided.
Summary of the invention
In view of above content, be necessary to provide a kind of mobile phone, the broadcasting of music can be carried out in the communication process of mobile phone, without the need to sending by other means, more convenient.
There is a need to provide a kind of mobile phone in communication process, play the method for music, the broadcasting of music can be carried out in the communication process of mobile phone, without the need to sending by other means, more convenient.
There is a need to provide a kind of mobile phone in communication process, play the system of music, the broadcasting of music can be carried out in the communication process of mobile phone, without the need to sending by other means, more convenient.
A kind of mobile phone, this mobile phone comprises a control circuit, this control circuit comprises central processing unit, external MP3 chip and mic circuit, this control circuit also comprises analog switch, switch control rule pin and multiple electric capacity, wherein: described analog switch comprises one and controls pin, two input pins, four output pins, described control pin is connected to switch control rule pin, and described two input pins are connected to external MP3 chip through electric capacity respectively; Described four output pins are connected to pin MIC+, MIC-and LINE_INP, LINE_INM of central processing unit respectively through electric capacity; When switch control rule pin input low level, the signal of external MP3 chip through the switching of analog switch export to pin MIC+, MIC of central processing unit-; When switch control rule pin input high level, the signal of external MP3 chip exports pin LINE_INP, LINE_INM of central processing unit to through the switching of analog switch.
Utilize mobile phone described above in communication process, play a method for music, the method comprises the following steps: detecting step one: in communication process, detect central processing unit whether control external MP3 chip broadcasting music; Rate-determining steps one: detect central processing unit control in communication process external MP3 chip play music time, be low level by the level of central processing unit trigger switch control pin, two input pins of described analog switch the signal switching of external MP3 chip is exported to pin MIC+, MIC of central processing unit-; Detecting step 2: detect central processing unit and whether no longer control external MP3 chip broadcasting music in communication process; Rate-determining steps two: detect central processing unit no longer control in communication process external MP3 play music time, be high level by the level of central processing unit trigger switch control pin, the signal switching of external MP3 chip is exported to pin LINE_INP, LINE_INM of central processing unit by two input pins of described analog switch.
Utilize mobile phone described above in communication process, play a system for music, this system comprises: detecting module one, whether controls external MP3 chip broadcasting music for detecting central processing unit in communication process; Control module one, for detect central processing unit control in communication process external MP3 chip play music time, be low level by the level of central processing unit trigger switch control pin, two input pins of described analog switch the signal switching of external MP3 chip is exported to pin MIC+, MIC of central processing unit-; Whether detecting module two, no longer control external MP3 chip broadcasting music for detecting central processing unit in communication process; Control module two, for detect central processing unit no longer control in communication process external MP3 play music time, be high level by the level of central processing unit trigger switch control pin, the signal switching of external MP3 chip is exported to pin LINE_INP, LINE_INM of central processing unit by two input pins of described analog switch.
Compared to prior art, play the system and method for music in mobile phone of the present invention and communication process thereof, in the communication process of mobile phone, directly can carrying out the broadcasting of music, without the need to sending by other means, can reduce trouble.
Accompanying drawing explanation
Fig. 1 is the hardware structure figure of mobile phone of the present invention.
Fig. 2 is the circuit diagram of control circuit 2 in Fig. 1 of the present invention.
Fig. 3 is the example sketch of analog switch 12 in Fig. 1 of the present invention.
Fig. 4 is the functional block diagram of the music control unit 3 in Fig. 1 of the present invention.
Fig. 5 is the flow chart that the method preferred embodiment of music play by mobile phone of the present invention in communication process.
Main element symbol description
Mobile phone | 1 |
Control circuit | 2 |
CPU | 10 |
External MP3 chip | 11 |
Analog switch | 12 |
Switch control rule pin | 13 |
Mic circuit | 14 |
Music control unit | 3 |
CAP | 16、17、18、19、20、21、22、23 |
Detecting module one | 301 |
Control module one | 302 |
Detecting module two | 303 |
Control module two | 304 |
Following embodiment will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Embodiment
As shown in Figure 1, be the hardware structure figure of mobile phone of the present invention.
Mobile phone 1 comprises control circuit 2 and music control unit 3.Music control unit 3 is for detecting the demand of user in communication process, and when user needs to play music in communication process, music control unit 3 by a control to control circuit 2, thus reaches the object playing music in communication process.
As shown in Figure 2, be the circuit diagram of control circuit 2 in Fig. 1 of the present invention.
Control circuit 2 comprises CPU(CentralProcessingUnit, central processing unit) 10, external MP3 chip 11, analog switch 12, the writing a Chinese character in simplified form of switch control rule pin13, mic circuit 14 and multiple CAP(Capacitance, refer to electric capacity) 16,17,18,19,20,21,22,23.
Wherein, mic circuit 14 is circuit that acoustical signal when people being spoken changes into the voice signal of simulation.The audio signal exported from each chip has DC level, and electric capacity CAP is used for this DC level being removed before DC level enters CPU10, and the capacitance of electric capacity CAP can be selected at about 1uF.
Pin MIC+, MIC of CPU10-be connected to mic circuit 14 respectively by CAP22, CAP23.Pin LINE_INP, LINE_INM of CPU10 are connected to analog switch 12 respectively by CAP16, CAP17.Analog switch 12 by CAP19, CAP18 be connected to respectively pin MIC+, MIC of CPU10-.Pin MP3_OUTL, MP3_OUTR of external MP3 chip are connected to analog switch 12 respectively by CAP20, CAP21.The incoming level of switch control rule pin13 control simulation switch 12, thus the output of control simulation switch 12.
Music control unit 3 carries out the monitoring of user's request, when monitoring user and needing to play music in communication process, then by the incoming level of CPU10 control switch control pin13, thus carry out the switching of circuit, reach the object playing music in communication process.
When our normal talking or when normally listening MP3, by CPU10 control simulation switch 12, make being outputted on LINE_INP and the LINE_INM interface of CPU10 of analog switch 12.When we want to play music in communication process, can make MIC+ and MIC being outputted to CPU10 of analog switch 12-on.
As shown in Figure 3, be the example sketch of analog switch 12 in Fig. 1 of the present invention.
Analog switch 12 comprises input pin A1, A2, output pin B1, C1, B2, C2 and control pin S.Input pin A1 carries out the selection of output pin B1, C1 by controlling pin S, input pin A2 carries out the selection of output pin B2, C2 by controlling pin S.Control the switch control rule pin13 that pin S connects mobile phone 1, when control pin S is high level, input pin A1 is connected with output pin C1, and input pin A2 is connected with output pin C2; When control pin S is low level, input pin A1 is connected with output pin B1, and input pin A2 is connected with output pin B2.
Wherein, input pin A1, A2 is connected with pin MP3_OUTL, MP3_OUTR of external MP3 chip 11 respectively by CAP20, CAP21.Output pin B1, B2 respectively by CAP19, CAP18 and CPU10 pin MIC+, MIC-be connected; Output pin C1, C2 are connected respectively by pin LINE_INP, LINE_INM of CAP16, CAP17 and CPU10.
When our normal talking or when normally listening MP3, be high level by CPU10 by the level triggers of switch control rule pin13, thus make control pin S be high level, input pin A1, A2 now in analog switch 12 are connected with output pin C1, C2, make being outputted on LINE_INP and the LINE_INM interface of CPU10 of analog switch 12.Circuit signal now flows to: >mic circuit 14 carries out the output of voice signal to the LINE pin of external MP3 chip 11--> analog switch 12-->CPU10--MIC pin (LINE pin switches to the process of MIC pin through CPU internal switching circuits) of >CPU10--.Now the LINE pin of CPU10 is because the locking of circuit performance, and can only carry out a kind of transmission of sound, be therefore now cannot carry out the transmission of music in communication process.Wherein, the LINE pin of described CPU10 guides pin LINE_INP, LINE_INM, the MIC pin of described CPU10 guide pin MIC+, MIC-.
When we want to play music in communication process, be low level by CPU10 by the level triggers of switch control rule pin13, thus make control pin S be low level, input pin A1, A2 now in analog switch 12 are connected with output pin B1, B2, make MIC+ and MIC being outputted to CPU10 of analog switch 12-on, make MP3 signal be input to CPU10 by MIC.Signal now flows to: external MP3 chip 11--> analog switch 12-->CPU10 MIC pin-->mic circuit 14 carries out the output of voice signal.Because MIC pin can carry out the transmission of two kinds of sound simultaneously, therefore, the object of the broadcasting carrying out MP3 in communication process can be reached.
As shown in Figure 4, be the functional block diagram of music control unit 3 in Fig. 1 of the present invention.
This music control unit 3 comprises detecting module 1, control module 1, detecting module 2 303, control module 2 304.
Whether detecting module 1, for detecting CPU10 in communication process, is play music by the external MP3 chip 11 of Interface Controller according to CPU10 and is judged whether mobile phone 1 has the demand playing music in communication process.When not detecting mobile phone 1 and have the demand playing music in communication process, be then left intact.When there being the demand playing music in communication process, also namely when CPU10 detects that the play button of player is pressed, play music by the external MP3 chip 11 of I2C Interface Controller.Described I2C interface, as SDA, SCL interface of CPU10 in Fig. 2 and external MP3 chip 11.
The level triggers of switch control rule pin13, for detecting after mobile phone 1 has the demand playing music in communication process, is low level by CPU10 by control module 1.Now, analog switch 12 MIC+ and MIC being outputted to CPU10-on.
Detecting module 2 303 for detecting CPU10 in communication process, according to CPU10 whether no longer control external MP3 chip 11 play music judge mobile phone 1 the need of time-out music or music whether finish.When not needing time-out music or music not to finish, then proceed detecting.When need to suspend music broadcasting and when music is complete, namely CPU10 detects that the Pause key of player is pressed or player switches to stop key, and now this CPU10 disconnects and the connection of external MP3 chip 11, no longer controls this external MP3 chip 11.
The level triggers of switch control rule pin13, for when needs suspend music or after music, is high level by CPU10 by control module 2 304.Now, being outputted on LINE_INP and the LINE_INM interface of CPU10 of analog switch 12.
It should be noted that, in communication process, the broadcasting of music music and existing as a setting, now, call still can normally be carried out, but speech quality can decline to some extent.
As shown in Figure 5, be the flow chart that the method preferred embodiment of music play by mobile phone of the present invention in communication process.
Step S100, in communication process, detecting module one 301 couples of CPU10 detect, and whether play music by the external MP3 chip 11 of Interface Controller judge whether mobile phone 1 has the demand playing music in communication process according to CPU10.When detecting mobile phone 1 and having the demand playing music in communication process, perform step S101, when not detecting mobile phone 1 and have the demand playing music in communication process, be left intact, directly terminate this flow process.
Step S101, control module 1 detect mobile phone 1 have in communication process play the demand of music time, be low level by CPU10 by the level triggers of switch control rule pin13.Now, analog switch 12 MIC+ and MIC being outputted to CPU10-on.
Step S102, whether, in communication process, detecting module 2 303 couples of CPU10 detect, disconnected to judge that with the connection of external MP3 chip 11 mobile phone 1 is the need of suspending music or music finishes according to CPU10.After needs suspend music or music, performing step S103, when not needing time-out music or music not to finish, proceeding detecting.
Step S103, the level triggers of switch control rule pin13, when needs suspend music or after music, is high level by CPU10 by control module 2 304.Now, being outputted on LINE_INP and the LINE_INM interface of CPU10 of analog switch 12.
Above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, can modify to technical scheme of the present invention or equivalent replacement, and not depart from the spirit and scope of technical solution of the present invention.
Claims (10)
1. a mobile phone, this mobile phone comprises a control circuit, and this control circuit comprises central processing unit, external MP3 chip and mic circuit, it is characterized in that, this control circuit also comprises analog switch, switch control rule pin and multiple electric capacity, wherein:
Described analog switch comprises one and controls pin, two input pins, four output pins, and described control pin is connected to switch control rule pin, and described two input pins are connected to external MP3 chip through electric capacity respectively; Described four output pins are connected to pin MIC+, MIC-and LINE_INP, the LINE_INM of central processing unit respectively through electric capacity;
When switch control rule pin input low level, the signal of external MP3 chip exports pin MIC+, MIC-of central processing unit to, to be closed in communication process the function playing music through the switching of analog switch; When switch control rule pin input high level, the signal of external MP3 chip exports pin LINE_INP, LINE_INM of central processing unit to, to realize the function playing music in communication process through the switching of analog switch.
2. mobile phone as claimed in claim 1, is characterized in that, this DC level is removed before the DC level of the audio signal that described electric capacity exports at external MP3 chip enters central processing unit.
3. utilize mobile phone described in claim 1 in communication process, play a method for music, it is characterized in that, the method comprises the following steps:
Detecting step one: detect central processing unit and whether control external MP3 chip broadcasting music in communication process;
Rate-determining steps one: detect central processing unit control in communication process external MP3 chip play music time, be low level by the level of central processing unit trigger switch control pin, the signal switching of external MP3 chip is exported to pin MIC+, MIC-of central processing unit by two input pins of described analog switch;
Detecting step 2: detect central processing unit and whether no longer control external MP3 chip broadcasting music in communication process;
Rate-determining steps two: detect central processing unit no longer control in communication process external MP3 play music time, be high level by the level of central processing unit trigger switch control pin, the signal switching of external MP3 chip is exported to pin LINE_INP, LINE_INM of central processing unit by two input pins of described analog switch.
4. the method for music play by mobile phone as claimed in claim 3 in communication process, it is characterized in that, detecting step one comprises:
When in communication process, central processing unit detects that the play button of player is pressed, central processing unit plays music by the external MP3 chip of I2C Interface Controller.
5. the method for music play by mobile phone as claimed in claim 3 in communication process, it is characterized in that, detecting step 2 comprises:
When central processing unit detects that the Pause key that player has switched to stop key or player is pressed, central processing unit disconnects the connection with external MP3 chip, no longer controls external MP3 chip and plays music.
6. the method for music play by mobile phone as claimed in claim 3 in communication process, it is characterized in that, this DC level removed before the DC level of the audio signal that described electric capacity exports at external MP3 chip enters central processing unit.
7. utilize mobile phone described in claim 1 in communication process, play a system for music, it is characterized in that, this system comprises:
Whether detecting module one, control external MP3 chip broadcasting music for detecting central processing unit in communication process;
Control module one, for detect central processing unit control in communication process external MP3 chip play music time, be low level by the level of central processing unit trigger switch control pin, the signal switching of external MP3 chip is exported to pin MIC+, MIC-of central processing unit by two input pins of described analog switch;
Whether detecting module two, no longer control external MP3 chip broadcasting music for detecting central processing unit in communication process;
Control module two, for detect central processing unit no longer control in communication process external MP3 play music time, be high level by the level of central processing unit trigger switch control pin, the signal switching of external MP3 chip is exported to pin LINE_INP, LINE_INM of central processing unit by two input pins of described analog switch.
8. the system of music play by mobile phone as claimed in claim 7 in communication process, it is characterized in that, whether detecting module one controls external MP3 chip by following method detecting central processing unit and play music:
When in communication process, when central processing unit detects that the play button of player is pressed, central processing unit plays music by the external MP3 chip of I2C Interface Controller.
9. the system of music play by mobile phone as claimed in claim 7 in communication process, it is characterized in that, whether detecting module two no longer controls external MP3 chip by following method detecting central processing unit and play music:
When in communication process, central processing unit detects that player has switched to stop key or Pause key when being pressed, and central processing unit disconnects the connection with external MP3 chip, no longer controls external MP3 chip and plays music.
10. the system of music play by mobile phone as claimed in claim 7 in communication process, it is characterized in that, this DC level removed before the DC level of the audio signal that described electric capacity exports at external MP3 chip enters central processing unit.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110119237.8A CN102780820B (en) | 2011-05-10 | 2011-05-10 | The system and method for music is play in mobile phone and communication process thereof |
TW100116593A TWI583168B (en) | 2011-05-10 | 2011-05-12 | A phone and the system and method of playing music during a call |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110119237.8A CN102780820B (en) | 2011-05-10 | 2011-05-10 | The system and method for music is play in mobile phone and communication process thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102780820A CN102780820A (en) | 2012-11-14 |
CN102780820B true CN102780820B (en) | 2016-04-06 |
Family
ID=47125572
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110119237.8A Expired - Fee Related CN102780820B (en) | 2011-05-10 | 2011-05-10 | The system and method for music is play in mobile phone and communication process thereof |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102780820B (en) |
TW (1) | TWI583168B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103856625B (en) * | 2012-12-07 | 2015-12-09 | 广州三星通信技术研究有限公司 | Control device and the wireless communication terminal of doubleway output audio frequency |
CN105120070A (en) * | 2015-07-16 | 2015-12-02 | 努比亚技术有限公司 | Methods and terminal for playing music during call |
CN106231500A (en) * | 2016-10-13 | 2016-12-14 | 福建星海通信科技有限公司 | A kind of MIC switching circuit of vehicle-mounted multimedia terminal |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1816058A (en) * | 2005-01-31 | 2006-08-09 | 乐金电子(中国)研究开发中心有限公司 | Mobile communication terminal capable of equipping background sound and method thereof |
-
2011
- 2011-05-10 CN CN201110119237.8A patent/CN102780820B/en not_active Expired - Fee Related
- 2011-05-12 TW TW100116593A patent/TWI583168B/en not_active IP Right Cessation
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1816058A (en) * | 2005-01-31 | 2006-08-09 | 乐金电子(中国)研究开发中心有限公司 | Mobile communication terminal capable of equipping background sound and method thereof |
Also Published As
Publication number | Publication date |
---|---|
TWI583168B (en) | 2017-05-11 |
TW201246897A (en) | 2012-11-16 |
CN102780820A (en) | 2012-11-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101924835B (en) | Mobile telephone communication method and mobile telephone | |
CN201204638Y (en) | System and single-pin plug | |
CN107134286A (en) | ANTENNAUDIO player method, music player and storage medium based on interactive voice | |
KR20100047967A (en) | Apparatus and method for controlling mode of usb switching ic in a portable device | |
CN102752029A (en) | Method for matching Bluetooth accessory with Bluetooth devices and Bluetooth accessory | |
CN101841588B (en) | Audio interface device and electronic device using same | |
CN103078997A (en) | Method and system for setting volume of mobile terminal and mobile terminal | |
CN103118191A (en) | Using control method and mobile terminal for iPhone wire control earphone | |
CN101938546A (en) | Earphone microphone detection method based on mobile phone and mobile phone | |
CN107749299B (en) | Multi-audio output method and device | |
CN103200498B (en) | A kind of mobile terminal music playing method and system | |
CN103260124A (en) | Audio testing method and system of mobile terminal | |
WO2011153779A1 (en) | Method and terminal for noise suppression using dual-microphone | |
WO2017148270A1 (en) | Volume control method and device, and terminal | |
CN102395072B (en) | A kind of headset plug and earphone thereof | |
CN102111699A (en) | Terminal and method for realizing compatibility of talkback headset and stereo headset at terminal | |
CN102780820B (en) | The system and method for music is play in mobile phone and communication process thereof | |
CN106293599A (en) | A kind of output control method, electronic equipment and output system | |
CN103324459A (en) | Method and system for implementing USB (universal serial bus) headset devices | |
CN102938819A (en) | Mobile terminal music control system and method | |
CN102355518A (en) | Mobile phone and audio processing method thereof | |
CN1964400A (en) | A method and terminal for realizing call maintenance | |
CN107979484B (en) | Scheduling system and method with multiple communication functions | |
CN105228044A (en) | A kind of harmless tonequality earphone | |
WO2018201943A1 (en) | Device control method, device and system |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160406 Termination date: 20180510 |
|
CF01 | Termination of patent right due to non-payment of annual fee |