Search

CN-121984853-A - Method, device, medium and equipment for reporting download progress of equipment upgrading firmware package

CN121984853ACN 121984853 ACN121984853 ACN 121984853ACN-121984853-A

Abstract

The application discloses a method, a device, a medium and equipment for reporting a downloading progress of an equipment upgrading firmware package, and relates to the technical field of intelligent home/smart families. When the equipment receives an equipment upgrading instruction and the current running state of the equipment meets upgrading execution conditions, a preset downloading channel analyzes a firmware package uniform resource locator in the equipment upgrading instruction, obtains the total data size of the firmware package from a resource server based on the firmware package uniform resource locator, determines the downloading progress percentage according to the downloaded data size and the total data size, generates a standardized status reporting structure body according to the downloading progress percentage, the equipment identifier and a predefined status code, and the predefined status code is used for identifying the current upgrading stage of the equipment and transmitting the status reporting structure body to a platform server according to a preset interval.

Inventors

  • ZHANG SHU

Assignees

  • 海尔优家智能科技(北京)有限公司

Dates

Publication Date
20260505
Application Date
20251230

Claims (10)

  1. 1. The method is characterized by being applied to a downloading progress reporting system, wherein the downloading progress reporting system comprises a device end, a preset downloading channel, a resource server and a platform server, and the method comprises the following steps: When the equipment receives an equipment upgrading instruction and the current running state of the equipment meets upgrading execution conditions, the preset downloading channel analyzes a firmware package uniform resource locator in the equipment upgrading instruction, and based on the firmware package uniform resource locator, the total data size of the firmware package is obtained from the resource server; The preset downloading channel determines the downloading progress percentage according to the downloaded data size and the total data size, wherein the downloaded data size is used for indicating that the downloaded data amount is obtained in real time in the downloading process of the firmware package; The preset downloading channel generates a standardized status reporting structure according to the downloading progress percentage, the equipment identifier and a predefined status code, wherein the predefined status code is used for identifying the current upgrading stage of the equipment; And the preset downloading channel sends the state reporting structure body to the platform server according to preset intervals.
  2. 2. The method of claim 1, wherein the preset download channel is an SDK download channel, the preset download channel parsing a firmware package uniform resource locator in the device upgrade instruction, the obtaining the total data size of the firmware package from the resource server based on the firmware package uniform resource locator, comprising: the equipment end sends a firmware package downloading instruction to the SDK downloading channel; The SDK downloading channel analyzes the firmware package uniform resource locator and sends a firmware package downloading request to the resource server; and the SDK downloading channel receives the total data size of the firmware package returned by the resource server.
  3. 3. The method of claim 2, wherein the sending, by the preset download channel, the status report structure to the platform server according to a preset interval, includes: The SDK sends the status report structure body to the equipment end according to a preset interval; And the equipment end forwards the state reporting structure body to a platform service end.
  4. 4. The method of claim 1, wherein the preset download channel is a device download channel, the preset download channel parses a firmware package uniform resource locator in the device upgrade instruction, and based on the firmware package uniform resource locator, obtains a total data size of the firmware package from the resource server, including: The equipment end sends a firmware package downloading instruction to the equipment downloading channel; The device download channel analyzes the firmware package uniform resource locator and sends a firmware package download request to a resource server; and the equipment downloading channel receives the total data size of the firmware package returned by the resource server.
  5. 5. The method of claim 4, wherein the sending the status report structure to the platform server by the preset download channel according to a preset interval includes: the equipment downloading channel sends the state reporting structure body to the equipment end according to a preset interval; And the equipment end forwards the state reporting structure body to a platform service end.
  6. 6. The method of any of claims 1-5, wherein the predefined status code includes an initial upgrade status code, an upgrade in progress status code, and an upgrade suspension status code, wherein the predefined status code employs an initial upgrade status code when the status reporting structure is first generated.
  7. 7. The method according to any one of claims 1-5, wherein the status reporting structure further includes an upgrade instruction identifier, a firmware package version number, and a current operating status parameter of the device, where the current operating status parameter of the device includes at least device power information, network connection status information, and storage space remaining capacity information.
  8. 8. The utility model provides a device upgrades firmware package download progress reporting device which characterized in that is applied to download progress reporting system, download progress reporting system includes equipment end, presets download channel, resource service end and platform service end, includes: The device comprises an acquisition module, a resource server and a preset download channel, wherein the acquisition module is used for analyzing a firmware package uniform resource locator in the device upgrade instruction when the device receives the device upgrade instruction and the current running state of the device meets upgrade execution conditions, and acquiring the total data size of the firmware package from the resource server based on the firmware package uniform resource locator; The determining module is used for determining the downloading progress percentage according to the size of the downloaded data and the total data size by the preset downloading channel, wherein the size of the downloaded data is used for indicating that the downloaded data volume is obtained in real time in the downloading process of the firmware package; The generation module is used for generating a standardized status reporting structure body according to the download progress percentage, the equipment identifier and a predefined status code by the preset download channel, wherein the predefined status code is used for identifying the current upgrading stage of the equipment; And the sending module is used for sending the state reporting structure body to the platform server according to a preset interval by the preset downloading channel.
  9. 9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 7.
  10. 10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of claims 1 to 7 by means of the computer program.

Description

Method, device, medium and equipment for reporting download progress of equipment upgrading firmware package Technical Field The application relates to the technical field of intelligent home/intelligent families, in particular to a method, a device, a medium and equipment for reporting the downloading progress of an equipment upgrading firmware package. Background In the background of large-scale popularization of the Internet of things equipment, the remote firmware upgrading is a key technical means for realizing equipment function iteration, safety patch updating and performance optimization, and in millions and tens of millions of equipment scenes, a platform needs to master the upgrading state of a single equipment in real time, so that the monitoring, traceability and failure risk controllability of an upgrading process are ensured. In the prior art, a device side interacts with a platform through a device application program or a software development kit, the platform issues an upgrade instruction, and the device side downloads a firmware package according to the instruction and reports the progress in real time. The platform needs to integrate the reported data of all the devices to monitor the upgrade status, identify the abnormal devices and trigger a retry mechanism. However, the firmware download mode based on the software development kit and the autonomous download mode of the device application program do not form a unified standard on technical specifications such as progress collection logic, data reporting format, and the like. The discrepancy directly leads to inconsistency of the device downloading progress information received by the platform through the two channels, and seriously affects the management and control efficiency and reliability of the device upgrading task. Disclosure of Invention The application provides a method, a device, a medium and equipment for reporting the downloading progress of an equipment upgrading firmware package, which are used for solving the problem that the management and control efficiency and reliability of equipment upgrading tasks are affected due to a firmware downloading mode based on a software development kit and an autonomous downloading mode of an equipment application program. In a first aspect, the present application provides a method for reporting a download progress of an equipment upgrade firmware package, which is applied to a download progress reporting system, where the download progress reporting system includes an equipment end, a preset download channel, a resource server and a platform server, and includes: When the equipment receives an equipment upgrading instruction and the current running state of the equipment meets upgrading execution conditions, the preset downloading channel analyzes a firmware package uniform resource locator in the equipment upgrading instruction, and based on the firmware package uniform resource locator, the total data size of the firmware package is obtained from the resource server; The preset downloading channel determines the downloading progress percentage according to the downloaded data size and the total data size, wherein the downloaded data size is used for indicating that the downloaded data amount is obtained in real time in the downloading process of the firmware package; The preset downloading channel generates a standardized status reporting structure according to the downloading progress percentage, the equipment identifier and a predefined status code, wherein the predefined status code is used for identifying the current upgrading stage of the equipment; And the preset downloading channel sends the state reporting structure body to the platform server according to preset intervals. In one possible implementation manner, the preset download channel is an SDK download channel, the preset download channel parses a firmware package uniform resource locator in the device upgrade instruction, and obtains, from the resource server, a total data size of the firmware package based on the firmware package uniform resource locator, including: the equipment end sends a firmware package downloading instruction to the SDK downloading channel; The SDK downloading channel analyzes the firmware package uniform resource locator and sends a firmware package downloading request to the resource server; and the SDK downloading channel receives the total data size of the firmware package returned by the resource server. In a possible implementation manner, the sending, by the preset download channel, the status report structure body to the platform server according to a preset interval includes: The SDK sends the status report structure body to the equipment end according to a preset interval; And the equipment end forwards the state reporting structure body to a platform service end. In one possible implementation manner, the preset download channel is a device download channel, the preset download channel