TWI442702B - Portable electronic device and method for detecting battery module thereof - Google Patents

Portable electronic device and method for detecting battery module thereof Download PDF

Info

Publication number
TWI442702B
TWI442702B TW100110432A TW100110432A TWI442702B TW I442702 B TWI442702 B TW I442702B TW 100110432 A TW100110432 A TW 100110432A TW 100110432 A TW100110432 A TW 100110432A TW I442702 B TWI442702 B TW I442702B
Authority
TW
Taiwan
Prior art keywords
module
signal
battery module
interface
battery
Prior art date
Application number
TW100110432A
Other languages
Chinese (zh)
Other versions
TW201240345A (en
Inventor
Jiunn Jou Lin
Jenn Yuan Lo
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 TW100110432A priority Critical patent/TWI442702B/en
Publication of TW201240345A publication Critical patent/TW201240345A/en
Application granted granted Critical
Publication of TWI442702B publication Critical patent/TWI442702B/en

Links

Description

可攜式電子裝置及其電池模組感測方法Portable electronic device and battery module sensing method thereof

本發明係關於一種可攜式電子裝置,特別是一種能偵測目前電池模組之介面類型以進行對應電路切換之可攜式電子裝置。此外本發明亦包括應用於可攜式電子裝置之電池模組感測方法。The present invention relates to a portable electronic device, and more particularly to a portable electronic device capable of detecting the interface type of a current battery module for corresponding circuit switching. In addition, the present invention also includes a battery module sensing method applied to a portable electronic device.

可攜式電子裝置具有便攜性之特點,因此採用可替換的電池模組做為電力供應來源,當電池模組電量不足時,可直接更換電池模組或對其進行充電,以便裝置能持續使用。傳統的電池模組僅提供電力供應之效果,但隨著科技的進步,較高規格之電池模組亦隨之誕生,其內部加入了保護電路及電容量監測元件等,提高了電池模組於使用上之穩定性及功能性。The portable electronic device has the characteristics of portability, so the replaceable battery module is used as a power supply source. When the battery module is low in power, the battery module can be directly replaced or charged, so that the device can be continuously used. . The traditional battery module only provides the effect of power supply, but with the advancement of technology, a higher-standard battery module is also born, and a protection circuit and a capacitance monitoring component are added inside, thereby improving the battery module. Stability and functionality in use.

目前這類高規格之電池模組所採用之連接介面大致區分為I2C(Inter-Integrated Circuit)介面及HDQ(Harmonic-Differential-quadrature)介面兩種型式,其係因應不同電子裝置之設計需求而對應設置。由於I2C介面及HDQ介面之訊號傳輸方式並不相同,使得前述這兩種連接介面並無法互通,因此各電子裝置只會挑選其中一種介面型式來使用。在此情況下,當使用者所購入之多個電子裝置分別支援二種不同介面時,因電池模組無法相容共用,勢必要準備不同介面之電池模組備用,如此將造成使用者之困擾。因此,如何能提供一種可攜式電子裝置能相容不同介面之電池模組之相關技術,實為一值得研究的課題。At present, the connection interfaces used in such high-standard battery modules are roughly classified into an I2C (Inter-Integrated Circuit) interface and an HDQ (Harmonic-Differential-quadrature) interface, which are corresponding to the design requirements of different electronic devices. Settings. Since the signal transmission methods of the I2C interface and the HDQ interface are not the same, the two connection interfaces cannot be intercommunicated, so each electronic device only selects one of the interface types for use. In this case, when the plurality of electronic devices purchased by the user respectively support two different interfaces, since the battery modules cannot be compatible and shared, it is necessary to prepare battery modules of different interfaces for standby, which will cause user troubles. . Therefore, how to provide a related art that a portable electronic device can be compatible with battery modules of different interfaces is a subject worthy of study.

本發明之主要目的係在提供一種能偵測目前電池模組之介面類型以進行對應電路切換之可攜式電子裝置。The main object of the present invention is to provide a portable electronic device capable of detecting the interface type of a current battery module for corresponding circuit switching.

為達到上述之目的,本發明之可攜式電子裝置包括連接介面、切換模組及偵測模組。連接介面用以電性連接一電池模組;切換模組係藉由二線路電性連接於連接介面,以接收電池模組透過二線路所傳入之電池訊號,其中電池訊號包括時脈訊號及資料訊號。偵測模組藉由偵測時脈訊號及資料訊號均以二線路中之相同線路或各別以不同線路傳送,來判別電池模組之介面類型,並通知切換模組根據電池模組之介面類型切換對應之傳輸線路。To achieve the above, the portable electronic device of the present invention comprises a connection interface, a switching module and a detection module. The connection interface is electrically connected to a battery module; the switch module is electrically connected to the connection interface by the two lines to receive the battery signal transmitted by the battery module through the two lines, wherein the battery signal includes a clock signal and Information signal. The detection module discriminates the interface type of the battery module by detecting that the clock signal and the data signal are transmitted on the same line or in different lines in the two lines, and notifies the switching module according to the interface of the battery module. The type switches the corresponding transmission line.

此外本發明亦提供應用於前述可攜式電子裝置之電池模組感測方法。該方法包括以下步驟:判斷可攜式電子裝置是否與電池模組電性連接;若是,接收電池模組所傳送之電池訊號,其中電池訊號包括時脈訊號及資料訊號;偵測時脈訊號及資料訊號是否經由相同線路傳送,以判別所對應電池模組之介面類型;依據電池模組之介面類型切換對應之傳輸線路。In addition, the present invention also provides a battery module sensing method applied to the aforementioned portable electronic device. The method includes the steps of: determining whether the portable electronic device is electrically connected to the battery module; and if so, receiving the battery signal transmitted by the battery module, wherein the battery signal includes a clock signal and a data signal; detecting the clock signal and Whether the data signal is transmitted through the same line to determine the interface type of the corresponding battery module; and the corresponding transmission line is switched according to the interface type of the battery module.

藉由本發明之設計,當使用者採用I2C介面或HDQ介面之電池模組裝設於可攜式電子裝置內時,均可透過電性連接後所產生之訊號差異來判斷目前電池模組之介面為何,並且讓可攜式電子裝置自動切換對應該介面之傳輸線路,以提高使用上之便利性。According to the design of the present invention, when the user uses the I2C interface or the HDQ interface of the battery module to be assembled in the portable electronic device, the interface of the current battery module can be judged through the signal difference generated after the electrical connection. Why, and let the portable electronic device automatically switch the transmission line corresponding to the interface to improve the convenience of use.

為能讓 貴審查委員能更瞭解本發明之技術內容,特舉出較佳實施例說明如下。In order to enable the reviewing committee to better understand the technical contents of the present invention, the preferred embodiments are described below.

請先參考圖1係本發明之可攜式電子裝置1之示意圖。在本發明之一實施例中,可攜式電子裝置1可為一智慧型手機、一個人數位助理(PDA)或其他使用電池模組之便攜性裝置,但不以本實施例為限。Please refer to FIG. 1 for a schematic diagram of the portable electronic device 1 of the present invention. In an embodiment of the present invention, the portable electronic device 1 can be a smart phone, a PDA, or other portable device using a battery module, but is not limited to the embodiment.

如圖1所示,本發明之可攜式電子裝置1包括連接介面10、切換模組20及偵測模組30。連接介面10係設置於可攜式電子裝置1之一電池容置槽(圖未示)內,電池容置槽可容置一電池模組80,使得當電池模組80裝設於電池容置槽內時,電池模組80之介面係與連接介面10呈電性連接狀態。由於不論是I2C介面或HDQ介面之電池模組80,於其介面均設置4個接點,分別為1個電源接點、2個訊號接點及1個接地接點,因此本發明之可攜式電子裝置1之連接介面10亦對應設置4個接點,以供與電池模組80之各接點對應電性連接,但本發明不以此為限。As shown in FIG. 1 , the portable electronic device 1 of the present invention includes a connection interface 10 , a switching module 20 , and a detection module 30 . The connection interface 10 is disposed in a battery receiving slot (not shown) of the portable electronic device 1. The battery receiving slot can accommodate a battery module 80, so that when the battery module 80 is installed in the battery In the case of the slot, the interface of the battery module 80 is electrically connected to the connection interface 10. Since the battery module 80 of the I2C interface or the HDQ interface is provided with four contacts, one power contact, two signal contacts and one ground contact, respectively, the portable device of the present invention The connection interface 10 of the electronic device 1 is also provided with four contacts for electrical connection with the contacts of the battery module 80, but the invention is not limited thereto.

切換模組20係藉由二線路21、22電性連接於連接介面10之2個接點,此2個接點分別連接於對應電池模組80之2個訊號接點,以接收自電池模組80透過連接介面10及二線路21、22所傳入之電池訊號,其中電池訊號包括時脈訊號及資料訊號。切換模組20具有2組切換開關23、24,分別對應前述二線路21、22所設置,以因應所判別之電池模組80之介面類型不同,而切換對應之傳輸線路。The switching module 20 is electrically connected to the two contacts of the connection interface 10 by the two lines 21 and 22, and the two contacts are respectively connected to the two signal contacts of the corresponding battery module 80 to receive the battery module. The battery signal transmitted by the group 80 through the interface interface 10 and the two lines 21, 22, wherein the battery signal includes a clock signal and a data signal. The switching module 20 has two sets of switching switches 23 and 24, respectively corresponding to the two lines 21 and 22, and switches the corresponding transmission lines according to the interface type of the battery module 80 determined.

偵測模組30分別電性連接於前述二線路21、22,以便針對各線路21、22進行偵測。藉由偵測前述電池模組80所傳入之時脈訊號及資料訊號,是否均以二線路21、22中之任一相同線路(即時脈訊號及資料訊號均以線路21或線路22來傳送)或各別以不同線路傳送(即時脈訊號及資料訊號分別以線路21及線路22來傳送),來判別電池模組80所對應之介面類型。The detecting module 30 is electrically connected to the two lines 21 and 22 respectively for detecting the lines 21 and 22. By detecting the clock signal and the data signal transmitted by the battery module 80, whether the same line is used in any of the two lines 21 and 22 (the instantaneous pulse signal and the data signal are transmitted by line 21 or line 22) Or each of the different lines (the instant pulse signal and the data signal are transmitted by line 21 and line 22 respectively) to determine the interface type corresponding to the battery module 80.

由於依據電池模組80之介面類型不同,透過二線路21、22所傳入之電池訊號亦會有所差異,因此藉由偵測通過二線路21、22之狀態,即可達到判別電池模組80之介面類型之效果。就I2C介面之電池模組80而言,其時脈訊號及資料訊號係分別透過不同之2個接點所傳輸,使得可攜式電子裝置1端對應之二線路21、22會分別傳送時脈訊號及資料訊號,此時偵測模組30即可判別目前係裝設I2C介面之電池模組80。而就HDQ介面之電池模組80而言,其時脈訊號及資料訊號係合併僅以單一訊號接點傳送,另一訊號接點則負責偵測及傳送電池模組80內部之溫度變化,使得可攜式電子裝置1端僅會透過對應連接之其中之一線路21或22傳送時脈訊號及資料訊號,另一線路則僅傳送前述之溫度變化訊號,此時偵測模組30即可判別目前係裝設HDQ介面之電池模組80。而偵測模組30在判別確定目前電性連接之電池模組80之介面類型後,會通知切換模組20以根據電池模組80之介面類型切換對應之傳輸線路。Since the battery signals transmitted through the two lines 21 and 22 are also different according to the interface type of the battery module 80, the battery module can be determined by detecting the state of the two lines 21 and 22. The effect of the interface type of 80. For the battery module 80 of the I2C interface, the clock signal and the data signal are transmitted through two different contacts, so that the two lines 21 and 22 corresponding to the end of the portable electronic device respectively transmit the clock. For the signal and data signals, the detection module 30 can determine that the battery module 80 is currently installed with the I2C interface. In the case of the battery module 80 of the HDQ interface, the clock signal and the data signal are combined and transmitted only by a single signal contact, and the other signal contact is responsible for detecting and transmitting the temperature change inside the battery module 80, so that The first end of the portable electronic device transmits only the clock signal and the data signal through one of the lines 21 or 22 of the corresponding connection, and the other line transmits only the temperature change signal, and the detection module 30 can determine Currently, the battery module 80 of the HDQ interface is installed. After the detection module 30 determines the interface type of the battery module 80 that is currently electrically connected, the switching module 20 is notified to switch the corresponding transmission line according to the interface type of the battery module 80.

請一併參考圖2係本發明之可攜式電子裝置1與不同介面類型之電池模組80電性連接之訊號差異表。在本發明之一實施例中,偵測模組30藉由偵測各線路21、22之訊號位準,以協助判別時脈訊號及資料訊號係均以二線路21、22中之相同線路或各別由不同線路傳送。由於傳送不同訊號時依據相異訊號會產生不同之訊號位準,因此透過偵測模組30偵測各線路21、22之訊號位準處於高電位或低電位,以判斷各線路21、22之訊號傳送狀態,進而得知目前所電性連接之電池模組80之介面類型。Please refer to FIG. 2 for a signal difference table in which the portable electronic device 1 of the present invention is electrically connected to the battery module 80 of different interface types. In an embodiment of the present invention, the detection module 30 detects the signal level of each of the lines 21 and 22 to assist in determining that the clock signal and the data signal are all on the same line of the two lines 21 and 22 or Each is transmitted by a different line. Since different signal levels are generated according to the different signals when different signals are transmitted, the detection module 30 detects that the signal levels of the lines 21 and 22 are at a high potential or a low level to determine the lines 21 and 22. The signal transmission state, and then the interface type of the currently connected battery module 80 is known.

如圖2所示,當本發明之可攜式電子裝置1與12C介面之電池模組80電性連接時,由於各線路21、22分別用以傳送時脈訊號SCL及資料訊號SDA,此時線路21、22均會呈現高電位H之狀態;而當本發明之可攜式電子裝置1與HDQ介面之電池模組80電性連接時,由於僅需要二線路21或22其中之一(假設為線路21)來傳送合併之時脈訊號及資料訊號HDQ,此線路21會呈現高電位H之狀態,而另一線路(假設為線路22)因僅用以傳送溫度變化訊號TH,其訊號位準並不會太高而使得線路22呈現低電位L之狀態。As shown in FIG. 2, when the portable electronic device 1 of the present invention is electrically connected to the battery module 80 of the 12C interface, the lines 21 and 22 are respectively used to transmit the clock signal SCL and the data signal SDA. The lines 21 and 22 all assume a state of high potential H. When the portable electronic device 1 of the present invention is electrically connected to the battery module 80 of the HDQ interface, only one of the two lines 21 or 22 is required (assuming For the line 21) to transmit the combined clock signal and data signal HDQ, the line 21 will assume a state of high potential H, and the other line (assumed to be line 22) will only transmit the temperature change signal TH, its signal bit It is not too high that the line 22 assumes a state of low potential L.

據此,假設切換模組20預設切換至對應HDQ介面之電池模組80之傳輸電路,因此在偵測模組30偵測到二線路21、22均處於低電位或各自之訊號位準不同(即一高電位及一低電位)時,則判定此時使用HDQ介面之電池模組80或未裝設電池模組80,切換模組20係保持原對應電路狀態;一旦在偵測模組30偵測到二線路21、22均處於高電位時,則判定此時使用I2C介面之電池模組80,因此切換模組20會依據偵測模組30之通知而切換至對應I2C介面之電池模組80之傳輸電路。藉此設計,透過訊號準位之不同,即可輕易完成切換模組20之對應傳輸電路之切換操作。Accordingly, it is assumed that the switching module 20 presets the switching to the transmission circuit of the battery module 80 corresponding to the HDQ interface. Therefore, the detection module 30 detects that the two lines 21 and 22 are at a low potential or the respective signal levels are different. (ie, a high potential and a low potential), it is determined that the battery module 80 of the HDQ interface is used or the battery module 80 is not installed, and the switching module 20 maintains the original corresponding circuit state; once in the detection module When it is detected that the two lines 21 and 22 are at a high potential, it is determined that the battery module 80 of the I2C interface is used at this time, so the switching module 20 switches to the battery corresponding to the I2C interface according to the notification of the detecting module 30. The transmission circuit of the module 80. By this design, the switching operation of the corresponding transmission circuit of the switching module 20 can be easily completed by the difference of the signal level.

在本發明之一實施例中,偵測模組30更包括計時器31,為了防止電池模組80與連接介面10間連接不當或產生訊號不穩定之現象而造成誤判,係藉由計時器31計算偵測模組30是否持續偵測訊號位準達到一特定時間,若是,則以目前所測得之訊號位準做為判別標準。In an embodiment of the present invention, the detecting module 30 further includes a timer 31. In order to prevent misconnection between the battery module 80 and the connection interface 10, the signal is unstable, and the timer 31 is used. The calculation detecting module 30 continuously detects that the signal level reaches a certain time, and if so, uses the currently measured signal level as a criterion.

本發明之可攜式電子裝置1更包括處理模組40及顯示模組50。處理模組40用以接收透過切換模組20所傳送之電池訊號,以確認目前所採用之電池模組80之介面類型,並於接收到電池訊號後,才會依據使用者之操作指令執行裝置內系統開機程序,以避免產生系統錯誤或電池模組80供電問題等狀態。而處理模組40在系統開機後,可針對電池模組80之狀態進行讀寫操作,並可藉由該顯示模組50顯示對應目前電池模組80之狀態資訊,例如電量顯示、電池模組80之介面類型顯示等。The portable electronic device 1 of the present invention further includes a processing module 40 and a display module 50. The processing module 40 is configured to receive the battery signal transmitted by the switching module 20 to confirm the interface type of the battery module 80 currently used, and after receiving the battery signal, execute the device according to the operation instruction of the user. The internal system boot process prevents problems such as system errors or battery module 80 power supply problems. The processing module 40 can perform read and write operations on the state of the battery module 80 after the system is powered on, and can display status information corresponding to the current battery module 80 by using the display module 50, such as a power display and a battery module. 80 interface type display, etc.

請參考圖3係應用本發明之電池模組感測方法之流程圖。須注意的是,以下雖以圖1所示之可攜式電子裝置1為例說明本發明之電池模組感測方法,但本發明並不以適用於可攜式電子裝置1為限,任何其他具類似架構之可攜式電子裝置亦可適用。如圖3所示,本發明之電池模組感測方法包括步驟S301至步驟S307。以下將詳細說明本發明之電池模組感測方法之各個步驟。Please refer to FIG. 3, which is a flow chart of a battery module sensing method to which the present invention is applied. It should be noted that the following describes the battery module sensing method of the present invention by taking the portable electronic device 1 shown in FIG. 1 as an example. However, the present invention is not limited to the portable electronic device 1 and any Other portable electronic devices with similar architectures are also applicable. As shown in FIG. 3, the battery module sensing method of the present invention includes steps S301 to S307. The respective steps of the battery module sensing method of the present invention will be described in detail below.

步驟S301:判斷可攜式電子裝置1是否與電池模組80電性連接。當可攜式電子裝置1與電池模組80電性連接時,可攜式電子裝置1之連接介面10係藉由電池模組80之電源接點及接地接點取得對應之電源訊號,因此藉由偵測前述電源訊號是否產生,以判斷可攜式電子裝置1是否與電池模組80電性連接。Step S301: Determine whether the portable electronic device 1 is electrically connected to the battery module 80. When the portable electronic device 1 is electrically connected to the battery module 80, the connection interface 10 of the portable electronic device 1 obtains a corresponding power signal by using the power contact and the ground contact of the battery module 80. It is determined whether the portable power device 1 is electrically connected to the battery module 80 by detecting whether the power signal is generated.

步驟S302:若是,接收電池模組80所傳送之電池訊號,其中電池訊號包括時脈訊號及資料訊號。在確認可攜式電子裝置1是否與電池模組80電性連接後,此時可攜式電子裝置1之連接介面10係藉由電池模組80之2個訊號接點取得對應之電源訊號,並傳入與切換模組20電性連接之二線路21、22中。此電池訊號係包括時脈訊號及資料訊號。Step S302: If yes, receive the battery signal transmitted by the battery module 80, wherein the battery signal includes a clock signal and a data signal. After confirming whether the portable electronic device 1 is electrically connected to the battery module 80, the connection interface 10 of the portable electronic device 1 obtains the corresponding power signal through the two signal contacts of the battery module 80. And passed into the two lines 21, 22 electrically connected to the switching module 20. The battery signal includes a clock signal and a data signal.

步驟S303:偵測時脈訊號及資料訊號是否經由相同線路21或22傳送,以判別所對應電池模組80之介面類型。如前所述,藉由偵測模組30偵測二線路21、22之訊號位準,當偵測到二線路21、22均為低電位或為不同電位時,表示所傳入之時脈訊號及資料訊號是經由任一相同線路21或22傳送,即判定電池模組80之介面類型為HDQ介面;若否,當偵測到二線路21、22均為高電位時,表示所傳入之時脈訊號及資料訊號是分別經由不同線路21及22傳送,即判定電池模組80之介面類型為I2C介面。Step S303: Detect whether the clock signal and the data signal are transmitted via the same line 21 or 22 to determine the interface type of the corresponding battery module 80. As described above, the detection module 30 detects the signal level of the two lines 21 and 22, and when the two lines 21 and 22 are detected to be low or at different potentials, the incoming clock is indicated. The signal and the data signal are transmitted through any of the same lines 21 or 22, that is, the interface type of the battery module 80 is determined to be the HDQ interface; if not, when the two lines 21 and 22 are detected to be high, the incoming signal is indicated. The clock signal and the data signal are transmitted through different lines 21 and 22 respectively, that is, the interface type of the battery module 80 is determined to be an I2C interface.

步驟S304:依據電池模組80之介面類型切換對應之傳輸線路。依據前述步驟S303確定電池模組80之介面類型後,偵測模組30即通知切換模組20,依目前電池模組80之介面類型切換對應之傳輸電路,以便將電池訊號順利傳送至處理模組40。Step S304: Switch the corresponding transmission line according to the interface type of the battery module 80. After determining the interface type of the battery module 80 according to the foregoing step S303, the detecting module 30 notifies the switching module 20 to switch the corresponding transmission circuit according to the interface type of the current battery module 80, so as to smoothly transmit the battery signal to the processing module. Group 40.

步驟S304後更可包括步驟S305:啟動一系統開機程序。經前述步驟S304切換對應之傳輸線路,使得處理模組40接收電池訊號後,表示電源模組80之裝設及對應電路切換已經完成,此時處理模組40可依指令執行系統開機程序,並可透過顯示模組50顯示目前電池模組80之狀態資訊。Step S304 may further include step S305: starting a system booting process. After the corresponding transmission line is switched in the foregoing step S304, the processing module 40 receives the battery signal, and indicates that the installation of the power module 80 and the corresponding circuit switching have been completed. At this time, the processing module 40 can execute the system startup procedure according to the instruction, and The status information of the current battery module 80 can be displayed through the display module 50.

綜上所陳,本發明無論就目的、手段及功效,在在均顯示其迥異於習知技術之特徵,為一大突破,懇請貴審查委員明察,早日賜准專利,俾嘉惠社會,實感德便。惟須注意,上述實施例僅為例示性說明本發明之原理及其功效,而非用於限制本發明之範圍。任何熟於此項技藝之人士均可在不違背本發明之技術原理及精神下,對實施例作修改與變化。本發明之權利保護範圍應如後述之申請專利範圍所述。In summary, the present invention is a breakthrough in terms of its purpose, means and efficacy, and it is different from the characteristics of the prior art. It is a great breakthrough for the reviewer to ask for an early patent, and to benefit the society. Debian. It is to be noted that the above-described embodiments are merely illustrative of the principles of the invention and its advantages, and are not intended to limit the scope of the invention. Modifications and variations of the embodiments can be made by those skilled in the art without departing from the spirit and scope of the invention. The scope of protection of the present invention should be as described in the scope of the patent application to be described later.

1...可攜式電子裝置1. . . Portable electronic device

10...連接介面10. . . Connection interface

20...切換模組20. . . Switching module

21、22...線路21, 22. . . line

23、24...切換開關23, 24. . . Toggle switch

30...偵測模組30. . . Detection module

31...計時器31. . . Timer

40...處理模組40. . . Processing module

50...顯示模組50. . . Display module

80...電池模組80. . . Battery module

圖1係本發明之可攜式電子裝置之示意圖。1 is a schematic diagram of a portable electronic device of the present invention.

圖2係本發明之可攜式電子裝置與不同介面類型之電池模組電性連接之訊號差異表。2 is a signal difference table of the electrical connection between the portable electronic device of the present invention and the battery module of different interface types.

圖3係應用本發明之電池模組感測方法之流程圖。3 is a flow chart of a battery module sensing method to which the present invention is applied.

1...可攜式電子裝置1. . . Portable electronic device

10...連接介面10. . . Connection interface

20...切換模組20. . . Switching module

21、22...線路21, 22. . . line

23、24...切換開關23, 24. . . Toggle switch

30...偵測模組30. . . Detection module

31...計時器31. . . Timer

40...處理模組40. . . Processing module

50...顯示模組50. . . Display module

80...電池模組80. . . Battery module

Claims (13)

一種可攜式電子裝置,包括:一連接介面,用以電性連接一電池模組;一切換模組,係藉由二線路電性連接該連接介面,以接收該電池模組透過該二線路所傳入之一電池訊號,其中該電池訊號包括一時脈訊號及一資料訊號;以及一偵測模組,分別電性連接於該二線路,該偵測模組藉由偵測該時脈訊號及該資料訊號均以該二線路中之相同線路或各別以不同線路傳送,來判別該電池模組之介面類型,並通知該切換模組根據該電池模組之介面類型切換對應之傳輸線路。A portable electronic device includes: a connection interface for electrically connecting a battery module; and a switching module electrically connecting the connection interface by two lines to receive the battery module through the two lines A battery signal is transmitted, wherein the battery signal includes a clock signal and a data signal; and a detection module is electrically connected to the two lines, wherein the detection module detects the clock signal And the data signal is transmitted by using the same line or the different lines of the two lines to determine the interface type of the battery module, and notifying the switching module to switch the corresponding transmission line according to the interface type of the battery module. . 如申請專利範圍第1項所述之可攜式電子裝置,其中該電池模組之介面類型包括一內部整合電路(Inter-Integrated Circuit,I2C)介面或一諧波微分正交(Harmonic-Differential-quadrature,HDQ)介面。The portable electronic device of claim 1, wherein the interface type of the battery module comprises an Inter-Integrated Circuit (I2C) interface or a Harmonic-Differential- Quadrature, HDQ) interface. 如申請專利範圍第2項所述之可攜式電子裝置,其中藉由該偵測模組偵測該二線路中各線路之一訊號位準,以判別該時脈訊號及該資料訊號均以該二線路中之相同線路或各別由不同線路傳送。The portable electronic device of claim 2, wherein the detection module detects a signal level of each of the two lines to determine that the clock signal and the data signal are The same lines in the two lines or each are transmitted by different lines. 如申請專利範圍第3項所述之可攜式電子裝置,其中當該二線路各自之該訊號位準均為高電位時,判別該電池模組之介面類型為該I2C介面;當該二線路各自之該訊號位準不同或均為低電位時,判別該電池模組之介面類型為該HDQ介面。The portable electronic device of claim 3, wherein when the signal level of each of the two lines is high, the interface type of the battery module is determined to be the I2C interface; When the respective signal levels are different or both are low, the interface type of the battery module is determined to be the HDQ interface. 如申請專利範圍第1項所述之可攜式電子裝置,更包括一計時器,該計時器用以計算該偵測模組是否持續偵測該訊號位準達到一特定時間。The portable electronic device of claim 1, further comprising a timer for calculating whether the detecting module continuously detects the signal level for a specific time. 如申請專利範圍第1項所述之可攜式電子裝置,更包括一處理模組及一顯示模組,該處理模組用以透過該切換模組接收該電池訊號,並藉由該顯示模組顯示對應該電池模組之狀態資訊。The portable electronic device of claim 1, further comprising a processing module and a display module, wherein the processing module receives the battery signal through the switching module, and the display module The group displays status information corresponding to the battery module. 如申請專利範圍第6項所述之可攜式電子裝置,其中該處理模組係於該切換模組完成對應傳輸線路之切換後,才開始執行一系統開機程序。The portable electronic device of claim 6, wherein the processing module starts to execute a system booting process after the switching module completes switching of the corresponding transmission line. 一種電池模組感測方法,係應用於一可攜式電子裝置,該方法包括以下步驟:判斷該可攜式電子裝置是否與一電池模組電性連接;若是,接收該電池模組所傳送之一電池訊號,其中該電池訊號包括一時脈訊號及一資料訊號;偵測該時脈訊號及該資料訊號是否經由相同線路傳送,以判別所對應該電池模組之介面類型;以及依據該電池模組之介面類型切換對應之傳輸線路。A battery module sensing method is applied to a portable electronic device, and the method includes the following steps: determining whether the portable electronic device is electrically connected to a battery module; if yes, receiving the battery module to transmit a battery signal, wherein the battery signal includes a clock signal and a data signal; detecting whether the clock signal and the data signal are transmitted via the same line to determine the interface type of the corresponding battery module; and The interface type of the module switches to the corresponding transmission line. 如申請專利範圍第8項所述之方法,其中該電池模組之介面類型包括一I2C介面或一HDQ介面。The method of claim 8, wherein the interface type of the battery module comprises an I2C interface or an HDQ interface. 如申請專利範圍第9項所述之方法,其中藉由偵測該二線路中各線路之一訊號位準,以判別該時脈訊號及該資料訊號是否經由相同線路傳送。The method of claim 9, wherein the signal level of each of the two lines is detected to determine whether the clock signal and the data signal are transmitted via the same line. 如申請專利範圍第8項所述之方法,更包括以下步驟:啟動一系統開機程序。For example, the method described in claim 8 further includes the following steps: starting a system booting procedure. 如申請專利範圍第11項所述之方法,其中該系統開機程序之執行係於完成對應傳輸線路之切換後。The method of claim 11, wherein the system startup process is performed after the completion of the switching of the corresponding transmission line. 如申請專利範圍第8項所述之方法,其中計算該偵測模組是否持續偵測該訊號位準達到一特定時間。The method of claim 8, wherein calculating whether the detection module continuously detects the signal level for a specific time.
TW100110432A 2011-03-25 2011-03-25 Portable electronic device and method for detecting battery module thereof TWI442702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW100110432A TWI442702B (en) 2011-03-25 2011-03-25 Portable electronic device and method for detecting battery module thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW100110432A TWI442702B (en) 2011-03-25 2011-03-25 Portable electronic device and method for detecting battery module thereof

Publications (2)

Publication Number Publication Date
TW201240345A TW201240345A (en) 2012-10-01
TWI442702B true TWI442702B (en) 2014-06-21

Family

ID=47599771

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100110432A TWI442702B (en) 2011-03-25 2011-03-25 Portable electronic device and method for detecting battery module thereof

Country Status (1)

Country Link
TW (1) TWI442702B (en)

Also Published As

Publication number Publication date
TW201240345A (en) 2012-10-01

Similar Documents

Publication Publication Date Title
AU2015312625B2 (en) Electronic device, method of controlling charging by electronic device, and method of supplying power by power supply device
US9483093B2 (en) Electronic device and method for controlling a setting of a maximum consumption current
US7921233B2 (en) Signal converter for an all-in-one USB connector that includes USB 2.0, USB 3.0 and eSATA
TWI494863B (en) Dual-interface card reader module
EP3206279A1 (en) Charging control method and device, power adapter, and mobile terminal
JP6440986B2 (en) Power supply apparatus, controller thereof, control method, and electronic apparatus using the same
US9899783B1 (en) Electronic device and a method for detecting the connecting direction of two electronic components
US20170005495A1 (en) Method and apparatus for charging electronic device with usb connection
US20130086405A1 (en) Server cluster and control mechanism thereof
US20110087452A1 (en) Test device
CN107885683B (en) Terminal and current testing method thereof
US20200265001A1 (en) Communication method using input/output interface, and apparatus therefor
TWI403889B (en) Protable electronic device and method for adjusting system performance thereof
TWM482862U (en) Docking device
EP2648109B1 (en) Hot swapping swap media at a computing device
US20130244455A1 (en) Processing device and processing system
KR20130003645A (en) Method for establishing connection between external device and mobile terminal docking thereat
TWI434184B (en) Computer device and working mode conversion method of universal serial bus connector thereof
TWI442702B (en) Portable electronic device and method for detecting battery module thereof
JP6712062B2 (en) Electronic device, electronic system, and power supply control method
US8996776B2 (en) Computing device and method for hot swapping media
KR101485156B1 (en) Mobile terminal docking with external device and controlling method thereof
US20140115356A1 (en) Transformer capable of automatic input power adjustment and computer using the transformer
CN102736714B (en) Portable electron device and battery module method for sensing thereof
KR20130008172A (en) Method for changing to wake up mode at external device and mobile terminal docking thereat