Method, apparatus, and communication device for updating firmware
First Claim
1. A method for updating firmware, applied to a communication device having a secure data (SD) interface through which the communication device having the SD interface performs data communication with a mobile terminal, wherein the communication device having the SD interface comprises a secure data memory and a Flash memory, wherein the secure data memory stores a command swap file, wherein the secure data memory is a memory accessed by the mobile terminal through the SD interface, wherein the Flash memory is a memory storing the firmware in the communication device having the SD interface, and wherein the method comprises:
- obtaining an update start command from the command swap file when the mobile terminal determines that a version number of the firmware in the communication device having the SD interface is inconsistent with a version number of the firmware stored on a server, wherein the update start command is written by the mobile terminal to the command swap file;
reading, from the secure data memory, a firmware update file storing update data after the update start command is obtained, wherein the firmware update file comprises a binary file that includes a file information header, firmware data, and check information, wherein the firmware update file is downloaded by the mobile terminal and written by the mobile terminal to the secure data memory, and wherein the update data comprises program codes for updating the firmware of the communication device having the SD interface; and
writing the firmware update file to the Flash memory.
3 Assignments
0 Petitions
Accused Products
Abstract
A method, an apparatus, a device, and a mobile terminal for updating firmware. The method for updating firmware includes obtaining an update start command; after the update start command is obtained, reading a firmware update file from a secure data memory; and writing the firmware update file to a Flash memory. When a Secure Digital (SD) interface does not support a Secure Digital Input and Output (SDIO) function, a mobile terminal and a communication device having an SD interface can only read data in the secure data memory in units of files. In this application, special files are defined in the secure data memory to store an update start command and update data in different files. Therefore, the communication device having the SD interface can obtain the update start command from a command swap file, and obtain a firmware update file in a firmware update process to perform an update.
17 Citations
20 Claims
-
1. A method for updating firmware, applied to a communication device having a secure data (SD) interface through which the communication device having the SD interface performs data communication with a mobile terminal, wherein the communication device having the SD interface comprises a secure data memory and a Flash memory, wherein the secure data memory stores a command swap file, wherein the secure data memory is a memory accessed by the mobile terminal through the SD interface, wherein the Flash memory is a memory storing the firmware in the communication device having the SD interface, and wherein the method comprises:
-
obtaining an update start command from the command swap file when the mobile terminal determines that a version number of the firmware in the communication device having the SD interface is inconsistent with a version number of the firmware stored on a server, wherein the update start command is written by the mobile terminal to the command swap file; reading, from the secure data memory, a firmware update file storing update data after the update start command is obtained, wherein the firmware update file comprises a binary file that includes a file information header, firmware data, and check information, wherein the firmware update file is downloaded by the mobile terminal and written by the mobile terminal to the secure data memory, and wherein the update data comprises program codes for updating the firmware of the communication device having the SD interface; and writing the firmware update file to the Flash memory. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method for updating firmware, applied to a mobile terminal which performs data communication through a secure digital interface with a communication device having a secure data LSD) interface, wherein the communication device having the SD interface comprises a secure data memory and a Flash memory, wherein the secure data memory stores a command swap file, wherein the secure data memory is a memory accessed by the mobile terminal through the SD interface, wherein the Flash memory is a memory storing the firmware in the communication device having the SD interface, and wherein the method comprises:
-
downloading a firmware update file storing update data, wherein the firmware update file comprises a binary file that includes a file information header, firmware data, and check information; writing the firmware update file to the secure data memory; and writing an update start command in the mobile terminal to the command swap file such that the communication device having the SD interface obtains the update start command to perform firmware update after the firmware update file is written to the secure data memory completely, wherein the update start command is obtained when the mobile terminal determines that a version number of the firmware in the communication device having the SD interface is inconsistent with a version number of the firmware stored on a server. - View Dependent Claims (11, 12, 13)
-
-
14. An apparatus for updating firmware, applied to a communication device having a secure data (SD) interface through which the communication device having the SD interface performs data communication with a mobile terminal, wherein the communication device having the SD interface comprises a secure data memory and a Flash memory, wherein the secure data memory stores a command swap file, wherein the secure data memory is a memory accessed by the mobile terminal through the SD interface, wherein the Flash memory is a memory storing the firmware in the communication device having the SD interface, and wherein the apparatus comprises:
-
a memory; and a computer processor coupled to the memory and configured to; obtain an update start command from the command swap file when the mobile terminal determines that a version number of the firmware in the communication device having the SD interface is inconsistent with a version number of the firmware stored on a server, wherein the update start command is written by the mobile terminal to the command swap file; read, from the secure data memory, a firmware update file storing update data after the update start command is obtained, wherein the firmware update file comprises a binary file that includes a file information header, firmware data, and check information, wherein the firmware update file is downloaded by the mobile terminal and written by the mobile terminal to the secure data memory, and wherein the update data comprises program codes for updating the firmware of the communication device having the SD interface; and write the firmware update file to the Flash memory. - View Dependent Claims (15, 16, 17, 18, 19, 20)
-
Specification