TWI583168B - A phone and the system and method of playing music during a call - Google Patents

A phone and the system and method of playing music during a call Download PDF

Info

Publication number
TWI583168B
TWI583168B TW100116593A TW100116593A TWI583168B TW I583168 B TWI583168 B TW I583168B TW 100116593 A TW100116593 A TW 100116593A TW 100116593 A TW100116593 A TW 100116593A TW I583168 B TWI583168 B TW I583168B
Authority
TW
Taiwan
Prior art keywords
external
chip
call
central processor
during
Prior art date
Application number
TW100116593A
Other languages
Chinese (zh)
Other versions
TW201246897A (en
Inventor
李彥斌
Original Assignee
群邁通訊股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 群邁通訊股份有限公司 filed Critical 群邁通訊股份有限公司
Publication of TW201246897A publication Critical patent/TW201246897A/en
Application granted granted Critical
Publication of TWI583168B publication Critical patent/TWI583168B/en

Links

Landscapes

  • Telephone Function (AREA)

Description

手機及其通話過程中播放音樂的系統及方法 System and method for playing music during mobile phone and during call

本發明涉及一種手機及其通話過程中播放音樂的系統及方法。 The invention relates to a mobile phone and a system and method for playing music during a call.

當用戶在通話過程中,一時興起,想將手機中存儲的歌曲與對方進行分享,這時,通常的做法就是等掛斷電話以後,用多媒體簡訊(MMS)發給對方,或者在電腦上通過網路發送給對方。通過其他方式進行發送,是常用做法,但是比較麻煩。要是直接可在通話過程中進行音樂的播放,就可避免這樣的麻煩。 When the user is in the process of talking, and wants to share the songs stored in the mobile phone with the other party, the usual way is to send the multimedia message (MMS) to the other party after hanging up the phone, or pass the network on the computer. The road is sent to the other party. Sending by other means is a common practice, but it is cumbersome. This can be avoided if the music can be played directly during the call.

鑒於以上內容,有必要提供一種手機及其在通話過程中播放音樂的系統及方法,可以在手機的通話過程中進行音樂的播放,無需通過其他方式進行發送,比較方便。 In view of the above, it is necessary to provide a mobile phone and a system and method for playing music during a call, which can be played during the call of the mobile phone without any other means of sending, which is convenient.

一種手機,該手機包括一個控制電路,該控制電路包括中央處理器、外置MP3晶片及mic電路,該控制電路還包括類比開關、開關控制pin及多個電容,其中:所述類比開關包括一個控制引腳,兩個輸入引腳,四個輸出引腳,所述控制引腳連接至開關控制pin,所述兩個輸入引腳分別經電容連接至外置MP3晶片;所述四個輸出引腳分別經電容連接至中央處理器的引腳MIC+、MIC-和LINE_INP、LINE_INM;當開關控制pin輸入低電平時,外置MP3晶 片的信號經類比開關的切換輸出至中央處理器的引腳MIC+、MIC-;當開關控制pin輸入高電平時,外置MP3晶片的信號經類比開關的切換輸出至中央處理器的引腳LINE_INP、LINE_INM。 A mobile phone comprising a control circuit comprising a central processing unit, an external MP3 chip and a mic circuit, the control circuit further comprising an analog switch, a switch control pin and a plurality of capacitors, wherein: the analog switch comprises a a control pin, two input pins, four output pins, the control pin is connected to a switch control pin, the two input pins are respectively capacitively connected to an external MP3 chip; the four output leads The pins are respectively connected to the pins MIC+, MIC- and LINE_INP of the central processing unit, LINE_INM; when the switch controls the pin input low level, the external MP3 crystal The signal of the chip is output to the pins MIC+ and MIC- of the central processing unit through the switching of the analog switch; when the switch control pin inputs the high level, the signal of the external MP3 chip is output to the pin LINE_INP of the central processing unit through the switching of the analog switch. , LINE_INM.

一種利用如上所述手機在通話過程中播放音樂的方法,該方法包括以下步驟:偵測步驟一:在通話過程中偵測中央處理器是否控制外置MP3晶片播放音樂;控制步驟一:在偵測到中央處理器在通話過程中控制外置MP3晶片播放音樂時,通過中央處理器觸發開關控制pin的電平為低電平,所述類比開關的兩個輸入引腳將外置MP3晶片的信號切換輸出至中央處理器的引腳MIC+、MIC-;偵測步驟二:在通話過程中偵測中央處理器是否不再控制外置MP3晶片播放音樂;控制步驟二:在偵測到中央處理器在通話過程中不再控制外置MP3播放音樂時,通過中央處理器觸發開關控制pin的電平為高電平,所述類比開關的兩個輸入引腳將外置MP3晶片的信號切換輸出至中央處理器的引腳LINE_INP、LINE_INM。 A method for playing music during a call by using the mobile phone as described above, the method comprising the following steps: detecting step 1: detecting whether the central processor controls the external MP3 chip to play music during the call; controlling step 1: detecting When the central processor detects that the external MP3 chip plays music during the call, the level of the pin is controlled to be low by the central processor trigger switch, and the two input pins of the analog switch will be external to the MP3 chip. Signal switching output to the MIC+, MIC- of the central processing unit; detection step 2: detecting whether the central processing unit no longer controls the external MP3 chip to play music during the call; control step 2: detecting the central processing When the device no longer controls the external MP3 playing music during the call, the level of the pin is controlled to be high by the central processor trigger switch, and the two input pins of the analog switch switch the signal of the external MP3 chip. To the central processor pins LINE_INP, LINE_INM.

一種利用如上所述手機在通話過程中播放音樂的系統,該系統包括:偵測模組一,用於在通話過程中偵測中央處理器是否控制外置MP3晶片播放音樂;控制模組一,用於在偵測到中央處理器在通話過程中控制外置MP3晶片播放音樂時,通過中央處理器觸發開關控制pin的電平為低電平,所述類比開關的兩個輸入引腳將外置MP3晶片的信號切換輸出至中央處理器的引腳MIC+、MIC-;偵測模組二,用於在通話過程中偵測中央處理器是否不再控制外置MP3晶片播放音樂;控制模組二,用於在偵測到中央處理器在通話過程中不再控制外置MP3播放音樂時,通過中央處理器觸發開關控制pin的電平為高電平,所述類比開關的兩個輸入引腳將 外置MP3晶片的信號切換輸出至中央處理器的引腳LINE_INP、LINE_INM。 A system for playing music during a call by using the mobile phone as described above, the system comprising: a detecting module 1 for detecting whether the central processor controls the external MP3 chip to play music during the call; the control module When the central processor is detected to control the playing of the external MP3 chip during the call, the level of the pin is controlled to be low by the central processor trigger switch, and the two input pins of the analog switch are external The signal switching output of the MP3 chip is output to the pins MIC+ and MIC- of the central processing unit; and the detecting module 2 is used for detecting whether the central processing unit no longer controls the playing of the external MP3 chip during the call; the control module Second, when detecting that the central processor no longer controls the external MP3 playing music during the call, the level of the pin is controlled to be high by the central processor trigger switch, and the two input of the analog switch Feet will The signal switching of the external MP3 chip is output to the pins LINE_INP and LINE_INM of the central processing unit.

相較於習知技術,本發明所述之手機及其在通話過程中播放音樂的系統及方法,可以在手機的通話過程中直接進行音樂的播放,無需通過其他方式進行發送,可以減少麻煩。 Compared with the prior art, the mobile phone and the system and method for playing music during the call can directly play music during the call of the mobile phone, and can be transmitted without other means, which can reduce the trouble.

1‧‧‧手機 1‧‧‧Mobile phone

2‧‧‧控制電路 2‧‧‧Control circuit

10‧‧‧CPU 10‧‧‧CPU

11‧‧‧外置MP3晶片 11‧‧‧External MP3 chip

12‧‧‧類比開關 12‧‧‧ analog switch

13‧‧‧開關控制pin 13‧‧‧Switch control pin

14‧‧‧mic電路 14‧‧‧mic circuit

16、17、18、19、20、21、22、23‧‧‧CAP 16, 17, 18, 19, 20, 21, 22, 23‧‧‧CAP

3‧‧‧音樂控制單元 3‧‧‧Music Control Unit

301‧‧‧偵測模組一 301‧‧‧Detection Module 1

302‧‧‧控制模組一 302‧‧‧Control Module One

303‧‧‧偵測模組二 303‧‧‧Detection Module II

304‧‧‧控制模組二 304‧‧‧Control Module II

圖1係為本發明手機之硬體架構圖。 1 is a hardware architecture diagram of a mobile phone of the present invention.

圖2係為本發明圖1中控制電路2之電路圖。 2 is a circuit diagram of the control circuit 2 of FIG. 1 of the present invention.

圖3係為本發明圖1中類比開關12之示例簡圖。 3 is a schematic diagram showing an example of the analog switch 12 of FIG. 1 of the present invention.

圖4係為本發明圖1中的音樂控制單元3之功能模組圖。 4 is a functional block diagram of the music control unit 3 of FIG. 1 of the present invention.

圖5係為本發明手機在通話過程中播放音樂的方法較佳實施例之流程圖。 FIG. 5 is a flow chart of a preferred embodiment of a method for playing music during a call by a mobile phone according to the present invention.

如圖1所示,係為本發明手機之硬體架構圖。 As shown in FIG. 1, it is a hardware architecture diagram of the mobile phone of the present invention.

手機1包括控制電路2和音樂控制單元3。音樂控制單元3用於偵測用戶在通話過程中的需求,當用戶需要在通話過程中播放音樂時,音樂控制單元3通過對控制電路2的一個控制,從而達到在通話過程中播放音樂的目的。 The mobile phone 1 includes a control circuit 2 and a music control unit 3. The music control unit 3 is configured to detect the user's demand during the call. When the user needs to play music during the call, the music control unit 3 controls the control circuit 2 to achieve the purpose of playing music during the call. .

如圖2所示,係為本發明圖1中控制電路2之電路圖。 2 is a circuit diagram of the control circuit 2 of FIG. 1 of the present invention.

控制電路2中包括CPU(Central Processing Unit,中央處理器)10、外置MP3晶片11、類比開關12、開關控制pin 13、mic電路14及多個CAP(Capacitance的簡寫,指電容)16、17、18、19、 20、21、22、23。 The control circuit 2 includes a CPU (Central Processing Unit) 10, an external MP3 chip 11, an analog switch 12, a switch control pin 13, a mic circuit 14, and a plurality of CAPs (short for Capacitance, capacitance) 16, 17 , 18, 19, 20, 21, 22, 23.

其中,mic電路14是將人說話時的聲信號轉化成類比的語音信號的電路。從各個晶片輸出的音頻信號會有直流電平,電容CAP用於在直流電平進入CPU 10前將該直流電平去除,電容CAP的電容值可以選擇在1uF左右。 Among them, the mic circuit 14 is a circuit that converts an acoustic signal when a person speaks into an analog speech signal. The audio signal output from each chip has a DC level, and the capacitance CAP is used to remove the DC level before the DC level enters the CPU 10. The capacitance of the capacitance CAP can be selected to be around 1 uF.

CPU 10的引腳MIC+、MIC-分別通過CAP 22、CAP 23連接到mic電路14。CPU 10的引腳LINE_INP、LINE_INM分別通過CAP 16、CAP 17連接到類比開關12。類比開關12通過CAP 19、CAP 18分別連接至CPU 10的引腳MIC+、MIC-。外置MP3晶片的引腳MP3_OUTL、MP3_OUTR分別通過CAP 20、CAP 21連接到類比開關12。開關控制pin 13控制類比開關12的輸入電平,從而控制類比開關12的輸出。 The pins MIC+, MIC- of the CPU 10 are connected to the mic circuit 14 through the CAP 22 and the CAP 23, respectively. The pins LINE_INP and LINE_INM of the CPU 10 are connected to the analog switch 12 via the CAP 16 and the CAP 17, respectively. The analog switch 12 is connected to the pins MIC+, MIC- of the CPU 10 through the CAP 19 and the CAP 18, respectively. The pins MP3_OUTL and MP3_OUTR of the external MP3 chip are connected to the analog switch 12 via the CAP 20 and the CAP 21, respectively. The switch control pin 13 controls the input level of the analog switch 12, thereby controlling the output of the analog switch 12.

音樂控制單元3進行用戶需求的監測,當監測到用戶需要在通話過程中播放音樂時,則通過CPU 10控制開關控制pin 13的輸入電平,從而進行電路的切換,達到在通話過程中播放音樂的目的。 The music control unit 3 monitors the user's needs. When it is monitored that the user needs to play music during the call, the CPU 10 controls the switch to control the input level of the pin 13, thereby switching the circuit to play the music during the call. the goal of.

當我們正常通話或正常聽MP3時,通過CPU 10控制類比開關12,使類比開關12的輸出切換到CPU 10的LINE_INP和LINE_INM介面上。當我們在通話過程中想要播放音樂時,可以使類比開關12的輸出切換到CPU 10的MIC+和MIC-上。 When we are talking normally or listening to MP3 normally, the analog switch 12 is controlled by the CPU 10 to switch the output of the analog switch 12 to the LINE_INP and LINE_INM interfaces of the CPU 10. When we want to play music during a call, the output of the analog switch 12 can be switched to the MIC+ and MIC- of the CPU 10.

如圖3所示,係為本發明圖1中類比開關12之示例簡圖。 As shown in FIG. 3, it is an exemplary diagram of the analog switch 12 of FIG. 1 of the present invention.

類比開關12包含輸入引腳A1、A2,輸出引腳B1、C1、B2、C2和控制引腳S。輸入引腳A1通過控制引腳S進行輸出引腳B1、C1的選擇,輸入引腳A2通過控制引腳S進行輸出引腳B2、C2的選擇。控制 引腳S連接手機1的開關控制pin 13,當控制引腳S為高電平時,輸入引腳A1與輸出引腳C1連接,輸入引腳A2與輸出引腳C2連接;當控制引腳S為低電平時,輸入引腳A1與輸出引腳B1連接,輸入引腳A2與輸出引腳B2連接。 Analog switch 12 includes input pins A1, A2, output pins B1, C1, B2, C2 and control pin S. Input pin A1 selects output pins B1 and C1 through control pin S, and input pin A2 selects output pins B2 and C2 through control pin S. control Pin S is connected to the switch control pin 13 of the mobile phone 1. When the control pin S is at a high level, the input pin A1 is connected to the output pin C1, the input pin A2 is connected to the output pin C2; when the control pin S is When low, input pin A1 is connected to output pin B1, and input pin A2 is connected to output pin B2.

其中,輸入引腳A1、A2分別通過CAP 20、CAP 21與外置MP3晶片11的引腳MP3_OUTL、MP3_OUTR相連。輸出引腳B1、B2分別通過CAP 19、CAP 18與CPU 10的引腳MIC+、MIC-相連;輸出引腳C1、C2分別通過CAP 16、CAP 17與CPU 10的引腳LINE_INP、LINE_INM相連。 The input pins A1 and A2 are connected to the pins MP3_OUTL and MP3_OUTR of the external MP3 chip 11 through the CAP 20 and the CAP 21, respectively. The output pins B1 and B2 are connected to the pins MIC+ and MIC- of the CPU 10 through the CAP 19 and the CAP 18, respectively; the output pins C1 and C2 are connected to the pins LINE_INP and LINE_INM of the CPU 10 through the CAP 16 and the CAP 17, respectively.

當我們正常通話或正常聽MP3時,通過CPU 10將開關控制pin 13的電平觸發為高電平,從而使控制引腳S為高電平,此時類比開關12中的輸入引腳A1、A2與輸出引腳C1、C2連接,使類比開關12的輸出切換到CPU 10的LINE_INP和LINE_INM介面上。此時的電路信號流向為:外置MP3晶片11-->類比開關12-->CPU 10的LINE引腳-->CPU 10的MIC引腳(LINE引腳至MIC引腳的過程經CPU內部開關電路進行切換)-->mic電路14進行聲音信號的輸出。此時CPU 10的LINE引腳因為電路性能的鎖定,只能進行一種聲音的傳送,因此此時是無法在通話過程中進行音樂的傳送的。其中,所述CPU 10的LINE引腳指引腳LINE_INP、LINE_INM,所述CPU 10的MIC引腳指引腳MIC+、MIC-。 When we are talking normally or listening to MP3 normally, the level of the switch control pin 13 is triggered to a high level by the CPU 10, so that the control pin S is at a high level, and the input pin A1 in the analog switch 12 is at this time. A2 is connected to the output pins C1, C2, so that the output of the analog switch 12 is switched to the LINE_INP and LINE_INM interfaces of the CPU 10. The circuit signal flow at this time is: external MP3 chip 11 --> analog switch 12 --> LINE pin of CPU 10 --> MIC pin of CPU 10 (the process of LINE pin to MIC pin through the CPU internal Switching circuit is switched)-->mic circuit 14 performs sound signal output. At this time, the LINE pin of the CPU 10 can only perform one type of sound transmission due to the lock of the circuit performance, so that it is impossible to transmit music during the call. The LINE pin of the CPU 10 refers to the pins LINE_INP, LINE_INM, and the MIC pins of the CPU 10 refer to the pins MIC+, MIC-.

當我們在通話過程中想要播放音樂時,通過CPU 10將開關控制pin 13的電平觸發為低電平,從而使控制引腳S為低電平,此時類比開關12中的輸入引腳A1、A2與輸出引腳B1、B2連接,使類比開關12的輸出切換到CPU 10的MIC+和MIC-上,使MP3信號通過MIC 輸入到CPU 10。此時的信號流向為:外置MP3晶片11-->類比開關12-->CPU 10的MIC引腳-->mic電路14進行聲音信號的輸出。由於MIC引腳可同時進行兩種聲音的傳送,因此,可達到在通話過程中進行MP3的播放的目的。 When we want to play music during the call, the level of the switch control pin 13 is triggered to a low level by the CPU 10, so that the control pin S is at a low level, and the input pin of the analog switch 12 is at this time. A1 and A2 are connected to output pins B1 and B2, so that the output of the analog switch 12 is switched to the MIC+ and MIC- of the CPU 10, so that the MP3 signal passes through the MIC. Input to the CPU 10. The signal flow at this time is: an external MP3 chip 11 --> analog switch 12 --> MIC pin of CPU 10 --> mic circuit 14 performs sound signal output. Since the MIC pin can transmit two kinds of sounds at the same time, the purpose of playing MP3 during the call can be achieved.

如圖4所示,係為本發明圖1中的音樂控制單元3之功能模組圖。 As shown in FIG. 4, it is a functional module diagram of the music control unit 3 in FIG. 1 of the present invention.

該音樂控制單元3包括偵測模組一301、控制模組一302、偵測模組二303、控制模組二304。 The music control unit 3 includes a detection module 301, a control module 302, a detection module 303, and a control module 304.

偵測模組一301用於在通話過程中對CPU 10進行偵測,根據CPU 10是否通過介面控制外置MP3晶片11播放音樂來判斷手機1是否有在通話過程中播放音樂的需求。當沒有偵測到手機1在通話過程中有播放音樂的需求時,則不做任何處理。當在通話過程中有播放音樂的需求時,也即當CPU 10檢測到播放器的播放鍵被按下時,通過I2C介面控制外置MP3晶片11播放音樂。所述I2C介面,如圖2中CPU 10與外置MP3晶片11的SDA、SCL介面。 The detecting module 301 is configured to detect the CPU 10 during a call, and determine whether the mobile phone 1 has a need to play music during a call according to whether the CPU 10 controls the external MP3 chip 11 to play music through the interface. When it is not detected that the mobile phone 1 has a need to play music during the call, no processing is performed. When there is a need to play music during a call, that is, when the CPU 10 detects that the play button of the player is pressed, the external MP3 wafer 11 is controlled to play music through the I2C interface. The I2C interface is, for example, the SDA and SCL interfaces of the CPU 10 and the external MP3 chip 11 in FIG.

控制模組一302用於在偵測到手機1在通話過程中有播放音樂的需求後,通過CPU 10將開關控制pin 13的電平觸發為低電平。此時,類比開關12的輸出切換到CPU 10的MIC+和MIC-上。 The control module one 302 is configured to trigger the level of the switch control pin 13 to be low level by the CPU 10 after detecting that the mobile phone 1 has a need to play music during the call. At this time, the output of the analog switch 12 is switched to the MIC+ and MIC- of the CPU 10.

偵測模組二303用於在通話過程中對CPU 10進行偵測,根據CPU 10是否不再控制外置MP3晶片11播放音樂來判斷手機1是否需要暫停音樂播放或者音樂是否播放完畢。當不需暫停音樂播放或音樂沒有播放完畢時,則繼續進行偵測。當需要暫停音樂的播放及當音樂播放完畢時,CPU 10即檢測到播放器的暫停鍵被按下或者播放器已切換至停止鍵,此時該CPU 10斷開與外置MP3晶片11的連 接,不再控制該外置MP3晶片11。 The detecting module 303 is configured to detect the CPU 10 during the call, and determine whether the mobile phone 1 needs to pause the music playing or whether the music is played according to whether the CPU 10 no longer controls the playing of the external MP3 chip 11. When there is no need to pause the music playback or the music has not finished playing, the detection continues. When it is necessary to pause the playing of the music and when the music is played, the CPU 10 detects that the pause button of the player is pressed or the player has switched to the stop button, and the CPU 10 disconnects the external MP3 chip 11 at this time. Then, the external MP3 chip 11 is no longer controlled.

控制模組二304用於在需要暫停音樂時或在音樂播放完畢後,通過CPU 10將開關控制pin 13的電平觸發為高電平。此時,類比開關12的輸出切換到CPU 10的LINE_INP和LINE_INM介面上。 The control module two 304 is configured to trigger the level of the switch control pin 13 to be high level by the CPU 10 when the music needs to be paused or after the music is played. At this time, the output of the analog switch 12 is switched to the LINE_INP and LINE_INM interfaces of the CPU 10.

需要說明的是,在通話過程中,音樂的播放是作為背景音樂而存在的,此時,通話仍舊可以正常進行,但是通話品質會有所下降。 It should be noted that during the call, the music is played as background music. At this time, the call can still be performed normally, but the call quality will be degraded.

如圖5所示,係為本發明手機在通話過程中播放音樂之方法較佳實施例的流程圖。 As shown in FIG. 5, it is a flowchart of a preferred embodiment of a method for playing music during a call by a mobile phone of the present invention.

步驟S100,在通話過程中,偵測模組一301對CPU 10進行偵測,根據CPU 10是否通過介面控制外置MP3晶片11播放音樂來判斷手機1是否有在通話過程中播放音樂的需求。當偵測到手機1有在通話過程中播放音樂的需求時,執行步驟S101,當沒有偵測到手機1在通話過程中有播放音樂的需求時,不做任何處理,直接結束該流程。 In step S100, during the call, the detecting module 301 detects the CPU 10, and determines whether the mobile phone 1 needs to play music during the call according to whether the CPU 10 controls the external MP3 chip 11 to play music through the interface. When it is detected that the mobile phone 1 has a need to play music during the call, step S101 is executed. When the mobile phone 1 does not detect the need to play music during the call, the process is terminated without any processing.

步驟S101,控制模組一302在偵測到手機1在通話過程中有播放音樂的需求時,通過CPU 10將開關控制pin 13的電平觸發為低電平。此時,類比開關12的輸出切換到CPU 10的MIC+和MIC-上。 In step S101, the control module one 302 triggers the level of the switch control pin 13 to be low level by the CPU 10 when detecting that the mobile phone 1 has a need to play music during the call. At this time, the output of the analog switch 12 is switched to the MIC+ and MIC- of the CPU 10.

步驟S102,在通話過程中,偵測模組二303根據CPU 10是否已經斷開與外置MP3晶片11的連接來判斷CPU 10是否不再控制外置MP3晶片播放音樂,也即是否需要暫停音樂播放或者音樂已經播放完畢。當需要暫停音樂或音樂播放完畢後,執行步驟S103,當不需暫停音樂或音樂沒有播放完畢時,繼續進行偵測。 In step S102, during the call, the detecting module 303 determines whether the CPU 10 no longer controls the external MP3 chip to play music according to whether the CPU 10 has disconnected from the external MP3 chip 11, that is, whether the music needs to be paused. Play or music has finished playing. When it is necessary to pause the music or the music is played, step S103 is performed, and when there is no need to pause the music or the music is not played, the detection is continued.

步驟S103,控制模組二304在需要暫停音樂時或在音樂播放完畢後,通過CPU 10將開關控制pin 13的電平觸發為高電平。此時,類比開關12的輸出切換到CPU 10的LINE_INP和LINE_INM介面上。 In step S103, the control module two 304 triggers the level of the switch control pin 13 to be high level by the CPU 10 when the music needs to be paused or after the music is played. At this time, the output of the analog switch 12 is switched to the LINE_INP and LINE_INM interfaces of the CPU 10.

綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施例,本發明之範圍並不以上述實施例為限,舉凡熟悉本案技藝之人士援依本發明之精神所作之等效修飾或變化,皆應涵蓋於以下申請專利範圍內。 In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiments, and equivalent modifications or variations made by those skilled in the art in light of the spirit of the present invention are It should be covered by the following patent application.

2‧‧‧控制電路 2‧‧‧Control circuit

10‧‧‧CPU 10‧‧‧CPU

11‧‧‧外置MP3晶片 11‧‧‧External MP3 chip

12‧‧‧類比開關 12‧‧‧ analog switch

13‧‧‧開關控制pin 13‧‧‧Switch control pin

14‧‧‧mic電路 14‧‧‧mic circuit

16、17、18、19、20、21、22、23‧‧‧CAP 16, 17, 18, 19, 20, 21, 22, 23‧‧‧CAP

Claims (10)

一種手機,該手機包括一個控制電路,該控制電路包括中央處理器、外置MP3晶片及mic電路,該控制電路還包括類比開關、開關控制pin及多個電容,其中:所述類比開關包括一個控制引腳,兩個輸入引腳,四個輸出引腳,所述控制引腳連接至開關控制pin,所述兩個輸入引腳分別經電容連接至外置MP3晶片;所述四個輸出引腳分別經電容連接至中央處理器的引腳MIC+、MIC-和LINE_INP、LINE_INM;當開關控制pin輸入低電平時,外置MP3晶片的信號經類比開關的切換輸出至中央處理器的引腳MIC+、MIC-,以實現在通話過程中播放音樂的功能;當開關控制pin輸入高電平時,外置MP3晶片的信號經類比開關的切換輸出至中央處理器的引腳LINE_INP、LINE_INM,以關閉在通話過程中播放音樂的功能。 A mobile phone comprising a control circuit comprising a central processing unit, an external MP3 chip and a mic circuit, the control circuit further comprising an analog switch, a switch control pin and a plurality of capacitors, wherein: the analog switch comprises a a control pin, two input pins, four output pins, the control pin is connected to a switch control pin, the two input pins are respectively capacitively connected to an external MP3 chip; the four output leads The pins are respectively connected to the pins MIC+, MIC- and LINE_INP of the central processing unit, LINE_INM; when the switch control pin is input low level, the signal of the external MP3 chip is output to the pin MIC+ of the central processing unit through the switching of the analog switch. , MIC-, to achieve the function of playing music during the call; when the switch control pin input high level, the signal of the external MP3 chip is output to the pins LINE_INP, LINE_INM of the central processor through the switching of the analog switch to close The ability to play music during a call. 如申請專利範圍第1項所述之手機,其中,所述電容在外置MP3晶片輸出的音頻信號的直流電平進入中央處理器前將該直流電平去除。 The mobile phone of claim 1, wherein the capacitor removes the DC level before the DC level of the audio signal output from the external MP3 chip enters the central processor. 一種利用申請專利範圍第1項所述手機在通話過程中播放音樂的方法,該方法包括以下步驟:偵測步驟一:在通話過程中偵測中央處理器是否控制外置MP3晶片播放音樂;控制步驟一:在偵測到中央處理器在通話過程中控制外置MP3晶片播放音樂時,通過中央處理器觸發開關控制pin的電平為低電平,所述類比開關的兩個輸入引腳將外置MP3晶片的信號切換輸出至中央處理器的引腳MIC+、MIC-; 偵測步驟二:在通話過程中偵測中央處理器是否不再控制外置MP3晶片播放音樂;控制步驟二:在偵測到中央處理器在通話過程中不再控制外置MP3播放音樂時,通過中央處理器觸發開關控制pin的電平為高電平,所述類比開關的兩個輸入引腳將外置MP3晶片的信號切換輸出至中央處理器的引腳LINE_INP、LINE_INM。 A method for playing music during a call by using the mobile phone according to claim 1 of the patent application scope, the method comprising the following steps: detecting step 1: detecting whether the central processor controls the external MP3 chip to play music during the call; Step 1: When detecting that the central processor controls the external MP3 chip to play music during the call, the level of the pin is controlled to be low by the central processor trigger switch, and the two input pins of the analog switch will be The signal switching of the external MP3 chip is output to the pins MIC+, MIC- of the central processing unit; Detection step 2: During the call, it is detected whether the central processor no longer controls the external MP3 chip to play music; control step 2: when it is detected that the central processor no longer controls the external MP3 playing music during the call, The level of the pin is controlled to be high by the central processor trigger switch. The two input pins of the analog switch switch the signals of the external MP3 chip to the pins LINE_INP and LINE_INM of the central processing unit. 如申請專利範圍第3項所述之手機在通話過程中播放音樂的方法,其中,偵測步驟一包括:當在通話過程中中央處理器檢測到播放器的播放鍵被按下時,中央處理器通過I2C介面控制外置MP3晶片播放音樂。 The method for playing music during a call according to the third aspect of the patent application, wherein the detecting step 1 includes: when the central processor detects that the player's play button is pressed during the call, the central processing The device controls the external MP3 chip to play music through the I2C interface. 如申請專利範圍第3項所述之手機在通話過程中播放音樂的方法,其中,偵測步驟二包括:當中央處理器檢測到播放器已切換至停止鍵或者播放器的暫停鍵被按下時,中央處理器斷開與外置MP3晶片的連接,不再控制外置MP3晶片播放音樂。 The method for playing music during a call according to the third aspect of the patent application, wherein the detecting step 2 comprises: when the central processor detects that the player has switched to the stop button or the pause button of the player is pressed When the central processor disconnects from the external MP3 chip, the external MP3 chip is no longer controlled to play music. 如申請專利範圍第3項所述之手機在通話過程中播放音樂的方法,其中,所述電容在外置MP3晶片輸出的音頻信號的直流電平進入中央處理器前將該直流電平去除。 A method for playing music during a call by a mobile phone according to claim 3, wherein the capacitor removes the DC level before the DC level of the audio signal output from the external MP3 chip enters the central processor. 一種利用申請範圍第1項所述手機在通話過程中播放音樂的系統,其中,該系統包括:偵測模組一,用於在通話過程中偵測中央處理器是否控制外置MP3晶片播放音樂;控制模組一,用於在偵測到中央處理器在通話過程中控制外置MP3晶片播放音樂時,通過中央處理器觸發開關控制pin的電平為低電平,所述類比開關的兩個輸入引腳將外置MP3晶片的信號切換輸出至中央處理器的引腳 MIC+、MIC-:偵測模組二,用於在通話過程中偵測中央處理器是否不再控制外置MP3晶片播放音樂;控制模組二,用於在偵測到中央處理器在通話過程中不再控制外置MP3播放音樂時,通過中央處理器觸發開關控制pin的電平為高電平,所述類比開關的兩個輸入引腳將外置MP3晶片的信號切換輸出至中央處理器的引腳LINE_INP、LINE_INM。 A system for playing music during a call by using the mobile phone according to Item 1 of the application scope, wherein the system includes: a detection module 1 configured to detect whether the central processor controls an external MP3 chip to play music during a call The control module 1 is configured to control the level of the pin to be low level by the central processor trigger switch when detecting that the central processor controls the external MP3 chip to play music during the call, and the two analog switches Input pins switch the signal of the external MP3 chip to the pins of the central processor MIC+, MIC-: detection module 2, used to detect whether the central processor no longer controls the external MP3 chip to play music during the call; the control module 2 is used to detect the central processor during the call When the external MP3 music is no longer controlled, the level of the pin is controlled to be high by the central processor trigger switch, and the two input pins of the analog switch switch the signal of the external MP3 chip to the central processor. Pins LINE_INP, LINE_INM. 如申請專利範圍第7項所述之手機在通話過程中播放音樂的系統,其中,偵測模組一通過下述方法偵測中央處理器是否控制外置MP3晶片播放音樂:當在通話過程中,中央處理器檢測到播放器的播放鍵被按下時,中央處理器通過I2C介面控制外置MP3晶片播放音樂。 The system for playing music during a call according to the seventh aspect of the patent application, wherein the detecting module detects whether the central processor controls the external MP3 chip to play music by the following method: during the call When the central processor detects that the player's play button is pressed, the central processor controls the external MP3 chip to play music through the I2C interface. 如申請專利範圍第7項所述之手機在通話過程中播放音樂的系統,其中,偵測模組二通過下述方法偵測中央處理器是否不再控制外置MP3晶片播放音樂:當在通話過程中,中央處理器檢測到播放器已切換至停止鍵或者暫停鍵被按下時,中央處理器斷開與外置MP3晶片的連接,不再控制外置MP3晶片播放音樂。 The system for playing music during a call according to the seventh aspect of the patent application, wherein the detecting module 2 detects whether the central processor no longer controls the external MP3 chip to play music by the following method: when the call is in progress During the process, when the central processor detects that the player has switched to the stop button or the pause button is pressed, the central processor disconnects the external MP3 chip and no longer controls the external MP3 chip to play music. 如申請專利範圍第7項所述之手機在通話過程中播放音樂的系統,其中,所述電容在外置MP3晶片輸出的音頻信號的直流電平進入中央處理器前將該直流電平去除。 A system for playing music during a call by a mobile phone according to claim 7, wherein the capacitor removes the DC level before the DC level of the audio signal output from the external MP3 chip enters the central processor.
TW100116593A 2011-05-10 2011-05-12 A phone and the system and method of playing music during a call TWI583168B (en)

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
TW201246897A TW201246897A (en) 2012-11-16
TWI583168B true TWI583168B (en) 2017-05-11

Family

ID=47125572

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100116593A TWI583168B (en) 2011-05-10 2011-05-12 A phone and the system and method of playing music during a call

Country Status (2)

Country Link
CN (1) CN102780820B (en)
TW (1) TWI583168B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (1)

* Cited by examiner, † Cited by third party
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ANALOG DEVICES,"ADAV400 datasheet",2006-2007, http://www.analog.com/media/en/technical-documentation/data-sheets/ADAV400.pdf *

Also Published As

Publication number Publication date
TW201246897A (en) 2012-11-16
CN102780820A (en) 2012-11-14
CN102780820B (en) 2016-04-06

Similar Documents

Publication Publication Date Title
US10425768B2 (en) Adjusting audio output volume based on a detected presence of another device
JP6564027B2 (en) Method and apparatus for controlling application program and electronic device
JP6275734B2 (en) Smart terminal device control method, system, program, and recording medium
WO2017181708A1 (en) Audio switching method and device for terminal, and electronic device
WO2018201944A1 (en) Apparatus control method and device
US20130345842A1 (en) Earphone removal detection
CN104980811B (en) Remote controller, communicator, phone system and call method
US20080158000A1 (en) Autodetect of user presence using a sensor
TWI522902B (en) Electronic device and method for sensing headset
US9800704B2 (en) Call control method and terminal
TWI583168B (en) A phone and the system and method of playing music during a call
WO2016155528A1 (en) Method for detecting headset status, and terminal
CN110381215B (en) Audio distribution method and device, storage medium and computer equipment
CN106126179B (en) Information processing method and electronic equipment
US10129382B2 (en) Electronic device and method for controlling electronic device using headset
US20150334497A1 (en) Muted device notification
WO2018201943A1 (en) Device control method, device and system
US9880804B1 (en) Method of automatically adjusting sound output and electronic device
CN105812972B (en) System and method for controlling handheld device by utilizing earphone
JP2015002394A (en) Information processing apparatus and computer program
CN106657675B (en) Method and system for playing mobile terminal audio and video through Bluetooth playing device
TWI781579B (en) Audio signal processing method, device and electronic apparatus
US11637921B2 (en) Enabling vibration notification based on environmental noise
KR101945174B1 (en) Program Stored in Recording Medium for Supporting Automatic Response Service
WO2024119926A1 (en) Earphone fitting degree detection method and earphone

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees