Method, apparatus, and computer-readable storage medium for upgrading a ZigBee device
First Claim
Patent Images
1. A method for upgrading a ZigBee device, wherein the method is performed by a gateway device including a WiFi module and a ZigBee module, the method comprises:
- acquiring a current version of firmware of the ZigBee device;
querying a server for a latest version of the firmware of the ZigBee device;
judging whether the current version of the firmware of the ZigBee device is the same as the latest version of the firmware;
determining that the firmware of the ZigBee device needs to be upgraded, if the current version of the firmware of the ZigBee device is different from the latest version of the firmware;
downloading, when the firmware of the ZigBee device needs to be upgraded, the latest version of the firmware from the server to the gateway device via the WiFi module;
pushing the latest version of the firmware to the ZigBee device via the ZigBee module; and
issuing a firmware upgrade instruction to the ZigBee device after the latest version of the firmware is pushed to the ZigBee device successfully and only after the lasted version is stored in a backup storage of a microcontroller unit (MCU) of the ZigBee device, to trigger the firmware of the ZigBee device to be upgraded based on the latest version of the firmware,wherein the querying the server for the latest version of firmware of the ZigBee device comprises;
sending, to the server, a query command for querying the latest version of the firmware based on a set sending time; and
acquiring a query result returned from the server, the query result corresponding to the query command and including the latest version of the firmware, andwherein the query result further includes a download address corresponding to the latest version of the firmware, and the downloading of the latest version of the firmware from the server comprises;
downloading the latest version of the firmware from the server based on the download address.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for upgrading a ZigBee device, includes: downloading, when firmware of the ZigBee device needs to be upgraded, a latest version of the firmware from a server; pushing the latest version of the firmware to the ZigBee device; and issuing a firmware upgrade instruction to the ZigBee device after the latest version of the firmware is pushed to the ZigBee device successfully, to trigger the firmware of the ZigBee device to be upgraded based on the latest version of the firmware.
-
Citations
5 Claims
-
1. A method for upgrading a ZigBee device, wherein the method is performed by a gateway device including a WiFi module and a ZigBee module, the method comprises:
-
acquiring a current version of firmware of the ZigBee device; querying a server for a latest version of the firmware of the ZigBee device; judging whether the current version of the firmware of the ZigBee device is the same as the latest version of the firmware; determining that the firmware of the ZigBee device needs to be upgraded, if the current version of the firmware of the ZigBee device is different from the latest version of the firmware; downloading, when the firmware of the ZigBee device needs to be upgraded, the latest version of the firmware from the server to the gateway device via the WiFi module; pushing the latest version of the firmware to the ZigBee device via the ZigBee module; and issuing a firmware upgrade instruction to the ZigBee device after the latest version of the firmware is pushed to the ZigBee device successfully and only after the lasted version is stored in a backup storage of a microcontroller unit (MCU) of the ZigBee device, to trigger the firmware of the ZigBee device to be upgraded based on the latest version of the firmware, wherein the querying the server for the latest version of firmware of the ZigBee device comprises; sending, to the server, a query command for querying the latest version of the firmware based on a set sending time; and acquiring a query result returned from the server, the query result corresponding to the query command and including the latest version of the firmware, and wherein the query result further includes a download address corresponding to the latest version of the firmware, and the downloading of the latest version of the firmware from the server comprises; downloading the latest version of the firmware from the server based on the download address. - View Dependent Claims (2)
-
-
3. A gateway device for upgrading a ZigBee device, comprising:
-
a WiFi module; a ZigBee module; a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to; acquire a current version of firmware of the ZigBee device; query a server for the latest version of the firmware of the ZigBee device; judge whether the current version of the firmware of the ZigBee device is the same as the latest version of the firmware; determine that the firmware of the ZigBee device needs to be upgraded, if the current version of the firmware of the ZigBee device is different from the latest version of the firmware; download, when the firmware of the ZigBee device needs to be upgraded, the latest version of the firmware from the server to the gateway device via the WiFi module; push the latest version of the firmware to the ZigBee device via the ZigBee module; and issue a firmware upgrade instruction to the ZigBee device after the latest version of the firmware is pushed to the ZigBee device successfully and only after the lasted version is stored in a backup storage of a microcontroller unit (MCU) of the ZigBee device, to trigger the firmware of the ZigBee device to be upgraded based on the latest version of the firmware, wherein the processor is further configured to; send, to the server, a query command for querying the latest version of the firmware based on a set sending time; and acquire a query result returned from the server, the query result corresponding to the query command and including the latest version of the firmware, wherein the query result further includes a download address corresponding to the latest version of the firmware, and the processor is further configured to; download the latest version of the firmware from the server based on the download address. - View Dependent Claims (4)
-
-
5. A non-transitory computer-readable storage medium having stored thereon instructions that, when executed by a processor of a gateway device that includes a WiFi module and a ZigBee module, cause the gateway device to perform a method for upgrading a ZigBee device, the method comprising:
-
acquiring a current version of firmware of the ZigBee device; querying a server for a latest version of the firmware of the ZigBee device; judging whether the current version of the firmware of the ZigBee device is the same as the latest version of the firmware; determining that the firmware of the ZigBee device needs to be upgraded, if the current version of the firmware of the ZigBee device is different from the latest version of the firmware; downloading, when the firmware of the ZigBee device needs to be upgraded, the latest version of the firmware from the server to the gateway device via the WiFi module; pushing the latest version of the firmware to the ZigBee device via the ZigBee module; and issuing a firmware upgrade instruction to the ZigBee device after the latest version of the firmware is pushed to the ZigBee device successfully and only after the lasted version is stored in a backup storage of a microcontroller unit of the ZigBee device, to trigger the firmware of the ZigBee device to be upgraded based on the latest version of the firmware, wherein the querying the server for the latest version of firmware of the ZigBee device comprises; sending, to the server, a query command for querying the latest version of the firmware based on a set sending time; and acquiring a query result returned from the server, the query result corresponding to the query command and including the latest version of the firmware, and wherein the query result further includes a download address corresponding to the latest version of the firmware, and the downloading of the latest version of the firmware from the server comprises; downloading the latest version of the firmware from the server based on the download address.
-
Specification