CN106325929B - Firmware upgrading method, firmware upgrading device, refrigerator and server - Google Patents

Firmware upgrading method, firmware upgrading device, refrigerator and server Download PDF

Info

Publication number
CN106325929B
CN106325929B CN201610705503.8A CN201610705503A CN106325929B CN 106325929 B CN106325929 B CN 106325929B CN 201610705503 A CN201610705503 A CN 201610705503A CN 106325929 B CN106325929 B CN 106325929B
Authority
CN
China
Prior art keywords
downloading
firmware
download
equipment
upgrading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610705503.8A
Other languages
Chinese (zh)
Other versions
CN106325929A (en
Inventor
郭浒生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Midea Intelligent Technologies Co Ltd
Original Assignee
Hefei Midea Intelligent Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Midea Intelligent Technologies Co Ltd filed Critical Hefei Midea Intelligent Technologies Co Ltd
Priority to CN201610705503.8A priority Critical patent/CN106325929B/en
Publication of CN106325929A publication Critical patent/CN106325929A/en
Application granted granted Critical
Publication of CN106325929B publication Critical patent/CN106325929B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a firmware upgrading method, a firmware upgrading device, a refrigerator and a server side, wherein the firmware upgrading method comprises the following steps: the server side pushes a firmware upgrading message to the equipment according to the new firmware version; the equipment downloads the new firmware version step by step according to the pushing firmware upgrading message and the use state of the equipment by the user; verifying the new version firmware and upgrading the device firmware. According to the invention, when the firmware is upgraded, the firmware upgrade does not occupy resources and bandwidth with the user, so that the user experience of the client is improved; through proper dormancy, the pressure of the server is relieved, the quantity of concurrent downloads is increased, and the pressure of the concurrent downloads of the server is relieved. The invention can intelligently adjust the downloading step length or duration to download data in the optimal state.

Description

Firmware upgrading method, firmware upgrading device, refrigerator and server
Technical Field
The invention relates to the technical field of communication, in particular to a firmware upgrading method, a firmware upgrading device, a refrigerator and a server.
Background
This section is intended to introduce the reader to various aspects of art that may be related to various aspects of the present invention, and is believed to provide the reader with useful background information to facilitate a better understanding of the various aspects of the present invention. Accordingly, it should be understood that the description in this section is for purposes of illustration and is not an admission of prior art.
Firmware (Firmware) is hardware with software function, which is typically EROM or EPROM (electrically erasable programmable read only memory) etc. with software in the early days, usually the program stored in the hardware can not be read or modified directly by the user, and it is difficult or impossible for the end user to change the Firmware, and it is not necessary to upgrade the Firmware in general, even if a serious error (Bug) is found in the Firmware, the EPROM on the original machine must be replaced by professional personnel with the EPROM with the written program.
In order to make it possible to update software of a device after shipment so that the device obtains enhanced functions, or to solve Bug and compatibility problems of some devices by upgrading firmware, Flash is widely used as a medium for storing firmware control programs (abbreviated as firmware) in devices and systems such as routers, firewalls, industrial controls, and the like.
When the equipment needs to be updated and upgraded, in order to prevent abnormal termination in the updating process, i.e. to prevent the equipment from failing to work normally due to abnormal termination, even to prevent the equipment from being sent to a factory to rewrite the firmware, the reliability of the equipment in the upgrading process must be ensured. The general device firmware upgrade scheme is as follows: prompting a user to download the firmware, wherein the size of the firmware is generally 500M-600M, and the user needs to wait for the completion of downloading and then perform other operations. The first scheme has the following disadvantages: the user needs to wait for a long time, and cannot do other things in the waiting process, so that the user experience is poor. Scheme II: and after the client detects the new version, the client starts downloading in the background, so that other operations of the user are not influenced, and the user is prompted to upgrade the system firmware after the downloading is finished. The second scheme has the following defects: the client terminal downloading process occupies the system resource and bandwidth of the user, and in addition, if a plurality of client terminals download simultaneously, huge pressure is brought to the server terminal.
Disclosure of Invention
The technical problem to be solved is how to upgrade the firmware on the premise of not influencing the use of equipment by a user.
Aiming at the defects in the prior art, the invention provides a firmware upgrading method, a firmware upgrading device, a refrigerator and a server, which can download in steps, do not influence the use of a user, and reduce the pressure of the server.
In a first aspect, the present invention provides a firmware upgrading method, including:
the server side pushes a firmware upgrading message to the equipment according to the new firmware version;
the equipment downloads the new firmware version step by step according to the pushing firmware upgrading message and the use state of the equipment by the user;
verifying the new version firmware and upgrading the device firmware.
Optionally, the pushing, by the server, the firmware upgrade message to the device according to the new firmware version includes:
inquiring an equipment list;
detecting whether the firmware information of the equipment in the equipment list is the latest firmware version;
adding the equipment which is not the latest firmware version to a list of equipment to be upgraded;
and the server side pushes the firmware upgrading message to the equipment in the equipment list to be upgraded.
Optionally, the firmware upgrade message includes:
a download authorization code, a file fingerprint, and a file download address.
Optionally, the step-by-step downloading, by the device, the new version firmware according to the push firmware upgrade message and the use state of the device by the user includes:
judging the use state of the equipment;
if the equipment is not used, judging whether the current downloading environment meets the downloading condition;
generating download configuration parameters according to the satisfied download conditions;
and downloading the firmware file according to the first step downloading mode and the second step downloading mode according to the downloading configuration parameters until the new version firmware is completely downloaded.
Optionally, the determining whether the current downloading environment meets the downloading condition includes:
judging whether the downloading is the initial downloading or not;
judging whether the last downloading is interrupted or not;
and judging whether the last downloading step length is smaller than a first preset value or not.
Optionally, the generating the download configuration parameters according to the satisfied download condition includes:
if the downloading is the initial downloading, the downloading configuration parameters are set to be the second preset value of the downloading step length, and the duration time is the first preset time;
if the downloading is not the initial downloading, further judging whether the last downloading is interrupted; if the interruption is caused, the downloading configuration parameter is set to be the second preset value of the downloading step length, and the duration time is the first preset time; if not, judging whether the last downloading step length is smaller than a first preset value;
if the downloading configuration parameter is smaller than the first preset value, setting the downloading configuration parameter as the last downloading step length plus a third preset value, wherein the duration is second preset time;
and if the download configuration parameter is not less than the first preset value, setting the download configuration parameter to be a fourth preset value, and setting the duration to be a third preset time.
Optionally, the downloading the firmware file includes:
generating a downloading request according to the downloading configuration parameters and sending the downloading request to a server;
the server side verifies the downloading request and executes downloading;
judging the size of the downloaded file;
and after downloading the file with the preset size, sleeping, returning to the step of judging the use state of the equipment for continuous downloading at preset time, and repeating the steps until the new firmware is completely downloaded.
Optionally, the verifying the download request and executing the download by the server includes:
verifying whether the download authorization code is valid;
if the authorization code is invalid, feeding back an illegal user message to the user terminal;
if the authorization code is valid, judging whether the downloading step length and the downloading position are valid;
if the downloading step length and the downloading position are valid, the terminal continues to transmit the downloading; otherwise, the re-downloading message is fed back to the user terminal.
Optionally, the step of executing downloading further includes a step of judging a user usage status and a step of judging that the hibernation recording is interrupted.
Optionally, verifying the new version firmware and upgrading the device firmware comprises:
verifying the fingerprint and signature of the new version firmware;
if the verification fails, the new version firmware is downloaded again;
if the verification is successful, prompting the user to update the new version firmware;
backing up user data;
executing upgrading of the new version firmware;
and restoring the user data.
In a second aspect, the present invention provides a firmware upgrading apparatus, including:
the firmware downloading unit is used for downloading the new version firmware step by step according to the firmware upgrading message and the using state of the equipment by the user; the firmware upgrading message is pushed to the equipment by the server according to the new version firmware;
and the firmware upgrading unit is used for verifying the new firmware and upgrading the equipment firmware.
Optionally, the firmware downloading unit further comprises:
the download environment state detection unit is used for judging the use state of the equipment; if the equipment is not used, judging whether the current downloading environment meets the downloading condition;
the download parameter configuration unit is used for generating download configuration parameters according to the satisfied download conditions;
and the download execution unit is used for downloading the firmware file according to the download configuration parameters in a first step download mode and a second step download mode until the new version firmware is downloaded.
Optionally, the determining whether the current downloading environment meets the downloading condition includes:
judging whether the downloading is the initial downloading or not;
judging whether the last downloading is interrupted or not;
and judging whether the last downloading step length is smaller than a first preset value or not.
Optionally, the generating the download configuration parameters according to the satisfied download condition includes:
if the downloading is the initial downloading, the downloading configuration parameters are set to be the second preset value of the downloading step length, and the duration time is the first preset time;
if the downloading is not the initial downloading, further judging whether the last downloading is interrupted; if the interruption is caused, the downloading configuration parameter is set to be the second preset value of the downloading step length, and the duration time is the first preset time; if not, judging whether the last downloading step length is smaller than a first preset value;
if the downloading configuration parameter is smaller than the first preset value, setting the downloading configuration parameter as the last downloading step length plus a third preset value, wherein the duration is second preset time;
and if the download configuration parameter is not less than the first preset value, setting the download configuration parameter to be a fourth preset value, and setting the duration to be a third preset time.
Optionally, the download execution unit further includes:
a download request sending unit, configured to generate a download request according to the download configuration parameter and send the download request to the server;
the verification unit is used for executing downloading according to the verification result of the server side on the downloading request;
a download file judging unit for judging the size of the download file;
and the dormancy unit is used for dormancy after downloading the file with the preset size, returning to the step of judging the use state of the equipment for continuous downloading within preset dormancy time, and repeating the steps until the new firmware is completely downloaded.
Optionally, the firmware upgrade unit includes:
a firmware verification unit for verifying the fingerprint and signature of the new version firmware; if the verification fails, the new version firmware is downloaded again; if the verification is successful, prompting the user to update the new version firmware;
the data backup unit is used for backing up user data before updating the equipment firmware;
the firmware upgrading execution unit is used for executing upgrading of the new firmware version;
and the data recovery unit is used for recovering the user data after updating the equipment firmware.
In a third aspect, the invention provides a refrigerator comprising the firmware upgrading device.
In a fourth aspect, the present invention provides a firmware upgrade server, which is characterized in that the firmware upgrade server includes:
the device update detection unit is used for inquiring the device list and detecting whether the firmware information of the devices in the device list is the latest firmware version;
the device list updating unit is used for adding the devices which are not the latest firmware versions to the device list to be upgraded;
and the upgrading pushing unit is used for pushing the firmware upgrading message to the equipment in the equipment list to be upgraded.
Optionally, the firmware upgrade server further includes a download request verification unit:
the download request verifying unit is used for verifying whether the download authorization code is valid; if the authorization code is invalid, feeding back an illegal user message to the user terminal; if the authorization code is valid, judging whether the downloading step length and the downloading position are valid; if the downloading step length and the downloading position are valid, the terminal continues to transmit the downloading; otherwise, the re-downloading message is fed back to the user terminal.
According to the technical scheme, compared with the prior art, the firmware upgrading method, the firmware upgrading device, the refrigerator and the server do not occupy resources and bandwidth with a user during firmware upgrading, and user experience of a client is improved; through proper dormancy, the pressure of the server is relieved, the quantity of concurrent downloads is increased, and the pressure of the concurrent downloads of the server is relieved. The invention can intelligently adjust the downloading step length or duration to download data in the optimal state.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description will be given below of the drawings required for the description of the embodiments or the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart illustrating a firmware upgrade method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating pushing a firmware upgrade message to a device according to an embodiment of the present invention;
FIG. 3 is a detailed flow diagram illustrating pushing of a firmware upgrade message to a device according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a step-by-step downloading of a new firmware version according to an embodiment of the present invention;
FIG. 5 is a detailed flowchart of a step-by-step downloading new firmware in an embodiment of the present invention;
FIG. 6 is a flowchart illustrating a process of downloading a firmware file according to an embodiment of the present invention;
FIG. 7 is a flow chart illustrating a process of verifying a new firmware version and upgrading a device firmware according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a firmware upgrade apparatus according to an embodiment of the present invention;
FIG. 9 is a diagram illustrating a firmware downloading unit of the firmware upgrading apparatus according to an embodiment of the present invention;
FIG. 10 is a diagram illustrating a structure of a download execution unit in the firmware upgrade apparatus according to an embodiment of the present invention;
FIG. 11 is a diagram illustrating a firmware upgrading unit of a firmware upgrading apparatus according to an embodiment of the present invention;
FIG. 12 is a diagram illustrating a firmware upgrade server architecture according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, the present invention provides a firmware upgrading method, including: the server side pushes a firmware upgrading message to the equipment according to the new firmware version; the equipment downloads the new firmware in steps according to the pushing firmware upgrading message and the using state of the equipment by the user; verifying the new version firmware and upgrading the device firmware. The following provides a detailed description of the present invention and the firmware upgrade method provided.
In the present invention, as shown in fig. 2 and fig. 3, the step of pushing, by the server, the firmware upgrade message to the device according to the new firmware version includes: inquiring an equipment list; detecting whether the firmware information of the equipment in the equipment list is the latest firmware version; adding the equipment which is not the latest firmware version to a list of equipment to be upgraded; and the server side pushes the firmware upgrading message to the equipment in the equipment list to be upgraded. The firmware upgrade message includes: a download authorization code (code), a file fingerprint, and a file download address. After receiving the firmware upgrading message, the device requests the firmware upgrading server to download the firmware, and after the server successfully verifies the firmware, the device starts to download the firmware.
As shown in fig. 4 and 5, the step-by-step downloading, by the device, the new firmware according to the push firmware upgrade message and the use state of the device by the user includes: judging the use state of the equipment; if the equipment is not used, judging whether the current downloading environment meets the downloading condition; generating download configuration parameters according to the satisfied download conditions; and downloading the firmware file according to the first step downloading mode and the second step downloading mode according to the downloading configuration parameters until the new version firmware is completely downloaded.
Specifically, as shown in fig. 5, the device side first checks whether a user is operating the device, and if the user is operating the device, starts a downloading program after waiting for the user to operate the device; and when the device side detects that the device is in an idle state, starting a downloading program.
As shown in fig. 5, after the downloading program is started, the condition that whether the current downloading environment meets the downloading requirement needs to be further determined includes: specifically, whether the downloading is the first downloading is judged; judging whether the last downloading is interrupted or not; and judging whether the last downloading step length is smaller than a first preset value or not. The steps of the downloading condition judgment are not in sequence. For example, the first threshold is preferably 5M.
As shown in fig. 5, the step of generating the download configuration parameters according to the corresponding satisfied download conditions after determining whether the current download environment satisfies the download conditions includes: if the downloading is the initial downloading, the downloading configuration parameters are set to be the second preset value (preferably 1M) of the downloading step length and the first preset time (preferably 30s) of the duration; if the downloading is not the initial downloading, further judging whether the last downloading is interrupted; if the interruption is caused, the downloading configuration parameter is set to be the second preset value of the downloading step length, and the duration time is the first preset time; if not, judging whether the last downloading step length is smaller than a first preset value; if the download configuration parameter is smaller than the first preset value, setting the download configuration parameter as the last download step length plus a third preset value (preferably 1M), and setting the duration as the last download time plus a second preset time (preferably 30 s); if the download configuration parameter is not less than the first predetermined value, the download configuration parameter is set to a fourth predetermined value (preferably 5M) for a third predetermined time (preferably 150 s).
Specifically, if during the first download, the download is not interrupted (i.e., there is no user operating the device, and the download of the fixed-step data (1M) is completed within a fixed duration, and after the download is completed, the user sleeps for 10 seconds; the download step for the second time is increased by 1M based on the last download step (1M), and the duration is also increased by 30s based on the last duration (30s), and after the download is completed, the user sleeps for 10s, and so on, until the download step is increased to 5M, and the duration is increased to 150s, and then the download step is pressed by 5M and the duration is 150s, so as to download the firmware until the download is completed or interrupted (i.e., there is a user operating the device, or the download of the fixed-step data is not completed within the fixed duration).
As shown in fig. 5 and 6, the step of downloading the firmware file specifically includes: generating a downloading request according to the downloading configuration parameters and sending the downloading request to the server; the server side verifies the downloading request and executes downloading; judging the size of the downloaded file; and after downloading the file with the preset size, sleeping, returning to the step of judging the use state of the equipment for continuous downloading at preset time, and repeating the steps until the new firmware is completely downloaded.
Specifically, as shown in fig. 5, the server verifying the download request and executing the download includes: verifying whether the download authorization code is valid; if the authorization code is invalid, feeding back an illegal user message to the user terminal; if the authorization code is valid, judging whether the downloading step length and the downloading position are valid; if the downloading step length and the downloading position are valid, the terminal continues to transmit the downloading; otherwise, the re-downloading message is fed back to the user terminal.
As shown in fig. 5, in the embodiment of the present invention, during the downloading process, it is also necessary to determine the usage status of the user and determine the interruption of the hibernation record. Specifically, if the user operates the device during the downloading process, the downloading is interrupted, and the downloading is restarted after the user operates the device. If the downloading time during downloading exceeds the preset downloading duration, an interruption (the interruption time is preferably 30s) is started, and the downloading is started after the dormancy is finished. And in the downloading process, the size of the downloaded file needs to be detected in real time, if the downloaded file reaches the preset step size, the dormancy is started, and the process is circulated again until the downloading of the new firmware version is finished. Specifically, as shown in fig. 5, during downloading, if there is a user operating the device, the downloading is interrupted, the interrupt flag is set to 1, the downloading is started after the user operation is completed, after the downloading is started again, the 1 st time is counted again, the downloading step size is set to 1M, the duration is set to 30 seconds, the interrupt flag is set to 0, and then the downloading is circulated. In the downloading process, if the downloading data of the fixed downloading step length data is not completed within the fixed duration, the downloading is interrupted, the interruption identifier is set to be 1, the downloading is started after the user operation is completed, after the downloading is restarted, the 1 st time is counted again, the downloading step length is set to be 1M, the duration is set to be 30 seconds, the interruption identifier is set to be 0, and then the cyclic downloading is started.
As shown in fig. 7, verifying the new version firmware and upgrading the device firmware includes: verifying the fingerprint and signature of the new version firmware; if the verification fails, the new version firmware is downloaded again; if the verification is successful, prompting the user to update the new version firmware; backing up user data; executing upgrading of the new version firmware; and restoring the user data. After the firmware is downloaded, verifying the firmware signature and the file fingerprint, if the firmware signature and the file fingerprint are correct, and prompting a user that new firmware needs to be upgraded when the user operates the screen equipment; after the user confirms that the new firmware version is updated, the local data of the user is backed up, then the firmware is updated, and finally the local data of the user is restored. If the signature and file fingerprint of the firmware are not correct, the user is prompted to re-download the firmware.
In order to further embody the superiority of the firmware upgrading method provided by the present invention, the present invention further provides a firmware upgrading apparatus applying the method, as shown in fig. 8, the firmware upgrading apparatus includes: the firmware downloading unit is used for downloading the new firmware in steps according to the firmware upgrading message and the using state of the user on the equipment; the firmware upgrading message is pushed to the equipment by the server according to the new version firmware; and the firmware upgrading unit is used for verifying the new firmware and upgrading the equipment firmware. The following provides a detailed description of the present invention and the firmware upgrade apparatus provided.
As shown in fig. 9, the firmware downloading unit further includes: the download environment state detection unit is used for judging the use state of the equipment; if the equipment is not used, judging whether the current downloading environment meets the downloading condition; the download parameter configuration unit is used for generating download configuration parameters according to the satisfied download conditions; and the download execution unit is used for downloading the firmware file according to the first step download mode and the second step download mode according to the download configuration parameters until the new version firmware is downloaded. After judging whether the current downloading environment meets the downloading condition, generating the downloading configuration parameter according to the corresponding downloading condition, which specifically comprises: if the downloading is the initial downloading, the downloading configuration parameters are set to be the second preset value (preferably 1M) of the downloading step length and the first preset time (preferably 30s) of the duration; if the downloading is not the initial downloading, further judging whether the last downloading is interrupted; if the interruption is caused, the downloading configuration parameter is set to be the second preset value of the downloading step length, and the duration time is the first preset time; if not, judging whether the last downloading step length is smaller than a first preset value; if the download configuration parameter is smaller than the first preset value, setting the download configuration parameter as the last download step length plus a third preset value (preferably 1M), and setting the duration as the last download time plus a second preset time (preferably 30 s); if the download configuration parameter is not less than the first predetermined value, the download configuration parameter is set to a fourth predetermined value (preferably 5M) for a third predetermined time (preferably 150 s).
As shown in fig. 10, in the embodiment of the present invention, the download execution unit further includes: the download request sending unit is used for generating a download request according to the download configuration parameters and sending the download request to the server; the verification unit is used for executing downloading according to the verification result of the server side on the downloading request; a download file judging unit for judging the size of the download file; and the dormancy unit is used for dormancy after downloading the file with the preset size, returning to the step of judging the use state of the equipment for continuous downloading within preset dormancy time, and repeating the steps until the new firmware is completely downloaded.
As shown in fig. 11, in the embodiment of the present invention, the firmware upgrade unit includes: a firmware verification unit for verifying the fingerprint and signature of the new version firmware; if the verification fails, the new version firmware is downloaded again; if the verification is successful, prompting the user to update the new version firmware; the data backup unit is used for backing up user data before upgrading the firmware again; the firmware upgrading execution unit is used for executing upgrading of the new firmware version; and the data restoring unit is used for restoring the user data after the firmware is upgraded.
The specific working process of the firmware upgrading device provided by the embodiment of the present invention is basically the same as that of the embodiment of the firmware upgrading method, and specific processes of the embodiment of the method may be referred to, which is not described herein any more.
In order to further embody the superiority of the firmware upgrading device provided by the invention, the invention also provides a refrigerator applying the device, and the refrigerator comprises the firmware upgrading device. The refrigerator also comprises a touch display screen, wherein a user can operate the refrigerator on the touch display screen, and the firmware upgrading message can be displayed on the touch display screen. It should be noted again that the firmware upgrading method and upgrading device provided by the present invention are not limited thereto, and may also be applied to other electronic devices, such as a household air conditioner, a water heater, an electric cooker, etc.
In order to further embody the superiority of the firmware upgrading method provided by the present invention, the present invention further provides a firmware upgrading server applying the method, as shown in fig. 12, the firmware upgrading server includes: the device update detection unit is used for inquiring the device list and detecting whether the firmware information of the devices in the device list is the latest firmware version; the device list updating unit is used for adding the devices which are not the latest firmware versions to the device list to be upgraded; and the upgrading pushing unit is used for pushing the firmware upgrading message to the equipment in the equipment list to be upgraded.
The specific working process of the firmware upgrade server provided by the embodiment of the present invention is substantially the same as the embodiment of the firmware upgrade method, and reference may be made to the specific flow of the embodiment of the method, which is not described herein any more.
The firmware upgrading server also comprises a downloading request verification unit: the download request verifying unit is used for verifying whether the download authorization code is valid; if the authorization code is invalid, feeding back an illegal user message to the user terminal; if the authorization code is valid, judging whether the downloading step length and the downloading position are valid; if the downloading step length and the downloading position are valid, the terminal continues to transmit the downloading; otherwise, the re-downloading message is fed back to the user terminal.
In summary, according to the firmware upgrading method, the firmware upgrading device, the refrigerator and the server provided by the invention, resources and bandwidth are not occupied by the firmware upgrading with the user during firmware upgrading, so that user experience of the client is improved; through proper dormancy, the pressure of the server is relieved, the quantity of concurrent downloads is increased, and the pressure of the concurrent downloads of the server is relieved. The invention can intelligently adjust the downloading step length or duration to download data in the optimal state.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. The terms "upper", "lower", and the like, indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the referred devices or elements must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Unless expressly stated or limited otherwise, the terms "mounted," "connected," and "connected" are intended to be inclusive and mean, for example, that they may be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the description of the present invention, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description. Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present invention is not limited to any single aspect, nor is it limited to any single embodiment, nor is it limited to any combination and/or permutation of these aspects and/or embodiments. Moreover, each aspect and/or embodiment of the present invention may be utilized alone or in combination with one or more other aspects and/or embodiments thereof.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (13)

1. A method for upgrading firmware, comprising:
the server side pushes a firmware upgrading message to the equipment according to the new firmware version;
the equipment downloads the new firmware version step by step according to the pushing firmware upgrading message and the use state of the equipment by the user;
verifying the new firmware and upgrading the equipment firmware;
the step-by-step downloading of the new firmware by the device according to the push firmware upgrade message and the use state of the device by the user comprises:
judging the use state of the equipment;
if the equipment is not used, judging whether the current downloading environment meets the downloading condition;
generating download configuration parameters according to the satisfied download conditions;
downloading the firmware file according to the first step downloading mode and the second step downloading mode according to the downloading configuration parameters until the new firmware version is completely downloaded; the first step downloading mode is a mode under starting a downloading program, and the second step downloading mode is a mode under requesting the downloading program;
the generating of the download configuration parameters according to the satisfied download conditions comprises:
if the downloading is the initial downloading, the downloading configuration parameters are set to be the second preset value of the downloading step length, and the duration time is the first preset time;
if the downloading is not the initial downloading, further judging whether the last downloading is interrupted; if the interruption is caused, the downloading configuration parameter is set to be the second preset value of the downloading step length, and the duration time is the first preset time; if not, judging whether the last downloading step length is smaller than a first preset value;
if the download configuration parameter is smaller than the first preset value, setting the download configuration parameter as the last download step length plus a third preset value, wherein the duration is the last download time plus a second preset time;
and if the download configuration parameter is not less than the first preset value, setting the download configuration parameter to be a fourth preset value, and setting the duration to be a third preset time.
2. The firmware upgrading method of claim 1, wherein the server pushing a firmware upgrading message to the device according to the new firmware version comprises:
inquiring an equipment list;
detecting whether the firmware information of the equipment in the equipment list is the latest firmware version;
adding the equipment which is not the latest firmware version to a list of equipment to be upgraded;
and the server side pushes the firmware upgrading message to the equipment in the equipment list to be upgraded.
3. The firmware upgrade method according to claim 1 or 2, wherein the firmware upgrade message includes:
a download authorization code, a file fingerprint, and a file download address.
4. The firmware upgrade method according to claim 1, wherein the determining whether the current download environment meets the download condition comprises:
judging whether the downloading is the initial downloading or not;
judging whether the last downloading is interrupted or not;
and judging whether the last downloading step length is smaller than a first preset value or not.
5. The firmware upgrade method according to claim 1, wherein the downloading the firmware file comprises:
generating a downloading request according to the downloading configuration parameters and sending the downloading request to a server;
the server side verifies the downloading request and executes downloading;
judging the size of the downloaded file;
and after downloading the file with the preset size, sleeping, returning to the step of judging the use state of the equipment for continuous downloading at preset time, and repeating the steps until the new firmware is completely downloaded.
6. The firmware upgrade method according to claim 5, wherein the server side verifies the download request and performs the download including:
verifying whether the download authorization code is valid;
if the authorization code is invalid, feeding back an illegal user message to the user terminal;
if the authorization code is valid, judging whether the downloading step length and the downloading position are valid;
if the downloading step length and the downloading position are valid, the terminal continues to transmit the downloading; otherwise, the re-downloading message is fed back to the user terminal.
7. The firmware upgrade method according to claim 5, wherein the step of performing downloading further comprises a step of judging a user use state and a step of judging that the hibernation recording is interrupted.
8. The firmware upgrade method of claim 1, wherein verifying the new version firmware and upgrading the device firmware comprises:
verifying the fingerprint and signature of the new version firmware;
if the verification fails, the new version firmware is downloaded again;
if the verification is successful, prompting the user to update the new version firmware;
backing up user data;
executing upgrading of the new version firmware;
and restoring the user data.
9. A firmware upgrade apparatus, comprising:
the firmware downloading unit is used for downloading the new version firmware step by step according to the firmware upgrading message and the using state of the equipment by the user; the firmware upgrading message is pushed to the equipment by the server according to the new version firmware;
the firmware upgrading unit is used for verifying the new firmware and upgrading the equipment firmware;
the firmware download unit further includes:
the download environment state detection unit is used for judging the use state of the equipment; if the equipment is not used, judging whether the current downloading environment meets the downloading condition;
the download parameter configuration unit is used for generating download configuration parameters according to the satisfied download conditions;
the download execution unit is used for downloading the firmware file according to the first step download mode and the second step download mode according to the download configuration parameters until the new version firmware is downloaded completely; the first step downloading mode is a mode under starting a downloading program, and the second step downloading mode is a mode under requesting the downloading program;
the generating of the download configuration parameters according to the satisfied download conditions comprises:
if the downloading is the initial downloading, the downloading configuration parameters are set to be the second preset value of the downloading step length, and the duration time is the first preset time;
if the downloading is not the initial downloading, further judging whether the last downloading is interrupted; if the interruption is caused, the downloading configuration parameter is set to be the second preset value of the downloading step length, and the duration time is the first preset time; if not, judging whether the last downloading step length is smaller than a first preset value;
if the download configuration parameter is smaller than the first preset value, setting the download configuration parameter as the last download step length plus a third preset value, wherein the duration is the last download time plus a second preset time;
and if the download configuration parameter is not less than the first preset value, setting the download configuration parameter to be a fourth preset value, and setting the duration to be a third preset time.
10. The firmware upgrade apparatus according to claim 9, wherein the determining whether the current download environment satisfies the download condition comprises:
judging whether the downloading is the initial downloading or not;
judging whether the last downloading is interrupted or not;
and judging whether the last downloading step length is smaller than a first preset value or not.
11. The firmware upgrade apparatus according to claim 9, wherein the download execution unit further includes:
a download request sending unit, configured to generate a download request according to the download configuration parameter and send the download request to the server;
the verification unit is used for executing downloading according to the verification result of the server side on the downloading request;
a download file judging unit for judging the size of the download file;
and the dormancy unit is used for dormancy after downloading the file with the preset size, returning to the step of judging the use state of the equipment for continuous downloading within preset dormancy time, and repeating the steps until the new firmware is completely downloaded.
12. The firmware upgrade apparatus according to claim 9, wherein the firmware upgrade unit includes:
a firmware verification unit for verifying the fingerprint and signature of the new version firmware; if the verification fails, the new version firmware is downloaded again; if the verification is successful, prompting the user to update the new version firmware;
the data backup unit is used for backing up user data before updating the equipment firmware;
the firmware upgrading execution unit is used for executing upgrading of the new firmware version;
and the data recovery unit is used for recovering the user data after updating the equipment firmware.
13. A refrigerator characterized by comprising the firmware upgrading apparatus as claimed in any one of claims 9 to 12.
CN201610705503.8A 2016-08-22 2016-08-22 Firmware upgrading method, firmware upgrading device, refrigerator and server Active CN106325929B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610705503.8A CN106325929B (en) 2016-08-22 2016-08-22 Firmware upgrading method, firmware upgrading device, refrigerator and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610705503.8A CN106325929B (en) 2016-08-22 2016-08-22 Firmware upgrading method, firmware upgrading device, refrigerator and server

Publications (2)

Publication Number Publication Date
CN106325929A CN106325929A (en) 2017-01-11
CN106325929B true CN106325929B (en) 2020-02-07

Family

ID=57741987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610705503.8A Active CN106325929B (en) 2016-08-22 2016-08-22 Firmware upgrading method, firmware upgrading device, refrigerator and server

Country Status (1)

Country Link
CN (1) CN106325929B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107038046B (en) * 2017-03-31 2021-02-02 Oppo广东移动通信有限公司 Method and device for upgrading audio playing system and terminal
CN107957880A (en) * 2017-11-30 2018-04-24 广东美的暖通设备有限公司 Air-conditioning firmware upgrade method, device, air-conditioning and computer equipment
CN108446131B (en) * 2018-03-19 2021-10-08 深圳怡化电脑股份有限公司 ATM firmware upgrading method, device, equipment and storage medium
CN108446133A (en) * 2018-03-29 2018-08-24 广东美的暖通设备有限公司 Firmware upgrade control method, firmware upgrade control system and electric appliance
CN108958786B (en) * 2018-06-15 2021-11-12 合肥美的电冰箱有限公司 Matching and updating processing method and device for refrigerator software
CN108829421A (en) * 2018-06-20 2018-11-16 合肥美的电冰箱有限公司 The method and system and refrigerator and storage medium of upgrading refrigerator controller software
CN111258599B (en) * 2018-12-03 2023-06-20 中国电信股份有限公司 Firmware upgrade method, system and computer readable storage medium
CN110377319B (en) * 2019-08-26 2023-04-07 咪咕文化科技有限公司 Application program upgrading method and device, electronic equipment and storage medium
CN112579114A (en) * 2019-09-27 2021-03-30 阿里巴巴集团控股有限公司 Program upgrading method and device for Internet of things equipment and Internet of things equipment
CN112527365A (en) * 2020-11-03 2021-03-19 珠海格力电器股份有限公司 Application program updating method, nonvolatile memory, storage medium and household appliance
CN112672387B (en) * 2020-12-21 2021-08-31 广西东信易联科技有限公司 Method and system for automatically switching network modes according to user data
US11783043B2 (en) * 2021-11-23 2023-10-10 ZT Group Int'l, Inc. Methods for authentication of firmware images in embedded systems
CN114637987B (en) * 2022-05-18 2022-08-12 广州万协通信息技术有限公司 Security chip firmware downloading method and system based on platform verification

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102213518A (en) * 2011-03-31 2011-10-12 四川长虹电器股份有限公司 Remote-control IOT (internet of things) refrigerator and remote control method thereof
CN102541599A (en) * 2011-12-27 2012-07-04 深圳创维-Rgb电子有限公司 Method and system for upgrading electronic equipment on line, and television
CN102609277A (en) * 2011-08-26 2012-07-25 威海捷讯通信技术有限公司 Application software upgrading method of mobile terminal
CN103870319A (en) * 2012-12-14 2014-06-18 联想(北京)有限公司 Method and device for information processing and electronic device
CN105009024A (en) * 2012-12-28 2015-10-28 脸谱公司 Conserving battery and data usage
CN105848190A (en) * 2016-05-24 2016-08-10 北京小米移动软件有限公司 OTA upgrading method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5845077A (en) * 1995-11-27 1998-12-01 Microsoft Corporation Method and system for identifying and obtaining computer software from a remote computer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102213518A (en) * 2011-03-31 2011-10-12 四川长虹电器股份有限公司 Remote-control IOT (internet of things) refrigerator and remote control method thereof
CN102609277A (en) * 2011-08-26 2012-07-25 威海捷讯通信技术有限公司 Application software upgrading method of mobile terminal
CN102541599A (en) * 2011-12-27 2012-07-04 深圳创维-Rgb电子有限公司 Method and system for upgrading electronic equipment on line, and television
CN103870319A (en) * 2012-12-14 2014-06-18 联想(北京)有限公司 Method and device for information processing and electronic device
CN105009024A (en) * 2012-12-28 2015-10-28 脸谱公司 Conserving battery and data usage
CN105848190A (en) * 2016-05-24 2016-08-10 北京小米移动软件有限公司 OTA upgrading method and apparatus

Also Published As

Publication number Publication date
CN106325929A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN106325929B (en) Firmware upgrading method, firmware upgrading device, refrigerator and server
CN107179909B (en) Software upgrading method and device and computer readable storage medium
WO2017067448A1 (en) Firmware-over-the-air upgrade method, system and computer storage medium
CN106250192B (en) Software upgrading method and system of upper computer
CN107193612B (en) Version upgrading method and device for mobile terminal
WO2019076037A1 (en) Firmware updating method and device
EP1639468B1 (en) Network equipment and a method for monitoring the start up of a such an equipment
TWI533216B (en) Operating system updating method
CN106775610B (en) Electronic equipment starting method and electronic equipment
CN101807152B (en) Basic output and input system for self verification of selection read only memory and verification method thereof
CN102945177A (en) Programmable logic controller (PLC) firmware upgrading system and method
CN107908417B (en) Firmware upgrading method and electronic equipment
CN111813428A (en) Method and device for upgrading terminal firmware, electronic equipment and storage medium
CN110597545B (en) Hot patch Ding Zhineng upgrading method and system based on OTA component
CN114840242A (en) System upgrading method and device of electronic equipment and readable storage medium
CN106303709B (en) A kind of set-top box and its application program updating method, system
EP3136238A1 (en) Method and apparatus for recovering system software of intelligent terminal
CN110580167A (en) system upgrading method, intelligent device and server
CN105045671A (en) Method and device for upgrading systems of intelligent terminals
CN109976791B (en) Automatic upgrading method, device and equipment for NVMe SSD
CN113885921A (en) Method and equipment for updating embedded system
CN109428936B (en) APP upgrading method, device, system, electronic equipment and storage medium
CN108282366B (en) Unit data synchronization method, system and computer readable storage medium
CN107015827B (en) Embedded system and method for automatically operating third-party extension program thereof
CN105590065B (en) Method and device for protecting preset file

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180207

Address after: 230601 Building No. 198, building No. 198, Mingzhu Avenue, Anhui high tech Zone, Anhui

Applicant after: Hefei Midea Intelligent Technology Co., Ltd.

Address before: 230601 Hefei economic and Technological Development Zone, Fairview Road, Anhui

Applicant before: Hefei Hualing Co., Ltd.

Applicant before: Hefei Midea Refrigerator Co., Ltd.

Applicant before: Midea Group Co., Ltd.

GR01 Patent grant
GR01 Patent grant