[Not Applicable]
[Not Applicable]
Electronic devices, such as mobile phones and personal digital assistants (PDA's), often contain firmware and application software that are either provided by the manufacturers of the electronic devices, by telecommunication carriers, or by third parties.
An update of firmware or firmware components typically involves procedures to be performed in a careful and error free manner. If errors occur, the device may be left in a partially or fully non-functional state. It is desirable to perform such updates using a fault tolerant mechanism. Fault tolerant code, however, is generally complex, and normally difficult to successfully implement.
Attempts to upgrade firmware and/or software in electronic devices, such as mobile phones, are often hampered by limited user interaction capabilities and slow communication speeds on these devices. In addition, when a user determines that there is an error with an electronic device, such as a mobile phones, the user often has limited recourse to having it corrected, and is often left with taking it back to a service center of the manufacturer to have the firmware/software modified or replaced.
Further limitations and disadvantages of conventional and traditional approaches will become apparent to one of skill in the art, through comparison of such systems with the present invention as set forth in the remainder of the present application with reference to the drawings.
Aspects of the present invention may be seen in an updatable electronic device comprising a memory having at least one of firmware and software, a first firmware component for determining the occurrence of at least one of an error and an exception during the execution of the at least one of firmware and software, and a second firmware component for gathering at least one parameter related to the occurrence of the at least one of an error and an exception. Such an embodiment may also comprise interface circuitry for receiving update information via a communication network, the update information based upon the at least one parameter, and a third firmware component for applying the update information to at least a portion of the at least one of firmware and software. In an embodiment of the present invention, the at least one parameter may comprise at least one of a type of error, an error code, an error message, a type of exception, an identifier of a component, an identifier of a module, stack trace information, a computed hash value, and a device characteristic. The device characteristic may comprise at least one of a manufacture identifier, a model identifier, a firmware version number, a hardware version number, a battery level, a communication statistic, and a serial number. The device may be a mobile handset, and the communication network may comprise a wireless network. An embodiment of the present invention may comprise a fourth firmware component for generating an identifier for identifying the update information used to correct the at least one of an error and an exception.
In an embodiment of the present invention, the device may transmit the at least one parameter to at least one server via the communication network, the at least one server identifying the update information used to correct the at least one of an error and an exception. In various embodiments of the present invention, the update information may comprise information for retrieving at least one update package via the communication network, and a set of instructions for converting the at least a portion of the at least one of firmware and software from a first version to a second version. At least one of the first firmware component, the second firmware component, and the third firmware component may initiate at least one of a restart and a reboot of the device, and the device may store information related to the at least one of an error and an exception for use after at least one of a power-up, a restart and a reboot of the device. The device may update the at least a portion of the at least one of firmware and software following at least one of a power-up, a restart and a reboot of the device. The at least one of firmware and software may comprise a java virtual machine.
Additional aspects of the present invention may be observed in a method of operating an updatable electronic device comprising a memory containing at least one of firmware and software. Such an embodiment may comprise determining whether at least one of an error and an exception has occurred, continuing regular processing if the at least one of an error and an exception has not occurred, and generating an identifier based upon at least one parameter if the at least one of an error and an exception has occurred. An embodiment of the present invention may also comprise receiving, via a communication network, update information based upon the identifier, and updating at least a portion of the at least one of firmware and software using the update information. The at least one parameter may comprise at least one of a type of error, an error code, an error message, a type of exception, an identifier of a component, an identifier of a module, stack trace information, a computed hash value, and a device characteristic. The device characteristic may comprise at least one of a manufacture identifier, a model identifier, a firmware version number, a hardware version number, a battery level, a communication statistic, and a serial number. The device may be a mobile handset, and the communication network may comprise a wireless network.
In an embodiment in accordance with the present invention, the device may transmit the at least one parameter to at least one server via the communication network, the at least one server identifying the update information used to correct the at least one of an error and an exception. The update information may comprise information for retrieving at least one update package via the communication network, and the update information may comprise a set of instructions for converting the at least a portion of the at least one of firmware and software from a first version to a second version. An embodiment of the present invention may also comprise initiating at least one of a restart and a reboot of the device. In addition, an embodiment of the present invention may comprise storing information related to the at least one of an error and an exception for use after at least one of a power-up, a restart and a reboot of the device. The device may update the at least a portion of the at least one of firmware and software following the at least one of a power-up, a restart and a reboot of the device. Another embodiment of the present invention may comprise logging the occurrence of the at least one of an error and an exception, and communicating, via the communication network, the logged occurrence of the at least one of an error and an exception.
Yet another aspect of the present invention may be found in a method of operating an updatable electronic device. A embodiment in accordance with the present invention may comprise determining that at least one of a firmware and a software error has occurred, gathering at least one parameter related to the at least one of a firmware and a software error, and identifying update information for correcting the at least one of a firmware and a software error. Such an embodiment may also comprise receiving the update information via a communication network, and updating at least one of firmware and software using the update information. The communication network may comprise a wireless network, and the update information may comprise a set of instructions for converting the at least one of firmware and software from a first version to a second version.
Further aspects of the present invention may be observed in a network for updating at least one of firmware and software in at least one updatable electronic device. Such a network may comprise at least one server receiving at least one of device characteristics and an error report from the at least one updatable electronic device, the at least one server retrieving appropriate update information based on the at least one of device characteristics and an error report. The at least one server may communicate the update information to the at least one updatable electronic device using a wireless interface, and the at least one updatable electronic device may use the update information to update the at least one of firmware and software. The update information may comprise an update package having a set of instructions for converting the at least one of firmware and software from a first version to a second version, and the updatable electronic device may comprise a mobile handset. The device characteristics may comprise at least one of a manufacture identifier, a model identifier, a firmware version number, a hardware version number, a battery level, a communication statistic, and a serial number. The updatable electronic device may also comprise a display for displaying information regarding at least one of an error, an exception, and an event to a user. The displayed information may comprise a user prompt to solicit user approval for at least one of the communication of the update information and the update of the at least one of firmware and software.
These and other advantages, aspects and novel features of the present invention, as well as details of an illustrated embodiment thereof, will be more fully understood from the following description and drawings.
The present invention relates generally to the process of updating software/firmware in electronic devices and, more specifically, to the use of a software self-repair toolkit that facilitates the download of update packages and the subsequent update of firmware/software employing an update package.
The software self-repair toolkit 123 of
In an embodiment of the present invention, when the electronic device 109 encounters an error and/or exception during execution of elements of its firmware/software (e.g., the java virtual machine (JVM) environment 141, component architecture platform 143, application 131, etc.), the details of the error and/or exception may be saved, and subsequently used to help identify an appropriate firmware/software update, to correct the occurrence of the error and/or exception. An appropriate update package to correct the problem may then be retrieved from a server 119 to which the electronic device 109 is communicatively coupled. The manager 147 of the software self-repair toolkit 123 may coordinate retrieval of the update package based upon one or more parameters such as, for example, parameters used to identify the type of error, parameters used to identify a component or module involved, device characteristics used to identify the device and the device configuration, etc. The manager 147 may retrieve, using the above parameters, one or more update package(s) identified as likely to correct the firmware/software bug causing the error and/or exception. The manager 147 of the software self-repair toolkit 123 may then store status information, set flags, save addresses for the locations where the update package(s) are stored, etc., and may restart/reboot the electronic device 109. The update agent 125 of the software self-repair toolkit 123 may then be employed to apply the update package(s) to the firmware/software of the electronic device 109 (i.e., application 131, JVM environment 141, etc.) The update package(s) may comprise, for example, a set of instructions for converting the firmware/software of the electronic device 109 from a first version to a second version. A description of such an approach may be found in U.S. Provisional Patent Application Ser. No. 60/249,606, filed Nov. 17, 2000, PCT Application Serial No. PCT/US01/44034, entitled “System And Method For Updating And Distributing Information”, filed Nov. 17, 2001, and U.S. patent application Ser. No. 10/311,462, entitled “System And Method For Updating And Distributing Information”, filed May 13, 2003, the complete subject matter of each of which is hereby incorporated herein by reference, in its entirety.
The following description addresses three possible scenarios, characterized primarily by the capabilities of the execution environment, i.e. the functionality of electronic device 109. In each of these scenarios, an embodiment of the present invention facilitates the detection and identification of the error, identification and retrieval of appropriate update package(s), and the application of the retrieved update package(s). In addition, an embodiment of the present invention may verify and/or authenticate the update package(s), before the update is performed by the update agent 125.
In one embodiment of the present invention, the electronic device 109 may employ a single threaded environment that becomes partially inoperative when an error and/or exception is encountered. In such a situation, the electronic device 109 may be incapable of retrieving an update package without restarting/rebooting. In an embodiment of the present invention, an exception handler such as the exception handler 135 of
An embodiment of the present invention may employ the error identity computation module 127 to map information about the error to a unique identifier such as, for example, a computed hash value, that may be used to retrieve an update package. The update package is selected for retrieval based upon the likelihood that it will fix the firmware/software bug that caused the error and/or exception to occur. Such an embodiment may also record the occurrence of the error and/or exception for subsequent discovery. After a restart/reboot, an embodiment of the present invention may detect the earlier occurrence of an error and/or exception, access the parameters, identifiers, and error details that were recorded, and retrieve appropriate update package(s). Such an embodiment may use an update agent, such as update agent 125 of
In another embodiment of the present invention, the electronic device 109 may employ a multi-threaded operating system. The electronic device 109 may be, for example, a cell phone equipped with the Symbian operating system, as offered by Symbian, Ltd. In such an environment, the software self-repair toolkit 123 of the electronic device 109 may employ the error/exception handler 135 to gather information and/or symptoms of the error and/or exception. An embodiment of the present invention may employ the error identity computation module 127 to either generate an identifier based upon the gathered information and/or symptoms of the error and/or exception, to identify an appropriate update package. In a related embodiment, the software self-repair toolkit 123 may communicate the symptoms and device characteristics 129 to a remote server, such as server 119 in carrier network 107. Communication of the symptoms and device characteristics to the server 119 may allow the server 119 to determine an appropriate update package for the electronic device 109. In either of these embodiments, the software self-repair toolkit 123 may communicate the gathered information/symptoms or the identifier and associated info to the server 119 using a second, independent thread or process for such communication. The software self-repair toolkit 123 may subsequently retrieve appropriate update package(s) employing one of the loaders available in the loaders module 137. One such loader in loaders module 137 may be, for example, a universal resource locator (URL) loader. Following receipt of the appropriate update package(s), the electronic device 109 may employ the authentication unit 133 to verify and/or authenticate the retrieved update package(s), and employ the update agent 125 to apply the received update package(s) to the associated firmware/software of electronic device 109. The software self-repair toolkit 123 may then initiate a restart/reboot of the electronic device 109 to complete the correction of the errant firmware/software.
In yet another embodiment of the present invention, the electronic device 109 may comprise a JVM environment 141 and the software self-repair toolkit 123 may detect error(s) and/or exception(s) encountered by the JVM environment 141 during the execution of programs. When an error occurs or an exception is encountered by the JVM environment 141, the software self-repair toolkit 123 may employ the error/exception handler 135 to gather information and/or symptoms of the error/exception. The software self-repair toolkit 123 may employ the error identity computation module 127 to generate an identifier based on such gathered information (to be used to retrieve appropriate update package(s)), or to communicate the symptoms and device characteristics to a server, such as the server 119 of carrier network 107. The server 119 may then identify one or more appropriate update package(s), retrieve the identified update package(s), and provide the appropriate update package(s) to the electronic device 109. The update agent 125 of the software self-repair toolkit 123 of electronic device 109 may then be employed to apply any update package(s) received.
In a related embodiment of the present invention, stack information retrieved by the printStackTrace( ) method of the JVM environment 141 may be saved by the error/exception handler 135, along with other information related to the error and/or exception. The error identity computation module 127 may then identify and retrieve a java archive (jar) file as an update package. The retrieved update package may be verified and/or authenticated by the authentication unit 133. The update agent 125 may then update the classpath of the JVM environment 141 to incorporate the retrieved jar file.
In a further embodiment of the present invention, a component architecture platform (CAP) module, such as CAP module 143 of
In one embodiment of the present invention, the manager 147 of the software self-repair toolkit 123 may maintain a catalog of known errors or exceptions, and a list of update packages that may be used to fix the known error or exceptions. When the error/exception handler 135 encounters an error or exception, the error identity computation module 127 may compute a unique identifier (e.g., a computed hash value) for the error or exception based upon details of the error or exception (such as stack trace, error messages, error codes, etc.), and may employ the unique identifier to determine whether an update package containing a bug fix exists. The software self-repair toolkit 123 may retrieve the identified update package(s) employing one of the loaders provided by the loaders module 137. The update agent 125 may then be employed to apply the retrieved update package(s) to the firmware/software of electronic device 109. In one embodiment of the present invention, the update agent 125 may be invoked after a reboot of the electronic device 109. The determination of the existence of an update package based on the unique identifier computed by the error identity computation module 127 may be conducted by the manager 147 in a related embodiment of the present invention, and by the server 119 in yet another embodiment.
In an embodiment of the present invention, when a feature of the electronic device 109 is used for the first time, the manager 147 may determine whether a potential firmware/software bug exists. If potential firmware/software error(s) are identified, the manager 147 may then determine whether an update package containing a fix for the identified firmware/software error(s) exists. If the manager 147 determines that an update package is available to correct the firmware/software bug, the manager 147 may automatically retrieve the identified update package from the server 119. The manager may verify and/or authenticate the update package, and apply the update package to the firmware/software of electronic device 109, using the update agent 125. Following correction of the firmware/software error, the electronic device 109 may invoke the feature for the user. Feedback to the user such as, for example, a progress bar, may be displayed during the retrieval of an update package, and during the application of the update package by the update agent 125.
In one embodiment of the present invention, the electronic device 109 may be a mobile handset that may save a small piece of information (such as, for example, a feature identifier) whenever any feature of an application (e.g., a firmware/software component, a device driver, or any application firmware/software) is invoked. For example, a unique feature or application identifier (e.g., a computed hash value) may be saved, along with additional information available at the time of invocation. The unique feature identifier and the additional information may be stored in memory such as, for example, FLASH memory, or other types of non-volatile storage, just prior to invocation of the feature. This saved information may be referred to as a “feature trace”. If the mobile handset then becomes inoperable due, for example, to an error or an exception encountered while executing any component of the firmware/software of the feature, the mobile handset may identify the feature that caused the error and/or exception, and take corrective actions. This may be particularly effective if the error and/or exception is flagged, and the saved information is processed during a subsequent restart/reboot. Thus, the fact that an error was encountered in a previous invocation may be displayed when a feature is invoked, along with a prompt to the user to either retrieve an update package that fixes the bug, or to ignore the message and invoke the application or feature despite the warning. In a related embodiment, the update of the application, component, etc. may be accompanied by the simultaneous deletion of the saved feature or application identifier and additional information, in order to avoid warnings to the user after the error-causing bug has been fixed by an update activity.
A feature identifier may be tracked to determine the feature that caused an error or exception while running an application and subsequent invocation of the feature may be preceded by the display of an appropriate warning and an opportunity to retrieve and apply an update package that fixes the bug. In a related embodiment, a combination of an application identifier and a feature identifier may be saved to track where in an application an error or exception occurred. Saving other types of identifiers and related data are also contemplated.
In an embodiment of the present invention, a device characteristics module, such as the device characteristics module 129 of
If it is determined that an error or exception has been encountered (block 211), then an error identity computation module, such as error identity computation module 127 of
Next, an attempt may be made to determine if an update package exists at a server (block 215). For example, in one embodiment, a computed or generated unique identifier (e.g., a computed hash value) may be employed to determine if an update package exists at the server. The unique identifier may be generated by and communicated to the server by the electronic device. Other information, such as device characteristics, may also be communicated. In another embodiment, an error code, error message and/or stack trace information may be gathered and sent to the server, to be used for the identification and retrieval of an appropriate update package(s). If it is determined that an update package does not exist for the error or exception encountered (block 215), then an the error is logged (block 223), and regular processing may resume (block 207). In one embodiment of the present invention, the electronic device may communicate to the server a message containing the logged error, using an appropriate communication link. Examples of appropriate links include wireless application protocol (WAP) links, or http links, employing an appropriate format such as, for example, a SyncML message format. Such protocols may be used over wireless networks such as, for example, cellular or personal communications service (PCS) networks.
If it is determined that an update package does exist (block 215), then the update package(s) is/are retrieved and saved in the electronic device (e.g., in FLASH storage, in a file system such as the one provided by the Symbian operating system, etc.) after the authenticity of the package(s) have/has been verified. Later, the retrieved update package(s) may be used by an update agent, such as update agent 125 of
The update agent may also use information about the feature/application maintained by a CAP module, such as CAP module 143. In one embodiment of the present invention, the server may communicate the need to reboot the electronic device once the update process is complete. In such an embodiment, the update agent may be capable of accessing such information and acting on it. At the end of the update process, regular processing of the feature/application resumes (block 207).
If it is determined that a feature/application is being invoked for the first time (block 311), then an error catalog may be accessed to identify firmware/software bugs that have been identified for that feature/application, and for which associated update packages may be available (block 313). In one embodiment of the present invention, the error catalog may be maintained by a server, such as the server 119 of
Next, an attempt is made to determine whether an update package exists (block 315). In one embodiment of the present invention, a unique identifier (e.g., one that is retrieved from the known error catalog maintained in the manager or by the server) may be employed to determine whether an update package exists at the server. In such an embodiment, the unique identifier may be communicated to the server by the electronic device, along with other information (e.g., device characteristics, such as the device characteristics 129 of
If it is determined that an update package does not exist for an error or exception likely to be encountered in the newly invoked feature/application (block 315), then an error is logged, recording the fact that an update package is not available (block 323). Regular processing of the new feature/application then resumes (block 325). In one embodiment of the present invention, the electronic device may communicate to the server a message containing the logged error, using an appropriate communication link. Examples of appropriate links include wireless application protocol (WAP) links, or http links, employing an appropriate format such as, for example, a SyncML message format. Such protocols may be used over wireless networks such as, for example, cellular or personal communications service (PCS) networks.
If it is determined that an update package does exist (block 315), then the update package(s) is/are retrieved and saved in the electronic device (e.g., in FLASH storage, in a file system such as the one provided by the Symbian operating system, etc.) after the authenticity of the package(s) has/have been verified. Later, the retrieved update package(s) may be used by an update agent, such as update agent 125 of
The update agent may also use information about the feature/application maintained by a CAP module, such as CAP module 143. In one embodiment of the present invention, the server may communicate the need to reboot the electronic device once the update process is complete. In such an embodiment, the update agent may be capable of accessing such information and acting on it. At the end of the update process, regular processing of the feature/application resumes (block 307).
In one embodiment of the present invention, the software self-repair toolkit 123 of
While the invention has been described with reference to certain embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the scope of the invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the invention without departing from its scope. Therefore, it is intended that the invention not be limited to the particular embodiment disclosed, but that the invention will include all embodiments falling within the scope of the appended claims.
This application makes reference to, claims priority to, and claims the benefit of U.S. Provisional Patent Application No. 60/428,071, entitled “Software Self-Repair Toolkit For Electronic Devices”, filed Nov. 21, 2002, the complete subject matter of which is hereby incorporated herein by reference, in its entirety. In addition, this application makes reference to U.S. Provisional Patent Application Ser. No. 60/249,606, filed Nov. 17, 2000, PCT Application Ser. No. PCT/US01/44034, entitled “System And Method For Updating And Distributing Information”, filed Nov. 17, 2001, U.S. patent application Ser. No. 10/311,462, entitled “System And Method For Updating And Distributing Information”, filed May 13, 2003, and U.S. Provisional Patent Application Ser. No. 60/410,071, entitled “Processing System With Component Architecture Platform Support”, filed Sep. 12, 2002, the complete subject matter of each of which is hereby incorporated herein by reference in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
5261055 | Moran et al. | Nov 1993 | A |
5442771 | Filepp et al. | Aug 1995 | A |
5479637 | Lisimaque et al. | Dec 1995 | A |
5579522 | Christeson et al. | Nov 1996 | A |
5596738 | Pope | Jan 1997 | A |
5598534 | Haas | Jan 1997 | A |
5608910 | Shimakura | Mar 1997 | A |
5623604 | Russell et al. | Apr 1997 | A |
5666293 | Metz et al. | Sep 1997 | A |
5704031 | Mikami et al. | Dec 1997 | A |
5752039 | Tanimura | May 1998 | A |
5778440 | Yiu et al. | Jul 1998 | A |
5790974 | Tognazzini | Aug 1998 | A |
5826012 | Lettvin | Oct 1998 | A |
5878256 | Bealkowski et al. | Mar 1999 | A |
5960445 | Tamori et al. | Sep 1999 | A |
6009497 | Wells et al. | Dec 1999 | A |
6038636 | Brown, III et al. | Mar 2000 | A |
6064814 | Capriles et al. | May 2000 | A |
6073206 | Piwonka et al. | Jun 2000 | A |
6073214 | Fawcett | Jun 2000 | A |
6088759 | Hasbun et al. | Jul 2000 | A |
6105063 | Hayes, Jr. | Aug 2000 | A |
6112024 | Almond et al. | Aug 2000 | A |
6112197 | Chatterjee et al. | Aug 2000 | A |
6126327 | Bi et al. | Oct 2000 | A |
6128695 | Estakhri et al. | Oct 2000 | A |
6157559 | Yoo | Dec 2000 | A |
6163274 | Lindgren | Dec 2000 | A |
6178452 | Miyamoto | Jan 2001 | B1 |
6198946 | Shin et al. | Mar 2001 | B1 |
6279153 | Bi et al. | Aug 2001 | B1 |
6311322 | Ikeda et al. | Oct 2001 | B1 |
6438585 | Mousseau et al. | Aug 2002 | B1 |
6530036 | Frey, Jr. | Mar 2003 | B1 |
20010029178 | Criss et al. | Oct 2001 | A1 |
20010047363 | Peng | Nov 2001 | A1 |
20010048728 | Peng | Dec 2001 | A1 |
20020053044 | Gold et al. | May 2002 | A1 |
20020078209 | Peng | Jun 2002 | A1 |
20020116261 | Moskowitz et al. | Aug 2002 | A1 |
20020124209 | Faust et al. | Sep 2002 | A1 |
20020131404 | Mehta et al. | Sep 2002 | A1 |
20020152005 | Bagnordi | Oct 2002 | A1 |
20020156863 | Peng | Oct 2002 | A1 |
20020157090 | Anton, Jr. | Oct 2002 | A1 |
20030005362 | Miller et al. | Jan 2003 | A1 |
20030033599 | Rajaram et al. | Feb 2003 | A1 |
20030037075 | Hannigan et al. | Feb 2003 | A1 |
20030061384 | Nakatani | Mar 2003 | A1 |
20030084283 | Pixton | May 2003 | A1 |
Number | Date | Country |
---|---|---|
2339923 | Mar 2000 | CA |
8202626 | Aug 1996 | JP |
2002-0034228 | May 2000 | KR |
2001-0100328 | Nov 2001 | KR |
Number | Date | Country | |
---|---|---|---|
20040103412 A1 | May 2004 | US |
Number | Date | Country | |
---|---|---|---|
60428071 | Nov 2002 | US |