TWI578232B - Handheld device and operating system updating method thereof - Google Patents

Handheld device and operating system updating method thereof Download PDF

Info

Publication number
TWI578232B
TWI578232B TW104142309A TW104142309A TWI578232B TW I578232 B TWI578232 B TW I578232B TW 104142309 A TW104142309 A TW 104142309A TW 104142309 A TW104142309 A TW 104142309A TW I578232 B TWI578232 B TW I578232B
Authority
TW
Taiwan
Prior art keywords
update
operating system
power
result
processor
Prior art date
Application number
TW104142309A
Other languages
Chinese (zh)
Other versions
TW201723823A (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 TW104142309A priority Critical patent/TWI578232B/en
Application granted granted Critical
Publication of TWI578232B publication Critical patent/TWI578232B/en
Publication of TW201723823A publication Critical patent/TW201723823A/en

Links

Landscapes

  • Power Sources (AREA)

Description

手持式裝置及其作業系統更新方法 Handheld device and operating system updating method thereof

本發明提供一種手持式裝置及其作業系統更新方法,且特別是關於一種確保手持式裝置中的作業系統在更新過程中不會中斷的一種手持式裝置及其作業系統更新方法。 The present invention provides a handheld device and an operating system updating method thereof, and more particularly to a handheld device and an operating system updating method for ensuring that an operating system in a handheld device is not interrupted during an update process.

在手持式裝置上市後的一段時間,軟體工程師通常仍會持續地對作業系統作修改。此修改通常包括執行效率的修改、程式碼的除錯、新功能的加入、及針對客戶需求所做的更動。一旦作業系統改變量達到一定的程度,軟體工程師就會發行新版的鏡像檔案(image file)或韌體檔案(firmware file),讓使用者更新其手持式裝置中的作業系統。 Software engineers often continue to modify the operating system for a period of time after the handheld device is released. This modification typically includes modifications to execution efficiency, debugging of code, addition of new features, and changes to customer needs. Once the operating system changes to a certain extent, the software engineer will release a new version of the image file or firmware file to allow the user to update the operating system in their handheld device.

由於手持式裝置的記憶體容量不大,故手持式裝置不會備份舊版的鏡像檔案或韌體檔案。因此,在更新的過程中,若手持式裝置突然沒電,其作業系統將會更新失敗,並中斷更新。此時,若更新失敗的內容為鏡像檔案,會造成手持式裝置之作業系統無法運作。而若更新失敗的內容為韌體檔案,會造成手持式裝置無法預知的問題(如某個功能模組無法運作)。 Since the memory capacity of the handheld device is not large, the handheld device does not back up the old image file or firmware file. Therefore, in the process of updating, if the handheld device suddenly loses power, its operating system will fail to update and interrupt the update. At this time, if the content of the update failure is a mirror file, the operating system of the handheld device may not work. If the failed content is a firmware file, it will cause problems that the handheld device cannot predict (such as a function module cannot work).

因此,若可以確保手持式裝置中的作業系統在更新過程中不會中斷,將可避免手持式裝置之作業系統無法運作或手持式裝置無法預知的問題。 Therefore, if it can be ensured that the operating system in the handheld device is not interrupted during the updating process, the problem that the operating system of the handheld device cannot be operated or the handheld device cannot be predicted can be avoided.

本發明實施例提供一種作業系統更新方法,適用於一手持式裝置。作業系統更新方法用以更新手持式裝置之作業系統。作業系統更新方法包括如下步驟:接收關聯於作業系統之一更新資料;判斷是否有接收到一直流電力;若有接收到直流電力,控制作業系統進入一恢復模式,且根據更新資料更新作業系統以據此產生一更新結果,且若沒有接收到直流電力,則判斷手持式裝置之一電池電力是否大於等於一預設電力,並於電池電力大於等於預設電力時,控制作業系統進入恢復模式,且根據更新資料更新作業系統以據此產生更新結果;於產生更新結果後,重新啟動作業系統,並判斷更新結果是否為代表更新成功的一結果訊號;以及若更新結果為代表更新成功的結果訊號,執行作業系統。 Embodiments of the present invention provide a method for updating an operating system, which is applicable to a handheld device. The operating system update method is used to update the operating system of the handheld device. The operating system updating method includes the steps of: receiving an update data associated with one of the operating systems; determining whether the direct current power is received; if receiving the direct current power, controlling the operating system to enter a recovery mode, and updating the operating system according to the updated data According to this, an update result is generated, and if the DC power is not received, it is determined whether the battery power of one of the handheld devices is greater than or equal to a preset power, and when the battery power is greater than or equal to the preset power, the operating system is controlled to enter the recovery mode. And updating the operating system according to the update data to generate an update result according to the update result; after the update result is generated, restarting the operating system, and determining whether the update result is a result signal indicating that the update is successful; and if the update result is a result signal indicating that the update is successful , execute the operating system.

依照本發明實施例所述作業系統更新方法,若更新結果不為代表更新成功的結果訊號,控制作業系統回到恢復模式,並重新根據更新資料更新作業系統,以據此產生更新結果。 According to the operating system update method of the embodiment of the present invention, if the update result is not the result signal indicating that the update is successful, the control operating system returns to the recovery mode, and the operating system is re-updated according to the update data to generate an update result accordingly.

本發明實施例提供一種手持式裝置,用以更新設置在手持式裝置中的一作業系統。手持式裝置包括一儲存元件與一處理器。儲存元件接收並儲存關聯於作業系統之一更新資料。處理器電連接儲存元件,且判斷是否有接收到一直流電力。若處理器判斷有接收到直流電力,處理器控制作業系統進入一恢復模式,且根據更新資料更新作業系統,以據此產生一更新結果。若處理器判斷沒有接收到直流電力,處理器判斷手持式裝置之一電池電力是否大於等於一預設電力。處理器於電池電力大於等於預設電力時控制作業系統進入恢復模式,且根據更新資料更新作業系統,以據此產生更新結果。於處理器產生更新結果後,重新啟動作業系統,並判斷更新結果是否為代表更新成功的一結果訊號。若更新結果為代表更新成功的結果訊號,處理器執行作業系統。 Embodiments of the present invention provide a handheld device for updating an operating system disposed in a handheld device. The handheld device includes a storage component and a processor. The storage component receives and stores an update data associated with one of the operating systems. The processor electrically connects the storage element and determines whether the DC power is received. If the processor determines that DC power is received, the processor controls the operating system to enter a recovery mode and updates the operating system based on the updated data to generate an update result accordingly. If the processor determines that the DC power is not received, the processor determines whether the battery power of one of the handheld devices is greater than or equal to a predetermined power. The processor controls the operating system to enter the recovery mode when the battery power is greater than or equal to the preset power, and updates the operating system according to the update data to generate an update result accordingly. After the processor generates the update result, the operating system is restarted, and it is determined whether the update result is a result signal indicating that the update is successful. If the update result is a result signal indicating that the update was successful, the processor executes the operating system.

依照本發明實施例所述手持式裝置,若更新結果不為代表更 新成功的結果訊號,處理器控制作業系統回到恢復模式,並重新根據更新資料更新作業系統,以據此產生更新結果。 According to the handheld device according to the embodiment of the present invention, if the update result is not representative A new successful result signal, the processor controls the operating system to return to the recovery mode, and re-updates the operating system based on the updated data to generate an update result accordingly.

綜合以上所述,本發明實施例所提供的手持式裝置及其作業系統更新方法,可以確保作業系統在更新過程中不會中斷,以避免作業系統因中斷更新而無法運作或產生其他無法預知的問題。 In summary, the handheld device and the operating system update method provided by the embodiments of the present invention can ensure that the operating system is not interrupted during the update process, so as to prevent the operating system from being unable to operate due to interrupted update or generating other unpredictable problem.

為使能更進一步瞭解本發明之特徵及技術內容,請參閱以下有關本發明之詳細說明與附圖,但是此等說明與所附圖式僅係用來說明本發明,而非對本發明的權利範圍作任何的限制。 The detailed description of the present invention and the accompanying drawings are to be understood by the claims The scope is subject to any restrictions.

100‧‧‧手持式裝置 100‧‧‧Handheld devices

110‧‧‧通訊元件 110‧‧‧Communication components

120‧‧‧處理器 120‧‧‧ processor

130‧‧‧儲存元件 130‧‧‧Storage components

140‧‧‧顯示器 140‧‧‧ display

S210、S220、S230、S240、S250、S260、S270、S280、S290、S300‧‧‧步驟 Steps S210, S220, S230, S240, S250, S260, S270, S280, S290, S300‧‧

圖1是本發明一實施例之手持式裝置的示意圖。 1 is a schematic diagram of a handheld device in accordance with an embodiment of the present invention.

圖2是本發明一實施例之作業系統更新方法的方法流程圖。 2 is a flow chart of a method of updating an operating system according to an embodiment of the present invention.

在下文中,將藉由圖式說明本發明之各種例示實施例來詳細描述本發明。然而,本發明概念可能以許多不同形式來體現,且不應解釋為限於本文中所闡述之例示性實施例。此外,圖式中相同參考數字可用以表示類似的元件。 In the following, the invention will be described in detail by way of illustration of various exemplary embodiments of the invention. However, the inventive concept may be embodied in many different forms and should not be construed as being limited to the illustrative embodiments set forth herein. In addition, the same reference numerals may be used in the drawings to indicate similar elements.

本發明實施例所提供的手持式裝置及其作業系統更新方法,其在更新作業系統前會先行檢查手持式裝置目前的電力是否足夠完成更新動作。當目前的電力不足夠完成更新動作時,手持式裝置不會執行更新動作。當目前的電力足夠完成更新動作時,手持式裝置才會執行更新動作直到更新成功為止。據此,手持式裝置及其作業系統更新方法可以確保作業系統在更新過程中不會中斷,以避免作業系統因中斷更新而無法運作或產生其他無法預知的問題。以下將進一步介紹本發明揭露之馬達控制電路。 The handheld device and the operating system updating method thereof provided by the embodiments of the present invention first check whether the current power of the handheld device is sufficient to complete the updating action before updating the operating system. When the current power is not enough to complete the update action, the handheld device does not perform the update action. When the current power is sufficient to complete the update action, the handheld device will perform the update action until the update is successful. Accordingly, the handheld device and its operating system update method can ensure that the operating system is not interrupted during the update process, to prevent the operating system from operating due to interrupted updates or other unpredictable problems. The motor control circuit disclosed in the present invention will be further described below.

首先,請參考圖1,圖1是本發明一實施例之手持式裝置的示意圖。如圖1所示,手持式裝置100為用來更新設置在手持式 裝置中100的一作業系統。在本實施例中,手持式裝置100可為智慧型手機、平板電腦、筆記型電腦或其他需要更新作業系統的手持式裝置100,本發明對此不作限制。手持式裝置100包括一儲存元件130與一處理器120。儲存元件130電連接處理器120。儲存元件130接收並儲存關聯於作業系統之一更新資料。在本實施例中,更新資料為鏡像檔案(image file)或韌體檔案(firmware file),以供使用者更新其手持式裝置100中的作業系統。 First, please refer to FIG. 1. FIG. 1 is a schematic diagram of a handheld device according to an embodiment of the present invention. As shown in FIG. 1, the handheld device 100 is used to update the settings in the handheld An operating system of 100 in the device. In the present embodiment, the handheld device 100 can be a smart phone, a tablet computer, a notebook computer, or other hand-held device 100 that needs to update the operating system, which is not limited by the present invention. The handheld device 100 includes a storage component 130 and a processor 120. The storage element 130 is electrically coupled to the processor 120. The storage component 130 receives and stores updated data associated with one of the operating systems. In this embodiment, the update data is an image file or a firmware file for the user to update the operating system in the handheld device 100.

更進一步來說,手持式裝置100更包括一通訊元件110,通訊元件110電連接處理器120。當手持式裝置100偵測到目前的作業系統需要更新時,通訊元件110將透過一傳輸方式於一遠端伺服器(未繪於圖式中)接收更新資料,且透過處理器120傳送更新資料至儲存元件130。傳輸方式可為非對稱數位用戶迴路(ADSL)傳輸、有線電視網路傳輸、光纖傳輸、藍牙(Bluetooth)傳輸、近場通訊(NFC)傳輸、多媒體簡訊(MMS)傳輸、即時通訊(IM)傳輸、紅外線(Infrared)傳輸、IEEE802.11傳輸、GSM傳輸、GPRS傳輸、網際網路、或3G/4G行動通訊網路其中之一,本發明對此不作限制。 Furthermore, the handheld device 100 further includes a communication component 110 electrically coupled to the processor 120. When the handheld device 100 detects that the current operating system needs to be updated, the communication component 110 will receive the updated data through a transmission mode on a remote server (not shown), and transmit the updated data through the processor 120. To storage element 130. Transmission methods can be asymmetric digital subscriber loop (ADSL) transmission, cable television network transmission, optical fiber transmission, Bluetooth transmission, near field communication (NFC) transmission, multimedia messaging (MMS) transmission, instant messaging (IM) transmission. The infrared transmission (Infrared) transmission, the IEEE 802.11 transmission, the GSM transmission, the GPRS transmission, the Internet, or the 3G/4G mobile communication network, which is not limited by the present invention.

處理器120為用來判斷是否有接收到一直流電力,以檢查手持式裝置100是否有外接額外電力。在本實施例中,額外電力係由一市電電力所提供。更進一步來說,手持式裝置100透過電源線插接至一市電插座,以接收市電插座所提供的市電電力,並經由一交流直流轉換器(AC/DC converter)將市電電源轉換為直流電力。而額外電力亦可由其他電力供應裝置提供,本發明對此不作限制。 The processor 120 is configured to determine whether the DC power is received to check whether the handheld device 100 has external power. In this embodiment, the additional power is provided by a mains power. Furthermore, the handheld device 100 is plugged into a mains socket through a power cord to receive the mains power provided by the mains outlet, and converts the mains power to DC power via an AC/DC converter. The additional power may also be provided by other power supply devices, which is not limited by the present invention.

若處理器120判斷有接收到直流電力,表示目前有外接額外電力,故目前的電力足夠完成更新動作。處理器120將控制作業系統進入一恢復模式(Recovery Mode),且接著將根據更新資料更新作業系統,以據此產生一更新結果。而所屬技術領域具通常 知識者應知處理器120根據更新資料更新作業系統的運作方式,故在此不再贅述。 If the processor 120 determines that DC power is received, it indicates that there is external additional power, so the current power is sufficient to complete the update operation. The processor 120 will control the operating system into a recovery mode (Recovery Mode) and will then update the operating system based on the updated data to generate an updated result accordingly. And the technical field of the art has The knowledge processor should know that the processor 120 updates the operation mode of the operating system according to the update data, and therefore will not be described herein.

若處理器120判斷沒有接收到直流電力,表示目前沒有外接額外電力。此時,處理器120將進一步判斷手持式裝置100之一電池電力是否大於等於一預設電力,以檢查設置在手持式裝置100的一電池之電池電力是否足夠完成更新動作。在本實施例中,預設電力較佳為全部電持電力的50%,以確保電池電力能夠完成長時間的更新動作。而預設電力亦可設置為其他電力值,本發明對此不作限制。 If the processor 120 determines that no DC power is received, it indicates that there is no external additional power at present. At this time, the processor 120 further determines whether the battery power of one of the handheld devices 100 is greater than or equal to a preset power to check whether the battery power of a battery disposed in the handheld device 100 is sufficient to complete the update action. In this embodiment, the preset power is preferably 50% of the total power holding power to ensure that the battery power can complete the long-term update action. The preset power can also be set to other power values, which is not limited by the present invention.

若電池電力大於等於預設電力時,處理器120將控制作業系統進入恢復模式,表示目前的電池電力足夠完成更新動作。處理器120接著將根據更新資料更新作業系統,以據此產生更新結果。 If the battery power is greater than or equal to the preset power, the processor 120 will control the operating system to enter the recovery mode, indicating that the current battery power is sufficient to complete the update action. The processor 120 will then update the operating system based on the updated data to generate an update result accordingly.

於處理器120產生更新結果後,處理器120將重新啟動作業系統,並判斷更新結果是否是代表更新成功的一結果訊號。若更新結果是代表更新成功的結果訊號,表示作業系統已更新。此時,處理器120將執行作業系統(即運作更新後的作業系統),並同時告知使用者作業系統已更新。舉例來說,手持式裝置100更包括一顯示器140,且顯示器140電連接處理器120。處理器120控制顯示器140顯示作業系統的更新狀況為「作業系統已更新完畢」,以告知使用者作業系統已更新。本發明對顯示器140顯示的內容不作限制。 After the processor 120 generates the update result, the processor 120 will restart the operating system and determine whether the update result is a result signal indicating that the update was successful. If the update result is a result signal indicating that the update is successful, it indicates that the operating system has been updated. At this point, the processor 120 will execute the operating system (ie, the operating system after the operation is updated) and simultaneously inform the user that the operating system has been updated. For example, the handheld device 100 further includes a display 140, and the display 140 is electrically connected to the processor 120. The processor 120 controls the display 140 to display the update status of the operating system as "the operating system has been updated" to inform the user that the operating system has been updated. The present invention does not limit the content displayed on the display 140.

而若更新結果不是代表更新成功的結果訊號,表示作業系統更新失敗。此時,處理器120將控制作業系統回到恢復模式,並重新根據更新資料更新作業系統,以據此產生更新結果。故由上述可知,若作業系統更新失敗時,處理器120將再次更新作業系統直到更新成功,而不會執行更新失敗的作業系統。據此,手持式裝置100可以確保作業系統在更新過程中不會中斷,以避免作 業系統因中斷更新而無法運作或產生其他無法預知的問題。 If the update result is not the result signal indicating that the update is successful, the operation system update fails. At this point, the processor 120 will control the operating system back to the recovery mode and re-update the operating system based on the updated data to generate an update result accordingly. Therefore, as can be seen from the above, if the operating system update fails, the processor 120 will update the operating system again until the update is successful, and the operating system that failed the update will not be executed. Accordingly, the handheld device 100 can ensure that the operating system is not interrupted during the update process to avoid The system is unable to operate due to an interrupted update or has other unforeseen problems.

承接上述,當電池電力小於預設電力時,表示目前的電池電力不足夠完成更新動作。此時,處理器120將進一步判斷是否要更新作業系統。舉例來說,處理器120可控制顯示器140顯示「是否要更新作業系統」的訊息,而使用者將可透過手持式裝置100之操作介面(如按鍵)來控制處理器120是否要更新作業系統。而處理器120亦可以其他方式來判斷是否要更新作業系統,本發明對此不作限制。 In the above, when the battery power is less than the preset power, it means that the current battery power is not enough to complete the update action. At this point, the processor 120 will further determine if the operating system is to be updated. For example, the processor 120 can control the display 140 to display a message "whether to update the operating system", and the user can control whether the processor 120 is to update the operating system through the operation interface (such as a button) of the handheld device 100. The processor 120 can also determine whether to update the operating system in other manners, which is not limited by the present invention.

若處理器120判斷不要更新作業系統,處理器120將結束更新作業系統,並同時於顯示器140告知使用者目前的電力不足夠完成更新動作。舉例來說,手持式裝置100之顯示器140將顯示作業系統的更新狀況為「目前的電力不足夠完成更新動作」。本發明對顯示器140顯示的內容不作限制。 If the processor 120 determines that the operating system is not to be updated, the processor 120 will end the update of the operating system and simultaneously notify the user 140 that the current power is insufficient to complete the update action. For example, the display 140 of the handheld device 100 will display the update status of the operating system as "the current power is not sufficient to complete the update action." The present invention does not limit the content displayed on the display 140.

若處理器120判斷要更新作業系統,處理器120將控制顯示器140顯示需加入直流電力的資訊。舉例來說,顯示器140顯示「請接上電源」,以告知使用者手持式裝置100需接收額外電力。在顯示器140顯示需加入直流電力的資訊後,處理器120將進一步判斷是否有加入直流電力,以判斷手持式裝置100是否有接收到額外電力。舉例來說,使用者將手持式裝置100透過電源線插接至一市電插座,以接收市電插座所提供的市電電力(即額外電力),並經由交流直流轉換器將市電電源轉換為直流電力。此時,處理器120將判斷有加入直流電力。再舉例來說,使用者並未將手持式裝置100插接至市電插座,使得手持式裝置100不會接收到額外電力。此時,處理器將判斷沒有加入直流電力。而額外電力亦可由其他電力供應裝置提供,本發明對此不作限制。 If the processor 120 determines that the operating system is to be updated, the processor 120 will control the display 140 to display information to be added to the DC power. For example, the display 140 displays "Please connect the power" to inform the user that the handheld device 100 needs to receive additional power. After the display 140 displays the information to be added to the DC power, the processor 120 will further determine whether DC power is added to determine whether the handheld device 100 has received additional power. For example, the user plugs the handheld device 100 through a power cord to a mains outlet to receive the mains power (ie, additional power) provided by the utility outlet, and converts the mains power to DC power via the AC to DC converter. At this time, the processor 120 will judge that DC power is added. As another example, the user does not plug the handheld device 100 to the utility outlet so that the handheld device 100 does not receive additional power. At this point, the processor will determine that no DC power has been added. The additional power may also be provided by other power supply devices, which is not limited by the present invention.

若處理器120判斷有加入直流電力時,表示目前的電力足夠完成更新動作。處理器120將控制作業系統進入恢復模式,並根 據更新資料更新作業系統,以據此產生更新結果。而處理器120接著將進一步判斷更新結果是否為代表更新成功的結果訊號。有關處理器120判斷更新結果是否為結果訊號的實施方式已於前述作說明,故在此不再贅述。 If the processor 120 determines that DC power is added, it indicates that the current power is sufficient to complete the update operation. The processor 120 will control the operating system into a recovery mode, and root The operating system is updated according to the updated data to generate an update result accordingly. The processor 120 will then further determine whether the update result is a result signal representative of the successful update. The implementation manner in which the processor 120 determines whether the update result is a result signal has been described above, and therefore will not be described herein.

若處理器120判斷沒有加入直流電力時,表示手持式裝置100尚未接收到額外電力,目前的電力不足夠完成更新動作。處理器120將重新控制顯示器140顯示需加入直流電力的資訊,直到手持式裝置100有接收到額外電力。 If the processor 120 determines that no DC power is added, it indicates that the handheld device 100 has not received additional power, and the current power is not sufficient to complete the update action. The processor 120 will re-control the display 140 to display information to be added to the DC power until the handheld device 100 has received additional power.

由上述的實施例,本發明可以歸納出一種作業系統更新方法,適用於上述實施例所述之手持式裝置100。請參考圖2並同時參考圖1。圖2顯示本發明一實施例之作業系統更新方法的方法流程圖。首先,手持式裝置100之儲存元件130接收關聯於作業系統之一更新資料並確認需要更新(步驟S210)。而有關儲存元件130接收更新資料之實施方式已於圖1所述之實施例中作說明,故在此不再贅述。 According to the above embodiment, the present invention can be summarized as an operating system updating method, which is applicable to the handheld device 100 described in the above embodiment. Please refer to FIG. 2 and refer to FIG. 1 at the same time. 2 is a flow chart showing a method of updating an operating system according to an embodiment of the present invention. First, the storage component 130 of the handheld device 100 receives an update profile associated with one of the operating systems and confirms that an update is required (step S210). The implementation of the storage component 130 for receiving the update data is described in the embodiment of FIG. 1 and will not be further described herein.

接著,手持式裝置100之處理器120將判斷是否有接收到直流電力(步驟S220)。若處理器120判斷有接收到直流電力,處理器120將控制作業系統進入恢復模式,且接著將根據更新資料更新作業系統,以據此產生更新結果(步驟S230)。而所屬技術領域具通常知識者應知處理器120根據更新資料更新作業系統的運作方式,故在此不再贅述。 Next, the processor 120 of the handheld device 100 will determine whether DC power has been received (step S220). If the processor 120 determines that DC power is received, the processor 120 will control the operating system to enter the recovery mode, and then update the operating system based on the updated data to generate an update result accordingly (step S230). The person skilled in the art should know that the processor 120 updates the operation mode of the operating system according to the update data, and therefore will not be described herein.

若處理器120判斷沒有接收到直流電力。處理器120將進一步判斷手持式裝置100之電池電力是否大於等於預設電力,以檢查設置在手持式裝置100的電池之電池電力是否足夠完成更新動作(步驟S260)。若電池電力大於等於預設電力時,處理器120將控制作業系統進入恢復模式,即步驟S230。表示目前的電池電力足夠完成更新動作。處理器120接著將根據更新資料更新作業系統,以據此產生更新結果。 If the processor 120 determines that no DC power has been received. The processor 120 will further determine whether the battery power of the handheld device 100 is greater than or equal to the preset power to check whether the battery power of the battery disposed in the handheld device 100 is sufficient to complete the update action (step S260). If the battery power is greater than or equal to the preset power, the processor 120 will control the operating system to enter the recovery mode, step S230. Indicates that the current battery power is sufficient to complete the update action. The processor 120 will then update the operating system based on the updated data to generate an update result accordingly.

在步驟S230後,手持式裝置100之處理器120將重新啟動作業系統,並判斷更新結果是否為代表更新成功的結果訊號,以檢查作業系統是否已更新完畢(步驟S240)。若更新結果為代表更新成功的結果訊號,表示作業系統已更新。處理器120將執行作業系統,以運作更新後的作業系統(步驟S250)。而若更新結果不為代表更新成功的結果訊號,表示作業系統更新失敗。此時,處理器120將回到步驟S230,以據此產生更新結果。故由上述可知,若作業系統更新失敗時,處理器120將再次更新作業系統直到更新成功,而不會執行更新失敗的作業系統。據此,手持式裝置100可以確保作業系統在更新過程中不會中斷,以避免作業系統因中斷更新而無法運作或產生其他無法預知的問題。 After step S230, the processor 120 of the handheld device 100 will restart the operating system and determine whether the update result is a result signal indicating that the update is successful, to check whether the operating system has been updated (step S240). If the result of the update is a result signal indicating that the update was successful, it indicates that the operating system has been updated. The processor 120 will execute the operating system to operate the updated operating system (step S250). If the update result is not the result signal indicating that the update is successful, the operation system update fails. At this point, the processor 120 will return to step S230 to generate an update result accordingly. Therefore, as can be seen from the above, if the operating system update fails, the processor 120 will update the operating system again until the update is successful, and the operating system that failed the update will not be executed. Accordingly, the handheld device 100 can ensure that the operating system is not interrupted during the update process to prevent the operating system from operating due to interrupted updates or other unpredictable problems.

承接步驟S260,若電池電力小於預設電力時,表示目前的電池電力不足夠完成更新動作。此時,處理器120將進一步判斷是否要更新作業系統(步驟S270)。舉例來說,處理器120可控制顯示器140顯示「是否要更新作業系統」的訊息,而使用者將可透過手持式裝置100之操作介面(如按鍵)來控制處理器120是否要更新作業系統。 In step S260, if the battery power is less than the preset power, it indicates that the current battery power is insufficient to complete the update operation. At this time, the processor 120 will further determine whether or not to update the operating system (step S270). For example, the processor 120 can control the display 140 to display a message "whether to update the operating system", and the user can control whether the processor 120 is to update the operating system through the operation interface (such as a button) of the handheld device 100.

若處理器120判斷不要更新作業系統,處理器120將結束更新作業系統,即執行步驟S300,並同時於顯示器140告知使用者目前的電力不足夠完成更新動作。若處理器120判斷要更新作業系統,處理器120將控制顯示器140顯示需加入直流電力的資訊(步驟S280)。有關顯示器140顯示需加入直流電力的資訊之實施方式已在前一實施例中作說明,故在此不再贅述。 If the processor 120 determines that the operating system is not to be updated, the processor 120 will end the update of the operating system, that is, perform step S300, and simultaneously notify the user 140 that the current power is insufficient to complete the update action. If the processor 120 determines that the operating system is to be updated, the processor 120 will control the display 140 to display information to be added to the DC power (step S280). An embodiment in which the display 140 displays information to be added with DC power has been described in the previous embodiment, and therefore will not be described herein.

在步驟S280後,處理器120將進一步判斷是否有加入直流電力,以判斷手持式裝置100是否有接收到額外電力(步驟S290)。若處理器120判斷有加入直流電力時,表示目前的電力足夠完成更新動作。處理器120將執行步驟S230,以據此產生更新結果,並進一步判斷更新結果是否為代表更新成功的結果訊 號。而若處理器120判斷沒有加入直流電力時,表示手持式裝置100尚未接收到額外電力,目前的電力不足夠完成更新動作。處理器120將重新控制顯示器140顯示需加入直流電力的資訊,直到手持式裝置100有接收到額外電力。 After step S280, the processor 120 further determines whether DC power is added to determine whether the handheld device 100 has received additional power (step S290). If the processor 120 determines that DC power is added, it indicates that the current power is sufficient to complete the update operation. The processor 120 will execute step S230 to generate an update result according to the result, and further determine whether the update result is a result indicating that the update is successful. number. If the processor 120 determines that no DC power is added, it indicates that the handheld device 100 has not received additional power, and the current power is insufficient to complete the update action. The processor 120 will re-control the display 140 to display information to be added to the DC power until the handheld device 100 has received additional power.

由步驟S260判斷電力足夠而接著執行步驟S230的情況下,萬一更新作業不成功,電池可能因為不斷重複步驟S230~S240而耗盡,此時,一但有新電力時(例如換電池),則會接著執行步驟S240重新啟動作業系統,並判斷更新結果是否為代表更新成功的結果訊號。 If it is determined in step S260 that the power is sufficient and then step S230 is performed, if the update operation is unsuccessful, the battery may be exhausted by continuously repeating steps S230 to S240. At this time, when there is new power (for example, changing the battery), Then, step S240 is executed to restart the operating system, and it is determined whether the update result is a result signal indicating that the update is successful.

綜上所述,本發明實施例所提供的手持式裝置及其作業系統更新方法,其在更新作業系統前會先檢查手持式裝置目前的電力是否足夠完成更新動作。當目前的電力不足夠完成更新動作時,手持式裝置不會執行更新動作。當目前的電力足夠完成更新動作時,手持式裝置才會執行更新動作直到更新成功為止。據此,手持式裝置及其作業系統更新方法可以確保作業系統在更新過程中不會中斷,以避免作業系統因中斷更新而無法運作或產生其他無法預知的問題。 In summary, the handheld device and the operating system updating method thereof according to the embodiments of the present invention first check whether the current power of the handheld device is sufficient to complete the update action before updating the operating system. When the current power is not enough to complete the update action, the handheld device does not perform the update action. When the current power is sufficient to complete the update action, the handheld device will perform the update action until the update is successful. Accordingly, the handheld device and its operating system update method can ensure that the operating system is not interrupted during the update process, to prevent the operating system from operating due to interrupted updates or other unpredictable problems.

以上所述僅為本發明之實施例,其並非用以侷限本發明之專利範圍。 The above description is only an embodiment of the present invention, and is not intended to limit the scope of the invention.

100‧‧‧手持式裝置 100‧‧‧Handheld devices

110‧‧‧通訊元件 110‧‧‧Communication components

120‧‧‧處理器 120‧‧‧ processor

130‧‧‧儲存元件 130‧‧‧Storage components

140‧‧‧顯示器 140‧‧‧ display

Claims (8)

一種作業系統更新方法,適用於一手持式裝置,用以更新該手持式裝置之該作業系統,該作業系統更新方法包括:接收關聯於該作業系統之一更新資料,並確認需要更新;判斷是否有接收到一直流電力;若有接收到該直流電力,控制該作業系統進入一恢復模式,且根據該更新資料更新該作業系統以據此產生一更新結果,且若沒有接收到該直流電力,則判斷該手持式裝置之一電池電力是否大於等於一預設電力,並於該電池電力大於等於該預設電力時,控制該作業系統進入該恢復模式,且根據該更新資料更新該作業系統以據此產生該更新結果;於產生該更新結果後,重新啟動該作業系統,並判斷該更新結果是否為代表更新成功的一結果訊號;以及若該更新結果為代表更新成功的該結果訊號,執行該作業系統;若該更新結果不為代表更新成功的該結果訊號,自動控制該作業系統回到該恢復模式,並重新根據該更新資料更新該作業系統,以據此產生該更新結果。 An operating system updating method is applicable to a handheld device for updating the operating system of the handheld device, the operating system updating method includes: receiving an update data associated with the operating system, and confirming that the update is required; determining whether Receiving the DC power; if the DC power is received, controlling the operating system to enter a recovery mode, and updating the operating system according to the update data to generate an update result, and if the DC power is not received, Determining whether the battery power of one of the handheld devices is greater than or equal to a predetermined power, and controlling the operating system to enter the recovery mode when the battery power is greater than or equal to the preset power, and updating the operating system according to the update data And generating the update result; after the generating the update result, restarting the operating system, and determining whether the update result is a result signal indicating that the update is successful; and if the update result is the result signal indicating that the update is successful, executing The operating system; if the update result is not the result of the update being successful , Automatic control of the operating system back to the recovery mode, and re-update the operating system according to the update data, thereby generating the updated results. 如請求項1之作業系統更新方法,其中,若該電池電力小於該預設電力時,判斷是否要更新該作業系統,並於判斷要更新該作業系統時顯示需加入該直流電力的資訊,其中於顯示需加入該直流電力的資訊後,判斷是否有加入該直流電力,並於判斷有加入該直流電力時控制該作業系統進入該恢復模式,並根據該更新資料更新該作業系統,以據此產生該更新結果。 The operating system update method of claim 1, wherein if the battery power is less than the preset power, determining whether to update the operating system, and displaying information to be added to the DC power when determining to update the operating system, wherein After displaying the information to be added to the DC power, determining whether the DC power is added, and controlling the operating system to enter the recovery mode when determining that the DC power is added, and updating the operating system according to the update data, thereby Produce the result of this update. 如請求項2之作業系統更新方法,其中,於判斷是否要更新該作業系統的步驟中,若判斷不要更新該作業系統時,結束更新該 作業系統。 The operation system update method of claim 2, wherein, in the step of determining whether to update the operating system, if it is determined that the operating system is not to be updated, the update is ended. working system. 如請求項2之作業系統更新方法,其中,於判斷是否有加入該直流電力的步驟中,若判斷沒有加入該直流電力時,重新顯示需加入該直流電力的資訊。 The operation system update method of claim 2, wherein, in the step of determining whether or not the DC power is added, if it is determined that the DC power is not added, the information to be added to the DC power is redisplayed. 如請求項1之作業系統更新方法,其中,於接收關聯於該作業系統之一更新資料的步驟中,透過一傳輸方式接收該更新資料。 The operating system update method of claim 1, wherein the updating the data is received through a transmission mode in the step of receiving an update data associated with the one of the operating systems. 一種手持式裝置,用以更新設置在該手持式裝置中的一作業系統,該手持式裝置包括:一儲存元件,接收並儲存關聯於該作業系統之一更新資料;以及一處理器,電連接該儲存元件,且判斷是否有接收到一直流電力;其中,若處理器判斷有接收到該直流電力,該處理器控制該作業系統進入一恢復模式,且根據該更新資料更新該作業系統,以據此產生一更新結果,若該處理器判斷沒有接收到該直流電力,該處理器判斷該手持式裝置之一電池電力是否大於等於一預設電力,該處理器於該電池電力大於等於該預設電力時控制該作業系統進入該恢復模式,且根據該更新資料更新該作業系統以據此產生該更新結果;其中,於該處理器產生該更新結果後,重新啟動該作業系統,並判斷該更新結果是否為代表更新成功的一結果訊號,若該更新結果為代表更新成功的該結果訊號,該處理器執行該作業系統;其中,若該更新結果不為代表更新成功的該結果訊號,該處理器自動控制該作業系統回到該恢復模式,並重新根據該更新資料更新該作業系統,以據此產生該更新結果。 A handheld device for updating an operating system disposed in the handheld device, the handheld device comprising: a storage component that receives and stores an update data associated with the operating system; and a processor, the electrical connection Storing the component and determining whether the DC power is received; wherein, if the processor determines that the DC power is received, the processor controls the operating system to enter a recovery mode, and updates the operating system according to the update data to According to the result of the update, if the processor determines that the DC power is not received, the processor determines whether the battery power of the handheld device is greater than or equal to a preset power, and the processor has the battery power greater than or equal to the preset Controlling the operating system to enter the recovery mode when power is set, and updating the operating system according to the update data to generate the update result; wherein, after the processor generates the update result, restarting the operating system, and determining the Whether the update result is a result signal indicating that the update is successful, and if the update result is successful on behalf of the update The result signal, the processor executes the operating system; wherein, if the update result is not the result signal representing the successful update, the processor automatically controls the operating system to return to the recovery mode, and re-updates the update according to the update data The operating system to generate the updated results accordingly. 如請求項6之手持式裝置,其中,若該電池電力小於該預設電力時,該處理器判斷是否要更新該作業系統,並於該處理器判斷要更新該作業系統時控制一顯示器顯示需加入該直流電力的資訊,其中於該顯示器顯示需加入該直流電力的資訊後,該處理器判斷是否有加入該直流電力,並於該處理器判斷有加入該直流電力時控制該作業系統進入該恢復模式,並根據該更新資料更新該作業系統,以據此產生該更新結果。 The handheld device of claim 6, wherein if the battery power is less than the preset power, the processor determines whether to update the operating system, and controls a display display when the processor determines to update the operating system Adding information of the DC power, wherein after the display displays information to be added to the DC power, the processor determines whether the DC power is added, and controls the operating system to enter the DC power when the processor determines that the DC power is added The recovery mode is updated, and the operating system is updated based on the update data to generate the update result accordingly. 如請求項7之手持式裝置,其中,若該處理器判斷不要更新該作業系統時,結束更新該作業系統。 The hand-held device of claim 7, wherein if the processor determines not to update the operating system, the updating of the operating system ends.
TW104142309A 2015-12-16 2015-12-16 Handheld device and operating system updating method thereof TWI578232B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW104142309A TWI578232B (en) 2015-12-16 2015-12-16 Handheld device and operating system updating method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW104142309A TWI578232B (en) 2015-12-16 2015-12-16 Handheld device and operating system updating method thereof

Publications (2)

Publication Number Publication Date
TWI578232B true TWI578232B (en) 2017-04-11
TW201723823A TW201723823A (en) 2017-07-01

Family

ID=59241066

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104142309A TWI578232B (en) 2015-12-16 2015-12-16 Handheld device and operating system updating method thereof

Country Status (1)

Country Link
TW (1) TWI578232B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201011648A (en) * 2008-09-10 2010-03-16 Inventec Appliances Corp Electronic apparatus and system updating method thereof
CN102799447A (en) * 2012-06-19 2012-11-28 优视科技有限公司 Method and system for updating internal software of mobile terminal
US20140223423A1 (en) * 2013-02-05 2014-08-07 Apple Inc. Automatic Updating of Applications
TW201537462A (en) * 2014-03-17 2015-10-01 Quanta Comp Inc Method and system of software update and mobile device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201011648A (en) * 2008-09-10 2010-03-16 Inventec Appliances Corp Electronic apparatus and system updating method thereof
CN102799447A (en) * 2012-06-19 2012-11-28 优视科技有限公司 Method and system for updating internal software of mobile terminal
US20140223423A1 (en) * 2013-02-05 2014-08-07 Apple Inc. Automatic Updating of Applications
TW201537462A (en) * 2014-03-17 2015-10-01 Quanta Comp Inc Method and system of software update and mobile device

Also Published As

Publication number Publication date
TW201723823A (en) 2017-07-01

Similar Documents

Publication Publication Date Title
US10961651B2 (en) Internet of things washing machine control method, control system, and washing machine
EP3262998A1 (en) Cooking appliance running method and device
US10412207B2 (en) Mobile terminal, power adapter, and upgrade method thereof
WO2018076755A1 (en) Method and apparatus for issuing upgrade package
CN105162841A (en) Domestic appliance control method and system
CN102984209B (en) A kind of distribution method of application program and terminal thereof
KR20110104383A (en) Device and method for servicing firmware update
CN104881306A (en) Method and device for realizing automatic upgrading of wearable intelligent equipment
EP2372491A1 (en) Power lock-up setting method and electronic apparatus using the same
CN105517015A (en) Upgrading method, device of wifi product by over the air OTA and terminal
WO2016058133A1 (en) Software upgrading method and device
JP2013114499A (en) Electronic apparatus and update control method
US20150363188A1 (en) Information Processing Device and Information Processing System
US11074059B2 (en) Non-transitory computer-readable recording medium storing instructions controlling operation of mobile terminal
CN111246199B (en) Control method and device for camera test, terminal equipment and storage medium
CN111142900A (en) Program updating method and device and terminal equipment
CN113067769B (en) Router restarting method, device, equipment and storage medium
TWI578232B (en) Handheld device and operating system updating method thereof
CN112947101A (en) Control method and device of household appliance
CN104469278A (en) Method and device for upgrading monitoring system
CN110389643B (en) Server and remote control method thereof
WO2020110312A1 (en) Device control system, communication adapter, and household appliance
JP6403976B2 (en) Computer program, information processing apparatus, and process execution method
WO2015154690A1 (en) Charging socket and mobile terminal processing method based on charging socket
WO2021051370A1 (en) Device control method and system as well as control terminal