200923657 九、發明說明: 【發明所屬之技術領域】 本發明涉及-種攜帶型電子裝置及—種對接人該攜帶 型電子裝置之附件種類之鑒別方法。 【先前技術】 订動電話等攜帶型電子裝置於使用中經常需要盘多種 不同,附件,如耳機、充電器、通用牟列匯流200923657 IX. Description of the Invention: [Technical Field] The present invention relates to a portable electronic device and a method for identifying an accessory type of the portable electronic device. [Prior Art] Portable electronic devices such as mobile phones often require a variety of discs in use, such as headphones, chargers, and universal busses.
Bus,USB)線等相互連接。爲了連接這些附件 :攜帶型電子裝置上設置相應之介面。 置功能之發展’其開設之介面之種類和數量也隨之增 爲了攜帶和使用上之便利,現有之大多數攜帶 裝置於體積上趨於小型化。鈇而 ^ J良化然、而,體積之減小將導致攜帶 ^子裝置缺少·之空間來開設多種用於連接不同附件 現有之USB介面雖然—般具有同時進行資料傳輸 和充電兩種操作之功能,但仍無法相容更多種類之附件, ^通用異步收發傳輸器(Universal Asyneh_us 料举lmanSmUter,UART)等,#法有效地減少於攜帶型 =置上開設介面之數量,不利於減小攜帶型電子裝置 I體積。 【發明内容】 有鑒於此,有必要提供一種便於相容多種 型電子裝置。 丁<揭可 另外,有必要提供—種具有更高相容性之攜帶 裝置附件鑒別方法。 电千 200923657 -種樓帶型電子裝置,包括—介面、—電路板及一附 件檢測裝置’該附件檢測裝置與該介面及該電路板電性連 接,該附件檢測裝置包括一相容多種附件之介面及複數個 檢測附件種類之檢測電路,該介面包括複數個引腳,該複 數個檢測電路對應地接人該複數個引聊;該電路板包括複 數個控制接人附件與該攜帶型電子裝置協同工作之控制電 路,該複數個控制電路對應地接人該複數個檢測電路。 -種攜帶型電子裝置附❹別方法,該方法包括以下步 驟:提供-攜帶型電子裝置’該攜帶型電子裝置包括一用於 接入附件之介面,該介面包括—電源⑽…高電平引腳、 :低電平引腳及-身份標識引腳;檢測該電源引腳之狀 悲’當該電源⑽輸出高電平時’檢測該高電平引腳及該 =平二丨腳之狀態以料接人附件之種類;當該電源引腳 輸出低電平時,檢測該身份標識引腳之狀態以確^接入附 件之種類。 相較於習知技術,本發明提供之攜帶型電子裝置僅使 用-個介面即可相容更多種類之常 型電子裝置附件鑒別方法处豹气且μ 々應 <搞ν j万法此夠間易地判斷出接入附件之種 類’有利於減小攜帶型電子麥w 裝置之結構。 私于裝置之體積亚間化攜帶型電子 【實施方式】 凊參閱圖1,本發明$ ^崔嫩并丨丨+ 7 # 一播^之攜γ型電子裝置較佳實施例爲 攜贡型電子裝置1’該攜帶形雪 ’”、 _ 媽γ型電子裴置1可爲移動雷話、 ^己本電腦等,其包括—介面10、一與該介面 = 接之附件檢測裝置⑽及—與該附件檢測裝置100電性= 7 200923657 接之電路板200。 該介面10爲一 Mini-USB介面,其具有一電源引腳 VBUS、一高電平引腳D+、一低電平引腳D-、一身份標識 引腳ID(Identity)及一接地引腳GND(Ground)。該介面10 可用於接入多種附件,如USB線、充電器、耳機(Headset)、 通用異步收發傳輸器(Universal Asynchronous Receiver/Transmitter,UART)等。 該附件檢測裝置100包括一 USB檢測電路11、一充 電檢測電路12、一耳機檢測電路13及一類比開關14。該 U S B檢測電路11、該充電檢測電路12、該耳機檢測電路 13及該類比開關14均與該介面10電性連接。上述USB 檢測電路11、充電檢測電路12、耳機檢測電路13用於檢 測並鑒別接入之附件。該類比開關14具有兩個輸入引腳 INI、IN2、一個輸出引腳OUT及一個選擇引腳SEL。 該電路板200中設有USB控制電路21、充電控制電 路22、耳機控制電路23及UART控制電路24等複數個控 - 制電路,分別用於控制不同接入附件之相應工作。該電路 板200還包括處理語音信號之編解碼電路(Coder-Dec〇4er, CODEC)25、音頻放大電路26及輸出選擇電路27。 該複數個控制電路對應地接入上述複數個檢測電路, 從而通過上述複數個檢測電路對應地接入該介面10之複 數個引腳,其具體連接方法如下:該USB控制電路21通 過該U S B檢測電路11接入該介面10之r%電平引腳D +及 低電平引腳D-,可通過該高電平引腳D +及低電平引腳D-將該電路板200與接入介面10之USB線相互連接,從而 8 200923657 控制該攜帶型電子裝置1進行資料傳輸工作。該充電控制 電路22通過該充電檢測電路12接入該介面10之電源引腳 • VBUS,可通過該電源引腳VBUS將該電路板200與接入 介面10之充電器相互連接,從而控制該攜帶型電子裝置1 進行充電工作。該耳機控制電路23通過該耳機檢測電路 13接入該介面10之身份標識引腳ID,接入介面10之耳 機等放音設備亦連接至該身份標識引腳ID;這樣即可通過 身份標識引腳ID將該電路板200與接入介面10之耳機等 放音設備相互連接,從而控制該攜帶型電子裝置1通過耳 機等放音設備輸出音頻信號。 該UART控制電路24接入類比開關14之輸入引腳 IN1,該輸出引腳OUT同時接入該介面10之高電平引腳 D +及低電平引腳D-。如此,該UART控制電路24通過該 類比開關14接入該介面10之高電平引腳D +及低電平引腳 D-,從而可通過該介面10將該電路板200與接入該介面 10之UART相互連接,從而控制該攜帶型電子裝置1通過 UART傳輸資料。該編解碼電路25通過該音頻放大電路 26接入輸入引腳IN2,從而使該攜帶型電子裝置1可以.通 過該介面10傳輸語音信號。該輸出選擇電路27接入該選 擇引腳SEL,用以根據需要選通該UART控制電路24或 該編解碼電路25。該接地引腳GND提供接地路徑。 當該攜帶型電子裝置1被使用時,USB線、耳機、充 電器、UART等多種附件均可通過該附件檢測裝置100之 介面10與該電路板200建立相應之電性連接,從而分別控 制該攜帶型電子裝置1執行不同之工作。當某種附件接入 9 200923657 該介面ίο時,攜帶型電子护 :檢測’而後根據檢測結果執行相==附進行 種對接入上述攜帶型電子掌^方法之較佳實施例即爲一 件之種類進行檢測之方法之附件檢測裝置100之附 万,去該方法包括如下步驟: 提供上述之攜帶型電子裳置工。 §有附件接入該介面. 12拾钏+ ; 3丨_ ^,百先通過充電檢測電路 12““源引腳VBUS之輸出狀態。 若該電源引腳VBUS少私v ί , 之輪出狀態爲高電平,則表明接 入該介面1G之附件對攜帶十㈣月接 於除了普通之充電器之外,盘電腦二備有之作用。由 可能對攜帶型電子裝置進行備=之刪線也 之輸出狀離。…:二7電千引腳D +及低電平引腳D-二'千引腳D +及該低電平引腳D-有訊 :輸出時,可判斷接人該介面W之附件爲與電腦等設^連 =聰線。當該高電平引腳D +及該低電平 =時,則表明該接入附件具有充電作用 B、:Bus, USB) lines are connected to each other. In order to connect these accessories: Set the corresponding interface on the portable electronic device. The development of the function's interface and the number of interfaces it has opened have also increased the convenience of carrying and use. Most of the existing portable devices tend to be miniaturized in size. However, the reduction in volume will result in the lack of space for the portable device to open a variety of existing USB interfaces for connecting different accessories, although it has both data transmission and charging operations. Function, but still can not be compatible with more kinds of accessories, ^ Universal Asynchronous Transmitter (Universal Asyneh_us material lmanSmUter, UART), etc., #法 effectively reduced the number of portable = set the interface, is not conducive to reducing Portable electronic device I volume. SUMMARY OF THE INVENTION In view of the above, it is necessary to provide a variety of electronic devices that are compatible with each other. In addition, it is necessary to provide a method for identifying a portable device accessory with higher compatibility. Electric Thousand 200923657 - a type of building-type electronic device, including - interface, - circuit board and an accessory detecting device - the accessory detecting device is electrically connected to the interface and the circuit board, and the accessory detecting device comprises a compatible accessory The interface and the plurality of detection circuits of the detection accessory type, the interface includes a plurality of pins, the plurality of detection circuits correspondingly accessing the plurality of chats; the circuit board includes a plurality of control access accessories and the portable electronic device The control circuit of the cooperative operation, the plurality of control circuits correspondingly accessing the plurality of detection circuits. - Portable electronic device attachment method, the method comprising the steps of: providing - portable electronic device - the portable electronic device comprises an interface for accessing an accessory, the interface comprising - a power supply (10) ... high level Pin, low-level pin and - identity pin; detecting the status of the power pin 'when the power supply (10) outputs a high level' detects the high-level pin and the state of the The type of the accessory is connected; when the power pin outputs a low level, the status of the identity pin is detected to determine the type of the accessory. Compared with the prior art, the portable electronic device provided by the present invention can be compatible with more types of conventional electronic devices by using only one interface, and the identification method is leopard and μ 々 & It is easy to judge the type of access accessory to facilitate the reduction of the structure of the portable electronic device. Volumetric inter-intermediate portable electronic device [Embodiment] Referring to Figure 1, the preferred embodiment of the present invention is a portable electronic device. The device 1 'the portable snow type '", the _ γ γ type electronic device 1 can be a mobile lightning, a computer, etc., including an interface 10, an interface detecting device (10) and the interface = The accessory detecting device 100 is electrically=7 200923657 is connected to the circuit board 200. The interface 10 is a Mini-USB interface, which has a power pin VBUS, a high level pin D+, and a low level pin D- An identification pin ID (Identity) and a ground pin GND (Ground). The interface 10 can be used to access a variety of accessories, such as USB cable, charger, headset (Headset), Universal Asynchronous Transmitter (Universal Asynchronous) Receiver/Transmitter, UART, etc. The accessory detecting device 100 includes a USB detecting circuit 11, a charging detecting circuit 12, an earphone detecting circuit 13, and an analog switch 14. The USB detecting circuit 11, the charging detecting circuit 12, the Headphone detecting circuit 13 and analog switch 14 The USB detecting circuit 11, the charging detecting circuit 12, and the earphone detecting circuit 13 are configured to detect and identify the attached accessory. The analog switch 14 has two input pins INI, IN2, and an output lead. The foot OUT and a selection pin SEL. The circuit board 200 is provided with a plurality of control circuits, such as a USB control circuit 21, a charging control circuit 22, an earphone control circuit 23, and a UART control circuit 24, for respectively controlling different accesses. Corresponding work of the accessory. The circuit board 200 further includes a codec circuit (Coder-Dec〇4er, CODEC) 25 for processing a voice signal, an audio amplifier circuit 26, and an output selection circuit 27. The plurality of control circuits correspondingly access the above complex number a plurality of detecting circuits are respectively connected to the plurality of pins of the interface 10 through the plurality of detecting circuits, and the specific connecting method is as follows: the USB control circuit 21 is connected to the r% of the interface 10 through the USB detecting circuit 11 The flat pin D + and the low level pin D- can connect the circuit board 200 and the USB line of the access interface 10 through the high level pin D + and the low level pin D-, thereby 8 20092365 7 controlling the portable electronic device 1 to perform data transmission operation. The charging control circuit 22 is connected to the power supply pin of the interface 10 through the charging detection circuit 12, VBUS, and the circuit board 200 can be connected through the power supply pin VBUS. The chargers of the interface 10 are connected to each other to control the portable electronic device 1 to perform charging work. The earphone control circuit 23 accesses the identity pin ID of the interface 10 through the earphone detection circuit 13, and the audio device such as a headset connected to the interface 10 is also connected to the identity pin ID; The foot ID interconnects the circuit board 200 with a sound emitting device such as a headphone of the access interface 10, thereby controlling the portable electronic device 1 to output an audio signal through a sound emitting device such as a headphone. The UART control circuit 24 is connected to the input pin IN1 of the analog switch 14, and the output pin OUT is simultaneously connected to the high level pin D+ and the low level pin D- of the interface 10. In this manner, the UART control circuit 24 accesses the high level pin D + and the low level pin D− of the interface 10 through the analog switch 14 , so that the circuit board 200 can be connected to the interface through the interface 10 . The UARTs of 10 are connected to each other, thereby controlling the portable electronic device 1 to transmit data through the UART. The codec circuit 25 is connected to the input pin IN2 through the audio amplifying circuit 26, so that the portable electronic device 1 can transmit a voice signal through the interface 10. The output selection circuit 27 is coupled to the select pin SEL for strobing the UART control circuit 24 or the codec circuit 25 as needed. This ground pin GND provides a ground path. When the portable electronic device 1 is used, a USB cable, an earphone, a charger, a UART, and the like can be electrically connected to the circuit board 200 through the interface 10 of the accessory detecting device 100, thereby respectively controlling the The portable electronic device 1 performs different tasks. When an accessory is connected to the interface of 200923657, the portable electronic protection: detecting 'and then performing the phase according to the detection result== attaching the pair of pairs to the above portable electronic palm method is a preferred embodiment The accessory detecting device 100 of the method for detecting the type includes the following steps: The above-mentioned portable electronic hanging device is provided. § There are accessories to access the interface. 12 钏 钏 + ; 3 丨 _ ^, hundred first through the charge detection circuit 12 "" output pin VBUS output state. If the power supply pin VBUS is less private v ί , the round-out state is high level, it means that the accessory connected to the interface 1G is carried for ten (four) months except for the ordinary charger, and the disk computer 2 is provided. effect. It is possible to output the erased line of the portable electronic device. ...: 2 7 electric thousand pin D + and low level pin D - 2 'thousand pin D + and the low level pin D - there is signal: when output, it can be judged that the interface of the interface W is Connect with the computer, etc. = Cong line. When the high level pin D + and the low level =, it indicates that the access accessory has a charging effect B,
唬輸出,因此判斷該接入附件爲充電器。 L 接入料此w 5之輸出狀恶爲低電平,則表明該 =二:件>又有充笔作用’此時進一步通過耳 檢測身份標識㈣ID之連接狀態。若有附件接人 =識引腳m,則可判斷接人附件爲耳機。Μ附件接入^ 身伤軚識引腳ID,則可判斷接入附件爲UART。 當完成檢測後,該攜帶型電子裝置工即可根據接入附 牛之類型來執行相應之功能。當檢測到接入附件爲線 10 200923657 時,通過輸出選擇電路? 7向類比開關14之選擇引腳SEL 發出選通編解碼電路25及立 解碼電路25通過音頻放大電路%接入介㈣,利用接入 之USB線傳輸語音信沪。 ?nn , ^ ^ #U另外,也可以直接通過電路板 控制電路21配合接人之亂線進行圖 ί專i他類型之資料傳輪工作。這樣,使用同-根刪線 攜帶型電子裝U執行USB網 U ART時,則可以先通'力測到接人之附件爲 過輸出選擇電路27向選擇引腳SE;L 輸入選通UART控制電路24夕v 眘祖^样叮 』兒峪24之#唬,再使用UART收發 貝斗1樣士可以避免攜帶型電子裝h於介面W沒有接入 U = ^ 到相_聊之輸出信號而錯誤 接人附件爲UART並徒勞地啓動uart控制電路以 之現象。 可以理解’上述耳機檢測電路13亦可用於 向傳輸資料之附件,如話筒等。 、“八早 人綜上所述,本發明提供之攜帶型電子裝置!僅用-個 :面1〇即可分別連接多種不同 < 附件,其相應之攜帶型.電 子裝置附件鑒別方法從介面10夂彳 即可判斷出接人附件之種類,從而咸,《輸㈣態高低 上人…曰二成少了攜帶型電子裝置 面之數置’有效地減小了攜帶型電子裝置唬 Output, so it is judged that the access accessory is a charger. L access material The output of this w 5 is low, indicating that the = two: piece > has a pen-filling effect'. At this time, the connection state of the identity (4) ID is further detected through the ear. If there is an accessory connected = the pin m, it can be judged that the accessory is a headset. Μ Accessibility ^ Body ID pin ID, you can judge the access accessory is UART. When the test is completed, the portable electronic device can perform the corresponding function according to the type of accessing the cow. When the access accessory is detected as line 10 200923657, through the output selection circuit? 7 The strobe codec circuit 25 and the vertical decoding circuit 25 are sent to the selection pin SEL of the analog switch 14 through the audio amplifying circuit % (4), and the voice signal is transmitted by using the connected USB cable. ?nn , ^ ^ #U In addition, it is also possible to directly carry out the data transfer work of the type by the circuit board control circuit 21 in conjunction with the pick-up line. In this way, when the USB network U ART is executed by using the same-root-carrying portable electronic device U, the accessory can be connected to the output selection circuit 27 to the selection pin SE; L input strobe UART control Circuit 24 夕 v 慎祖^样叮』儿峪24之#唬, then use the UART transceiver bucket 1 sample can avoid portable electronic device h interface M does not access U = ^ to phase _ chat output signal The error is connected to the UART and the uart control circuit is activated in vain. It can be understood that the above-mentioned earphone detecting circuit 13 can also be used for transmitting an attachment to a material such as a microphone or the like. According to the "early eight people", the portable electronic device provided by the present invention can be connected to a plurality of different < accessories, respectively, and the corresponding portable type electronic device accessory identification method from the interface. 10夂彳 can judge the type of attachments, so salty, “transmission (four) state of the upper class... 曰20% less portable electronic device surface number 'effectively reduce the portable electronic device
間化了攜帶型電子裝置之結構。 、I 綜上所述’本發明符合發料利要m 申請。惟,以上料者僅為本料之寵實施例,本發明之 11 200923657 範圍並不以上述實施例為限,舉凡熟悉本案技藝之人士援依 本發明之精神所作之等效修飾或變化,皆應涵蓋於以下申請 專利範圍内。 【圖式簡單說明】 圖1爲本發明攜帶型電子裝置較佳實施例之模組框圖; 圖2爲本發明攜帶型電子裝置附件鑒別方法較佳實施例 之流程圖。 【主要元件符號說明】The structure of the portable electronic device is interposed. I. In summary, the present invention conforms to the issue of the issue of m. However, the above-mentioned materials are only preferred embodiments of the present invention, and the scope of the present invention is not limited to the above embodiments, and any equivalent modifications or changes made by those skilled in the art to the spirit of the present invention are It should be covered by the following patent application. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of a preferred embodiment of a portable electronic device of the present invention; FIG. 2 is a flow chart of a preferred embodiment of a method for authenticating a portable electronic device according to the present invention. [Main component symbol description]
攜帶型電子裝置 1 介面 10 附件檢測裝置 100 USB檢測電路 11 充電檢測電路 12 耳機檢測電路 13 類比開關 14 電路板 200 USB控制電路 21 充電控制電路 22 通用異步收發傳 耳機控制電路 23 輸器(UART)控制 24 電路 編解碼電路 25 音頻放大電路 26 輸出選擇電路 27 電源引腳 VBUS 高電平引腳 D + 低電平引腳 D- 身份標識引腳 ID 接地引腳 GND 輸入引腳 INI、IN2 輸出引腳 OUT 選擇引腳 SEL 12Portable electronic device 1 interface 10 accessory detection device 100 USB detection circuit 11 charge detection circuit 12 earphone detection circuit 13 analog switch 14 circuit board 200 USB control circuit 21 charge control circuit 22 universal asynchronous transceiver headphone control circuit 23 (UART) Control 24 circuit codec circuit 25 Audio amplifier circuit 26 Output selection circuit 27 Power pin VBUS High pin D + Low pin D- ID pin ID Ground pin GND Input pin INI, IN2 Output Pin OUT select pin SEL 12