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.
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.
Abstract:
An embodiment of the present invention provides a port setting method, which includes initiating a first detection message and a second detection message at the same time through a port, where the first detection message is used for detecting a first network server, and the second detection message is used for detecting a second network server, if at least one of a first response message to the first detection message and a second response message to the second detection message is received within a predetermined time, setting the working mode of the port to a wide area network WAN mode, otherwise, setting the working mode of the port to a local area network LAN mode.