TWI483100B - Mobile device and method for switching operation mode - Google Patents

Mobile device and method for switching operation mode Download PDF

Info

Publication number
TWI483100B
TWI483100B TW101133095A TW101133095A TWI483100B TW I483100 B TWI483100 B TW I483100B TW 101133095 A TW101133095 A TW 101133095A TW 101133095 A TW101133095 A TW 101133095A TW I483100 B TWI483100 B TW I483100B
Authority
TW
Taiwan
Prior art keywords
sound source
control signal
processor
switching device
pin
Prior art date
Application number
TW101133095A
Other languages
Chinese (zh)
Other versions
TW201411324A (en
Inventor
Po Jen Tu
Tzu Chun Chang
Jia Ren Chang
Ming Chun Yu
Original Assignee
Acer Inc
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 Acer Inc filed Critical Acer Inc
Priority to TW101133095A priority Critical patent/TWI483100B/en
Publication of TW201411324A publication Critical patent/TW201411324A/en
Application granted granted Critical
Publication of TWI483100B publication Critical patent/TWI483100B/en

Links

Description

行動裝置以及切換操作模式方法Mobile device and switching operation mode method

本發明係關於一種行動裝置,特別係關於一種可自動判斷使用模式之行動裝置。The present invention relates to a mobile device, and more particularly to a mobile device that can automatically determine a usage mode.

近年來,行動裝置變得越來越高階且功能也越來越多樣化。舉例來說,類似如手機或平板電腦等手持式裝置可以具備電信通訊能力、收發電子郵件、維持社群網路、通訊錄管理、媒體播放、以及其他各式各樣的功能與應用。由於這些裝置的多樣功能,也使得這些裝置成為人們的生活必需品之一,使用者在行動裝置上進行從單純的電話通訊到在網路上進行各種社群活動及商業交易等活動。In recent years, mobile devices have become more sophisticated and more diverse in function. For example, handheld devices such as mobile phones or tablets can have telecommunications capabilities, send and receive email, maintain social networks, address book management, media playback, and a host of other functions and applications. Due to the diverse functions of these devices, these devices have become one of the necessities of life, and users perform activities ranging from simple telephone communication to various social activities and commercial transactions on the Internet.

在行動裝置出售到市面以前,必須先作裝置驗證,符合驗證標準的行動裝置才能作為合格產品出售。早期在作裝置驗證時,可另外設置一組連接埠作為專用埠,但由於日常生活上的需要,對於行動裝置體積的要求越來越嚴格。因此,如何藉由共用的輸入輸出介面對行動裝置進行軟體更新及除錯,且軟體更新模式不會與正常使用模式互相干擾則形成了一個新的課題。Before the mobile device is sold to the market, it must be verified by the device, and the mobile device that meets the verification standard can be sold as a qualified product. In the early stage of device verification, a set of ports can be additionally set as a dedicated port, but the requirements for the size of the mobile device are becoming more and more strict due to the needs of daily life. Therefore, how to perform software update and debug on the mobile device through the shared input and output interface, and the software update mode does not interfere with the normal use mode, a new problem is formed.

本發明提供一種行動裝置以及切換操作模式方法,用以根據不同的音源插頭切換不同的操作模式,以避免在模式轉換時發生錯誤。The invention provides a mobile device and a switching operation mode method for switching different operating modes according to different sound source plugs to avoid an error in mode switching.

本發明提供一種行動裝置,包括一音源插座、一處理器、一音源處理器、一切換裝置以及一開關裝置。音源插座用以當音源插座耦接至一四環音源插頭時,產生一第一控制訊號。切換裝置用以接收以及傳送音源訊號或者軟體碼,其中當音源插座產生第一控制訊號時,切換裝置自音源處理器接收音源訊號,並將音源訊號傳送至音源插座。開關裝置耦接於切換裝置以及處理器之間,用以根據第一控制訊號將切換裝置之一控制端自處理器去耦接。The invention provides a mobile device comprising an audio source socket, a processor, a sound source processor, a switching device and a switching device. The sound source socket is configured to generate a first control signal when the sound source socket is coupled to the four-ring sound source plug. The switching device is configured to receive and transmit the sound source signal or the software code. When the sound source socket generates the first control signal, the switching device receives the sound source signal from the sound source processor and transmits the sound source signal to the sound source socket. The switching device is coupled between the switching device and the processor for decoupling one of the switching devices from the processor according to the first control signal.

本發明另提供一種切換操作模式方法,包括當一音源插座耦接至一四環音源插頭時,產生一第一控制訊號;根據上述第一控制訊號,將一第一位準作為一第二控制訊號;當上述第二控制訊號為上述第一位準時,藉由一切換裝置自一音源處理器接收一音源訊號,並將上述音源訊號傳送至上述音源插座;當上述第二控制訊號為一第二位準時,藉由上述切換裝置自上述音源插座接收一軟體碼,並將上述軟體碼傳送至一處理器;以及根據上述軟體碼更新上述處理器之一軟體。The present invention further provides a method for switching an operation mode, comprising: when a sound source socket is coupled to a four-loop sound source plug, generating a first control signal; and using the first level as a second control according to the first control signal a signal; when the second control signal is the first level, receiving a sound source signal from a sound source processor by a switching device, and transmitting the sound source signal to the sound source socket; when the second control signal is a first The two-bit punctuality receives a software code from the audio source socket by the switching device, and transmits the software code to a processor; and updates one of the processor software according to the software code.

以下將詳細討論本發明各種實施例之裝置及使用方法。然而值得注意的是,本發明所提供之許多可行的發明概念可實施在各種特定範圍中。這些特定實施例僅用於舉例說明本發明之裝置及使用方法,但非用於限定本發明之範圍。The apparatus and method of use of various embodiments of the present invention are discussed in detail below. However, it is to be noted that many of the possible inventive concepts provided by the present invention can be implemented in various specific ranges. These specific examples are only intended to illustrate the apparatus and methods of use of the present invention, but are not intended to limit the scope of the invention.

第1圖為本發明所提供之行動裝置的方塊圖,其中行 動裝置可操作於一軟體更新模式以及一音源輸出模式。行動裝置100可為任何可攜式電子裝置,例如手機、筆記型電腦、PDA等等,本發明在此不加以限制。行動裝置100包括一音源插座102、切換裝置104、一處理器106、一音源處理器108、開關裝置SW1以及一電阻R1。Figure 1 is a block diagram of a mobile device provided by the present invention, wherein The mobile device is operable in a software update mode and a sound source output mode. The mobile device 100 can be any portable electronic device, such as a mobile phone, a notebook computer, a PDA, etc., and the invention is not limited herein. The mobile device 100 includes an audio source socket 102, a switching device 104, a processor 106, a sound source processor 108, a switching device SW1, and a resistor R1.

音源插座102用以耦接至一三環音源插頭或者一四環音源插頭,並當音源插座102耦接至四環音源插頭時,產生一控制訊號CS1。舉例而言,音源插座102可為3.5mm之音源孔,並且具有四個接觸墊,分別為一麥克風接腳MP、一接地接腳GP、一左耳接腳LP以及一右耳接腳RP。麥克風接腳MP用以自所連接之音源插頭接收音訊。接地接腳GP用以耦接至一接地。左耳接腳LP以及右耳接腳RP用以在音源輸出模式時,將音源處理器108所產生之一音源訊號AS1傳送至所連接之音源插頭,其中音源訊號AS1可包括一左聲道音源訊號以及一右聲道音源訊號,分別用以傳送至左耳接腳LP以及右耳接腳RP。在本發明之另一實施例中,音源訊號AS1可僅具有單一之聲道音源訊號,同時傳送至左耳接腳LP以及右耳接腳RP。The sound source socket 102 is coupled to a three-ring sound source plug or a four-ring sound source plug, and generates a control signal CS1 when the sound source socket 102 is coupled to the four-ring sound source plug. For example, the sound source socket 102 can be a 3.5 mm sound source hole and has four contact pads, which are a microphone pin MP, a ground pin GP, a left ear pin LP, and a right ear pin RP. The microphone pin MP is used to receive audio from the connected audio source plug. The grounding pin GP is coupled to a ground. The left ear pin LP and the right ear pin RP are used to transmit one of the sound source signals AS1 generated by the sound source processor 108 to the connected sound source plug in the sound source output mode, wherein the sound source signal AS1 may include a left channel sound source. The signal and a right channel audio signal are respectively transmitted to the left ear pin LP and the right ear pin RP. In another embodiment of the present invention, the sound source signal AS1 may have only a single channel sound source signal, and is simultaneously transmitted to the left ear pin LP and the right ear pin RP.

另外,左耳接腳LP以及右耳接腳RP更用以在軟體更新模式時,自所連接之音源插頭接收一軟體碼SC1,並將軟體碼SC1經由切換裝置104傳送至處理器106。當音源插座102耦接至四環音源插頭時,麥克風接腳MP、接地接腳GP、左耳接腳LP以及右耳接腳RP皆會與四環音源插頭接觸。當麥克風接腳MP與四環音源插頭接觸時,麥克風接腳MP產生控制訊號CS1,並將控制訊號CS1提供至 開關裝置SW1。值得注意的是,當音源插座102耦接至四環音源插頭時,行動裝置100僅可操作於音源輸出模式。當音源插座102耦接至三環音源插頭時,僅有接地接腳GP、左耳接腳LP以及右耳接腳RP會與三環音源插頭接觸。因此,當麥克風接腳MP未與三環音源插頭接觸時,麥克風接腳MP不會產生控制訊號CS1。值得注意的是,在本發明之實施例中,當音源插座102耦接至三環音源插頭時,行動裝置100可根據處理器106所產生之控制訊號CS3,操作於軟體更新模式或者音源輸出模式。In addition, the left ear pin LP and the right ear pin RP are used to receive a software code SC1 from the connected sound source plug in the software update mode, and transmit the software code SC1 to the processor 106 via the switching device 104. When the sound source socket 102 is coupled to the four-ring sound source plug, the microphone pin MP, the ground pin GP, the left ear pin LP, and the right ear pin RP are all in contact with the four-ring sound source plug. When the microphone pin MP is in contact with the four-ring audio source plug, the microphone pin MP generates the control signal CS1 and provides the control signal CS1 to Switching device SW1. It should be noted that when the sound source socket 102 is coupled to the four-ring sound source plug, the mobile device 100 can only operate in the sound source output mode. When the sound source socket 102 is coupled to the three-ring sound source plug, only the ground pin GP, the left ear pin LP, and the right ear pin RP are in contact with the three-ring sound source plug. Therefore, when the microphone pin MP is not in contact with the three-ring audio source plug, the microphone pin MP does not generate the control signal CS1. It should be noted that, in the embodiment of the present invention, when the sound source socket 102 is coupled to the three-loop sound source plug, the mobile device 100 can operate in the software update mode or the sound source output mode according to the control signal CS3 generated by the processor 106. .

切換裝置104耦接於音源處理器108、處理器106以及音源插座102之間。切換裝置104包括一控制端,用以接收一控制訊號CS2。切換裝置104用以根據控制訊號CS2接收以及傳送音源訊號AS1或者軟體碼SC1。舉例而言,當控制訊號CS2為一第一位準時,切換裝置104自音源處理器108接收音源訊號AS1,並將音源訊號AS1傳送至音源插座102,其中行動裝置100係處於音源輸出模式。當控制訊號CS2為一第二位準時,切換裝置104自音源插座102接收軟體碼SC1,並將軟體碼SC1傳送至處理器106,其中行動裝置100係處於軟體更新模式。值得注意的是,在本發明之一實施例中,第一位準為一高位準,第二位準為一低位準,例如高位準可為3.3伏特,低位準可為0伏特,但本發明不限於此。在本發明之另一實施例中,第一位準可為低位準,而第二位準可為高位準,例如高位準可為3.3伏特,低位準可為0伏特,但本發明不限於此。The switching device 104 is coupled between the sound source processor 108, the processor 106, and the sound source socket 102. The switching device 104 includes a control terminal for receiving a control signal CS2. The switching device 104 is configured to receive and transmit the sound source signal AS1 or the software code SC1 according to the control signal CS2. For example, when the control signal CS2 is at a first level, the switching device 104 receives the sound source signal AS1 from the sound source processor 108 and transmits the sound source signal AS1 to the sound source socket 102, wherein the mobile device 100 is in the sound source output mode. When the control signal CS2 is at a second level, the switching device 104 receives the software code SC1 from the sound source socket 102 and transmits the software code SC1 to the processor 106, wherein the mobile device 100 is in the software update mode. It should be noted that, in an embodiment of the present invention, the first level is a high level, and the second level is a low level, for example, the high level may be 3.3 volts, and the low level may be 0 volts, but the present invention Not limited to this. In another embodiment of the present invention, the first level may be a low level, and the second level may be a high level, for example, the high level may be 3.3 volts, and the low level may be 0 volts, but the invention is not limited thereto. .

處理器106可包含一單一中央處理單元 (central-processing unit;CPU)或者是關連於平行運算環境(parallel processing environment)之複數平行處理單元,用以執行指令以及致能行動裝置100之各部件。舉例而言,處理器106用以根據由音源插座102所接收之軟體碼SC1更新一軟體。值得注意的是,處理器106可包括一記憶體110,包含快閃記憶體(flash ROM)以及/或動態存取記憶體(random access memory;RAM),用以儲存可供處理器106執行之程式模組,例如軟體碼SC1。一般而言,程式模組包含常序(routines)、程式(program)、物件(object)、元件(component)等,用以執行動態資訊傳送或接收功能。值得注意的是,在本發明之另一實施例中,記憶體110亦可實施於處理器106外。處理器106係經由將原本儲存於記憶體110中之軟體碼覆蓋為軟體碼SC1,以更新軟體。另外,軟體可為實施於行動裝置100上之各種應用,例如作業系統、驅動程式等,本發明在此不加以限制。另外,處理器106更用以根據一使用者設定產生一控制訊號CS3。控制訊號CS3包括用以作為控制訊號CS2之第一位準以及第二位準。Processor 106 can include a single central processing unit A (central-processing unit; CPU) or a plurality of parallel processing units associated with a parallel processing environment for executing instructions and enabling various components of the mobile device 100. For example, the processor 106 is configured to update a software according to the software code SC1 received by the sound source socket 102. It should be noted that the processor 106 can include a memory 110 including a flash ROM and/or a random access memory (RAM) for storing the processor 106 for execution. Program module, such as software code SC1. Generally, a program module includes a routine, a program, an object, a component, etc., for performing dynamic information transmission or reception. It should be noted that in another embodiment of the present invention, the memory 110 can also be implemented outside the processor 106. The processor 106 updates the software by overwriting the software code originally stored in the memory 110 as the software code SC1. In addition, the software may be various applications implemented on the mobile device 100, such as an operating system, a driver, etc., and the present invention is not limited thereto. In addition, the processor 106 is further configured to generate a control signal CS3 according to a user setting. The control signal CS3 includes a first level and a second level for use as the control signal CS2.

音源處理器108用以產生一音源訊號AS1。值得注意的是,音源訊號AS1可為來自光碟、儲存於記憶體內、或者下載自網路之影音檔案的音訊檔。音源處理器108藉由切換裝置104以及音源插座102,將音源訊號AS1傳送至外接之一揚聲器(未圖示),致使揚聲器播放聲音。The sound source processor 108 is configured to generate an audio source signal AS1. It is worth noting that the sound source signal AS1 can be an audio file from a disc, stored in a memory, or downloaded from a network audio and video file. The sound source processor 108 transmits the sound source signal AS1 to an external speaker (not shown) through the switching device 104 and the sound source socket 102, so that the speaker plays the sound.

電阻R1具有一第一端耦接至一電壓源VDD,以及一第二端耦接於切換裝置104以及開關裝置SW1之間,用以 當開關裝置SW1將切換裝置104之控制端自處理器106去耦接(decoupled)時,藉由電壓源VDD提供第一位準作為控制訊號CS2。值得注意的是,電壓源VDD所提供之第一位準與控制訊號CS2之第一位準相同。舉例而言,在本發明之一實施例中,第一位準為一高位準,例如3.3伏特,但本發明不限於此。在本發明之另一實施例中,第一位準可為低位準,例如0伏特,但本發明不限於此。The resistor R1 has a first end coupled to a voltage source VDD, and a second end coupled between the switching device 104 and the switching device SW1 for When the switching device SW1 decouples the control terminal of the switching device 104 from the processor 106, the first level is provided by the voltage source VDD as the control signal CS2. It is worth noting that the first level provided by the voltage source VDD is the same as the first level of the control signal CS2. For example, in one embodiment of the invention, the first level is a high level, such as 3.3 volts, although the invention is not limited thereto. In another embodiment of the invention, the first level may be a low level, such as 0 volts, although the invention is not limited thereto.

開關裝置SW1耦接於切換裝置104之控制端以及處理器106之間,用以根據控制訊號CS1將切換裝置104之控制端自處理器106去耦接。The switching device SW1 is coupled between the control terminal of the switching device 104 and the processor 106 for decoupling the control terminal of the switching device 104 from the processor 106 according to the control signal CS1.

當音源插座102耦接至四環音源插頭時,麥克風接腳MP與四環音源插頭接觸。因此,麥克風接腳MP產生控制訊號CS1,並將控制訊號CS1提供至開關裝置SW1。當開關裝置SW1接收到控制訊號CS1時,開關裝置SW1將切換裝置104之控制端自處理器106去耦接。值得注意的是,當切換裝置104之控制端自處理器106去耦接時,控制訊號CS2為第一位準。換言之,行動裝置100係處於音源輸出模式。在音源輸出模式中,切換裝置104自音源處理器108接收音源訊號AS1,並將音源訊號AS1傳送至音源插座102之左耳接腳LP以及右耳接腳RP,並且音源插座102之左耳接腳LP以及右耳接腳RP將音源訊號AS1傳送至四環音源插頭。因此,可以確保四環音源插頭插入音源插座102時,行動裝置100一定處於音源輸出模式。另外,當音源插座102耦接至三環音源插頭時,麥克風接腳MP未與三環音源插頭接觸。因此,麥克風接腳MP不會產生控 制訊號CS1。當開關裝置SW1未接收到控制訊號CS1時,開關裝置SW1將切換裝置104之控制端耦接至處理器106。值得注意的是,當切換裝置104之控制端耦接至處理器106時,處理器106提供控制訊號CS3作為控制訊號CS2。換言之,行動裝置100係根據控制訊號不同,處於音源輸出模式或者軟體更新模式。舉例而言,當控制訊號CS2為第一位準時,行動裝置100處於音源輸出模式。在音源輸出模式中,切換裝置104自音源處理器108接收音源訊號AS1,並將音源訊號AS1傳送至音源插座102之左耳接腳LP以及右耳接腳RP,並且音源插座102之左耳接腳LP以及右耳接腳RP將音源訊號AS1傳送至三環音源插頭。當控制訊號CS2為第二位準時,行動裝置100處於軟體更新模式。在軟體更新模式中,音源插座102之左耳接腳LP以及右耳接腳RP自三環音源插頭接收軟體碼SC1,切換裝置104自音源插座102之左耳接腳LP以及右耳接腳RP接收軟體碼SC1,並將軟體碼SC1提供給處理器106,以進行軟體更新。When the sound source socket 102 is coupled to the four-ring sound source plug, the microphone pin MP is in contact with the four-ring sound source plug. Therefore, the microphone pin MP generates the control signal CS1 and supplies the control signal CS1 to the switching device SW1. When the switching device SW1 receives the control signal CS1, the switching device SW1 decouples the control terminal of the switching device 104 from the processor 106. It should be noted that when the control end of the switching device 104 is decoupled from the processor 106, the control signal CS2 is at the first level. In other words, the mobile device 100 is in the sound source output mode. In the audio output mode, the switching device 104 receives the sound source signal AS1 from the sound source processor 108, and transmits the sound source signal AS1 to the left ear pin LP and the right ear pin RP of the sound source socket 102, and the left ear connector of the sound source socket 102 The foot LP and the right ear pin RP transmit the sound source signal AS1 to the four-loop sound source plug. Therefore, it can be ensured that when the four-loop audio source plug is inserted into the sound source socket 102, the mobile device 100 must be in the sound source output mode. In addition, when the sound source socket 102 is coupled to the three-ring sound source plug, the microphone pin MP is not in contact with the three-ring sound source plug. Therefore, the microphone pin MP does not generate control Signal CS1. When the switching device SW1 does not receive the control signal CS1, the switching device SW1 couples the control terminal of the switching device 104 to the processor 106. It should be noted that when the control terminal of the switching device 104 is coupled to the processor 106, the processor 106 provides the control signal CS3 as the control signal CS2. In other words, the mobile device 100 is in the sound source output mode or the software update mode depending on the control signal. For example, when the control signal CS2 is at the first level, the mobile device 100 is in the sound source output mode. In the audio output mode, the switching device 104 receives the sound source signal AS1 from the sound source processor 108, and transmits the sound source signal AS1 to the left ear pin LP and the right ear pin RP of the sound source socket 102, and the left ear connector of the sound source socket 102 The foot LP and the right ear pin RP transmit the sound source signal AS1 to the three-loop sound source plug. When the control signal CS2 is at the second level, the mobile device 100 is in the software update mode. In the software update mode, the left ear pin LP and the right ear pin RP of the sound source socket 102 receive the software code SC1 from the three-loop sound source plug, and the switching device 104 is connected to the left ear pin LP and the right ear pin RP of the sound source socket 102. The software code SC1 is received and the software code SC1 is provided to the processor 106 for software update.

第2圖為本發明所提供之切換操作模式方法的流程圖,其中切換操作模式方法適用於第1圖所揭示之行動裝置100。流程開始於步驟S200。2 is a flow chart of a method for switching operation modes provided by the present invention, wherein the method for switching operation modes is applied to the mobile device 100 disclosed in FIG. 1. The flow begins in step S200.

在步驟S200中,行動裝置100判斷音源插座102係耦接至一四環音源插頭或者一三環音源插頭。當音源插座102係耦接至四環音源插頭時,流程進行至步驟S202。當音源插座102係耦接至三環音源插頭時,流程進行至步驟S208。舉例而言,音源插座102可為3.5mm之音源孔,並 且具有四個接觸墊,分別為一麥克風接腳MP、一接地接腳GP、一左耳接腳LP以及一右耳接腳RP。當音源插座102耦接至四環音源插頭時,麥克風接腳MP、接地接腳GP、左耳接腳LP以及右耳接腳RP皆會與四環音源插頭接觸。當麥克風接腳MP與四環音源插頭接觸時,麥克風接腳MP產生控制訊號CS1。當音源插座102耦接至三環音源插頭時,僅有接地接腳GP、左耳接腳LP以及右耳接腳RP會與三環音源插頭接觸。因此,當麥克風接腳MP未與三環音源插頭接觸時,麥克風接腳MP不會產生控制訊號CS1。因此,行動裝置100可藉由控制訊號CS1判斷音源插座102係耦接至一四環音源插頭或者一三環音源插頭。In step S200, the mobile device 100 determines that the audio source socket 102 is coupled to a four-ring audio source plug or a three-loop audio source plug. When the sound source socket 102 is coupled to the four-ring sound source plug, the flow proceeds to step S202. When the sound source socket 102 is coupled to the three-ring sound source plug, the flow proceeds to step S208. For example, the sound source socket 102 can be a 3.5 mm sound source hole, and And having four contact pads, respectively a microphone pin MP, a ground pin GP, a left ear pin LP and a right ear pin RP. When the sound source socket 102 is coupled to the four-ring sound source plug, the microphone pin MP, the ground pin GP, the left ear pin LP, and the right ear pin RP are all in contact with the four-ring sound source plug. When the microphone pin MP is in contact with the four-ring audio source plug, the microphone pin MP generates the control signal CS1. When the sound source socket 102 is coupled to the three-ring sound source plug, only the ground pin GP, the left ear pin LP, and the right ear pin RP are in contact with the three-ring sound source plug. Therefore, when the microphone pin MP is not in contact with the three-ring audio source plug, the microphone pin MP does not generate the control signal CS1. Therefore, the mobile device 100 can determine that the audio source socket 102 is coupled to a four-ring audio source plug or a three-loop audio source plug by the control signal CS1.

在步驟S202中,開關裝置SW1根據控制訊號CS1將切換裝置104之控制端自處理器106去耦接,並將一第一位準作為控制訊號CS2。接著,流程進行至步驟S204。值得注意的是,在本實施例中第一位準係由電阻R1所提供的,其中電阻R1具有一第一端耦接至一電壓源VDD,以及一第二端耦接於切換裝置104以及開關裝置SW1之間,用以當開關裝置SW1將切換裝置104之控制端自處理器106去耦接時,提供藉由電壓源VDD提供第一位準作為控制訊號CS2。In step S202, the switching device SW1 decouples the control terminal of the switching device 104 from the processor 106 according to the control signal CS1, and uses a first level as the control signal CS2. Next, the flow proceeds to step S204. It is to be noted that, in this embodiment, the first level is provided by the resistor R1, wherein the resistor R1 has a first end coupled to a voltage source VDD, and a second end coupled to the switching device 104 and Between the switching devices SW1, when the switching device SW1 decouples the control terminal of the switching device 104 from the processor 106, the first level is provided by the voltage source VDD as the control signal CS2.

在步驟S204中,切換裝置104自音源處理器108接收一音源訊號AS1,並將音源訊號AS1傳送至音源插座102。值得注意的是,音源插座102係藉由左耳接腳LP以及右耳接腳RP將傳送音源訊號AS1至四環音源插頭。流程結束於步驟S204。In step S204, the switching device 104 receives an audio source signal AS1 from the sound source processor 108 and transmits the sound source signal AS1 to the sound source socket 102. It should be noted that the audio source socket 102 transmits the sound source signal AS1 to the four-ring sound source plug by the left ear pin LP and the right ear pin RP. The flow ends in step S204.

在步驟S208中,開關裝置SW1將切換裝置104之控制端耦接至處理器106。接著,流程進行至步驟S210。In step S208, the switching device SW1 couples the control terminal of the switching device 104 to the processor 106. Next, the flow proceeds to step S210.

在步驟S210中,處理器106產生一控制訊號CS3,其中控制訊號CS3包括第一位準以及第二位準,並且切換裝置104將控制訊號CS3作為控制訊號CS2。接著,流程進行至步驟S212。In step S210, the processor 106 generates a control signal CS3, wherein the control signal CS3 includes a first level and a second level, and the switching device 104 uses the control signal CS3 as the control signal CS2. Next, the flow proceeds to step S212.

在步驟S212中,切換裝置104判斷控制訊號CS3(即控制訊號CS2)係為第二位準或者第一位準。當控制訊號CS3為第一位準時,流程進行至步驟S214。當控制訊號CS3為第二位準時,流程進行至步驟S216。In step S212, the switching device 104 determines that the control signal CS3 (ie, the control signal CS2) is at the second level or the first level. When the control signal CS3 is at the first level, the flow proceeds to step S214. When the control signal CS3 is at the second level, the flow proceeds to step S216.

在步驟S214中,切換裝置104自一音源處理器108接收一音源訊號AS1,並將音源訊號AS1傳送至音源插座102。值得注意的是,音源插座102係藉由左耳接腳LP以及右耳接腳RP將音源訊號AS1傳送至三環音源插頭。流程結束於步驟S214。In step S214, the switching device 104 receives an audio source signal AS1 from a sound source processor 108 and transmits the sound source signal AS1 to the sound source socket 102. It should be noted that the sound source socket 102 transmits the sound source signal AS1 to the three-loop sound source plug through the left ear pin LP and the right ear pin RP. The flow ends in step S214.

在步驟S216中,切換裝置104自音源插座102接收一軟體碼SC1,並將軟體碼SC1傳送至處理器106。接著,處理器106根據軟體碼SC1更新記憶體110中之一軟體。值得注意的是,音源插座102係藉由左耳接腳LP以及右耳接腳RP自三環音源插頭接收軟體碼SC1,並傳送至切換裝置104。流程結束於步驟S216。In step S216, the switching device 104 receives a software code SC1 from the sound source outlet 102 and transmits the software code SC1 to the processor 106. Next, the processor 106 updates one of the software in the memory 110 according to the software code SC1. It should be noted that the audio source socket 102 receives the software code SC1 from the three-loop audio source plug through the left ear pin LP and the right ear pin RP, and transmits the software code SC1 to the switching device 104. The flow ends in step S216.

綜上所述,本發明提供之行動裝置100以及切換操作模式方法,可根據不同的音源插頭切換不同的操作模式,以避免在模式轉換時發生錯誤。In summary, the mobile device 100 and the switching operation mode method provided by the present invention can switch different operating modes according to different audio source plugs to avoid an error in mode switching.

本發明之方法,或特定型態或其部份,可以以程式碼 的型態存在。程式碼可儲存於實體媒體,如軟碟、光碟片、硬碟、或是任何其他機器可讀取(如電腦可讀取)儲存媒體,亦或不限於外在形式之電腦程式產品,其中,當程式碼被機器,如電腦載入且執行時,此機器變成用以參與本發明之裝置。程式碼也可透過一些傳送媒體,如電線或電纜、光纖、或是任何傳輸型態進行傳送,其中,當程式碼被機器,如電腦接收、載入且執行時,此機器變成用以參與本發明之裝置。當在一般用途處理器實作時,程式碼結合處理器提供一操作類似於應用特定邏輯電路之獨特裝置。The method of the present invention, or a specific type or part thereof, may be coded The type exists. The code can be stored in a physical medium such as a floppy disk, a CD, a hard disk, or any other machine readable (such as computer readable) storage medium, or is not limited to an external form of computer program product, wherein When the code is loaded and executed by a machine, such as a computer, the machine becomes a device for participating in the present invention. The code can also be transmitted via some transmission medium, such as a wire or cable, fiber optics, or any transmission type, where the machine becomes part of the program when it is received, loaded, and executed by a machine, such as a computer. Invented device. When implemented in a general purpose processor, the code in conjunction with the processor provides a unique means of operation similar to application specific logic.

惟以上所述者,僅為本發明之較佳實施例而已,當不能以此限定本發明實施之範圍,即大凡依本發明申請專利範圍及發明說明內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。另外本發明的任一實施例或申請專利範圍不須達成本發明所揭露之全部目的或優點或特點。此外,摘要部分和標題僅是用來輔助專利文件搜尋之用,並非用來限制本發明之權利範圍。The above is only the preferred embodiment of the present invention, and the scope of the invention is not limited thereto, that is, the simple equivalent changes and modifications made by the scope of the invention and the description of the invention are All remain within the scope of the invention patent. In addition, any of the objects or advantages or features of the present invention are not required to be achieved by any embodiment or application of the invention. In addition, the abstract sections and headings are only used to assist in the search of patent documents and are not intended to limit the scope of the invention.

100‧‧‧行動裝置100‧‧‧ mobile devices

102‧‧‧音源插座102‧‧‧Source socket

104‧‧‧切換裝置104‧‧‧Switching device

106‧‧‧處理器106‧‧‧ Processor

108‧‧‧音源處理器108‧‧‧Source processor

110‧‧‧記憶體110‧‧‧ memory

SW1‧‧‧開關裝置SW1‧‧‧ switchgear

R1‧‧‧電阻R1‧‧‧ resistance

RP‧‧‧右耳接腳RP‧‧‧right ear pin

LP‧‧‧左耳接腳LP‧‧‧Left Ears

GP‧‧‧接地接腳GP‧‧‧ Grounding pin

MP‧‧‧麥克風接腳MP‧‧‧Microphone pin

VDD‧‧‧電壓源VDD‧‧‧voltage source

AS1‧‧‧音源訊號AS1‧‧‧ source signal

SC1‧‧‧軟體碼SC1‧‧‧ software code

CS1、CS2、CS3‧‧‧控制訊號CS1, CS2, CS3‧‧‧ control signals

第1圖為本發明所提供之行動裝置的方塊圖;以及第2圖為本發明所提供切換操作模式方法的流程圖。1 is a block diagram of a mobile device provided by the present invention; and FIG. 2 is a flow chart of a method for switching an operation mode provided by the present invention.

100‧‧‧行動裝置100‧‧‧ mobile devices

102‧‧‧音源插座102‧‧‧Source socket

104‧‧‧切換裝置104‧‧‧Switching device

106‧‧‧處理器106‧‧‧ Processor

108‧‧‧音源處理器108‧‧‧Source processor

110‧‧‧記憶體110‧‧‧ memory

SW1‧‧‧開關裝置SW1‧‧‧ switchgear

R1‧‧‧電阻R1‧‧‧ resistance

RP‧‧‧右耳接腳RP‧‧‧right ear pin

LP‧‧‧左耳接腳LP‧‧‧Left Ears

GP‧‧‧接地接腳GP‧‧‧ Grounding pin

MP‧‧‧麥克風接腳MP‧‧‧Microphone pin

VDD‧‧‧電壓源VDD‧‧‧voltage source

AS1‧‧‧音源訊號AS1‧‧‧ source signal

SC1‧‧‧軟體碼SC1‧‧‧ software code

CS1、CS2、CS3‧‧‧控制訊號CS1, CS2, CS3‧‧‧ control signals

Claims (9)

一種行動裝置,包括:一音源插座,用以當上述音源插座耦接至一四環音源插頭時,產生一第一控制訊號;一處理器;一音源處理器,用以產生一音源訊號;一切換裝置,用以接收以及傳送上述音源訊號,其中當上述音源插座產生上述第一控制訊號時,上述切換裝置自上述音源處理器接收上述音源訊號,並將上述音源訊號傳送至上述音源插座;以及一開關裝置,耦接於上述切換裝置以及上述處理器之間,用以根據上述第一控制訊號將上述切換裝置之一控制端自上述處理器去耦接,其中上述切換裝置係用以根據一第二控制訊號接收以及傳送上述音源訊號,並且當上述切換裝置之控制端去耦接至上述處理器時,上述第二控制訊號為上述第一位準,其中當第二控制訊號為一第一位準,上述切換裝置自上述音源處理器接收上述音源訊號,並將上述音源訊號傳送至上述音源插座,並且當上述第二控制訊號為一第二位準時,上述切換裝置自上述音源插座接收上述軟體碼,並將上述軟體碼傳送至上述處理器。 A mobile device includes: a sound source socket for generating a first control signal when the sound source socket is coupled to a four-ring sound source plug; a processor; a sound source processor for generating an audio source signal; The switching device is configured to receive and transmit the sound source signal, wherein when the sound source socket generates the first control signal, the switching device receives the sound source signal from the sound source processor, and transmits the sound source signal to the sound source socket; a switching device, coupled between the switching device and the processor, for decoupling a control end of the switching device from the processor according to the first control signal, wherein the switching device is configured to The second control signal receives and transmits the sound source signal, and when the control end of the switching device is decoupled to the processor, the second control signal is the first level, wherein the second control signal is a first Level, the switching device receives the sound source signal from the sound source processor, and the sound source signal To the above-described audio socket, and when said second control signal is a second time, the switching means receives the software code from said audio socket, and transmits the software code to said processor. 如申請專利範圍第1項所述之行動裝置,其中上述音源插座包括一麥克風接腳、一接地接腳、一左耳接腳以及一右耳接腳,其中當上述音源插座耦接至上述四環音源插頭,上述麥克風接腳與上述四環音源插頭接觸並產生上述第一控制訊號。 The mobile device of claim 1, wherein the audio source socket comprises a microphone pin, a ground pin, a left ear pin and a right ear pin, wherein the audio source socket is coupled to the fourth a ring source plug, the microphone pin is in contact with the four-loop audio source plug and generates the first control signal. 如申請專利範圍第1項所述之行動裝置,更包括一電阻,具有一第一端耦接至一電壓源,以及一第二端耦接於上述切換裝置以及上述開關裝置之間,用以當上述切換裝置之控制端自上述處理器去耦接時,提供上述第一位準作為上述第二控制訊號。 The mobile device of claim 1, further comprising a resistor having a first end coupled to a voltage source, and a second end coupled between the switching device and the switching device for When the control end of the switching device is decoupled from the processor, the first level is provided as the second control signal. 如申請專利範圍第3項所述之行動裝置,其中上述處理器更用以根據一使用者設定產生一第三控制訊號,上述第三控制訊號具有上述第一位準以及上述第二位準,其中當上述音源插座耦接至一三環音源插頭時,上述開關裝置將上述切換裝置之控制端耦接至上述處理器,並且上述處理器提供上述第三控制訊號作為上述第二控制訊號。 The mobile device of claim 3, wherein the processor is further configured to generate a third control signal according to a user setting, wherein the third control signal has the first level and the second level. When the audio source socket is coupled to a three-loop audio source plug, the switching device couples the control end of the switching device to the processor, and the processor provides the third control signal as the second control signal. 如申請專利範圍第4項所述之行動裝置,其中上述音源插座包括一麥克風接腳、一接地接腳、一左耳接腳以及一右耳接腳,其中當上述音源插座耦接至上述四環音源插頭時,上述左耳接腳以及右耳接腳傳送上述音源訊號至上述四環音源插頭,當上述音源插座耦接至上述三環音源插頭時,若上述第三控制訊號為上述第一位準,上述左耳接腳以及右耳接腳傳送上述音源訊號至上述三環音源插頭;若上述第三控制訊號為上述第二位準,上述左耳接腳以及右耳接腳自上述三環音源插頭接收上述軟體碼。 The mobile device of claim 4, wherein the audio source socket comprises a microphone pin, a ground pin, a left ear pin and a right ear pin, wherein the audio source socket is coupled to the fourth When the sound source plug is connected, the left ear pin and the right ear pin transmit the sound source signal to the four-ring sound source plug, and when the sound source socket is coupled to the three-ring sound source plug, if the third control signal is the first Positioning, the left ear pin and the right ear pin transmit the sound source signal to the three ring sound source plug; if the third control signal is the second level, the left ear pin and the right ear pin are from the above three The ring source plug receives the above software code. 一種切換操作模式方法,包括:當一音源插座耦接至一四環音源插頭時,產生一第一控制訊號;根據上述第一控制訊號,將一第一位準作為一第二控制訊號; 當上述第二控制訊號為上述第一位準時,藉由一切換裝置自一音源處理器接收一音源訊號,並將上述音源訊號傳送至上述音源插座;當上述第二控制訊號為一第二位準時,藉由上述切換裝置自上述音源插座接收一軟體碼,並將上述軟體碼傳送至一處理器;以及根據上述軟體碼更新上述處理器之一軟體。 A switching operation mode method includes: when a sound source socket is coupled to a four-ring sound source plug, generating a first control signal; and using the first control signal as a second control signal according to the first control signal; When the second control signal is the first level, receiving a sound source signal from a sound source processor by a switching device, and transmitting the sound source signal to the sound source socket; when the second control signal is a second bit On time, a software code is received from the audio source socket by the switching device, and the software code is transmitted to a processor; and one of the processors is updated according to the software code. 如申請專利範圍第6項所述之切換操作模式方法,其中將上述第一位準作為上述第二控制訊號之步驟更包括將上述切換裝置之一控制端自上述處理器去耦接,並且藉由一電阻提供上述第一位準作為上述第二控制訊號。 The switching operation mode method of claim 6, wherein the step of using the first level as the second control signal further comprises decoupling a control end of the switching device from the processor, and borrowing The first level is provided by a resistor as the second control signal. 如申請專利範圍第6項所述之切換操作模式方法,更包括:當上述音源插座耦接至一三環音源插頭時,將上述切換裝置之控制端耦接至上述處理器;藉由上述處理器,根據一使用者設定產生一第三控制訊號,其中上述第三控制訊號具有上述第一位準以及上述第二位準;以及將上述第三控制訊號作為上述第二控制訊號。 The switching operation mode method of claim 6, further comprising: coupling the control end of the switching device to the processor when the audio source socket is coupled to a three-ring audio source plug; And generating a third control signal according to a user setting, wherein the third control signal has the first level and the second level; and the third control signal is used as the second control signal. 如申請專利範圍第8項所述之切換操作模式方法,其中上述音源插座包括一麥克風接腳、一接地接腳、一左耳接腳以及一右耳接腳,其中當上述音源插座耦接至上述四環音源插頭時,藉由上述左耳接腳以及右耳接腳傳送上述音源訊號至上述四環音源插頭,當上述音源插座耦接至上述三環音源插頭時,若上述第三控制訊號為上述第 一位準,藉由上述左耳接腳以及右耳接腳傳送上述音源訊號至上述三環音源插頭;並且若上述第三控制訊號為上述第二位準,藉由上述左耳接腳以及右耳接腳自上述三環音源插頭接收上述軟體碼。The switching operation mode method of claim 8, wherein the audio source socket comprises a microphone pin, a ground pin, a left ear pin and a right ear pin, wherein the audio source socket is coupled to In the above-mentioned four-loop audio source plug, the sound source signal is transmitted to the four-loop audio source plug through the left ear pin and the right ear pin, and the third control signal is connected when the sound source socket is coupled to the three-ring sound source plug. For the above a first, the left ear pin and the right ear pin transmit the sound source signal to the three ring sound source plug; and if the third control signal is the second level, by the left ear pin and the right The ear pin receives the above software code from the above three-ring audio source plug.
TW101133095A 2012-09-11 2012-09-11 Mobile device and method for switching operation mode TWI483100B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101133095A TWI483100B (en) 2012-09-11 2012-09-11 Mobile device and method for switching operation mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101133095A TWI483100B (en) 2012-09-11 2012-09-11 Mobile device and method for switching operation mode

Publications (2)

Publication Number Publication Date
TW201411324A TW201411324A (en) 2014-03-16
TWI483100B true TWI483100B (en) 2015-05-01

Family

ID=50820839

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101133095A TWI483100B (en) 2012-09-11 2012-09-11 Mobile device and method for switching operation mode

Country Status (1)

Country Link
TW (1) TWI483100B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200843250A (en) * 2007-01-05 2008-11-01 Apple Inc Audio I/O headset plug and plug detection circuitry
US20090175456A1 (en) * 2008-01-03 2009-07-09 Apple Inc. Detecting stereo and mono headset devices
US20110116646A1 (en) * 2009-11-19 2011-05-19 Sander Wendell B Electronic device and external equipment with digital noise cancellation and digital audio path
TW201233194A (en) * 2011-01-25 2012-08-01 Hon Hai Prec Ind Co Ltd Earphone and electronic device using the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200843250A (en) * 2007-01-05 2008-11-01 Apple Inc Audio I/O headset plug and plug detection circuitry
US20090175456A1 (en) * 2008-01-03 2009-07-09 Apple Inc. Detecting stereo and mono headset devices
US20110116646A1 (en) * 2009-11-19 2011-05-19 Sander Wendell B Electronic device and external equipment with digital noise cancellation and digital audio path
TW201233194A (en) * 2011-01-25 2012-08-01 Hon Hai Prec Ind Co Ltd Earphone and electronic device using the same

Also Published As

Publication number Publication date
TW201411324A (en) 2014-03-16

Similar Documents

Publication Publication Date Title
US10524037B2 (en) Wireless audio output devices
US10715381B2 (en) Intelligent role selection for dual-role devices
TWI705374B (en) Electronic apparatus and operation method thereof
US9602925B2 (en) Multi-stream-multipoint-jack audio streaming
US8943232B2 (en) System method for enumerating client devices embedded in a user device during reboot, wake up or restart of user device
US20060160569A1 (en) Cellular phone and portable storage device using the same
CN109495871B (en) Bluetooth connection control method, electronic device and computer readable storage medium
CN103078224B (en) Connecting line, control method, control circuit and electronic equipment
TWI625982B (en) Wearable system for receiving audio using a docking station
US9531594B2 (en) Self-configuring port system
GB2526695A (en) Smart pen pairing and connection
KR20200131035A (en) Electronic device and method for receiving push message stored in blockchain
CN103444152A (en) Transforming HTTP requests into Web services trust messages for security processing
TWI520052B (en) Interface switching system and method for switching operation mode
TWI483100B (en) Mobile device and method for switching operation mode
TWI505595B (en) Power integrated device and power control method thereof
US8885623B2 (en) Audio communications system and methods using personal wireless communication devices
US20120071086A1 (en) Electronic equipment with separable communications elements and electronic system having the same
CN113709506A (en) Multimedia playing method, device, medium and program product based on cloud mobile phone
TWI394045B (en) Portable electronic device and method of identifying its accessories
CN206195077U (en) Storage type data line of voiced sound source conversion functions and DC earphone interface
KR102660660B1 (en) Electronic device for receiving radio broadcast using external electronic device capable of processing a radio signal, the external electronic device and method for the same
CN103677725A (en) Mobile device and operation mode switching method
KR20200136258A (en) Electronic device, external electronic device for audio, and method for using antenna signal of external electronic device for audio
TW202338795A (en) Hub with audio signal sharing