TWI394045B - Portable electronic device and method of identifying its accessories - Google Patents

Portable electronic device and method of identifying its accessories Download PDF

Info

Publication number
TWI394045B
TWI394045B TW96145600A TW96145600A TWI394045B TW I394045 B TWI394045 B TW I394045B TW 96145600 A TW96145600 A TW 96145600A TW 96145600 A TW96145600 A TW 96145600A TW I394045 B TWI394045 B TW I394045B
Authority
TW
Taiwan
Prior art keywords
pin
circuit
accessory
portable electronic
electronic device
Prior art date
Application number
TW96145600A
Other languages
Chinese (zh)
Other versions
TW200923657A (en
Inventor
Chih Hao Li
Original Assignee
Chi Mei Comm Systems 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 Chi Mei Comm Systems Inc filed Critical Chi Mei Comm Systems Inc
Priority to TW96145600A priority Critical patent/TWI394045B/en
Publication of TW200923657A publication Critical patent/TW200923657A/en
Application granted granted Critical
Publication of TWI394045B publication Critical patent/TWI394045B/en

Links

Landscapes

  • Telephone Function (AREA)

Description

攜帶型電子裝置及其附件鑒別方法 Portable electronic device and accessory identification method thereof

本發明涉及一種攜帶型電子裝置及一種對接入該攜帶型電子裝置之附件種類之鑒別方法。 The invention relates to a portable electronic device and a method for identifying an accessory type for accessing the portable electronic device.

行動電話等攜帶型電子裝置於使用中經常需要與多種不同之附件,如耳機、充電器、通用串列匯流排(Universal Serial Bus,USB)線等相互連接。為了連接這些附件,需要於攜帶型電子裝置上設置相應之介面。隨著攜帶型電子裝置功能之發展,其開設之介面之種類和數量也隨之增加。 Portable electronic devices such as mobile phones often need to be connected to a variety of different accessories, such as earphones, chargers, and Universal Serial Bus (USB) lines. In order to connect these accessories, it is necessary to provide a corresponding interface on the portable electronic device. With the development of the functions of portable electronic devices, the types and quantities of interfaces they open have also increased.

為了攜帶和使用上之便利,現有之大多數攜帶型電子裝置於體積上趨於小型化。然而,體積之減小將導致攜帶型電子裝置缺少足夠之空間來開設多種用於連接不同附件之介面。現有之USB介面雖然一般具有同時進行資料傳輸和充電兩種操作之功能,但仍無法相容更多種類之附件,如通用異步收發傳輸器(Universal Asynchronous Receiver/Transmitter,UART)等,無法有效地減少於攜帶型電子裝置上開設介面之數量,不利於減小攜帶型電子裝置之體積。 In order to be portable and easy to use, most of the existing portable electronic devices tend to be miniaturized in size. However, the reduction in volume will result in a lack of sufficient space for the portable electronic device to open a variety of interfaces for connecting different accessories. Although the existing USB interface generally has the functions of data transmission and charging at the same time, it is still incompatible with a wider variety of accessories, such as Universal Asynchronous Receiver/Transmitter (UART), which cannot be effectively Reducing the number of interfaces on the portable electronic device is not conducive to reducing the size of the portable electronic device.

有鑒於此,有必要提供一種便於相容多種附件之攜帶型電子裝置。 In view of the above, it is necessary to provide a portable electronic device that facilitates compatibility with a variety of accessories.

另外,有必要提供一種具有更高相容性之攜帶型電子裝置附件鑒別方法。 In addition, it is necessary to provide a portable electronic device accessory identification method with higher compatibility.

一種攜帶型電子裝置,包括一介面、一電路板及一附件檢測裝置,該附件檢測裝置與該介面及該電路板電性連接,該附件檢測裝置包括一相容多種附件之介面及一USB檢測電路、一充電檢測電路及一耳機檢測電路,該介面包括一電源引腳、一高電平引腳、一低電平引腳及一身份標識引腳,該USB檢測電路連接該高電平引腳及該低電平引腳,該充電檢測電路連接該電源引腳,該耳機檢測電路連接該身份標識引腳;該電路板包括複數個控制接入附件與該攜帶型電子裝置協同工作之控制電路,該複數個控制電路對應地接入上述USB檢測電路、充電檢測電路及耳機檢測電路;當有附件接入該介面時,若該電源引腳為高電平且該高電平引腳及該低電平引腳有信號輸出,則該攜帶型電子裝置判斷接入之附件為USB線;若該電源引腳為高電平且該高電平引腳及該低電平引腳無信號輸出,則該攜帶型電子裝置判斷接入之附件為充電器;若該電源引腳為低電平且該身份標識引腳有信號輸出,則該攜帶型電子裝置判斷接入之附件為耳機。 A portable electronic device includes an interface, a circuit board and an accessory detecting device. The accessory detecting device is electrically connected to the interface and the circuit board. The accessory detecting device comprises an interface compatible with a plurality of accessories and a USB detecting device. a circuit, a charge detecting circuit and a headphone detecting circuit, the interface includes a power pin, a high level pin, a low level pin and an identification pin, and the USB detecting circuit is connected to the high level lead a pin and the low level pin, the charge detecting circuit is connected to the power pin, the earphone detecting circuit is connected to the identity pin; the circuit board comprises a plurality of control access accessories and the portable electronic device working in cooperation a plurality of control circuits correspondingly connected to the USB detecting circuit, the charging detecting circuit and the earphone detecting circuit; when an accessory is connected to the interface, if the power pin is high level and the high level pin and The low-level pin has a signal output, and the portable electronic device determines that the accessory attached is a USB cable; if the power pin is high level and the high-level pin and the low-level lead If there is no signal output, the portable electronic device determines that the accessory to be accessed is a charger; if the power pin is low level and the identification pin has a signal output, the portable electronic device determines that the attached accessory is headset.

一種攜帶型電子裝置附件鑒別方法,該方法包括以下步驟:提供一攜帶型電子裝置,該攜帶型電子裝置包括一用於接入附件之介面,該介面包括一電源引腳、一高電平引腳、一低電平引腳及一身份標識引腳;檢測該電源引腳之狀態;當該電源引腳輸出高電平時,檢測該高電平引腳及該低電平引腳的輸出狀態;若該高電平引腳及該低電平引腳有信號輸出,則判斷該接入附件為USB資料線;若該高電平引腳及該低電平引腳無信號輸出,則判斷該接入附件為充電器;當該電源引腳輸出低電平時,檢測該身份標識引腳的輸出狀態;若該身份標識引腳有信號輸出,則判斷該接入附件為耳機;若該身份標識引腳無信號輸出,則判斷該接入附件為通用異步收發傳輸器(Universal Asynchronous Receiver/Transmitter,UART)。 A portable electronic device accessory identification method, the method comprising the steps of: providing a portable electronic device, the portable electronic device comprising an interface for accessing an accessory, the interface comprising a power pin and a high level lead a pin, a low level pin and an identity pin; detecting a state of the power pin; detecting a high level pin and an output state of the low level pin when the power pin outputs a high level If the high level pin and the low level pin have a signal output, it is determined that the access accessory is a USB data line; if the high level pin and the low level pin have no signal output, then it is determined The access accessory is a charger; when the power pin outputs a low level, detecting an output state of the identity pin; if the identity pin has a signal output, determining that the access accessory is an earphone; if the identity is the identity If the identification pin has no signal output, it is determined that the access accessory is a Universal Asynchronous Receiver/Transmitter (UART).

相較於習知技術,本發明提供之攜帶型電子裝置僅使用一個介面即可相容 更多種類之常用附件,其相應之攜帶型電子裝置附件鑒別方法能夠簡易地判斷出接入附件之種類,有利於減小攜帶型電子裝置之體積並簡化攜帶型電子裝置之結構。 Compared with the prior art, the portable electronic device provided by the present invention is compatible with only one interface. More common types of accessories, the corresponding portable electronic device accessory identification method can easily determine the type of access accessories, which is beneficial to reduce the size of the portable electronic device and simplify the structure of the portable electronic device.

(本發明) (this invention)

1‧‧‧攜帶型電子裝置 1‧‧‧Portable electronic device

10‧‧‧介面 10‧‧‧ interface

100‧‧‧附件檢測裝置 100‧‧‧Accessory detection device

11‧‧‧USB檢測電路 11‧‧‧USB detection circuit

12‧‧‧充電檢測電路 12‧‧‧Charge detection circuit

13‧‧‧耳機檢測電路 13‧‧‧ headphone detection circuit

14‧‧‧類比開關 14‧‧‧ analog switch

200‧‧‧電路板 200‧‧‧ boards

21‧‧‧USB控制電路 21‧‧‧USB control circuit

22‧‧‧充電控制電路 22‧‧‧Charging control circuit

23‧‧‧耳機控制電路 23‧‧‧ headphone control circuit

24‧‧‧通用異步收發傳輸器(UART)控制電路 24‧‧‧Universal Asynchronous Receiver Transmitter (UART) Control Circuit

25‧‧‧編解碼電路 25‧‧‧ codec circuit

26‧‧‧音頻放大電路 26‧‧‧Audio amplification circuit

27‧‧‧輸出選擇電路 27‧‧‧Output selection circuit

VBUS‧‧‧電源引腳 VBUS‧‧‧ power pin

D+‧‧‧高電平引腳 D+‧‧‧ high level pin

D-‧‧‧低電平引腳 D-‧‧‧Low-level pin

ID‧‧‧身份標識引腳 ID‧‧‧identity pin

GND‧‧‧接地引腳 GND‧‧‧ Grounding Pin

IN1、IN2‧‧‧輸入引腳 IN1, IN2‧‧‧ input pins

OUT‧‧‧輸出引腳 OUT‧‧‧ output pin

SEL‧‧‧選擇引腳 SEL‧‧‧Select pin

圖1為本發明攜帶型電子裝置較佳實施例之模組框圖;圖2為本發明攜帶型電子裝置附件鑒別方法較佳實施例之流程圖。 1 is a block diagram of a preferred embodiment of a portable electronic device according to the present invention; and FIG. 2 is a flow chart of a preferred embodiment of a method for authenticating a portable electronic device according to the present invention.

請參閱圖1,本發明之攜帶型電子裝置較佳實施例為一攜帶型電子裝置1,該攜帶型電子裝置1可為移動電話、筆記本電腦等,其包括一介面10、一與該介面10電性連接之附件檢測裝置100及一與該附件檢測裝置100電性連接之電路板200。 Referring to FIG. 1 , a preferred embodiment of the portable electronic device of the present invention is a portable electronic device 1 . The portable electronic device 1 can be a mobile phone, a notebook computer, etc., and includes an interface 10 , an interface 10 , and the interface 10 . The electrical connection accessory detecting device 100 and a circuit board 200 electrically connected to the accessory detecting device 100.

該介面10為一Mini-USB介面,其具有一電源引腳VBUS、一高電平引腳D+、一低電平引腳D-、一身份標識引腳ID(Identity)及一接地引腳GND(Ground)。該介面10可用於接入多種附件,如USB線、充電器、耳機(Headset)、通用異步收發傳輸器(Universal Asynchronous Receiver/Transmitter,UART)等。由Mini-USB介面之習知結構可知,USB線、充電器、UART等附件可以直接插入該介面10,該UART通過外部電源供電;而耳機、音源訊號接頭等附件則可以通過USB耳機轉接線等習知手段連接到該介面10。 The interface 10 is a Mini-USB interface having a power pin VBUS, a high level pin D+, a low level pin D-, an identity pin ID (Identity), and a ground pin GND. (Ground). The interface 10 can be used to access a variety of accessories, such as a USB cable, a charger, a Headset, a Universal Asynchronous Receiver/Transmitter (UART), and the like. According to the conventional structure of the Mini-USB interface, accessories such as a USB cable, a charger, and a UART can be directly inserted into the interface 10, and the UART is powered by an external power source; and accessories such as a headphone and an audio source connector can be connected through a USB earphone. A conventional means is connected to the interface 10.

該附件檢測裝置100包括一USB檢測電路11、一充電檢測電路12、一耳機檢測電路13及一類比開關14。該USB檢測電路11、該充電檢測電路12、該耳機檢測電路13及該類比開關14均與該介面10電性連接。上述USB檢測電路11、充電檢測電路12、耳機檢測電路13用於檢測並鑒別接入之附件。該類比開關14具有兩組輸入引腳IN1、IN2、一組輸出引腳OUT及一支選擇引腳 SEL。其中每組輸入引腳IN1、IN2及輸出引腳OUT各包括兩支併行的引腳。 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 earphone detecting circuit 13 and the analog switch 14 are electrically connected to the interface 10 . The USB detecting circuit 11, the charging detecting circuit 12, and the headphone detecting circuit 13 are used to detect and authenticate the attached accessory. The analog switch 14 has two sets of input pins IN1, IN2, a set of output pins OUT and a select pin. SEL. Each of the input pins IN1, IN2 and the output pin OUT includes two parallel pins.

該電路板200中設有USB控制電路21、充電控制電路22、耳機控制電路23及UART控制電路24等複數個控制電路,分別用於控制不同接入附件之相應工作。該電路板200還包括處理語音信號之編解碼電路(Coder-Decoder,CODEC)25、音頻放大電路26及輸出選擇電路27。 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 respective operations of different access accessories. The circuit board 200 further includes a Coder-Decoder (CODEC) 25 for processing voice signals, an audio amplification circuit 26, and an output selection circuit 27.

該複數個控制電路對應地接入上述複數個檢測電路,從而通過上述複數個檢測電路對應地接入該介面10之複數個引腳,其具體連接方法如下:該USB控制電路21通過該USB檢測電路11接入該介面10之高電平引腳D+及低電平引腳D-,當有外界之USB線接入該介面10時,該USB控制電路21可通過該USB檢測電路11確定該USB線已接入該介面10,並可通過該高電平引腳D+及低電平引腳D-將該電路板200與該接入介面10之USB線相互連接,從而依照習知之使用USB介面之資料傳輸方式,控制該攜帶型電子裝置1通過該高電平引腳D+及低電平引腳D-接收及輸出資料,以進行資料傳輸工作。該充電控制電路22通過該充電檢測電路12接入該介面10之電源引腳VBUS,當有外界之充電器接入該介面10時,該充電控制電路22可通過該充電檢測電路12確定該充電器已接入該介面10,並可通過該電源引腳VBUS將該電路板200與該接入介面10之充電器相互連接,從而依照習知之使用USB介面之充電方式,控制該攜帶型電子裝置1通過該電源引腳VBUS從該充電器接收電能,以進行充電工作。該耳機控制電路23通過該耳機檢測電路13接入該介面10之身份標識引腳ID,當有外界之耳機等放音設備接入該介面10時,該接入介面10之耳機等放音設備亦連接至該身份標識引腳ID;該耳機控制電路23可通過該耳機檢測電路13確定該耳機等放音設備已接入該介面10,並這樣即可通過身份標識引腳ID將該電路板200與該接入介面10之耳機等放音設備相互連接,從而依照習知之使用USB介面之端子(D+、D-)傳輸音頻信號之 方式,控制該攜帶型電子裝置1通過耳機等放音設備輸出音頻信號。 The plurality of control circuits are correspondingly connected to the plurality of detection circuits, so that the plurality of pins of the interface 10 are correspondingly connected through the plurality of detection circuits, and the specific connection method is as follows: the USB control circuit 21 detects the USB through the USB The circuit 11 is connected to the high-level pin D+ and the low-level pin D- of the interface 10. When the external USB cable is connected to the interface 10, the USB control circuit 21 can determine the USB detection circuit 11 The USB cable is connected to the interface 10, and the circuit board 200 and the USB cable of the access interface 10 are connected to each other through the high-level pin D+ and the low-level pin D-, thereby using the USB according to the conventional use. The data transmission mode of the interface controls the portable electronic device 1 to receive and output data through the high-level pin D+ and the low-level pin D- to perform data transmission. The charging control circuit 22 is connected to the power pin VBUS of the interface 10 through the charging detecting circuit 12. When the external charger is connected to the interface 10, the charging control circuit 22 can determine the charging through the charging detecting circuit 12. The device is connected to the interface 10, and the circuit board 200 and the charger of the access interface 10 are connected to each other through the power pin VBUS, thereby controlling the portable electronic device according to a conventional charging method using a USB interface. 1 Receive power from the charger through the power pin VBUS for charging operation. The earphone control circuit 23 accesses the identity pin ID of the interface 10 through the earphone detecting circuit 13. When a sound emitting device such as an external earphone is connected to the interface 10, the earphone device such as the earphone of the access interface 10 Also connected to the identity pin ID; the earphone control circuit 23 can determine, by the earphone detecting circuit 13, that the earphone and the like are connected to the interface 10, and thus the board can be identified by the identity pin ID The 200 is connected to a sound emitting device such as a headphone of the access interface 10 to transmit an audio signal according to a conventional terminal (D+, D-) of the USB interface. In a manner, the portable electronic device 1 is controlled to output an audio signal through a sound emitting device such as a headphone.

該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提供接地路徑。 The UART control circuit 24 is simultaneously connected to the two pins of the input pin IN1 of the analog switch 14. The two pins of the output pin OUT are respectively connected to the high level pin D+ and the low level of the interface 10. Feet D-. In this manner, the UART control circuit 24 is connected to 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 10 through the interface 10. The UARTs are connected to each other to control the portable electronic device 1 to transmit data through the UART. The codec circuit 25 simultaneously accesses two pins of 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.

當該攜帶型電子裝置1被使用時,USB線、耳機、充電器、UART等多種附件均可通過該附件檢測裝置100之介面10與該電路板200建立相應之電性連接,從而分別控制該攜帶型電子裝置1執行不同之工作。當某種附件接入該介面10時,攜帶型電子裝置1需要對該附件之種類進行檢測,而後根據檢測結果執行相應之工作。請參閱圖2,本發明攜帶型電子裝置附件鑒別方法之較佳實施例即為一種對接入上述攜帶型電子裝置1之附件檢測裝置100之附件之種類進行檢測之方法,該方法包括如下步驟:提供一上述之攜帶型電子裝置1。 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 10, the portable electronic device 1 needs to detect the type of the accessory, and then performs corresponding work according to the detection result. Referring to FIG. 2, a preferred embodiment of the method for authenticating the accessory of the portable electronic device of the present invention is a method for detecting the type of the accessory attached to the accessory detecting device 100 of the portable electronic device 1, and the method includes the following steps. A portable electronic device 1 as described above is provided.

當有附件接入該介面10時,首先通過充電檢測電路12檢測電源引腳VBUS之輸出狀態。 When an accessory is connected to the interface 10, the output state of the power supply pin VBUS is first detected by the charge detecting circuit 12.

若該電源引腳VBUS之輸出狀態為高電平,則表明接入該介面10之附件對攜帶型電子裝置具有充電之作用。由於除了普通之充電器之外,與電腦等設備連接之USB線也可能對攜帶型電子裝置進行充電,因此這時即可進一步通 過USB檢測電路11檢測高電平引腳D+及低電平引腳D-之輸出狀態。當該高電平引腳D+及該低電平引腳D-有訊號輸出時,可判斷接入該介面10之附件為與電腦等設備連接之USB線。當該高電平引腳D+及該低電平引腳D-無訊號輸出時,則表明該接入附件具有充電作用但沒有USB信號輸出,因此判斷該接入附件為充電器。 If the output state of the power pin VBUS is high, it indicates that the accessory connected to the interface 10 has a charging effect on the portable electronic device. Since the USB cable connected to a computer or the like can charge the portable electronic device in addition to the ordinary charger, it can be further passed. The USB detection circuit 11 detects the output states of the high level pin D+ and the low level pin D-. When the high-level pin D+ and the low-level pin D- have a signal output, it can be determined that the accessory connected to the interface 10 is a USB cable connected to a device such as a computer. When the high level pin D+ and the low level pin D- no signal output, it indicates that the access accessory has a charging function but no USB signal output, so it is determined that the access accessory is a charger.

若該電源引腳VBUS之輸出狀態為低電平,則表明該接入附件沒有充電作用,此時進一步通過耳機檢測電路23檢測身份標識引腳ID之連接狀態。若有附件接入該身份標識引腳ID,則可判斷接入附件為耳機。若無附件接入該身份標識引腳ID,則可判斷接入附件為UART。 If the output state of the power pin VBUS is low, it indicates that the access accessory has no charging function, and the connection state of the identity pin ID is further detected by the earphone detecting circuit 23. If an accessory is connected to the identity pin ID, it can be determined that the access accessory is a headset. If no accessory accesses the identity pin ID, it can be determined that the access accessory is a UART.

當完成檢測後,該攜帶型電子裝置1即可根據接入附件之類型來執行相應之功能。當檢測到接入附件為USB線時,通過輸出選擇電路27向類比開關14之選擇引腳SEL發出選通編解碼電路25及音頻放大電路26之信號,使編解碼電路25通過音頻放大電路26接入介面10,利用接入之USB線傳輸語音信號。另外,也可以直接通過電路板200中裝設之USB控制電路21配合接入之USB線進行圖像等其他類型之資料傳輸工作。這樣,使用同一根USB線接入介面10,即可使用該攜帶型電子裝置1執行USB網路電話功能或其他資料傳輸功能。當檢測到接入之附件為UART時,則可以先通過輸出選擇電路27向選擇引腳SEL輸入選通UART控制電路24之信號,再使用UART收發資料。這樣可以避免攜帶型電子裝置l於介面10沒有接入任何附件時,由於沒有檢測到相關引腳之輸出信號而錯誤地判斷接入附件為UART並徒勞地啟動UART控制電路24之現象。 When the detection is completed, the portable electronic device 1 can perform the corresponding function according to the type of the access accessory. When it is detected that the access accessory is a USB cable, the signal of the strobe codec circuit 25 and the audio amplifying circuit 26 is sent to the selection pin SEL of the analog switch 14 through the output selection circuit 27, so that the codec circuit 25 passes through the audio amplifying circuit 26. The access interface 10 transmits voice signals using the connected USB cable. In addition, other types of data transmission operations such as images can be directly performed by the USB control circuit 21 installed in the circuit board 200 in conjunction with the connected USB cable. In this way, the portable electronic device 1 can be used to perform a USB network telephone function or other data transmission function by using the same USB cable access interface 10. When it is detected that the attached accessory is a UART, the output selection circuit 27 can first input the signal of the strobe UART control circuit 24 to the selection pin SEL, and then use the UART to transmit and receive data. In this way, the portable electronic device 1 can be erroneously judged that the access accessory is a UART and the UART control circuit 24 is activated in vainly because the output signal of the relevant pin is not detected when the interface 10 is not connected to any accessory.

可以理解,上述耳機檢測電路13亦可用於檢測其他單向傳輸資料之附件,如話筒等。 It can be understood that the above-mentioned earphone detecting circuit 13 can also be used for detecting accessories such as microphones and the like of other one-way transmission data.

綜上所述,本發明提供之攜帶型電子裝置1僅用一個介面10即可分別連接多 種不同之附件,其相應之攜帶型電子裝置附件鑒別方法從介面10各個引腳之輸出狀態高低即可判斷出接入附件之種類,從而減少了攜帶型電子裝置上介面之數量,有效地減小了攜帶型電子裝置之體積,並簡化了攜帶型電子裝置之結構。 In summary, the portable electronic device 1 provided by the present invention can be connected by only one interface 10 A different accessory, the corresponding portable electronic device accessory identification method can determine the type of access accessory from the output state of each pin of the interface 10, thereby reducing the number of interfaces on the portable electronic device, and effectively reducing The size of the portable electronic device is reduced, and the structure of the portable electronic device is simplified.

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

1‧‧‧攜帶型電子裝置 1‧‧‧Portable electronic device

10‧‧‧介面 10‧‧‧ interface

100‧‧‧附件檢測裝置 100‧‧‧Accessory detection device

11‧‧‧USB檢測電路 11‧‧‧USB detection circuit

12‧‧‧充電檢測電路 12‧‧‧Charge detection circuit

13‧‧‧耳機檢測電路 13‧‧‧ headphone detection circuit

14‧‧‧類比開關 14‧‧‧ analog switch

200‧‧‧電路板 200‧‧‧ boards

21‧‧‧USB控制電路 21‧‧‧USB control circuit

22‧‧‧充電控制電路 22‧‧‧Charging control circuit

23‧‧‧耳機控制電路 23‧‧‧ headphone control circuit

24‧‧‧通用異步收發傳輸器(UART)控制電路 24‧‧‧Universal Asynchronous Receiver Transmitter (UART) Control Circuit

25‧‧‧編解碼電路 25‧‧‧ codec circuit

26‧‧‧音頻放大電路 26‧‧‧Audio amplification circuit

27‧‧‧輸出選擇電路 27‧‧‧Output selection circuit

VBUS‧‧‧電源引腳 VBUS‧‧‧ power pin

D+‧‧‧高電平引腳 D+‧‧‧ high level pin

D-‧‧‧低電平引腳 D-‧‧‧Low-level pin

ID‧‧‧身份標識引腳 ID‧‧‧identity pin

GND‧‧‧接地引腳 GND‧‧‧ Grounding Pin

IN1、IN2‧‧‧輸入引腳 IN1, IN2‧‧‧ input pins

OUT‧‧‧輸出引腳 OUT‧‧‧ output pin

SEL‧‧‧選擇引腳 SEL‧‧‧Select pin

Claims (7)

一種攜帶型電子裝置,其包括:一介面,該介面包括一電源引腳、一高電平引腳、一低電平引腳及一身份標識引腳;一電路板,該電路板包括複數個控制接入附件與該攜帶型電子裝置協同工作之控制電路;及一附件檢測裝置,該附件檢測裝置與該介面及該電路板電性連接,該附件檢測裝置包括一USB檢測電路、一充電檢測電路及一耳機檢測電路,該USB檢測電路連接該高電平引腳及該低電平引腳,該充電檢測電路連接該電源引腳,該耳機檢測電路連接該身份標識引腳,該複數個控制電路對應地接入上述USB檢測電路、充電檢測電路及耳機檢測電路;當有附件接入該介面時,若該電源引腳為高電平且該高電平引腳及該低電平引腳有信號輸出,則該攜帶型電子裝置判斷接入之附件為USB線;若該電源引腳為高電平且該高電平引腳及該低電平引腳無信號輸出,則該攜帶型電子裝置判斷接入之附件為充電器;若該電源引腳為低電平且該身份標識引腳有信號輸出,則該攜帶型電子裝置判斷接入之附件為耳機。 A portable electronic device includes: an interface, the interface includes a power pin, a high level pin, a low level pin and an identification pin; a circuit board, the circuit board includes a plurality of a control circuit for controlling the access accessory to cooperate with the portable electronic device; and an accessory detecting device electrically connected to the interface and the circuit board, the accessory detecting device comprising a USB detecting circuit and a charging detection a circuit and a headphone detecting circuit, the USB detecting circuit is connected to the high level pin and the low level pin, the charging detecting circuit is connected to the power pin, and the earphone detecting circuit is connected to the identity pin, the plurality of The control circuit correspondingly connects to the USB detecting circuit, the charging detecting circuit and the earphone detecting circuit; when an accessory is connected to the interface, if the power pin is high level and the high level pin and the low level lead If the foot has a signal output, the portable electronic device determines that the attached accessory is a USB cable; if the power supply pin is at a high level and the high level pin and the low level pin have no signal output, then Analyzing the access of Annex portable electronic device is a charger; if the power supply pin is low and the signal output pin identity, the access of the accessory is determined that the portable electronic device is a headset. 如申請專利範圍第1項所述之攜帶型電子裝置,其中該附件檢測裝置還包括一類比開關,該電路板之該複數個控制電路中包括一通用異步收發傳輸器(Universal Asynchronous Receiver/Transmitter,UART)控制電路,該UART控制電路通過該類比開關接入該介面之該高電平引腳及該低電平引腳;當有附件接入該介面時,若該電源引腳為低電平且該身份標識引腳無信號輸出,則該攜帶型電子裝置判斷接入之附件為UART。 The portable electronic device of claim 1, wherein the accessory detecting device further comprises an analog switch, wherein the plurality of control circuits of the circuit board comprise a universal asynchronous receiver/transmitter (Universal Asynchronous Receiver/Transmitter, a UART) control circuit, the UART control circuit is connected to the high level pin and the low level pin of the interface through the analog switch; if an accessory is connected to the interface, if the power pin is low If the identity pin has no signal output, the portable electronic device determines that the attached accessory is a UART. 如申請專利範圍第2項所述之攜帶型電子裝置,其中該類比開關包括兩組 輸入引腳、一組輸出引腳及一支選擇引腳;該電路板還包括一編解碼電路及一輸出選擇電路,該收發傳輸器控制電路及該編解碼電路各自接入一組輸入引腳,該組輸出引腳之兩支引腳分別接入該介面之該高電平引腳及該低電平引腳,該輸出選擇電路接入該選擇引腳;當接入之附件被判斷為USB線時,該輸出選擇電路向該選擇引腳發出選通信號而將該編解碼電路連接到該介面及該附件;當接入之附件被判斷為UART時,該輸出選擇電路向該選擇引腳發出選通信號而將該UART控制電路連接到該介面及該附件。 The portable electronic device of claim 2, wherein the analog switch comprises two groups. An input pin, a set of output pins and a select pin; the circuit board further includes a codec circuit and an output selection circuit, wherein the transceiver transmitter control circuit and the codec circuit respectively access a set of input pins The two pins of the output pin of the group are respectively connected to the high level pin of the interface and the low level pin, and the output selection circuit is connected to the selection pin; when the access accessory is judged as a USB line, the output selection circuit sends a strobe signal to the select pin to connect the codec circuit to the interface and the accessory; and when the accessed accessory is determined to be a UART, the output selection circuit directs the selection The pin sends a strobe signal to connect the UART control circuit to the interface and the accessory. 如申請專利範圍第2項所述之攜帶型電子裝置,其中該電路板之該複數個控制電路中包括一USB控制電路,該USB控制電路通過該USB檢測電路接入該高電平引腳及該低電平引腳。 The portable electronic device of claim 2, wherein the plurality of control circuits of the circuit board comprise a USB control circuit, and the USB control circuit is connected to the high level pin through the USB detecting circuit. This low level pin. 如申請專利範圍第1項所述之攜帶型電子裝置,其中該電路板之該複數個控制電路中包括一充電控制電路,該充電控制電路通過該充電檢測電路接入該電源引腳。 The portable electronic device of claim 1, wherein the plurality of control circuits of the circuit board comprise a charging control circuit, and the charging control circuit is connected to the power supply pin through the charging detecting circuit. 如申請專利範圍第1項所述之攜帶型電子裝置,其中該電路板之該複數個控制電路中包括一耳機控制電路,該耳機控制電路通過該耳機檢測電路接入該身份標識引腳。 The portable electronic device of claim 1, wherein the plurality of control circuits of the circuit board comprise an earphone control circuit, and the earphone control circuit accesses the identity pin through the earphone detecting circuit. 一種攜帶型電子裝置附件鑒別方法,其包括以下步驟:提供一攜帶型電子裝置,該攜帶型電子裝置包括一用於接入附件之介面,該介面包括一電源引腳、一高電平引腳、一低電平引腳及一身份標識引腳;當有附件接入該介面時,檢測該電源引腳之狀態;當該電源引腳輸出高電平時,檢測該高電平引腳及該低電平引腳的輸出狀態;若該高電平引腳及該低電平引腳有信號輸出,則判斷該接入附件為USB資料線;若該高電平引腳及該低電平引腳無信號輸出,則判斷該接 入附件為充電器;當該電源引腳輸出低電平時,檢測該身份標識引腳的輸出狀態;若該身份標識引腳有信號輸出,則判斷該接入附件為耳機;若該身份標識引腳無信號輸出,則判斷該接入附件為通用異步收發傳輸器(Universal Asynchronous Receiver/Transmitter,UART)。 A portable electronic device accessory identification method includes the following steps: providing a portable electronic device, the portable electronic device comprising an interface for accessing an accessory, the interface comprising a power pin and a high level pin a low level pin and an identity pin; when an accessory is connected to the interface, detecting a state of the power pin; when the power pin outputs a high level, detecting the high level pin and the The output state of the low-level pin; if the high-level pin and the low-level pin have a signal output, it is determined that the access accessory is a USB data line; if the high-level pin and the low level If there is no signal output on the pin, then the connection is judged. The accessory is a charger; when the power pin outputs a low level, detecting an output state of the identity pin; if the identity pin has a signal output, determining that the access accessory is an earphone; if the identity is cited If there is no signal output, the access accessory is determined to be a Universal Asynchronous Receiver/Transmitter (UART).
TW96145600A 2007-11-30 2007-11-30 Portable electronic device and method of identifying its accessories TWI394045B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW96145600A TWI394045B (en) 2007-11-30 2007-11-30 Portable electronic device and method of identifying its accessories

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW96145600A TWI394045B (en) 2007-11-30 2007-11-30 Portable electronic device and method of identifying its accessories

Publications (2)

Publication Number Publication Date
TW200923657A TW200923657A (en) 2009-06-01
TWI394045B true TWI394045B (en) 2013-04-21

Family

ID=44728698

Family Applications (1)

Application Number Title Priority Date Filing Date
TW96145600A TWI394045B (en) 2007-11-30 2007-11-30 Portable electronic device and method of identifying its accessories

Country Status (1)

Country Link
TW (1) TWI394045B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI460938B (en) * 2009-08-11 2014-11-11 Inventec Appliances Corp Complex connector for handheld device and connecting method therefore
TWI619020B (en) * 2015-02-11 2018-03-21 啟碁科技股份有限公司 Circuit capable of two interfaces thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200424910A (en) * 2003-05-14 2004-11-16 Benq Corp Interface device for automatically determining peripherals and electronic device having such a function
TW200622888A (en) * 2004-06-10 2006-07-01 Analog Devices Inc A system for determining the true electrical characteristics of a device
TW200708036A (en) * 2005-03-31 2007-02-16 Qualcomm Inc Mobile device interface for input devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200424910A (en) * 2003-05-14 2004-11-16 Benq Corp Interface device for automatically determining peripherals and electronic device having such a function
TW200622888A (en) * 2004-06-10 2006-07-01 Analog Devices Inc A system for determining the true electrical characteristics of a device
TW200708036A (en) * 2005-03-31 2007-02-16 Qualcomm Inc Mobile device interface for input devices

Also Published As

Publication number Publication date
TW200923657A (en) 2009-06-01

Similar Documents

Publication Publication Date Title
CN101426038B (en) Portable electronic device and accessory identification method
US11768787B2 (en) Connectors for audio data transfer
US20130101132A1 (en) Method and Device for Earphone and USB to Share Micro-USB Interface
US7949802B2 (en) Enhanced communication via a serial interface
US7711870B2 (en) Interface detecting circuit and interface detecting method
JP4806076B2 (en) Charging cable with USB-like connector
US10021477B2 (en) Backward compatible system and method for using 4P audio jack to provide power and signal to headset with active noise cancellation
US20070239924A1 (en) Electronic device transmitting audio-and-video signals with USB connector
CN203167074U (en) Mobile terminal configured with reuse interface
CN101534349A (en) Method and apparatus for determining external connection device in mobile terminal
WO2017063459A1 (en) Usb control apparatus and device
KR20130122266A (en) System and apparatus and method for performing charging in host mode
WO2017161750A1 (en) Mobile apparatus
KR102461972B1 (en) Apparatus and method for performing data transmission with docking device by using usb interface
US20120284428A1 (en) Electronic device having audio ports
CN101626412A (en) Mobile terminal circuit with multifunctional earphone socket and implementation method thereof
US20140068113A1 (en) Data transmission between a portable electronic device and various accessory devices via respective dedicated connection interfaces
EP3700027A1 (en) Apparatus and method for performing antenna function by using usb connector
KR101139647B1 (en) Apparatus For Multiple Interface In The Mobile Communication Terminal
TWI394045B (en) Portable electronic device and method of identifying its accessories
KR20200113620A (en) Method for connecting external audio device and electronic device thereof
US20080181286A1 (en) Hand-held wireless device with a PCIE interface
KR20150072248A (en) USB OTG memory device
US20120293950A1 (en) Electronic device having personal system 2 (ps/2) port
KR20060044208A (en) System and method for interfacing with external device in portable terminal

Legal Events

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