201118541 六、發明說明: 【發明所屬之技術領域】 本發明是有關於—種電子裝置,且特別是有關於-種 由電池供電之電子裝置及安全更換其電池的方法。 【先前技術】 隨著科技的進步,消費性電子裝置已經充斥在現代人 •的,常生活中。其中,由於手持式電子裝置具有體積小、 重罝輕以及功能強大等特點,使得手持式電子裝置已成為 現代人不可或缺的隨身工具。201118541 VI. Description of the Invention: [Technical Field] The present invention relates to an electronic device, and more particularly to a battery-powered electronic device and a method of safely replacing the same. [Prior Art] With the advancement of technology, consumer electronic devices have been filled with modern people's life. Among them, handheld electronic devices have become an indispensable portable tool for modern people because of their small size, light weight, and powerful functions.
At j行動電話為例’現在市場上出現的產品均以多功 月匕二间整合性及高品質為號召,希望得到消費者的青睞。 在單行動電話產品中,整合照相機、錄音筆、導航裝置 及音樂播放器等功能,讓消費者不需要再隨身攜帶許^多 多的電子產品,大幅提升了便利性。 • P遺著電子裝置功能愈來愈多元化、運算能力愈來愈強 大的趨勢’電子裝置的耗電量亦與日俱增。^了不讓電子 裝置發生沒電而無法運作的窘況,目前常見的解決辦法是 使用更大容量的電池,或者是使用者多講買幾個電池來交 替使用。在更換電池時,使用者必須先將電子裝置關機, 並且於更換電池後重新啟動電子農置。#是現在的電子裝 置功能複雜,有些甚至内嵌有作業系統,大幅增加關機^ 開機的等待時間。因此使用者在更換電池後,必須等待冗 長的開機時間。此外,若使用者不慎在未關閉電源時直接 將電池拔出’容易導致資料流失。 201118541 【發明内容】 因此,本發明之一目的是在提供一種電子裝置及安全 更換其電池的方法,用以解決資料流失及等待時間過常的 問題。 本發明之一方面提出一種電子裝置,包含一殼體、一 電池蓋、一第一切換單元以及一第二切換單元。殼體之一 電池槽用以容置一第一電池。第一切換單元用以於電池蓋 • 未連接於殼體時,將電子裝置由較高功耗之一使用模式切 換至較低功耗之一休眠模式。電子裝置更包含一第二電 池,設置於殼體内,並且具有低於第一電池之電容量。第 二切換單元用以於第一電池未容置於電池槽内時,將電子 裝置由一第一電池供電模式切換至一第二電池供電模式。 依據本發明一實施例,電子裝置更包含一主板,設置 於殼體内。第一切換單元包含一感測器,設置於主板上, 用以感測電池蓋是否連接於殼體。 • 依據本發明另一實施例,電子裝置更包含一鐵磁元 件,設置於電池蓋上。感測器用以感測此鐵磁元件。 依據本發明又一實施例,電子裝置更包含一凍結單元 及一功能鍵。凍結單元用以凍結電子裝置之一運作狀態。 功能鍵用以於受按壓時輸出一凍結啟動命令至凍結單元。 依據本發明再一實施例,第一切換單元更包含一儲存 單元,用以儲存凍結之運作狀態,以使電子裝置進入休眠 模式。 依據本發明另一實施例,電子裝置更包含一主板,設 201118541 置於殼體内。第二切換單元包含一開關件,設置於主板上。 當第一電池容置於電池槽内時,第一電池係按壓開關件。 依據本發明又一實施例,第一切換單元更用以於電池 蓋連接於殼體時,將電子裝置切換至使用模式。第二切換 單元更用以於第一電池容置於電池槽内時,將電子裝置切 換至第一電池供電模式。 本發明之另一方面提出一種安全更換電子裝置之電池 的方法,至少包含下述步驟。首先,提供一電子裝置,第 • 一電池容置於殼體之電池槽内,第二電池設置於殼體内, 並且具有低於第一電池的電容量。電池蓋連接於殼體並遮 蓋電池槽。當電池蓋移動離開殼體時,將電子裝置由較高 功耗之一使用模式切換至較低功耗之一休眠模式。當第一 電池移動離開電池槽時,將電子裝置由一第一電池供電模 式切換至一第二電池供電模式。 依據本發明一實施例,安全更換電池的方法更包含下 述步驟。首先,當第一電池容置於電池槽時,將電子裝置 • 由第二電池供電模式切換至第一電池供電模式。以及,當 電池蓋連接於殼體並遮蓋電池槽時,將電子裝置由休眠模 式切換至使用模式。 依據本發明另一實施例,安全更換電池的方法更包含 下述步驟。首先,凍結電子裝置之一運作狀態。以及,儲 ’ 存凍結之運作狀態。 依照本發明實施例之電子裝置及安全更換其電池的方 法,在打開電池蓋並取出電池時,電子裝置中正在處理的 工作及儲存之資料不會因為斷電而遺失。再者,電子裝置 201118541 可以迅速回覆到使用狀態,可以大幅縮短等待時間。 【實施方式】 - 紐本糾實施例之電子裝置及安全更換其電池的方 • 法,在使用者打開電池蓋並取出電池時,電子裝置處於低 耗電的休眠狀態,並且於備用供電模式。如此一來,電子 裝f内的資料便不會因為斷電而遺失,且當電池重新置放 並蓋回電池蓋後,電子裝置可以迅速回覆到使用狀態,使 • 用者不需等待冗長的開機時間。 請參照帛1目,其緣示⑯照本發明一實施例之電子裝 置的爆炸圖。電子裝置1〇〇包含—殼體110、一電池蓋13〇^ 一第一切換單元151以及一第二切換單元1S2。殼體 具有一電池槽110a’用以容置一第一電池12〇。電池蓋13〇 用以連接於喊體110,並且遮蓋電池槽11 〇a。第一切換單 元151用以於電池蓋130未連接於殼體11〇時,將電子裝 置100由較高功耗之一使用模式切換至較低功耗之一休眠 • 模式。電子裝置100更包含一第二電池170設置於殼體110 内,並且具有低於第一電池120,第二切換單元152用以 於第一電池12〇未容置於電池槽ll〇a内時,將電子裝置100 由一第一電池供電模式切換至一第二電池供電模式。 此處所述之使用模式,是指電子裝置100讓使用者進 行正常操作時的狀態。在使用模式時,使用者可以利用觸 控螢幕、鍵盤等輸入組件對於電子裝置100進行操作。此 處所指的体眠模式’是指除了「離開休眠」之中斷事件以 外’電子裝置1〇〇暫時讓中央處理單元(central processing 201118541 止接受其他財斷事件。在休眠模式時,使用者無 / :子裝置100進行操作,此時電子裝置1〇〇以低於使 用模式的耗電量運作。相對而言,電子裝置100於使用模 式時具有較㊅功耗’並且於休眠模式時具有較低功耗。 於一實施例中,為了方便組裝電子裝置100,殼體110 包含一前蓋112及一後蓋U1。前蓋112作為電子裝置1〇〇 之正面’用以供顯示螢幕及鍵盤等元件設置。後蓋m作 為電子裝置100之背面,電池槽11〇a位於後蓋111,電池 • 蓋130用以連接於後蓋1U。 電子裝置100更包含一主板140,設置於殼體110内。 於一實施例中,第一切換單元151包含一感測器141,設 置於主板140上。感測器141可以例如是光感測器、磁感 測器、距離感測器等感測元件,用以感測電池蓋13〇是否 連接於殼體110。本實施例中,感測器141以磁感測器為 例;對應地,電子裝置1〇〇更包含一鐵磁元件16〇,設置 於電池蓋130上。感測器141用以感測鐵磁元件160,藉 Φ 以判斷電池蓋1是否連接至殼體110上。本實施例中, 鐵磁元件160可為一永久磁鐵。 另一方面,電子裝置1〇〇更可進一步包含一功能鍵145 及一凍結單元143。凍結單元143設置於主板14〇上,用 以凍結(suspend)電子裝置100之運作狀態,讓電子裝置1〇〇 停止資料的讀取、運算及寫入動作’並且暫停正在執行的 程式’以確保資料不會流失。當功能鍵145受到按壓時係 輸出一束結啟動命令至凍結單元143。使用者可選擇性地 在取下電池蓋130之前,藉由按壓功能鍵145之方式,讓 201118541 電子裝置100先凍結其運作狀態。 於一實施例中,功能鍵145設置於主板140上,而殼 體110上設置有對應的按鍵113供使用者按壓。當使用者 按壓殼體110上的按鍵I13時,係同時按壓功能鍵145,以 輸出凍結啟動命令至凍結單元143。實際應用上,亦可利 用功能鍵145及電子裝置1〇〇之電源鍵的組合來輸出康結 啟動命令。然而本發明並不以此為限,其他按鍵的組合亦 可應用於發出凍結啟動命令。在另一實施例中,電子襄置 φ 100亦可利用於顯示榮幕上顯示選單的方式,讓使用者點 選啟動涞結的動作。 進一步地是,第一切換單元151更包含一儲存單元 144。儲存單元144設置於主板14〇上,用以儲存電子裝置 100凍結之運作狀態。實際應用上,當電池蓋13〇自殼體 110上移開,使電池蓋130未連接於殼體11〇時,第一切換 單元1S1使用儲存單S m錯存來結之運作狀態,以使電 子裝置100進入休眠狀態。 • 3外-方面’於—實施例中,第二切換單元152包含 -開關件142,叹置於主板14〇上。當第一電池容置 於電池槽110a★内時’第一電池12〇係直接或間接地按塵開 關件142。當第一電池12〇未容置於電池槽ii〇a内時開 關件142未受到按®,此時第二切換料W將電子裝置 _切換至個供電模式。在備用供電模式中,電子裝置 100疋由第-電池170供電。第二電池17〇設置在主板14〇 上’具有低於第-電池12〇的電容量,並且具有低於第一 電池120的製造成本。實際應用上,當電子裝置100於第 201118541 二電池供電模式時,第二電池170係用以供電至少數低耗 電的元件,例如第二切換單元152、儲存單元144等,可 以避免電子裝置100斷電遺失資料的問題。 請參照第2圖,其繪示依照本發明一實施例之安全更 換電子裝置之電池之方法的流程圖。本實例之安全更換電 池的方法例如是應用於前述依照本發明一實施例之電子裝 置100中。 首先如步驟S1所示,提供電子裝置100。電子裝置100 • 中,第一電池120容置於電池槽110a内、電池蓋130連接 於殼體110並且遮蓋電池槽ll〇a。 接著在步驟S2中,當電池蓋130移動離開殼體110 時,將電子裝置100由較高功耗之使用模式切換至較低功 耗之休眠模式。 使用者可以在步驟S2之前選擇性地執行一凍結步 驟。實際應用上,當使用者按壓殼體110上的按鍵113,使 功能鍵145受到按壓時,凍結單元143停止資料的讀取、 • 運算及寫入,並暫停正在執行的程式。於一實施例中,步 驟S2中包含儲存凍結之運作狀態的步驟,以進入休眠模 式。 .接著如步驟S3所示,當第一電池120移動離開電池槽 110a時,將電子裝置100由第一電池供電模式切換至第二 電池供電模式。 步驟S4所示,當第一電池120置入電池槽110a内時, 將電子裝置1〇〇切換至第一電池供電模式,以完成更換第 一電池120的動作。在此步驟中,使用者可以置入另一個 201118541 充滿電且相同規格的第一'電池。 接著如步驟S5所示,當電池蓋130連接於殼體110並 遮蓋電池槽ll〇a時,將電子裝置100切換至使用模式。 • 另外,於一實施例中,使用者可以藉由按壓殼體110 . 上的按鍵113,讓功能鍵145受到按壓。藉之停止凍結電 子裝置100的運作狀態,讓電子裝置100恢復凍結時的資 料讀取、運算及寫入動作,並恢復程式的執行。以此方式, 電子裝置100可以在短時間之内讓使用者繼續使用電子裝 • 置100,不需等待冗長的開機時間。 上述依照本發明實例之電子裝置及安全更換其電池的 方法,在使用者打開第一電池蓋並取出電池時,電子裝置 處於低耗電的休眠狀態,並且處於第二電池供電模式。如 此一來,電子裝置中正在處理的工作及儲存之資料便不會 因為斷電而遺失。此外,當第一電池重新置放於電池槽, 並且蓋回電池蓋後,電子裝置可以迅速回覆到使用狀態。 如此省去了冗長的開機時間,大幅縮短使用者等待的時 • 間,提升使用上的效率。 雖然本發明已以實施方式揭露如上,然其並非用以限 定本發明,任何熟習此技藝者,在不脫離本發明之精神和 . 範圍内,當可作各種之更動與潤飾,因此本發明之保護範 圍當視後附之申請專利範圍所界定者為準。 【圖式簡單說明】 為讓本發明之上述和其他目的、特徵、優點與實施例 能更明顯易懂,所附圖式之說明如下: 201118541 第1圖繪示依照本發明一實施例之電子裝置的爆炸 圖。 第2圖繪示依照本發明一實施例之安全更換電池之方 • 法的流程圖。 【主要元件符號說明】 100 :電子裝置 141 感測器 110 :殼體 142 開關件 110a :電池槽 143 束結單元 111 :後蓋 144 儲存單元 112 :前蓋 145 功能鍵 113 :按鍵 151 第一切換單元 120 :第一電池 152 第二切換單元 13 0 :電池蓋 160 鐵磁元件 140 :主板 170 第二電池At j mobile phone as an example. Nowadays, the products appearing on the market are all called for multi-function, two integration and high quality, and hope to be favored by consumers. In the single-action phone product, the integration of cameras, recorders, navigation devices and music players, so that consumers do not need to carry a lot of electronic products with them, greatly improving convenience. • The trend of P-electronic devices is becoming more diversified and computing power is increasing. The power consumption of electronic devices is also increasing. ^There is no way to prevent the electronic device from running out of power. The current common solution is to use a larger capacity battery, or the user can buy more batteries to replace it. When replacing the battery, the user must first turn off the electronic device and restart the electronic farm after replacing the battery. # is the current electronic device features complex, and some even embedded embedded operating system, greatly increasing the waiting time for shutdown ^ boot. Therefore, after replacing the battery, the user must wait for a lengthy boot time. In addition, if the user accidentally pulls out the battery without turning off the power, it is easy to cause data loss. SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide an electronic device and a method of safely replacing its battery for solving the problem of data loss and abnormal waiting time. One aspect of the present invention provides an electronic device including a housing, a battery cover, a first switching unit, and a second switching unit. One of the housings is used to receive a first battery. The first switching unit is used for the battery cover. • When not connected to the housing, the electronic device is switched from one of the higher power consumption modes to one of the lower power consumption sleep modes. The electronic device further includes a second battery disposed within the housing and having a lower capacitance than the first battery. The second switching unit is configured to switch the electronic device from a first battery power supply mode to a second battery power supply mode when the first battery is not accommodated in the battery slot. According to an embodiment of the invention, the electronic device further includes a motherboard disposed in the housing. The first switching unit includes a sensor disposed on the main board to sense whether the battery cover is connected to the housing. • According to another embodiment of the invention, the electronic device further includes a ferromagnetic component disposed on the battery cover. A sensor is used to sense the ferromagnetic component. According to still another embodiment of the present invention, the electronic device further includes a freezing unit and a function key. The freezing unit is used to freeze the operating state of one of the electronic devices. The function key is used to output a freeze start command to the freezing unit when pressed. According to still another embodiment of the present invention, the first switching unit further includes a storage unit for storing the frozen operating state to cause the electronic device to enter the sleep mode. According to another embodiment of the present invention, the electronic device further includes a main board, and the 201118541 is disposed in the housing. The second switching unit includes a switch member disposed on the main board. When the first battery is housed in the battery well, the first battery unit presses the switch member. According to still another embodiment of the present invention, the first switching unit is further configured to switch the electronic device to the use mode when the battery cover is connected to the housing. The second switching unit is further configured to switch the electronic device to the first battery power supply mode when the first battery is received in the battery slot. Another aspect of the present invention provides a method of safely replacing a battery of an electronic device, comprising at least the following steps. First, an electronic device is provided, the first battery is housed in a battery compartment of the housing, and the second battery is disposed in the housing and has a lower capacity than the first battery. The battery cover is attached to the housing and covers the battery compartment. When the battery cover moves away from the housing, the electronic device is switched from one of the higher power consumption modes to one of the lower power consumption sleep modes. When the first battery moves away from the battery bay, the electronic device is switched from a first battery powered mode to a second battery powered mode. According to an embodiment of the invention, the method of safely replacing a battery further comprises the steps described below. First, when the first battery is placed in the battery bay, the electronic device is switched from the second battery power mode to the first battery power mode. And, when the battery cover is connected to the casing and covers the battery compartment, the electronic device is switched from the sleep mode to the usage mode. According to another embodiment of the present invention, a method of safely replacing a battery further includes the following steps. First, freeze the operating state of one of the electronic devices. And, the storage state of the deposit freeze. According to the electronic device of the embodiment of the invention and the method of safely replacing the battery, when the battery cover is opened and the battery is taken out, the work and stored data being processed in the electronic device are not lost due to power failure. Furthermore, the electronic device 201118541 can quickly respond to the use state, which can greatly shorten the waiting time. [Embodiment] - The electronic device of the embodiment of the present invention and the method of safely replacing the battery thereof, when the user opens the battery cover and removes the battery, the electronic device is in a low-power sleep state and is in the standby power supply mode. In this way, the data in the electronic device f will not be lost due to power failure, and when the battery is repositioned and the battery cover is replaced, the electronic device can quickly respond to the use state, so that the user does not have to wait for a long time. boot time. Referring to Figure 1, there is shown an exploded view of an electronic device in accordance with an embodiment of the present invention. The electronic device 1A includes a housing 110, a battery cover 13, a first switching unit 151, and a second switching unit 1S2. The housing has a battery slot 110a' for receiving a first battery 12''. The battery cover 13 is for connecting to the shouting body 110 and covering the battery compartment 11 〇 a. The first switching unit 151 is configured to switch the electronic device 100 from one of the higher power consumption modes to one of the lower power consumption sleep modes when the battery cover 130 is not connected to the casing 11 . The electronic device 100 further includes a second battery 170 disposed in the housing 110 and having a lower level than the first battery 120. The second switching unit 152 is configured to be used when the first battery 12 is not accommodated in the battery slot 11a. The electronic device 100 is switched from a first battery power mode to a second battery power mode. The mode of use described herein refers to the state in which the electronic device 100 allows the user to perform normal operations. In the usage mode, the user can operate the electronic device 100 using an input component such as a touch screen, a keyboard, or the like. The "sleep mode" referred to here means that the electronic device 1 temporarily allows the central processing unit (central processing 201118541 to accept other financial events) in addition to the "out of sleep" interruption event. In the sleep mode, the user does not / The sub-device 100 operates, at which time the electronic device 1 运作 operates at a lower power consumption than the usage mode. In contrast, the electronic device 100 has a six-power consumption when in the usage mode and has a lower power in the sleep mode. In one embodiment, in order to facilitate assembly of the electronic device 100, the housing 110 includes a front cover 112 and a rear cover U1. The front cover 112 serves as a front surface of the electronic device 1 for displaying a screen and a keyboard. The rear cover m is disposed on the back surface of the electronic device 100, the battery slot 11A is located at the rear cover 111, and the battery cover 130 is connected to the rear cover 1U. The electronic device 100 further includes a main board 140 disposed in the housing 110. In one embodiment, the first switching unit 151 includes a sensor 141 disposed on the main board 140. The sensor 141 can be, for example, a sensing element such as a photo sensor, a magnetic sensor, a distance sensor, or the like. It is used to sense whether the battery cover 13 is connected to the housing 110. In this embodiment, the sensor 141 takes a magnetic sensor as an example; correspondingly, the electronic device 1 further includes a ferromagnetic element 16 The sensor 141 is configured to sense the ferromagnetic component 160 by Φ to determine whether the battery cover 1 is connected to the housing 110. In this embodiment, the ferromagnetic component 160 can be a permanent magnet. On the one hand, the electronic device 1 further includes a function key 145 and a freezing unit 143. The freezing unit 143 is disposed on the main board 14 , to suspend the operating state of the electronic device 100, so that the electronic device 1〇 〇 Stop reading, calculating and writing the data 'and pause the program being executed' to ensure that the data is not lost. When the function key 145 is pressed, a bundle start command is output to the freezing unit 143. The user can select Before the battery cover 130 is removed, the 201118541 electronic device 100 first freezes its operating state by pressing the function key 145. In an embodiment, the function key 145 is disposed on the main board 140, and the housing 110 is Setting The corresponding button 113 is pressed by the user. When the user presses the button I13 on the housing 110, the function button 145 is simultaneously pressed to output a freeze start command to the freezing unit 143. In practical applications, the function button 145 can also be utilized. The combination of the power keys of the electronic device 1 outputs the Kang start command. However, the invention is not limited thereto, and the combination of other buttons can also be applied to issue a freeze start command. In another embodiment, the electronic device φ 100 can also be used to display the way the menu is displayed on the screen, allowing the user to click on the action to start the knot. Further, the first switching unit 151 further includes a storage unit 144. The storage unit 144 is disposed on the main board 14 , for storing the frozen state of operation of the electronic device 100. In practical application, when the battery cover 13 is removed from the housing 110 so that the battery cover 130 is not connected to the housing 11 ,, the first switching unit 1S1 uses the storage unit S m to store the operating state, so that The electronic device 100 enters a sleep state. • 3 External-Aspects In the embodiment, the second switching unit 152 includes a switch member 142 that is placed on the main board 14A. When the first battery is housed in the battery well 110a, the first battery 12 is directly or indirectly pressed against the dust switch 142. When the first battery 12 is not accommodated in the battery slot ii〇a, the switch member 142 is not subjected to the press, and the second switcher W switches the electronic device to the power supply mode. In the standby power supply mode, the electronic device 100 is powered by the first battery 170. The second battery 17 is disposed on the main board 14'' having a lower capacity than the first battery 12'' and having a manufacturing cost lower than that of the first battery 120. In practical applications, when the electronic device 100 is in the battery power supply mode of the 201118541, the second battery 170 is used to supply at least a plurality of low-power components, such as the second switching unit 152, the storage unit 144, etc., to avoid the electronic device 100. The problem of losing data due to power failure. Referring to FIG. 2, a flow chart of a method for safely replacing a battery of an electronic device in accordance with an embodiment of the present invention is shown. The method of safely replacing the battery of the present example is applied, for example, to the electronic device 100 described above in accordance with an embodiment of the present invention. First, as shown in step S1, the electronic device 100 is provided. In the electronic device 100, the first battery 120 is housed in the battery well 110a, and the battery cover 130 is coupled to the housing 110 and covers the battery compartment 110a. Next, in step S2, when the battery cover 130 moves away from the housing 110, the electronic device 100 is switched from the higher power usage mode to the lower power sleep mode. The user can selectively perform a freezing step before step S2. In practical applications, when the user presses the button 113 on the casing 110 to press the function key 145, the freezing unit 143 stops the reading, calculation, and writing of the data, and suspends the program being executed. In one embodiment, step S2 includes the step of storing the operational state of the freeze to enter the sleep mode. Next, as shown in step S3, when the first battery 120 moves away from the battery bay 110a, the electronic device 100 is switched from the first battery powered mode to the second battery powered mode. As shown in step S4, when the first battery 120 is placed in the battery slot 110a, the electronic device 1 is switched to the first battery power supply mode to complete the action of replacing the first battery 120. In this step, the user can place another 201118541 fully charged and identical first battery. Next, as shown in step S5, when the battery cover 130 is attached to the casing 110 and covers the battery compartment 110a, the electronic device 100 is switched to the usage mode. In addition, in an embodiment, the user can press the function key 145 by pressing the button 113 on the housing 110. By stopping the operation state of the electronic device 100, the electronic device 100 resumes the data reading, calculation, and writing operations at the time of freezing, and resumes the execution of the program. In this manner, the electronic device 100 can allow the user to continue using the electronic device 100 in a short period of time without waiting for a lengthy boot time. In the above electronic device according to the example of the present invention and the method of safely replacing the battery, when the user opens the first battery cover and removes the battery, the electronic device is in a low power sleep state and is in the second battery power supply mode. As a result, the work and storage information being processed in the electronic device will not be lost due to power failure. In addition, when the first battery is repositioned in the battery compartment and the battery cover is returned, the electronic device can quickly return to the use state. This saves the lengthy boot time, greatly shortens the time the user waits, and improves the efficiency of use. The present invention has been disclosed in the above embodiments, and is not intended to limit the present invention, and the present invention can be variously modified and retouched without departing from the spirit and scope of the present invention. The scope of protection is subject to the definition of the scope of the patent application attached. BRIEF DESCRIPTION OF THE DRAWINGS In order to make the above and other objects, features, advantages and embodiments of the present invention more obvious, the description of the drawings is as follows: 201118541 Figure 1 shows an electronic according to an embodiment of the present invention. Explosion diagram of the device. 2 is a flow chart showing a method of safely replacing a battery in accordance with an embodiment of the present invention. [Main component symbol description] 100: electronic device 141 sensor 110: housing 142 switch member 110a: battery slot 143 bundle unit 111: rear cover 144 storage unit 112: front cover 145 function key 113: button 151 first switch Unit 120: first battery 152 second switching unit 13 0 : battery cover 160 ferromagnetic element 140 : main board 170 second battery
1111