TWI839016B - Hot swapping electronic device and method for preventing crash of hot swapping electronic device - Google Patents

Hot swapping electronic device and method for preventing crash of hot swapping electronic device Download PDF

Info

Publication number
TWI839016B
TWI839016B TW111147700A TW111147700A TWI839016B TW I839016 B TWI839016 B TW I839016B TW 111147700 A TW111147700 A TW 111147700A TW 111147700 A TW111147700 A TW 111147700A TW I839016 B TWI839016 B TW I839016B
Authority
TW
Taiwan
Prior art keywords
battery
electronic device
hot
controller
power
Prior art date
Application number
TW111147700A
Other languages
Chinese (zh)
Other versions
TW202425485A (en
Inventor
王俊祺
Original Assignee
神基科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 神基科技股份有限公司 filed Critical 神基科技股份有限公司
Priority to TW111147700A priority Critical patent/TWI839016B/en
Application granted granted Critical
Publication of TWI839016B publication Critical patent/TWI839016B/en
Publication of TW202425485A publication Critical patent/TW202425485A/en

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

A hot swapping electronic device and a method for preventing crash of the hot swapping electronic device are presented, wherein the method for preventing the crash of the hot swapping electronic device comprises: through a controller, detecting whether the hot swapping electronic device is in a power-on state; when the hot swapping electronic device is in the power-on state, the controller detects whether a power port is connected to an alternative current power; when the power port is not connected to the alternative current power, through a first sensor, detecting whether a first battery moves from a first battery slot; through a second sensor, detecting whether a second battery moves from a second battery slot, when the first sensor detects that the first battery moves from the first battery slot or the second sensor detects that the second battery moves from the second battery slot, the controller reduces system power consumption of the hot swapping electronic device.

Description

熱插拔式電子裝置及熱插拔式電子裝置的預防當機方法Hot-swappable electronic device and method for preventing hot-swappable electronic device from crashing

本發明涉及一種電子裝置及其保護方法,特別涉及一種熱插拔式電子裝置及熱插拔式電子裝置的預防當機方法。 The present invention relates to an electronic device and a protection method thereof, and in particular to a hot-swappable electronic device and a method for preventing a hot-swappable electronic device from crashing.

目前市面上具備兩個電池的電子裝置,通常都具備熱插拔功能。所謂熱插拔功能,即是在電子裝置處於開機狀態之下,直接將其中一個電池拔離於電子裝置,電子裝置仍可繼續進行運作。 Currently, electronic devices with two batteries on the market usually have hot-swap function. The so-called hot-swap function means that when the electronic device is turned on, one of the batteries can be directly removed from the electronic device, and the electronic device can continue to operate.

然而,當電子裝置完全仰賴單一電池的供電時,此時若電子裝置的系統負載過大時,由於單一電池的供電量不足,容易造成電子裝置突然地當機,中斷了使用者對於電子裝置的操作。 However, when an electronic device completely relies on a single battery for power supply, if the system load of the electronic device is too large, the single battery's power supply is insufficient, which can easily cause the electronic device to suddenly crash, interrupting the user's operation of the electronic device.

本發明所要解決的技術問題在於,針對現有技術的不足,提供一種熱插拔式電子裝置及熱插拔式電子裝置的預防當機方法。 The technical problem to be solved by the present invention is to provide a hot-swappable electronic device and a method for preventing a hot-swappable electronic device from crashing in view of the deficiencies of the existing technology.

為了解決上述的技術問題,本發明所採用的其中一技術方案是提供一種熱插拔式電子裝置,而熱插拔式電子裝置包括一第一電池安裝槽、一第一電池、一第二電池安裝槽、一第二電池、一電源連接埠、一控制器、第一感測器以及一第二感測器。第一電池安裝於第一電池安裝槽,而第二電池安裝於第二電池安裝槽。控制器電性連接於電源連接埠,而第一感測器電性連接於控制器且組接於第一電池安裝槽。當第一電池離開第一電池安裝槽時,第一感測器發送第一觸發訊號至控制器。第二感測器電性連接於控制器 且組接於第二電池安裝槽。當第二電池離開第二電池安裝槽時,第二感測器發送第二觸發訊號至該控制器。控制器用於判斷熱插拔式電子裝置是否處於開機狀態以及判斷電源連接埠是否連接於交流電源。當熱插拔式電子裝置處於開機狀態、電源連接埠未連接於交流電源且控制器接收到第一觸發訊號或第二觸發訊號時,控制器降低熱插拔式電子裝置的系統功耗。 In order to solve the above technical problems, one of the technical solutions adopted by the present invention is to provide a hot-swappable electronic device, and the hot-swappable electronic device includes a first battery mounting slot, a first battery, a second battery mounting slot, a second battery, a power connection port, a controller, a first sensor and a second sensor. The first battery is mounted in the first battery mounting slot, and the second battery is mounted in the second battery mounting slot. The controller is electrically connected to the power connection port, and the first sensor is electrically connected to the controller and assembled to the first battery mounting slot. When the first battery leaves the first battery mounting slot, the first sensor sends a first trigger signal to the controller. The second sensor is electrically connected to the controller and assembled to the second battery mounting slot. When the second battery leaves the second battery mounting slot, the second sensor sends a second trigger signal to the controller. The controller is used to determine whether the hot-swappable electronic device is in a powered-on state and whether the power port is connected to an AC power source. When the hot-swappable electronic device is in a powered-on state, the power port is not connected to an AC power source, and the controller receives a first trigger signal or a second trigger signal, the controller reduces the system power consumption of the hot-swappable electronic device.

為了解決上述的技術問題,本發明所採用的另外一技術方案是一種熱插拔式電子裝置的預防當機方法,而熱插拔式電子裝置的預防當機方法包括:透過控制器,偵測電源連接埠是否連接於交流電源;當電源連接埠未連接於交流電源時,透過控制器判斷該熱插拔式電子裝置是否處於開機狀態;當熱插拔式電子裝置處於開機狀態時,透過第一感測器偵測是否第一電池離開於第一電池安裝槽以及透過第二感測器偵測是否第二電池離開於第二電池安裝槽;以及當第一電池離開於第一電池安裝槽或者第二電池離開於第二電池安裝槽時,透過控制器降低該熱插拔式電子裝置的系統功耗。 In order to solve the above technical problems, another technical solution adopted by the present invention is a method for preventing a hot-swappable electronic device from crashing, and the method for preventing a hot-swappable electronic device from crashing includes: detecting whether the power connection port is connected to an AC power source through a controller; when the power connection port is not connected to an AC power source, determining whether the hot-swappable electronic device is in a powered-on state through a controller; when the hot-swappable electronic device is in a powered-on state, detecting whether the first battery leaves the first battery mounting slot through a first sensor and detecting whether the second battery leaves the second battery mounting slot through a second sensor; and when the first battery leaves the first battery mounting slot or the second battery leaves the second battery mounting slot, reducing the system power consumption of the hot-swappable electronic device through a controller.

為了解決上述的技術問題,本發明所採用的又一技術方案是一種熱插拔式電子裝置的預防當機方法,而熱插拔式電子裝置的預防當機方法包括:透過控制器,偵測電源連接埠是否連接於交流電源;當電源連接埠未連接於交流電源時,透過控制器判斷該熱插拔式電子裝置是否處於開機狀態;當熱插拔式電子裝置處於開機狀態時,透過第一感測器偵測是否第一電池離開於第一電池安裝槽以及透過第二感測器偵測是否第二電池離開於第二電池安裝槽;以及當第一電池離開於第一電池安裝槽或者第二電池離開於第二電池安裝槽時,透過控制器降低熱插拔式電子裝置的系統功耗。 In order to solve the above technical problems, another technical solution adopted by the present invention is a method for preventing a hot-swappable electronic device from crashing, and the method for preventing a hot-swappable electronic device from crashing includes: detecting whether a power connection port is connected to an AC power source through a controller; when the power connection port is not connected to an AC power source, determining whether the hot-swappable electronic device is in a powered-on state through a controller; when the hot-swappable electronic device is in a powered-on state, detecting whether a first battery leaves a first battery mounting slot through a first sensor and detecting whether a second battery leaves a second battery mounting slot through a second sensor; and when the first battery leaves the first battery mounting slot or the second battery leaves the second battery mounting slot, reducing the system power consumption of the hot-swappable electronic device through a controller.

本發明的其中一有益效果在於,本發明所提供的熱插拔式電子裝置及熱插拔式電子裝置的預防當機方法,當使用者將第一電池或者第二電池從熱插拔式電子裝置拔離時,熱插拔式電子裝置依然能穩定地運作而不會 突然當機,因此使用者對於熱插拔式電子裝置的操作不會因為當機事件而中斷。 One of the beneficial effects of the present invention is that the hot-swappable electronic device and the method for preventing the hot-swappable electronic device from crashing provided by the present invention can still operate stably without crashing suddenly when the user removes the first battery or the second battery from the hot-swappable electronic device, so that the user's operation of the hot-swappable electronic device will not be interrupted by the crash event.

為使能更進一步瞭解本發明的特徵及技術內容,請參閱以下有關本發明的詳細說明與圖式,然而所提供的圖式僅用於提供參考與說明,並非用來對本發明加以限制。 To further understand the features and technical contents of the present invention, please refer to the following detailed description and drawings of the present invention. However, the drawings provided are only for reference and description and are not used to limit the present invention.

101:第一電池安裝槽 101: First battery installation slot

102:第二電池安裝槽 102: Second battery installation slot

103:第一電池 103: First Battery

104:第二電池 104: Second battery

105:第一感測器 105: First sensor

106:第二感測器 106: Second sensor

107:第一電池蓋 107: First battery cover

108:第二電池蓋 108: Second battery cover

109:控制器 109: Controller

110:記憶體 110: Memory

111:電源連接埠 111: Power port

112:中央處理器 112: Central Processing Unit

113:第一背光光源 113: First backlight source

114:第二背光光源 114: Second backlight source

115:狀態顯示燈 115: Status indicator light

P1:第一接腳 P1: First pin

P2:第二接腳 P2: Second pin

P3:第三接腳 P3: Third pin

P4:第四接腳 P4: Fourth pin

P5:第五接腳 P5: Fifth pin

P6:第六接腳 P6: Sixth pin

P7:第七接腳 P7: Seventh pin

BIOS:基本輸入輸出系統 BIOS: Basic Input Output System

PN:顯示面板 PN: Display panel

KB:按鍵 KB:Key

S301~S307:步驟 S301~S307: Steps

S401~S407:步驟 S401~S407: Steps

圖1為本發明的熱插拔式電子裝置的第一實施例的立體圖。 Figure 1 is a three-dimensional diagram of the first embodiment of the hot-swappable electronic device of the present invention.

圖2為本發明的熱插拔式電子裝置的第一實施例的功能方塊圖。 FIG2 is a functional block diagram of the first embodiment of the hot-swappable electronic device of the present invention.

圖3本發明的熱插拔式電子裝置的預防當機方法的第一實施例的流程圖。 Figure 3 is a flow chart of the first embodiment of the hot-swappable electronic device crash prevention method of the present invention.

圖4為本發明的熱插拔式電子裝置的預防當機方法的第二實施例的流程圖。 Figure 4 is a flow chart of the second embodiment of the hot-swappable electronic device crash prevention method of the present invention.

以下是通過特定的具體實施例來說明本發明所公開有關“熱插拔式電子裝置及熱插拔式電子裝置的預防當機方法”的實施方式,本領域技術人員可由本說明書所公開的內容瞭解本發明的優點與效果。本發明可通過其他不同的具體實施例加以施行或應用,本說明書中的各項細節也可基於不同觀點與應用,在不悖離本發明的構思下進行各種修改與變更。另外,本發明的附圖僅為簡單示意說明,並非依實際尺寸的描繪,事先聲明。以下的實施方式將進一步詳細說明本發明的相關技術內容,但所公開的內容並非用以限制本發明的保護範圍。 The following is a specific embodiment to illustrate the implementation method of the "hot-swappable electronic device and hot-swappable electronic device crash prevention method" disclosed in the present invention. Technical personnel in this field can understand the advantages and effects of the present invention from the content disclosed in this manual. The present invention can be implemented or applied through other different specific embodiments, and the details in this manual can also be modified and changed based on different viewpoints and applications without deviating from the concept of the present invention. In addition, the attached drawings of the present invention are only for simple schematic illustrations and are not depicted according to actual sizes. Please note in advance. The following implementation method will further explain the relevant technical content of the present invention in detail, but the disclosed content is not used to limit the scope of protection of the present invention.

應當可以理解的是,雖然本文中可能會使用到“第一”、“第二”、“第三”等術語來描述各種元件或者信號,但這些元件或者信號不應受這些術語的限制。這些術語主要是用以區分一元件與另一元件,或者一信 號與另一信號。另外,本文中所使用的術語“或”,應視實際情況可能包括相關聯的列出項目中的任一個或者多個的組合。 It should be understood that although the terms "first", "second", "third" and the like may be used in this article to describe various components or signals, these components or signals should not be limited by these terms. These terms are mainly used to distinguish one component from another component, or one signal from another signal. In addition, the term "or" used in this article may include any one or more combinations of the related listed items depending on the actual situation.

圖1為本發明的熱插拔式電子裝置的第一實施例的立體圖。如圖1所示,熱插拔式電子裝置例如為筆記型電腦,但本發明不以此為限,而熱插拔電子裝置包含有一第一電池安裝槽101、一第二電池安裝槽102、一第一電池103、一第二電池104、一第一感測器105、一第二感測器106、一第一電池蓋107以及一第二電池蓋108,其中第一感測器105以及第二感測器106例如為兩個霍爾感測器,但本發明不以此為限。 FIG1 is a perspective view of the first embodiment of the hot-swappable electronic device of the present invention. As shown in FIG1 , the hot-swappable electronic device is, for example, a notebook computer, but the present invention is not limited thereto, and the hot-swappable electronic device includes a first battery mounting slot 101, a second battery mounting slot 102, a first battery 103, a second battery 104, a first sensor 105, a second sensor 106, a first battery cover 107, and a second battery cover 108, wherein the first sensor 105 and the second sensor 106 are, for example, two Hall sensors, but the present invention is not limited thereto.

第一電池103可拆卸地安裝於第一電池安裝槽101,而第一感測器105設置於第一電池安裝槽101內。當第一電池103安裝於第一電池安裝槽101時,第一電池103接觸於第一感測器105。第二電池104可拆卸地安裝於第二電池安裝槽102,而第二感測器106設置於第二電池安裝槽102。當第二電池104安裝於第二電池安裝槽102時,第二電池104接觸於第二感測器106。第一電池蓋107可拆卸地組接於第一電池安裝槽101以便遮蓋第一電池103,而第二電池蓋108可拆卸地組接於第二電池安裝槽102以便遮蔽第二電池104。 The first battery 103 is detachably mounted in the first battery mounting slot 101, and the first sensor 105 is disposed in the first battery mounting slot 101. When the first battery 103 is mounted in the first battery mounting slot 101, the first battery 103 contacts the first sensor 105. The second battery 104 is detachably mounted in the second battery mounting slot 102, and the second sensor 106 is disposed in the second battery mounting slot 102. When the second battery 104 is mounted in the second battery mounting slot 102, the second battery 104 contacts the second sensor 106. The first battery cover 107 is detachably assembled to the first battery mounting slot 101 to cover the first battery 103, and the second battery cover 108 is detachably assembled to the second battery mounting slot 102 to shield the second battery 104.

圖2為本發明的熱插拔式電子裝置的第一實施例的功能方塊圖。共同參閱圖1與圖2,熱插拔式電子裝置還包括一控制器109、一記憶體110、一電源連接埠111、一中央處理器112、一第一背光光源113、一第二背光光源114以及一狀態顯示燈115。其中,控制器109例如為一個嵌入式控制器,但本發明不以此為限。控制器109包含一第一接腳P1、一第二接腳P2、一第三接腳P3以及一第四接腳P4,其中記憶體110內儲存有基本輸入輸出系統BIOS,而控制器109的第一接腳P1電性連接於記憶體110。控制器109的第二接腳P2電性連接於電源連接埠111。控制器109的第三接腳P3電性連接於第一感測器105,而控制器109的第四接腳P4電性連接於第二感測器106。當第一電池103離開於 第一電池安裝槽101時,第一感測器105受到觸發而發送第一觸發訊號至控制器109。同理,當第二電池104離開於第二電池安裝槽102時,第二感測器106受到觸發而發送第二觸發訊號至控制器109。 FIG2 is a functional block diagram of a first embodiment of the hot-swappable electronic device of the present invention. Referring to FIG1 and FIG2 together, the hot-swappable electronic device further includes a controller 109, a memory 110, a power connection port 111, a central processing unit 112, a first backlight source 113, a second backlight source 114, and a status indicator 115. The controller 109 is, for example, an embedded controller, but the present invention is not limited thereto. The controller 109 includes a first pin P1, a second pin P2, a third pin P3, and a fourth pin P4, wherein the memory 110 stores a basic input and output system BIOS, and the first pin P1 of the controller 109 is electrically connected to the memory 110. The second pin P2 of the controller 109 is electrically connected to the power connection port 111. The third pin P3 of the controller 109 is electrically connected to the first sensor 105, and the fourth pin P4 of the controller 109 is electrically connected to the second sensor 106. When the first battery 103 leaves the first battery mounting slot 101, the first sensor 105 is triggered to send a first trigger signal to the controller 109. Similarly, when the second battery 104 leaves the second battery mounting slot 102, the second sensor 106 is triggered to send a second trigger signal to the controller 109.

控制器109還包含一第五接腳P5、一第六接腳P6以及一第七接腳P7,其中控制器109透過PECI匯流排電性連接於中央處理器112,控制器109的第五接腳P5電性連接於第一背光光源113,而第一背光光源113例如設於熱插拔式電子裝置的顯示面板PN。控制器109的第六接腳P6電性連接於第二背光光源114,而第二背光光源114例如設於熱插拔式電子裝置的按鍵KB。控制器109的第七接腳P7電性連接於狀態顯示燈115。藉此,控制器109可控制中央處理器112的工作頻率、第一背光光源113的亮度、第二背光光源114的亮度以及狀態顯示燈115的亮度。 The controller 109 further includes a fifth pin P5, a sixth pin P6, and a seventh pin P7, wherein the controller 109 is electrically connected to the central processing unit 112 via the PECI bus, and the fifth pin P5 of the controller 109 is electrically connected to the first backlight source 113, and the first backlight source 113 is, for example, provided in the display panel PN of the hot-plug electronic device. The sixth pin P6 of the controller 109 is electrically connected to the second backlight source 114, and the second backlight source 114 is, for example, provided in the key KB of the hot-plug electronic device. The seventh pin P7 of the controller 109 is electrically connected to the status display light 115. Thus, the controller 109 can control the operating frequency of the central processing unit 112, the brightness of the first backlight source 113, the brightness of the second backlight source 114, and the brightness of the status display light 115.

控制器109根據基本輸入輸出系統BIOS的參數判斷熱插拔式電子裝置是否處於開機狀態。當控制器109確認熱插拔式電子裝置處於開機狀態時,接著控制器109判斷電源連接埠111是否連接於交流電源。當控制器109確認電源連接埠111未連接於交流電源時,控制器109判斷是否接收到來自第一感測器105的第一觸發訊號或者第二感測器106的第二觸發訊號。當控制器109確認接收到來自第一感測器105的第一觸發訊號或者第二感測器106的第二觸發訊號時,控制器109降低熱插拔式電子裝置的系統功耗。關於降低系統功耗,舉例來說,控制器109將中央處理器112的工作頻率、第一背光光源113的亮度、第二背光光源114的亮度以及狀態顯示燈115的亮度之至少一項調降。 The controller 109 determines whether the hot-plug electronic device is in a power-on state according to the parameters of the basic input-output system BIOS. When the controller 109 confirms that the hot-plug electronic device is in a power-on state, the controller 109 then determines whether the power connection port 111 is connected to the AC power source. When the controller 109 confirms that the power connection port 111 is not connected to the AC power source, the controller 109 determines whether a first trigger signal from the first sensor 105 or a second trigger signal from the second sensor 106 is received. When the controller 109 confirms that the first trigger signal from the first sensor 105 or the second trigger signal from the second sensor 106 is received, the controller 109 reduces the system power consumption of the hot-plug electronic device. Regarding reducing system power consumption, for example, the controller 109 reduces at least one of the operating frequency of the central processing unit 112, the brightness of the first backlight source 113, the brightness of the second backlight source 114, and the brightness of the status display light 115.

關於本發明的熱插拔式電子裝置的其他實施例,差異在於第一感測器105組接於第一電池安裝槽101以及第一電池蓋107之間,第二感測器106組接於第二電池安裝槽102與第二電池蓋108之間。當第一感測器105偵測到第一電池蓋107拆離第一電池安裝槽101時,第一感測器105發送第一觸發訊 號至控制器109。同理,當第二感測器106偵測到第二電池蓋108拆離第二電池安裝槽102時,第二感測器106發送第二觸發訊號至控制器109。 Regarding other embodiments of the hot-swappable electronic device of the present invention, the difference is that the first sensor 105 is connected between the first battery mounting slot 101 and the first battery cover 107, and the second sensor 106 is connected between the second battery mounting slot 102 and the second battery cover 108. When the first sensor 105 detects that the first battery cover 107 is detached from the first battery mounting slot 101, the first sensor 105 sends a first trigger signal to the controller 109. Similarly, when the second sensor 106 detects that the second battery cover 108 is detached from the second battery mounting slot 102, the second sensor 106 sends a second trigger signal to the controller 109.

圖3本發明的熱插拔式電子裝置的預防當機方法的第一實施例的流程圖。如圖3所示,關於步驟S301,透過控制器109,判斷熱插拔式電子裝置是否處於開機狀態。具體而言,控制器109經由讀取記憶體110內的基本輸入輸出系統BIOS的參數來判斷熱插拔式電子裝置是否處於開機狀態。 FIG3 is a flow chart of the first embodiment of the hot-swappable electronic device crash prevention method of the present invention. As shown in FIG3, regarding step S301, the controller 109 is used to determine whether the hot-swappable electronic device is in a boot state. Specifically, the controller 109 determines whether the hot-swappable electronic device is in a boot state by reading the parameters of the basic input and output system BIOS in the memory 110.

當控制器109確認熱插拔式電子裝置處於開機狀態時,接著步驟S303。當控制器109確認熱插拔式電子裝置未處於開機狀態時,再次執行步驟S301。 When the controller 109 confirms that the hot-swappable electronic device is in the power-on state, the process proceeds to step S303. When the controller 109 confirms that the hot-swappable electronic device is not in the power-on state, the process proceeds to step S301 again.

關於步驟S303,透過控制器109,判斷熱插拔式電子裝置的電源連接埠111是否連接於交流電源。當控制器109確認熱插拔式電子裝置的電源連接埠111未連接於交流電源時,接著步驟S305。當控制器109確認熱插拔式電子裝置的電源連接埠111連接於交流電源時,返回步驟S301。 Regarding step S303, the controller 109 is used to determine whether the power connection port 111 of the hot-swappable electronic device is connected to the AC power source. When the controller 109 confirms that the power connection port 111 of the hot-swappable electronic device is not connected to the AC power source, the process proceeds to step S305. When the controller 109 confirms that the power connection port 111 of the hot-swappable electronic device is connected to the AC power source, the process returns to step S301.

關於步驟S305,透過第一感測器105以及第二感測器106,偵測是否第一電池103離開於第一電池安裝槽101或者第二電池104離開於第二電池安裝槽102。當第一電池103離開於第一電池安裝槽101或者第二電池104離開於該第二電池安裝槽102時,接著步驟S307。當第一電池103未離開於第一電池安裝槽101以及第二電池104未離開於第二電池安裝槽102時,返回步驟S301。具體而言,當第一電池103離開於第一電池安裝槽101時,第一感測器105發出第一觸發訊號至控制器109。當第二電池104離開於第二電池安裝槽102時,第二感測器106發出第二觸發訊號至控制器109。因此,當控制器109接收到第一觸發訊號或第二觸發訊號時,表示第一電池103與第二電池104之一離開於熱插拔式電子裝置。 Regarding step S305, the first sensor 105 and the second sensor 106 are used to detect whether the first battery 103 leaves the first battery mounting slot 101 or the second battery 104 leaves the second battery mounting slot 102. When the first battery 103 leaves the first battery mounting slot 101 or the second battery 104 leaves the second battery mounting slot 102, step S307 is performed. When the first battery 103 does not leave the first battery mounting slot 101 and the second battery 104 does not leave the second battery mounting slot 102, the process returns to step S301. Specifically, when the first battery 103 leaves the first battery mounting slot 101, the first sensor 105 sends a first trigger signal to the controller 109. When the second battery 104 leaves the second battery installation slot 102, the second sensor 106 sends a second trigger signal to the controller 109. Therefore, when the controller 109 receives the first trigger signal or the second trigger signal, it indicates that one of the first battery 103 and the second battery 104 has left the hot-swappable electronic device.

關於步驟S307,透過控制器109,降低熱插拔式電子裝置的系統 功耗,接著返回步驟S301。舉例來說,降低系統功耗例如將中央處理器112的工作頻率、顯示面板PN的背光亮度、按鍵KB的背光亮度以及狀態顯示燈115的亮度之至少一者調降。 Regarding step S307, the system power consumption of the hot-swappable electronic device is reduced through the controller 109, and then the process returns to step S301. For example, the system power consumption is reduced by reducing at least one of the operating frequency of the central processing unit 112, the backlight brightness of the display panel PN, the backlight brightness of the key KB, and the brightness of the status display light 115.

圖4本發明的熱插拔式電子裝置的預防當機方法的第二實施例的流程圖。如圖4所示,關於步驟S401,透過控制器109,判斷熱插拔式電子裝置的電源連接埠111是否連接於交流電源。當控制器109確認熱插拔式電子裝置的電源連接埠111未連接於交流電源時,接著步驟S403。當控制器109確認熱插拔式電子裝置的電源連接埠111連接於交流電源時,再次執行步驟S401。 FIG4 is a flow chart of the second embodiment of the hot-pluggable electronic device crash prevention method of the present invention. As shown in FIG4, regarding step S401, the controller 109 is used to determine whether the power connection port 111 of the hot-pluggable electronic device is connected to the AC power supply. When the controller 109 confirms that the power connection port 111 of the hot-pluggable electronic device is not connected to the AC power supply, step S403 is performed. When the controller 109 confirms that the power connection port 111 of the hot-pluggable electronic device is connected to the AC power supply, step S401 is executed again.

關於步驟S403,透過控制器109,判斷熱插拔式電子裝置是否處於開機狀態。當控制器109確認熱插拔式電子裝置處於開機狀態時,接著步驟S405。當控制器109確認熱插拔式電子裝置未處於開機狀態時,返回步驟S401。 Regarding step S403, the controller 109 is used to determine whether the hot-swappable electronic device is in the power-on state. When the controller 109 confirms that the hot-swappable electronic device is in the power-on state, the process proceeds to step S405. When the controller 109 confirms that the hot-swappable electronic device is not in the power-on state, the process returns to step S401.

關於步驟S405,透過第一感測器105以及第二感測器106,偵測是否第一電池103離開於第一電池安裝槽101或者第二電池104離開於第二電池安裝槽102。當第一電池103離開於第一電池安裝槽101或者第二電池104離開於該第二電池安裝槽102時,接著步驟S407。當第一電池103未離開於第一電池安裝槽101以及第二電池104未離開於第二電池安裝槽102時,返回步驟S401。具體而言,當第一電池103離開於第一電池安裝槽101時,第一感測器105發出第一觸發訊號至控制器109。當第二電池104離開於第二電池安裝槽102時,第二感測器106發出第二觸發訊號至控制器109。因此,當控制器109接收到第一觸發訊號或第二觸發訊號時,表示第一電池103與第二電池104之一離開於熱插拔式電子裝置。 Regarding step S405, the first sensor 105 and the second sensor 106 are used to detect whether the first battery 103 leaves the first battery mounting slot 101 or the second battery 104 leaves the second battery mounting slot 102. When the first battery 103 leaves the first battery mounting slot 101 or the second battery 104 leaves the second battery mounting slot 102, step S407 is performed. When the first battery 103 does not leave the first battery mounting slot 101 and the second battery 104 does not leave the second battery mounting slot 102, the process returns to step S401. Specifically, when the first battery 103 leaves the first battery mounting slot 101, the first sensor 105 sends a first trigger signal to the controller 109. When the second battery 104 leaves the second battery installation slot 102, the second sensor 106 sends a second trigger signal to the controller 109. Therefore, when the controller 109 receives the first trigger signal or the second trigger signal, it indicates that one of the first battery 103 and the second battery 104 has left the hot-swappable electronic device.

關於步驟S407,透過控制器109,降低熱插拔式電子裝置的系統功耗,接著返回步驟S401。舉例來說,降低系統功耗例如包含降熱插拔式電 子裝置的中央處理器112的工作頻率、顯示面板PN的背光亮度、按鍵KB的背光亮度以及狀態顯示燈115的亮度之至少一者調降。 Regarding step S407, the system power consumption of the hot-swappable electronic device is reduced through the controller 109, and then the process returns to step S401. For example, reducing the system power consumption includes reducing at least one of the operating frequency of the CPU 112 of the hot-swappable electronic device, the backlight brightness of the display panel PN, the backlight brightness of the key KB, and the brightness of the status display light 115.

[實施例的有益效果] [Beneficial effects of the embodiment]

本發明的其中一有益效果在於,本發明所提供的熱插拔式電子裝置及熱插拔式電子裝置的預防當機方法,當使用者將第一電池或者第二電池從熱插拔式電子裝置拔離時,熱插拔式電子裝置依然能穩定地運作而不會突然當機,因此使用者對於熱插拔式電子裝置的操作不會因為當機事件而中斷。 One of the beneficial effects of the present invention is that the hot-swappable electronic device and the method for preventing the hot-swappable electronic device from crashing provided by the present invention can ensure that when the user removes the first battery or the second battery from the hot-swappable electronic device, the hot-swappable electronic device can still operate stably without crashing suddenly, so that the user's operation of the hot-swappable electronic device will not be interrupted by the crash event.

以上所公開的內容僅為本發明的優選可行實施例,並非因此侷限本發明的申請專利範圍,所以凡是運用本發明說明書及圖式內容所做的等效技術變化,均包含於本發明的申請專利範圍內。 The above disclosed contents are only the preferred feasible embodiments of the present invention, and do not limit the scope of the patent application of the present invention. Therefore, all equivalent technical changes made by using the contents of the description and drawings of the present invention are included in the scope of the patent application of the present invention.

103:第一電池 103: First Battery

104:第二電池 104: Second battery

105:第一感測器 105: First sensor

106:第二感測器 106: Second sensor

109:控制器 109: Controller

110:記憶體 110: Memory

111:電源連接埠 111: Power port

112:中央處理器 112: Central Processing Unit

113:第一背光光源 113: First backlight source

114:第二背光光源 114: Second backlight source

115:狀態顯示燈 115: Status indicator light

P1:第一接腳 P1: First pin

P2:第二接腳 P2: Second pin

P3:第三接腳 P3: Third pin

P4:第四接腳 P4: Fourth pin

P5:第五接腳 P5: Fifth pin

P6:第六接腳 P6: Sixth pin

P7:第七接腳 P7: Seventh pin

BIOS:基本輸入輸出系統 BIOS: Basic Input Output System

PN:顯示面板 PN: Display panel

KB:按鍵 KB:Key

Claims (10)

一種熱插拔式電子裝置,包括: 一第一電池安裝槽; 一第一電池,安裝於該第一電池安裝槽; 一第二電池安裝槽; 一第二電池,安裝於該第二電池安裝槽; 一電源連接埠; 一控制器,電性連接於該電源連接埠;以及 一第一感測器,電性連接於該控制器且組接於該第一電池安裝槽,當該第一電池離開該第一電池安裝槽時,該第一感測器發送一第一觸發訊號至該控制器; 一第二感測器,電性連接於該控制器且組接於該第二電池安裝槽,當該第二電池離開該第二電池安裝槽時,該第二感測器發送一第二觸發訊號至該控制器; 該控制器用於判斷該熱插拔式電子裝置是否處於一開機狀態以及判斷該電源連接埠是否連接於一交流電源,當該熱插拔式電子裝置處於該開機狀態、該電源連接埠未連接於該交流電源且該控制器接收到該第一觸發訊號或該第二觸發訊號時,該控制器降低該熱插拔式電子裝置的系統功耗。 A hot-swappable electronic device includes: a first battery mounting slot; a first battery, mounted in the first battery mounting slot; a second battery mounting slot; a second battery, mounted in the second battery mounting slot; a power connection port; a controller, electrically connected to the power connection port; and a first sensor, electrically connected to the controller and assembled to the first battery mounting slot, when the first battery leaves the first battery mounting slot, the first sensor sends a first trigger signal to the controller; a second sensor, electrically connected to the controller and assembled to the second battery mounting slot, when the second battery leaves the second battery mounting slot, the second sensor sends a second trigger signal to the controller; The controller is used to determine whether the hot-swappable electronic device is in a power-on state and whether the power connection port is connected to an AC power source. When the hot-swappable electronic device is in the power-on state, the power connection port is not connected to the AC power source, and the controller receives the first trigger signal or the second trigger signal, the controller reduces the system power consumption of the hot-swappable electronic device. 如請求項1所述之熱插拔式電子裝置,其中該控制器連接於一中央處理器以及一背光光源,當該熱插拔式電子裝置處於該開機狀態、該電源連接埠未連接於該交流電源且該控制器接收到該第一觸發訊號或該第二觸發訊號時,該控制器降低該中央處理器的工作頻率以及該背光光源的亮度之至少一。A hot-swappable electronic device as described in claim 1, wherein the controller is connected to a central processing unit and a backlight source, and when the hot-swappable electronic device is in the power-on state, the power connection port is not connected to the AC power source and the controller receives the first trigger signal or the second trigger signal, the controller reduces at least one of the operating frequency of the central processing unit and the brightness of the backlight source. 如請求項1所述之熱插拔式電子裝置,其中該控制器為一嵌入式控制器,而該第一感測器以及該第二感測器為兩個霍爾感測器。A hot-swappable electronic device as described in claim 1, wherein the controller is an embedded controller, and the first sensor and the second sensor are two Hall sensors. 一種熱插拔式電子裝置的預防當機方法,包括: 透過一控制器,判斷該熱插拔式電子裝置是否處於一開機狀態; 當該熱插拔式電子裝置處於該開機狀態時,透過該控制器偵測一電源連接埠是否連接於一交流電源; 當該電源連接埠未連接於該交流電源時,透過一第一感測器偵測是否一第一電池離開於一第一電池安裝槽以及透過一第二感測器偵測是否一第二電池離開於一第二電池安裝槽; 當該第一電池離開於該第一電池安裝槽或者該第二電池離開於該第二電池安裝槽時,透過該控制器降低該熱插拔式電子裝置的系統功耗。 A method for preventing a hot-swappable electronic device from crashing includes: Determining whether the hot-swappable electronic device is in a power-on state through a controller; When the hot-swappable electronic device is in the power-on state, detecting whether a power connection port is connected to an AC power source through the controller; When the power connection port is not connected to the AC power source, detecting whether a first battery leaves a first battery installation slot through a first sensor and detecting whether a second battery leaves a second battery installation slot through a second sensor; When the first battery leaves the first battery installation slot or the second battery leaves the second battery installation slot, reducing the system power consumption of the hot-swappable electronic device through the controller. 如請求項4所述之熱插拔式電子裝置的預防當機方法,其中當該電源連接埠未連接於該交流電源時,透過控制器再次偵測該熱插拔式電子裝置是否處於該開機狀態;當該第一電池未離開於該第一電池安裝槽以及該第二電池未離開該第二電池安裝槽時,透過控制器再次偵測該熱插拔式電子裝置是否處於該開機狀態。A method for preventing a hot-swappable electronic device from crashing as described in claim 4, wherein when the power connection port is not connected to the AC power source, the controller is used to detect again whether the hot-swappable electronic device is in the power-on state; when the first battery has not left the first battery installation slot and the second battery has not left the second battery installation slot, the controller is used to detect again whether the hot-swappable electronic device is in the power-on state. 如請求項4所述之熱插拔式電子裝置的預防當機方法,其中當該第一電池離開於該第一電池安裝槽時,該第一感測器發出一第一觸發訊號至該控制器;當該第二電池離開於該第二電池安裝槽時,該第二感測器發出一第二觸發訊號至該控制器;當該控制器接收到該第一觸發訊號或該第二觸發訊號時,該控制器降低該熱插拔式電子裝置的系統功耗。A method for preventing a hot-swappable electronic device from crashing as described in claim 4, wherein when the first battery leaves the first battery installation slot, the first sensor sends a first trigger signal to the controller; when the second battery leaves the second battery installation slot, the second sensor sends a second trigger signal to the controller; when the controller receives the first trigger signal or the second trigger signal, the controller reduces the system power consumption of the hot-swappable electronic device. 如請求項4所述之熱插拔式電子裝置的預防當機方法,其中降低該熱插拔式電子裝置的系統功耗包含降低一中央處理器的工作頻率以及一背光光源的一亮度之至少一。A method for preventing a hot-pluggable electronic device from crashing as described in claim 4, wherein reducing the system power consumption of the hot-pluggable electronic device includes reducing at least one of an operating frequency of a central processing unit and a brightness of a backlight source. 一種熱插拔式電子裝置的預防當機方法,包括: 透過一控制器,偵測一電源連接埠是否連接於一交流電源; 當該電源連接埠未連接於該交流電源時,透過該控制器判斷該熱插拔式電子裝置是否處於一開機狀態; 當該熱插拔式電子裝置處於該開機狀態時,透過一第一感測器偵測是否一第一電池離開於一第一電池安裝槽以及透過一第二感測器偵測是否一第二電池離開於一第二電池安裝槽;以及 當該第一電池離開於該第一電池安裝槽或者該第二電池離開於該第二電池安裝槽時,透過該控制器降低該熱插拔式電子裝置的系統功耗。 A method for preventing a hot-swappable electronic device from crashing includes: Detecting whether a power connection port is connected to an AC power source through a controller; When the power connection port is not connected to the AC power source, determining whether the hot-swappable electronic device is in a power-on state through the controller; When the hot-swappable electronic device is in the power-on state, detecting whether a first battery leaves a first battery mounting slot through a first sensor and detecting whether a second battery leaves a second battery mounting slot through a second sensor; and When the first battery leaves the first battery mounting slot or the second battery leaves the second battery mounting slot, reducing the system power consumption of the hot-swappable electronic device through the controller. 如請求項8所述之熱插拔式電子裝置的預防當機方法,其中當該第一電池未離開於該第一電池安裝槽以及該第二電池未離開該第二電池安裝槽時,透過該控制器再次偵測該電源連接埠是否連接於該交流電源;當該熱插拔式電子裝置未處於該開機狀態時,透過該控制器再次偵測該電源連接埠是否連接於該交流電源。A method for preventing a hot-swappable electronic device from crashing as described in claim 8, wherein when the first battery has not left the first battery mounting slot and the second battery has not left the second battery mounting slot, the controller is used to detect again whether the power connection port is connected to the AC power source; when the hot-swappable electronic device is not in the power-on state, the controller is used to detect again whether the power connection port is connected to the AC power source. 如請求項8所述之熱插拔式電子裝置的預防當機方法,其中降低該熱插拔式電子裝置的系統功耗包含降低一中央處理器的工作頻率以及降低一背光光源的亮度之至少一。A method for preventing a hot-pluggable electronic device from crashing as described in claim 8, wherein reducing the system power consumption of the hot-pluggable electronic device includes at least one of reducing the operating frequency of a central processing unit and reducing the brightness of a backlight source.
TW111147700A 2022-12-13 2022-12-13 Hot swapping electronic device and method for preventing crash of hot swapping electronic device TWI839016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111147700A TWI839016B (en) 2022-12-13 2022-12-13 Hot swapping electronic device and method for preventing crash of hot swapping electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111147700A TWI839016B (en) 2022-12-13 2022-12-13 Hot swapping electronic device and method for preventing crash of hot swapping electronic device

Publications (2)

Publication Number Publication Date
TWI839016B true TWI839016B (en) 2024-04-11
TW202425485A TW202425485A (en) 2024-06-16

Family

ID=91618515

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111147700A TWI839016B (en) 2022-12-13 2022-12-13 Hot swapping electronic device and method for preventing crash of hot swapping electronic device

Country Status (1)

Country Link
TW (1) TWI839016B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050052085A1 (en) * 2003-07-31 2005-03-10 Herlin Chang Uninterruptible power supply circuit having hot swappable battery module
CN103701195A (en) * 2012-09-27 2014-04-02 神讯电脑(昆山)有限公司 Electronic device and power control method thereof
CN106655458A (en) * 2015-10-28 2017-05-10 深圳富泰宏精密工业有限公司 Battery switching method, electronic device with battery, and wearable device
TWM574778U (en) * 2018-09-12 2019-02-21 醫揚科技股份有限公司 Active discharge battery protection device
TW202227933A (en) * 2021-01-05 2022-07-16 和碩聯合科技股份有限公司 Hot plugging type power module

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050052085A1 (en) * 2003-07-31 2005-03-10 Herlin Chang Uninterruptible power supply circuit having hot swappable battery module
CN103701195A (en) * 2012-09-27 2014-04-02 神讯电脑(昆山)有限公司 Electronic device and power control method thereof
CN106655458A (en) * 2015-10-28 2017-05-10 深圳富泰宏精密工业有限公司 Battery switching method, electronic device with battery, and wearable device
TWM574778U (en) * 2018-09-12 2019-02-21 醫揚科技股份有限公司 Active discharge battery protection device
TW202227933A (en) * 2021-01-05 2022-07-16 和碩聯合科技股份有限公司 Hot plugging type power module

Similar Documents

Publication Publication Date Title
US10515040B2 (en) Data bus host and controller switch
WO2010027375A1 (en) Method and system for providing hybrid-shutdown and fast startup processes
CN107357411B (en) Electronic device
CN101622612A (en) Detecting connection to a USB host or hub without using an extra status input
US9678554B2 (en) Low power mode operation when charging a device
CN104731741B (en) The method and system of hot plug
CN104182243B (en) Sleep state control system, computer system and sleep state detection method thereof
US8769326B2 (en) Computer system and operation method for changing operation state by capacitive button group
TWI839016B (en) Hot swapping electronic device and method for preventing crash of hot swapping electronic device
US6584573B1 (en) Placing a computer system into a sleeping state
TWI463306B (en) Notebook computer
TW202425485A (en) Hot swapping electronic device and method for preventing crash of hot swapping electronic device
CN101211207B (en) Power detection circuit
US20090094472A1 (en) Computer system and method for dynamically saving power thereof
TWI621046B (en) Touch sensitive electronic device, touch sensitive processing apparatus and method thereof
US20120272098A1 (en) Computer with power-off system
CN107272864A (en) A kind of reset circuit, battery and electronic equipment
TWI740320B (en) Low voltage control system, low voltage protection method for an electronic device and a computer program product thereof
CN105893875A (en) Method and device for preventing external misoperation on intelligent electronic equipment
CN118226940A (en) Hot-plug type electronic device and method for preventing shutdown of hot-plug type electronic device
Intel Intel® Desktop Board D848PMB Technical Product Specification
CN207601783U (en) Cpu temperature and system ambient temperature monitoring device
CN102103403A (en) Power management method and computer system using same
EP3416024A1 (en) Electronic device having a controller to enter a low power mode
TW201104429A (en) Peripherals sharing system of integrated personal computer and method using the same