CN112134718B - Firmware upgrading method, household appliance, firmware upgrading system and readable storage medium - Google Patents

Firmware upgrading method, household appliance, firmware upgrading system and readable storage medium Download PDF

Info

Publication number
CN112134718B
CN112134718B CN201910556766.0A CN201910556766A CN112134718B CN 112134718 B CN112134718 B CN 112134718B CN 201910556766 A CN201910556766 A CN 201910556766A CN 112134718 B CN112134718 B CN 112134718B
Authority
CN
China
Prior art keywords
firmware
household appliance
server
distribution network
network information
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
CN201910556766.0A
Other languages
Chinese (zh)
Other versions
CN112134718A (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.)
Midea Group Co Ltd
GD Midea Air Conditioning Equipment Co Ltd
Original Assignee
Midea Group Co Ltd
GD Midea Air Conditioning Equipment 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 Midea Group Co Ltd, GD Midea Air Conditioning Equipment Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201910556766.0A priority Critical patent/CN112134718B/en
Publication of CN112134718A publication Critical patent/CN112134718A/en
Application granted granted Critical
Publication of CN112134718B publication Critical patent/CN112134718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • 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/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

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

Abstract

The invention discloses a firmware upgrading method, which is characterized in that distribution network information of household appliances is sent to a server; acquiring a firmware upgrading packet generated by the server based on the distribution network information; and finishing firmware upgrading of the household appliance according to the firmware upgrading packet, and establishing network connection between the household appliance and the server according to the distribution network information in the firmware upgrading packet. The invention also discloses a household appliance, a firmware upgrading system and a readable storage medium. According to the invention, after the firmware of the household appliance is upgraded, the household appliance can directly acquire and establish network connection with the server according to the distribution network information of the household appliance, so that the manual distribution network process is not needed.

Description

Firmware upgrading method, household appliance, firmware upgrading system and readable storage medium
Technical Field
The present invention relates to the field of firmware upgrading technologies, and in particular, to a firmware upgrading method, a home appliance, a firmware upgrading system, and a readable storage medium.
Background
With the rapid development of the internet, more and more devices have networking functions. In order to improve The performance of The device, many networking devices implement firmware upgrade of The networking device through OTA (Over The Air). However, an old firmware adopted in the networking device and a new firmware adopted after the networking device is upgraded are often different in code frame, so that the new firmware cannot acquire the distribution network information of the networking device, the networking device cannot automatically and successfully distribute a network and is connected to a server, and manual participation in a distribution network process is required.
For example, currently, a networking device of a home appliance company generally commissions an outsourcer to develop firmware, and if the networking device is updated by OTA through the firmware developed by the home appliance company in a later stage, because the firmware developed by the home appliance company is different from the firmware code frame developed by the outsourcer, the storage location of the distribution network information of the networking device cannot be known by the new firmware developed by the home appliance company, then the following situation may occur: after OTA upgrading is completed on networking equipment, a user needs to manually distribute the network again.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a firmware upgrading method, and aims to solve the technical problem that after OTA upgrading is carried out on networking equipment by adopting new firmware different from an old firmware framework, manual participation in network distribution is required.
In order to achieve the above object, the present invention provides a firmware upgrading method, which is applied to a home appliance, and includes:
sending the distribution network information of the household appliances to a server;
acquiring a firmware upgrading packet generated by the server based on the distribution network information;
and finishing firmware upgrading of the household appliance according to the firmware upgrading packet, and establishing network connection between the household appliance and the server according to the distribution network information in the firmware upgrading packet.
Optionally, the step of sending the distribution network information of the home appliance to the server includes:
detecting whether an inquiry instruction generated by a server paired with the household appliance is received;
and if the inquiry command is detected, sending the distribution network information of the household appliance to the server.
Optionally, the firmware upgrade package includes the distribution network information, the device identification number of the household appliance, and a new firmware to be upgraded;
according to the firmware upgrade package, finishing the firmware upgrade of the household appliance, and according to the distribution network information in the firmware upgrade package, establishing the network connection between the household appliance and the server comprises the following steps:
acquiring the new firmware from the firmware upgrading packet, and finishing the firmware upgrading of the household appliance according to the new firmware;
restarting the firmware of the household appliance, and acquiring the equipment identification number and the distribution network information of the household appliance from the firmware upgrade package;
and connecting the household appliance to the server according to the equipment identification number and the distribution network information.
Optionally, after the step of sending the distribution network information of the home appliance to the server, the method further includes:
and acquiring a check code generated by the server based on the distribution network information.
Optionally, the step of obtaining the new firmware from the firmware upgrade package and completing the firmware upgrade of the home appliance according to the new firmware includes:
when an upgrading instruction sent by a server is detected, detecting whether the firmware upgrading packet is complete or not according to the check code;
if the firmware upgrade package is detected to be complete, acquiring the new firmware from the firmware upgrade package;
and finishing the firmware upgrade of the household appliance according to the new firmware.
Optionally, the step of detecting whether the firmware upgrade package is complete further includes:
if the firmware upgrading package is detected to be incomplete, deleting the acquired firmware upgrading package, and sending a downloading error instruction to the server;
and re-acquiring the query instruction generated by the server based on the download error instruction.
In order to achieve the above object, the present invention provides a firmware upgrading method, where the firmware upgrading method is applied to a server, and the firmware upgrading method includes:
when detecting a new firmware to be upgraded, acquiring an equipment identification number of the household appliance;
acquiring the distribution network information of the household appliance according to the equipment identification number;
generating a firmware upgrading packet according to the distribution network information, the equipment identification number and the new firmware, and sending the firmware upgrading packet to the household appliance;
and acquiring a connection request generated after the household appliance finishes upgrading based on the firmware upgrading package, and establishing connection with the household appliance according to the connection request.
Optionally, after detecting the new firmware to be upgraded, the step of obtaining the device identification number of the home appliance includes:
when detecting a new firmware to be upgraded, acquiring the equipment code of the household appliance;
and acquiring the equipment identification number of the household appliance on the server according to the equipment code.
Optionally, the step of generating a firmware upgrade package according to the distribution network information, the device identification number, and the new firmware, and sending the firmware upgrade package to the home appliance includes:
packaging the distribution network information, the equipment identification number and the new firmware to generate a firmware upgrading packet;
generating a check code of the firmware upgrade package;
and sending the check code and the firmware upgrade package to the household appliance so that the household appliance can detect whether the received firmware upgrade package is complete or not based on the check code.
Optionally, the step of acquiring the distribution network information of the household appliance according to the device identification number includes:
sending a query instruction to the household appliance according to the equipment identification number;
and acquiring the distribution network information of the household appliances fed back by the household appliances based on the query instruction.
Optionally, the step of obtaining the distribution network information of the home appliance fed back by the home appliance based on the query instruction includes:
detecting whether distribution network information of the household appliances fed back by the household appliances is received or not;
if the distribution network information is not received, detecting whether the difference between the current time and the time for sending the query instruction is greater than a preset time length; if the difference between the current time and the time for sending the query instruction is larger than the preset time length, the query instruction is sent to the household appliance again;
and obtaining the distribution network information fed back by the household appliances.
Optionally, the step of obtaining a connection request generated by the home appliance after the upgrade is completed based on the firmware upgrade package, and establishing a connection with the home appliance according to the connection request includes:
sending an upgrading instruction to the household appliance;
acquiring a connection request generated after the household appliance finishes upgrading based on the upgrading instruction and the firmware upgrading packet;
and determining the equipment identification number of the household appliance according to the connection request, and establishing connection with the household appliance based on the equipment identification number.
In addition, to achieve the above object, the present invention also provides a home appliance, including: a memory, a processor, and a firmware upgrade program stored on the memory and executable on the processor, the firmware upgrade program when executed by the processor implementing the steps of:
sending the distribution network information of the household appliances to a server;
acquiring a firmware upgrading packet generated by the server based on the distribution network information;
and finishing firmware upgrading of the household appliance according to the firmware upgrading packet, and establishing network connection between the household appliance and the server according to the distribution network information in the firmware upgrading packet.
In addition, to achieve the above object, the present invention further provides a firmware upgrading system, which includes a home appliance and a server, wherein:
after detecting a new firmware to be upgraded, the server acquires and sends a query instruction to the household appliance according to the equipment identification number of the household appliance;
the household appliance receives the inquiry command and sends the distribution network information of the household appliance to the server based on the inquiry command;
the server generates a firmware upgrading packet according to the distribution network information, the equipment identification number and the new firmware, and sends the firmware upgrading packet to the household appliance;
and after receiving and finishing firmware upgrading based on the firmware upgrading package, the household appliance acquires and establishes connection with the server according to the equipment identification number and the distribution network information of the household appliance.
In addition, to achieve the above object, the present invention further provides a readable storage medium, which stores a firmware upgrade program, and when the firmware upgrade program is executed by a processor, the firmware upgrade program implements the steps of the firmware upgrade method as described above.
According to the firmware upgrading method, the household appliance, the firmware upgrading system and the readable storage medium, the server sends the query instruction to the household appliance, and the household appliance sends the distribution network information of the household appliance to the server after receiving the query instruction of the server; the server packages a new firmware to be upgraded and the distribution network information into a firmware upgrading package according to the distribution network information sent by the household appliance and sends the firmware upgrading package to the household appliance; the household appliance upgrades the firmware according to the firmware upgrade package, and after the firmware is upgraded, the distribution network information of the household appliance is acquired from the firmware upgrade package and is connected with the server through a network. After the firmware of the household appliance is upgraded, the household appliance can directly acquire the distribution network information of the household appliance and establish network connection with the server, so that the manual distribution network process is not needed. The problem that the network distribution of the household appliances needs to be manually and again manually carried out due to the fact that the household appliances cannot determine the network distribution information of the household appliances after firmware upgrading because the framework of old firmware adopted in the household appliances is different from the framework of new firmware and the household appliances cannot automatically establish network connection with the server is solved.
Drawings
Fig. 1 is a schematic structural diagram of a hardware operating environment of a home appliance according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a firmware upgrading method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating the step S130 of the firmware upgrading method according to the second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a firmware upgrade method according to a fifth embodiment of the present invention;
FIG. 5 is a flowchart illustrating a step S240 in a ninth embodiment of a firmware upgrading method according to the present invention;
fig. 6 is a schematic structural diagram of a firmware upgrade system according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows:
sending the distribution network information of the household appliances to a server;
acquiring a firmware upgrading packet generated by the server based on the distribution network information;
and finishing firmware upgrading of the household appliance according to the firmware upgrading packet, and establishing network connection between the household appliance and the server according to the distribution network information in the firmware upgrading packet.
In the prior art, after the home appliance is upgraded by the OTA, when an old firmware adopted by the home appliance is different from a new firmware adopted by the home appliance after the upgrade is completed, the new firmware cannot acquire the distribution network information of the home appliance, so that the home appliance cannot automatically and successfully distribute a network and is connected to a server, and manual participation in distribution is required.
The invention provides a solution, which enables the household appliance to directly acquire and establish network connection with the server according to the distribution network information of the household appliance after OTA upgrading is carried out, thereby avoiding manual participation in the distribution network process.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment of a home appliance according to an embodiment of the present invention.
The household appliance provided by the embodiment of the invention can be household appliances with networking functions, such as an air conditioner, a humidifier and the like.
As shown in fig. 1, the home appliance may include: a processor 1001, such as a CPU, a communication bus 1002, a communication module 1003, and a memory 1004. Wherein a communication bus 1002 is used to enable connective communication between these components. The network interface 1003 may be a wireless interface (e.g., WI-FI interface), a bluetooth interface, a ZIGBEE wireless network interface, or the like. The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1004 may alternatively be a storage system separate from the processor 1001.
The communication module 1003 in the present invention includes a WIFI module or a bluetooth module that can communicate with a server.
Those skilled in the art will appreciate that the appliance configuration shown in fig. 1 is not meant to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1004, which is a kind of computer storage medium, may include therein an operating system and a firmware upgrade program.
In the appliance shown in fig. 1, the processor 1001 may be configured to call a firmware upgrade program stored in the memory 1004 and perform operations in the following embodiments of the firmware upgrade method.
Based on the above hardware structure, the embodiment of the method of the present invention is provided.
As shown in fig. 2, fig. 2 is a flowchart illustrating a firmware upgrading method according to a first embodiment of the present invention.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different than presented herein.
In each embodiment of the firmware upgrading method, the scheme of the embodiment of the invention mainly relates to a household appliance and a server.
Referring to fig. 2, in a first embodiment of a firmware upgrade method according to the present invention, the firmware upgrade method is applied to an appliance, and the firmware upgrade method includes:
step S110, sending the distribution network information of the household appliances to a server;
in this embodiment, the home appliance establishes a network connection with the server through a built-in WIFI module. Therefore, the household appliance downloads the firmware upgrading package from the server, and the firmware of the household appliance is upgraded, so that the firmware of the household appliance is upgraded.
Specifically, in one embodiment, the home appliance detects that: after the query instruction generated by the server paired with the household appliance, the household appliance queries the distribution network information stored on Flash (Flash, solid-state memory and animation editor), and sends the distribution network information stored on the Flash of the household appliance to the server so as to provide a firmware upgrade package generated by the server based on the distribution network information.
In one embodiment, the household appliance sends the distribution network information of the household appliance to a server paired with the household appliance at regular time. After the server detects the new firmware to be upgraded, the server acquires the equipment identification number of the household appliance to be upgraded, and the server acquires the distribution network information sent by the household appliance corresponding to the equipment identification number.
The query instruction refers to an instruction which is generated by the server and used for querying the distribution network information of the household appliance before the firmware upgrade package is sent to the household appliance. The distribution network information refers to information necessary for establishing network connection between the household appliance and the server.
Further, step S110 includes:
detecting whether an inquiry instruction generated by a server paired with the household appliance is received;
and if the inquiry command is detected, sending the distribution network information of the household appliance to the server.
After detecting the new firmware to be upgraded, the server acquires the equipment code of the household appliance to be upgraded; the device code of the household appliance can be input into the server by a person or acquired from a third party by the server. And the server searches the equipment identification number corresponding to the equipment code from the server according to the equipment code. And the server sends a query instruction for querying the distribution network information of the household appliances to the corresponding household appliances according to the equipment identification number. Detecting the household appliance: whether an inquiry command generated by a server paired with the household appliance is received.
After the household appliance detects the query instruction generated by the server, the household appliance queries the distribution network information stored on the Flash, and sends the distribution network information stored on the household appliance Flash to the server so as to enable the server to generate a firmware upgrading package based on the distribution network information.
And if the household appliance does not detect the query instruction generated by the server, continuing to wait for the query instruction sent by the server.
Step S120, acquiring a firmware upgrade package generated by the server based on the distribution network information;
after receiving the distribution network information sent by the household appliance, the server packs the distribution network information of the household appliance, the equipment identification number of the household appliance and the new firmware to be upgraded to form a firmware upgrade package; and returning the firmware upgrade package to the household appliance according to the equipment identification number of the household appliance. The household appliance acquisition server generates a firmware upgrade package based on the distribution network information.
The firmware upgrading package is formed by the server packaging the distribution network information of the household appliances, the equipment identification numbers of the household appliances and the new firmware to be upgraded based on the distribution network information sent by the household appliances.
And step S130, finishing firmware upgrading of the household appliance according to the firmware upgrading packet, and establishing network connection between the household appliance and the server according to the distribution network information in the firmware upgrading packet.
And after the firmware upgrading packet is returned to the household appliance, the server sends an upgrading instruction to the household appliance. After receiving an upgrading instruction sent by a server, the household appliance obtains new firmware from a firmware upgrading package fed back by the server; and finishing the firmware upgrade of the household appliance according to the new firmware. After the firmware of the household appliance is upgraded, the household appliance sets a starting sector zone bit so as to restart and run a new firmware. After the new firmware is started, the household appliances read the distribution network information and the equipment identification codes of the household appliances from the firmware upgrading package fed back by the server, and establish network connection with the server according to the read distribution network information and the equipment identification codes. Here, the home appliance establishes a network connection with the server, and the home appliance refers to a terminal after firmware upgrade is completed.
The new firmware refers to firmware for upgrading firmware of the household appliance.
In this embodiment, the server sends the query instruction to the home appliance, and the home appliance sends the distribution network information of the home appliance to the server after receiving the query instruction from the server; the server packages the new firmware to be upgraded and the distribution network information into a firmware upgrade package according to the distribution network information sent by the household appliance and sends the firmware upgrade package to the household appliance; the household appliance upgrades the firmware according to the firmware upgrade package, and after the firmware is upgraded, the distribution network information of the household appliance is acquired from the firmware upgrade package and is connected with the server through a network. After the firmware of the household appliance is upgraded, the household appliance can directly acquire the distribution network information of the household appliance and establish network connection with the server, so that the manual distribution network process is not needed. The problem that the network distribution of the household appliances needs to be manually and again manually carried out due to the fact that the household appliances cannot determine the network distribution information of the household appliances after the firmware is upgraded because the framework of the old firmware adopted in the household appliances is different from the framework of the new firmware and the household appliances cannot automatically establish network connection with the server is solved.
Further, referring to fig. 3, fig. 3 is a schematic flowchart illustrating a detailed process of step S130 in a second embodiment of the firmware upgrading method according to the present invention, and the firmware upgrading packet includes the distribution network information, the device identification number of the household appliance, and a new firmware to be upgraded, based on the first embodiment of the firmware upgrading method according to the present invention;
the step S130 includes:
step S131, acquiring the new firmware from the firmware upgrade package, and completing the firmware upgrade of the household appliance according to the new firmware;
and the household appliance acquires new firmware for upgrading the firmware of the household appliance from the firmware upgrading package fed back by the server. Because the architecture of the old firmware adopted in the household appliance is different from that of the new firmware, the household appliance writes the new firmware into a new sector of the household appliance so as to complete the firmware upgrade of the household appliance.
Step S132, restarting the firmware of the household appliance, and acquiring the equipment identification number and the distribution network information of the household appliance from the firmware upgrade package;
because the old device identification number stored in the household appliance is different from the new device identification number re-allocated to the household appliance by the server, if the household appliance adopts the old device identification number to establish connection with the server, the household appliance and the server still cannot perform normal network connection. Therefore, when the server returns the firmware upgrade package to the household appliance, the server reallocates the new equipment identification number of the household appliance, and packs the distribution network information of the household appliance and the new firmware together to form the firmware upgrade package, and then returns the firmware upgrade package to the household appliance, so that the household appliance can acquire the new equipment identification number to establish connection with the server.
And after the household appliance writes the new firmware into the new sector of the household appliance, setting a starting sector zone bit to start the new firmware of the household appliance. And after the new firmware of the household appliance is restarted, the household appliance acquires the equipment identification number newly distributed to the household appliance by the server and the distribution network information of the household appliance from the firmware upgrading packet fed back by the server.
And step S133, connecting the household appliance to the server according to the equipment identification number and the distribution network information.
The household appliance sends a connection request to the server based on the equipment identification number of the household appliance and the distribution network information of the household appliance. And after receiving the connection request of the household appliances, the server establishes network connection with the household appliances according to the equipment identification number of the household appliances and the distribution network information of the household appliances. Therefore, the whole firmware upgrading process of the household appliance is completed, and the household appliance is automatically connected with the server after the firmware upgrading is completed.
In this embodiment, the household appliance obtains the distribution network information of the household appliance from the firmware upgrade package fed back by the server, and establishes network connection with the server according to the distribution network information of the household appliance. Therefore, the situation that the household appliances cannot acquire the distribution network information of the household appliances and cannot be connected with the server is avoided. The household appliance obtains the equipment identification number re-allocated to the household appliance by the server from the firmware upgrading packet fed back by the server, and establishes network connection with the server according to the equipment identification number re-allocated to the household appliance by the server, so that the household appliance is prevented from adopting an old equipment identification number stored by the household appliance.
Further, based on the second embodiment, a third embodiment of the firmware upgrading method according to the present invention is provided, and after step S110, the method further includes:
and acquiring a check code generated by the server based on the distribution network information.
In this embodiment, in order to avoid that the home appliance cannot completely receive the firmware upgrade package sent by the server, after receiving the distribution network information sent by the home appliance, the server packages the distribution network information of the home appliance, the device identification number of the home appliance, and the new firmware to be upgraded to form the firmware upgrade package, and generates the check code of the firmware upgrade package, for example, generates the CRC code when the firmware upgrade package is packaged. And then, the server returns the firmware upgrade package and the check code to the household appliance according to the equipment identification number of the household appliance. The household appliance acquisition server generates a firmware upgrade package and a check code based on the distribution network information.
The check code is a verification code, such as a CRC code, for checking whether the firmware upgrade package received by the home appliance is accurate.
Further, step S131 includes:
step A1, after an upgrading instruction sent by a server is detected, detecting whether the firmware upgrading packet is complete or not according to the check code;
and after the firmware upgrading packet and the check code are returned to the household appliance, the server sends an upgrading instruction to the household appliance. And after detecting the upgrading instruction sent by the server, the household appliance verifies whether the received check code is correct or not. If the verification code obtained by the household appliance verification is incorrect, the fact that the firmware upgrade package received by the household appliance is incomplete is proved; if the verification code obtained by the household appliance verification is correct, the fact that the household appliance receives the firmware upgrading package is complete is proved, and firmware upgrading can be further carried out.
Step A2, if the firmware upgrade package is detected to be complete, acquiring the new firmware from the firmware upgrade package;
and if the household appliance detects that the firmware upgrade package received by the household appliance is complete, the household appliance obtains new firmware for upgrading the firmware of the household appliance from the firmware upgrade package fed back by the server.
And if the household appliance detects that the firmware upgrade package received by the household appliance is incomplete, the household appliance deletes the firmware upgrade package downloaded from the server and sends a download error instruction to the server. And after receiving the error downloading instruction sent by the household appliance, the server pushes new firmware next time based on the error downloading instruction sent by the household appliance.
And A3, finishing the firmware upgrade of the household appliance according to the new firmware.
Specifically, since the architecture of the old firmware adopted in the home appliance is different from the architecture of the new firmware, the home appliance writes the new firmware into the new sector of the home appliance to complete the firmware upgrade of the home appliance. Wherein the new firmware writes a new sector different from the sector where the old firmware is located.
In this embodiment, the home appliance generates the check code according to the server, checks whether the firmware upgrade package acquired from the server is complete, and after confirming that the firmware upgrade package acquired from the server is complete, the home appliance acquires new firmware from the firmware upgrade package to complete firmware upgrade, thereby ensuring that the home appliance can complete the firmware upgrade process; the firmware upgrading method and the device avoid the failure of firmware upgrading of the household appliances caused by the fact that the household appliances cannot finish firmware upgrading according to the firmware upgrading package because the firmware upgrading package obtained by the household appliances from the server is incomplete.
Further, based on the third embodiment, a fourth embodiment of the firmware upgrading method of the present invention is provided, where the step of detecting whether the firmware upgrade package is complete further includes:
step B1, if the firmware upgrading packet is detected to be incomplete, deleting the acquired firmware upgrading packet, and sending a downloading error instruction to the server;
if the household appliance detects that the household appliance receives the incomplete firmware upgrading packet, the household appliance deletes the firmware upgrading packet downloaded from the server, and sends a downloading error instruction to the server, so that the server determines the reason of failure of firmware upgrading of the household appliance according to the downloading error instruction, and the server pushes the firmware to the household appliance again according to the reason of failure of firmware upgrading.
And if the household appliance detects that the firmware upgrade package received by the household appliance is complete, the household appliance obtains new firmware for upgrading the firmware of the household appliance from the firmware upgrade package fed back by the server.
And step B2, the query instruction generated by the server based on the download error instruction is obtained again.
And after receiving the downloading error instruction sent by the household appliance, the server judges whether to push new firmware or not based on the downloading error instruction sent by the household appliance. And when the new firmware pushing is determined, the server sends the query instruction to the household appliances again so as to query the distribution network information of the household appliances. And realizing the steps of upgrading the firmware of the household appliance. When the household appliance detects the query command again, the step S10 is returned to and continuously executed to execute the steps of upgrading the firmware of the household appliance.
For example, the household appliance detects the firmware upgrade package through the CRC code, deletes the downloaded firmware upgrade package when detecting that the CRC code is incorrect, and sends a download error instruction to the server according to the detection result of the CRC code. The home appliance waits for the query command sent by the server next time, and when the home appliance detects the query command again, the step S10 is returned and continuously executed.
In this embodiment, the home appliance generates a check code according to the server, checks whether the firmware upgrade package acquired from the server is complete, and when detecting that the firmware upgrade package acquired from the server is incomplete, the home appliance deletes the acquired firmware upgrade package, thereby avoiding that a useless file occupies a memory of the home appliance; meanwhile, the household appliance sends the downloading error instruction to the server, and the server further pushes new firmware to the household appliance according to the downloading error instruction sent by the household appliance so as to upgrade the firmware of the household appliance. Therefore, the server can accurately push the new firmware according to the information fed back by the household appliance, and the household appliance can accurately finish the firmware upgrading process.
Further, referring to fig. 4, fig. 4 is a flowchart illustrating a fifth embodiment of a firmware upgrading method according to the present invention, where in the fifth embodiment of the firmware upgrading method according to the present invention, the firmware upgrading method is applied to a server, and the firmware upgrading method includes:
step S210, after detecting the new firmware to be upgraded, acquiring the equipment identification number of the household appliance;
in this embodiment, the home appliance establishes a network connection with the server through a built-in WIFI module. Therefore, the household appliance downloads the firmware upgrading package from the server, and the firmware of the household appliance is upgraded to realize the firmware upgrading of the household appliance.
The equipment identification number refers to an equipment ID number which is distributed to the household appliance by the server, and the household appliance establishes network connection with the server based on the equipment identification number.
After detecting the new firmware to be upgraded, the server acquires the equipment code of the household appliance to be upgraded; the device code of the household appliance can be input into the server by a person or acquired by the server from a third party.
And the server searches the equipment identification number corresponding to the equipment code from the server according to the equipment code.
Step S220, acquiring the distribution network information of the household appliance according to the equipment identification number;
the distribution network information refers to information necessary for establishing network connection between the household appliance and the server.
Specifically, in one embodiment, the server sends an inquiry instruction for inquiring the distribution network information of the home appliance to the home appliance corresponding to the found device identification number, so that the home appliance feeds back the distribution network information of the home appliance to the server based on the inquiry instruction. After the household appliance detects the query instruction generated by the server, the household appliance queries the distribution network information stored on the Flash and sends the distribution network information stored on the household appliance Flash to the server. And the server acquires the distribution network information of the household appliances fed back by the household appliances based on the query instruction.
The query instruction refers to an instruction which is generated by the server and used for querying the distribution network information of the household appliance before the firmware upgrade package is sent to the household appliance.
In one embodiment, the household appliance sends the distribution network information of the household appliance to a server paired with the household appliance at regular time. After detecting the new firmware to be upgraded, the server acquires the equipment identification number of the household appliance to be subjected to firmware upgrade, and acquires the distribution network information sent by the household appliance corresponding to the equipment identification number.
Step S230, generating a firmware upgrading packet according to the distribution network information, the equipment identification number and the new firmware, and sending the firmware upgrading packet to the household appliance;
after receiving the distribution network information sent by the household appliance, the server packs the distribution network information of the household appliance, the equipment identification number of the household appliance and the new firmware to be upgraded to form a firmware upgrade package; and returning the firmware upgrade package to the household appliance according to the equipment identification number of the household appliance so that the household appliance can complete firmware upgrade based on the firmware upgrade package.
The firmware upgrading package is formed by the server packaging the distribution network information of the household appliances, the equipment identification numbers of the household appliances and the new firmware to be upgraded based on the distribution network information sent by the household appliances.
Step S240, acquiring a connection request generated after the household appliance completes upgrading based on the firmware upgrade package, and establishing connection with the household appliance according to the connection request.
And after the firmware upgrading packet is returned to the household appliance, the server sends an upgrading instruction to the household appliance. The household appliance obtaining server generates a firmware upgrading packet based on the distribution network information, and after receiving an upgrading instruction sent by the server, the household appliance obtains a new firmware from the firmware upgrading packet fed back by the server; and the firmware upgrade of the household appliance is completed according to the new firmware.
After the firmware of the household appliance is upgraded, the household appliance sets a starting sector zone bit so as to restart and run a new firmware. After the new firmware is started, the household appliances read the distribution network information and the equipment identification codes of the household appliances from the firmware upgrading package fed back by the server, and send connection requests to the server according to the read distribution network information and the equipment identification codes.
And the server establishes network connection with the household appliances after verifying the distribution network information and the equipment identification codes sent by the household appliances based on the connection requests of the household appliances. Therefore, the whole firmware upgrading process of the household appliance is completed, and the household appliance is automatically connected with the server after the firmware upgrading is completed.
The connection request refers to that before the household appliance establishes connection with the server, the household appliance sends a connection establishment request to the server based on the distribution network information and the equipment identification number.
In this embodiment, the server sends an inquiry instruction to the household appliance, and the household appliance sends the distribution network information of the household appliance to the server after receiving the inquiry instruction of the server; the server packages a new firmware to be upgraded and the distribution network information into a firmware upgrading package according to the distribution network information sent by the household appliance and sends the firmware upgrading package to the household appliance; and the household appliance carries out firmware upgrading according to the firmware upgrading packet, and after the firmware is upgraded, the distribution network information of the household appliance is acquired from the firmware upgrading packet to establish network connection with the server. After the firmware of the household appliance is upgraded, the household appliance can directly acquire the distribution network information of the household appliance and establish network connection with the server, so that the manual distribution network process is not needed. The problem that the network distribution of the household appliances needs to be manually and again manually carried out due to the fact that the household appliances cannot determine the network distribution information of the household appliances after the firmware is upgraded because the framework of the old firmware adopted in the household appliances is different from the framework of the new firmware and the household appliances cannot automatically establish network connection with the server is solved.
Further, based on the fifth embodiment, a sixth embodiment of the firmware upgrading method according to the present invention is provided, and step S210 includes:
when detecting a new firmware to be upgraded, acquiring the equipment code of the household appliance;
and acquiring the equipment identification number of the household appliance on the server according to the equipment code.
After detecting the new firmware to be upgraded, the server acquires the equipment code of the household appliance to be upgraded; the device code of the household appliance can be input into the server by a person or acquired from a third party by the server.
And the server searches the equipment identification number corresponding to the equipment code from the server according to the equipment code. For ease of understanding, the description will be in terms of specific embodiments. For example, the server stores: the firmware upgrading method comprises the following steps of 1, 2, 3, namely an equipment identification number A corresponding to the equipment code 1, an equipment identification number B corresponding to the equipment code 2 and an equipment identification number C corresponding to the equipment code 3, wherein when the server detects that the equipment code of the household appliance to be subjected to firmware upgrading is as follows: and 2, the server finds out the equipment identification number corresponding to the equipment code 2 from the server through the equipment code 2: the device identification number B.
In this embodiment, the server searches for the device identification number corresponding to the device code from the server through the device code of the home appliance to be subjected to firmware upgrade, sends an inquiry instruction to the home appliance corresponding to the device identification number, and acquires distribution network information fed back by the home appliance based on the inquiry instruction. Through the equipment identification number, the server can also accurately push new firmware to the household appliances, so that the household appliances can be ensured to accurately finish firmware upgrading.
Further, based on the fifth embodiment, a seventh embodiment of the firmware upgrading method according to the present invention is provided, and step S230 includes:
step C1, packaging the distribution network information, the equipment identification number and the new firmware to generate a firmware upgrading package;
and after receiving the distribution network information sent by the household appliances, the server packages the distribution network information of the household appliances, the equipment identification numbers of the household appliances and the new firmware to be upgraded to form a firmware upgrade package.
Step C2, generating a check code of the firmware upgrade package;
in order to avoid that the household appliance cannot completely receive the firmware upgrading packet sent by the server, after the server receives the distribution network information sent by the household appliance, the distribution network information of the household appliance, the equipment identification number of the household appliance and the new firmware to be upgraded are packaged to form the firmware upgrading packet, and the check code of the firmware upgrading packet is generated, for example, the CRC code is generated when the firmware upgrading packet is packaged.
The check code is a verification code, such as a CRC code, for verifying whether the firmware upgrade package received by the home appliance is accurate.
And step C3, sending the check code and the firmware upgrading packet to the household appliance so that the household appliance can detect whether the received firmware upgrading packet is complete or not based on the check code.
And the server returns the firmware upgrade package and the check code to the household appliance according to the equipment identification number of the household appliance, so that the household appliance can determine whether the firmware upgrade package received by the household appliance is complete or not according to the check code.
The household appliance acquisition server generates a firmware upgrade package and a check code based on the distribution network information. And after the firmware upgrading packet and the check code are returned to the household appliance, the server sends an upgrading instruction to the household appliance. And after detecting the upgrading instruction sent by the server, the household appliance checks whether the received check code is correct or not.
If the home appliance checks that the check code is incorrect, the home appliance is proved to receive the incomplete firmware upgrade package; the household appliance deletes the firmware upgrade package downloaded from the server and sends a download error instruction to the server. And after receiving the downloading error instruction sent by the household appliance, the server judges whether to push the new firmware or not based on the downloading error instruction sent by the household appliance. And when the new firmware pushing is determined, the server sends the query instruction to the household appliances again so as to query the distribution network information of the household appliances, and executes the steps of recommending the new firmware to the household appliances and upgrading the firmware of the household appliances.
If the home appliance checks that the check code is correct, the home appliance is proved to receive the complete firmware upgrading package, and the firmware can be further upgraded. The household appliance obtains new firmware for upgrading the firmware of the household appliance from the firmware upgrading package fed back by the server, and the firmware upgrading of the household appliance is completed according to the new firmware.
In this embodiment, the server generates the check code of the firmware upgrade package and sends the check code to the home appliance, so that the home appliance generates the check code according to the server to check whether the firmware upgrade package acquired from the server is complete, and after the home appliance confirms that the firmware upgrade package acquired from the server is complete, the home appliance acquires new firmware from the firmware upgrade package to complete firmware upgrade. Therefore, the household appliances can complete the firmware upgrading process, and the problem that the household appliances fail to upgrade the firmware due to the fact that the household appliances cannot complete the firmware upgrading according to the firmware upgrading package because the firmware upgrading package obtained by the household appliances from the server is incomplete is avoided.
After detecting that the firmware upgrade package acquired from the server is incomplete, the household appliance deletes the acquired firmware upgrade package, and avoids useless files from occupying the memory of the household appliance; meanwhile, the household appliance sends the error downloading instruction to the server, and the server further pushes new firmware to the household appliance according to the error downloading instruction sent by the household appliance so as to upgrade the firmware of the household appliance. Therefore, the server can accurately push the new firmware according to the information fed back by the household appliance, and the household appliance can accurately finish the firmware upgrading process.
Further, based on the above fifth embodiment, sixth embodiment or seventh embodiment, an eighth embodiment of the firmware upgrading method of the present invention is proposed, and step S220 includes:
sending a query instruction to the household appliance according to the equipment identification number;
and acquiring the distribution network information of the household appliances fed back by the household appliances based on the query instruction.
And the server sends a query instruction for querying the distribution network information of the household appliances to the household appliances corresponding to the equipment identification number so that the household appliances can feed back the distribution network information of the household appliances to the server based on the query instruction. After receiving the query instruction sent by the server, the household appliance feeds back the distribution network information of the household appliance to the server. And the server acquires the distribution network information of the household appliances fed back by the household appliances based on the query instruction. The query instruction refers to an instruction which is generated by the server and used for querying the distribution network information of the household appliance before the firmware upgrade package is sent to the household appliance.
Further, the step of obtaining the distribution network information of the household appliance fed back by the household appliance based on the query instruction comprises:
step D1, detecting whether distribution network information of the household appliance fed back by the household appliance is received or not;
in order to avoid that the household appliance does not receive the query instruction sent by the server or that the household appliance does not feed back the distribution network information of the household appliance to the server after receiving the query instruction sent by the server, the server detects whether the distribution network information fed back by the household appliance is received or not after sending the query instruction.
Step D2, if the distribution network information is not received, detecting whether the difference between the current time and the time for sending the query instruction is greater than a preset time length or not, and if the difference between the current time and the time for sending the query instruction is greater than the preset time length, sending the query instruction to the household appliances again;
and if the server does not receive the distribution network information fed back by the household appliances, the server subtracts the time for sending the query instruction to the household appliances from the current time to obtain the waiting time of the server, and detects whether the waiting time of the server is greater than the preset time.
And if the waiting time of the server is longer than the preset time, the server sends the query instruction to the household appliances again until the distribution network information of the household appliances fed back by the household appliances based on the query instruction is obtained, so that the household appliances can query the distribution network information stored on Flash based on the query instruction and feed back the distribution network information to the server.
And if the waiting time of the server is less than or equal to the preset time, the server continues to wait for the distribution network information fed back by the household appliances.
The preset duration may be set according to specific requirements, and a specific value of the preset duration is not limited in this embodiment.
And D3, until the distribution network information fed back by the household appliance is obtained.
And if the server receives the distribution network information fed back by the household appliances after sending the query instruction, the server generates a firmware upgrade package according to the distribution network information of the household appliances, the equipment identification number of the household appliances and the new firmware.
In this embodiment, after the server sends the query instruction, if the waiting time of the server is longer than the preset time and the distribution network information fed back by the household appliance is not received yet, the server sends the query instruction to the household appliance again until the distribution network information fed back by the household appliance is obtained, so that the distribution network information of the household appliance can be obtained in time, and the distribution network information is provided for the subsequent firmware upgrading process timely and accurately.
Further, referring to fig. 5, fig. 5 is a schematic flowchart illustrating a step S240 in a ninth embodiment of the firmware upgrade method according to the present invention, and the ninth embodiment of the firmware upgrade method according to the present invention is proposed based on the above fifth embodiment, sixth embodiment or seventh embodiment, where the step S240 includes:
step S241, sending an upgrading instruction to the household appliance;
the server sends an upgrading instruction to the household appliance after returning the firmware upgrading packet to the household appliance, so that the household appliance obtains new firmware from the firmware upgrading packet fed back by the server after receiving the upgrading instruction sent by the server; and finishing the firmware upgrade of the household appliance according to the new firmware.
Step S242, acquiring a connection request generated after the upgrade of the home appliance is completed based on the upgrade instruction and the firmware upgrade package;
the household appliance obtains a firmware upgrading packet generated by the server based on the distribution network information, and after receiving an upgrading instruction sent by the server, the household appliance obtains a new firmware from the firmware upgrading packet fed back by the server; and the firmware upgrade of the household appliance is completed according to the new firmware. After the firmware of the household appliance is upgraded, the household appliance sets a starting sector zone bit so as to restart and run a new firmware. After the new firmware is started, the household appliances read the distribution network information and the equipment identification codes of the household appliances from the firmware upgrading package fed back by the server, and send connection requests to the server according to the read distribution network information and the equipment identification codes.
And the server acquires the connection request generated after the household appliance is upgraded based on the upgrade instruction and the firmware upgrade package.
And step S243, determining the equipment identification number of the household appliance according to the connection request, and establishing connection with the household appliance based on the equipment identification number.
And the server establishes network connection with the household appliances after verifying the distribution network information and the equipment identification codes sent by the household appliances based on the connection requests of the household appliances. Therefore, the whole firmware upgrading process of the household appliance is completed, and the household appliance is automatically connected with the server after the firmware upgrading is completed.
In this embodiment, after sending the firmware upgrade package to the home appliance, the server sends an upgrade instruction to the home appliance, so that after the home appliance completes firmware upgrade based on the firmware upgrade package and the upgrade instruction, the home appliance generates a connection request based on the device identification code and the distribution network information. The server acquires a connection request of the household appliance and establishes connection with the household appliance, so that the household appliance can automatically establish normal network connection with the server after firmware upgrading is completed, and manual participation in a network distribution process is not needed; the problem that the network needs to be manually re-distributed due to the fact that the household appliances cannot be automatically connected with the server after firmware upgrading is completed is solved.
In addition, referring to fig. 6, an embodiment of the present invention further provides a firmware upgrading system, where the firmware upgrading system includes a home appliance 100 and a server 200, where:
after detecting the new firmware to be upgraded, the server 200 acquires and sends a query instruction to the household appliance 100 according to the device identification number of the household appliance 100;
the household appliance 100 receives and sends the distribution network information of the household appliance 100 to the server 200 based on the query instruction;
the server 200 generates a firmware upgrade package according to the distribution network information, the device identification number and the new firmware, and sends the firmware upgrade package to the household appliance 100;
after receiving and completing the firmware upgrade based on the firmware upgrade package, the household appliance 100 acquires and establishes a connection with the server 200 according to the device identification number and the distribution network information of the household appliance 100.
It should be noted that the embodiments of the firmware upgrading system are substantially the same as the embodiments of the firmware upgrading method, and are not described herein again.
In addition, an embodiment of the present invention further provides a readable storage medium, where a firmware upgrade program is stored on the readable storage medium, and when the firmware upgrade program is executed by a processor, the steps of the firmware upgrade method described above are implemented.
For specific implementation of the readable storage medium of the present invention, reference may be made to the embodiments of the firmware upgrading method described above, which are not described herein again.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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 invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. 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 should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (15)

1. A firmware upgrading method is applied to household appliances, and is characterized by comprising the following steps:
sending the distribution network information of the household appliances to a server;
acquiring a firmware upgrading packet generated by the server based on the distribution network information; the code frame of the new firmware to be upgraded contained in the firmware upgrade package is different from the code frame of the old firmware which is not upgraded in the household appliance;
and finishing firmware upgrading of the household appliance according to the firmware upgrading packet, and establishing network connection between the household appliance and the server according to the distribution network information in the firmware upgrading packet.
2. The firmware upgrading method of claim 1, wherein the step of transmitting the distribution network information of the home appliance to the server comprises:
detecting whether an inquiry instruction generated by a server paired with the household appliance is received;
and if the inquiry command is detected, sending the distribution network information of the household appliance to the server.
3. The firmware upgrading method according to claim 1 or 2, wherein the firmware upgrading packet comprises the distribution network information, the device identification number of the household appliance and new firmware to be upgraded;
according to the firmware upgrade package, finishing the firmware upgrade of the household appliance, and according to the distribution network information in the firmware upgrade package, establishing the network connection between the household appliance and the server comprises the following steps:
acquiring the new firmware from the firmware upgrading packet, and finishing the firmware upgrading of the household appliance according to the new firmware;
restarting the firmware of the household appliance, and acquiring the equipment identification number and the distribution network information of the household appliance from the firmware upgrade package;
and connecting the household appliance to the server according to the equipment identification number and the distribution network information.
4. The firmware upgrading method according to claim 3, wherein the step of sending the distribution network information of the appliance to the server is followed by further comprising:
and acquiring a check code generated by the server based on the distribution network information.
5. The firmware upgrade method according to claim 4, wherein the step of acquiring the new firmware from the firmware upgrade package and completing the firmware upgrade of the home appliance according to the new firmware comprises:
when an upgrading instruction sent by a server is detected, detecting whether the firmware upgrading packet is complete or not according to the check code;
if the firmware upgrade package is detected to be complete, acquiring the new firmware from the firmware upgrade package;
and finishing the firmware upgrade of the household appliance according to the new firmware.
6. The firmware upgrade method according to claim 5, wherein the step of detecting whether the firmware upgrade package is complete further comprises:
if the firmware upgrading package is detected to be incomplete, deleting the acquired firmware upgrading package, and sending a downloading error instruction to the server;
and re-acquiring the query instruction generated by the server based on the download error instruction.
7. A firmware upgrading method is applied to a server and comprises the following steps:
when detecting a new firmware to be upgraded, acquiring an equipment identification number of the household appliance; the code frame of the new firmware to be upgraded is different from that of the old firmware which is not upgraded in the household appliance;
acquiring the distribution network information of the household appliance according to the equipment identification number;
generating a firmware upgrading packet according to the distribution network information, the equipment identification number and the new firmware, and sending the firmware upgrading packet to the household appliance;
and acquiring a connection request generated after the household appliance finishes upgrading based on the firmware upgrading packet, and establishing connection with the household appliance according to the connection request.
8. The firmware upgrading method according to claim 7, wherein the step of acquiring the device identification number of the home appliance after detecting the new firmware to be upgraded comprises:
when detecting a new firmware to be upgraded, acquiring the equipment code of the household appliance;
and acquiring the equipment identification number of the household appliance on the server according to the equipment code.
9. The firmware upgrading method according to claim 7, wherein the step of generating a firmware upgrading packet according to the distribution network information, the device identification number and the new firmware, and sending the firmware upgrading packet to the appliance comprises:
packaging the distribution network information, the equipment identification number and the new firmware to generate a firmware upgrading packet;
generating a check code of the firmware upgrade package;
and sending the check code and the firmware upgrade package to the household appliance so that the household appliance can detect whether the received firmware upgrade package is complete or not based on the check code.
10. The firmware upgrading method according to any one of claims 7 to 9, wherein the step of obtaining the distribution network information of the home appliance according to the device identification number comprises:
sending a query instruction to the household appliance according to the equipment identification number;
and acquiring the distribution network information of the household appliance fed back by the household appliance based on the query instruction.
11. The firmware upgrading method according to claim 10, wherein the step of obtaining the distribution network information of the appliance fed back by the appliance based on the query instruction comprises:
detecting whether distribution network information of the household appliances fed back by the household appliances is received or not;
if the distribution network information is not received, detecting whether the difference between the current time and the time for sending the query instruction is greater than a preset time length; if the difference between the current time and the time for sending the query instruction is detected to be greater than the preset time length, the query instruction is sent to the household appliance again;
and obtaining the distribution network information fed back by the household appliances.
12. The firmware upgrade method according to any one of claims 7 to 9, wherein the step of acquiring a connection request generated by the appliance after the upgrade is completed based on the firmware upgrade package, and establishing a connection with the appliance according to the connection request includes:
sending an upgrading instruction to the household appliance;
acquiring a connection request generated after the household appliance finishes upgrading based on the upgrading instruction and the firmware upgrading package;
and determining the equipment identification number of the household appliance according to the connection request, and establishing connection with the household appliance based on the equipment identification number.
13. An appliance, comprising: a memory, a processor, and a firmware upgrade program stored on the memory and executable on the processor, the firmware upgrade program when executed by the processor implementing the steps of:
sending the distribution network information of the household appliances to a server;
acquiring a firmware upgrading packet generated by the server based on the distribution network information; the code frame of the new firmware to be upgraded contained in the firmware upgrade package is different from the code frame of the old firmware which is not upgraded in the household appliance;
and finishing firmware upgrading of the household appliance according to the firmware upgrading packet, and establishing network connection between the household appliance and the server according to the distribution network information in the firmware upgrading packet.
14. A firmware upgrade system, comprising an appliance and a server, wherein:
after detecting the new firmware to be upgraded, the server acquires and sends an inquiry instruction to the household appliance according to the equipment identification number of the household appliance; the new firmware to be upgraded is different from a code frame of an old firmware which is not upgraded in the household appliance;
the household appliance receives the inquiry instruction and sends the distribution network information of the household appliance to the server based on the inquiry instruction;
the server generates a firmware upgrading packet according to the distribution network information, the equipment identification number and the new firmware, and sends the firmware upgrading packet to the household appliance;
and after receiving the firmware upgrading packet and finishing the firmware upgrading based on the firmware upgrading packet, the household appliances acquire and establish connection with the server according to the equipment identification numbers and the distribution network information of the household appliances.
15. A readable storage medium having stored thereon a firmware upgrade program which, when executed by a processor, implements the steps of the firmware upgrade method according to any one of claims 1 to 12.
CN201910556766.0A 2019-06-25 2019-06-25 Firmware upgrading method, household appliance, firmware upgrading system and readable storage medium Active CN112134718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910556766.0A CN112134718B (en) 2019-06-25 2019-06-25 Firmware upgrading method, household appliance, firmware upgrading system and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910556766.0A CN112134718B (en) 2019-06-25 2019-06-25 Firmware upgrading method, household appliance, firmware upgrading system and readable storage medium

Publications (2)

Publication Number Publication Date
CN112134718A CN112134718A (en) 2020-12-25
CN112134718B true CN112134718B (en) 2022-12-02

Family

ID=73849729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910556766.0A Active CN112134718B (en) 2019-06-25 2019-06-25 Firmware upgrading method, household appliance, firmware upgrading system and readable storage medium

Country Status (1)

Country Link
CN (1) CN112134718B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011156998A1 (en) * 2010-06-13 2011-12-22 中兴通讯股份有限公司 System and method for implementing automatic configuration for equipments
CN102710436A (en) * 2012-05-23 2012-10-03 福建星网锐捷网络有限公司 Network equipment management method, device, relative equipment and system
CN105700900A (en) * 2014-11-25 2016-06-22 青岛海信移动通信技术股份有限公司 Method and device for optimizing wireless local area network function
CN108366006A (en) * 2018-02-11 2018-08-03 四川虹美智能科技有限公司 A kind of intelligent appliance distribution method, apparatus and system
CN109412911A (en) * 2018-11-21 2019-03-01 广东美的制冷设备有限公司 Equipment distribution method, apparatus, household appliance and server
CN208657094U (en) * 2018-07-27 2019-03-26 杭州古北电子科技有限公司 A kind of intelligent network distribution speaker
CN109600401A (en) * 2017-09-30 2019-04-09 美的智慧家居科技有限公司 Household electrical appliances upgrade method, client and server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120246633A1 (en) * 2009-09-29 2012-09-27 Lg Innotek Co., Ltd. Electronic book and system for firmware upgrade of electronic book
US10419393B2 (en) * 2017-05-11 2019-09-17 International Business Machines Corporation Using network configuration analysis to improve server grouping in migration

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011156998A1 (en) * 2010-06-13 2011-12-22 中兴通讯股份有限公司 System and method for implementing automatic configuration for equipments
CN102710436A (en) * 2012-05-23 2012-10-03 福建星网锐捷网络有限公司 Network equipment management method, device, relative equipment and system
CN105700900A (en) * 2014-11-25 2016-06-22 青岛海信移动通信技术股份有限公司 Method and device for optimizing wireless local area network function
CN109600401A (en) * 2017-09-30 2019-04-09 美的智慧家居科技有限公司 Household electrical appliances upgrade method, client and server
CN108366006A (en) * 2018-02-11 2018-08-03 四川虹美智能科技有限公司 A kind of intelligent appliance distribution method, apparatus and system
CN208657094U (en) * 2018-07-27 2019-03-26 杭州古北电子科技有限公司 A kind of intelligent network distribution speaker
CN109412911A (en) * 2018-11-21 2019-03-01 广东美的制冷设备有限公司 Equipment distribution method, apparatus, household appliance and server

Also Published As

Publication number Publication date
CN112134718A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN108196878B (en) Method and device for generating application program installation package, electronic equipment and storage medium
CN107193612B (en) Version upgrading method and device for mobile terminal
WO2017049550A1 (en) Adapter and adapter upgrade method
CN107608701A (en) A kind of method and apparatus of firmware updating
CN101593119B (en) Method and device for firmware over-the-air of exclusive flash memory combined equipment
US8477647B2 (en) Connection setting apparatus, connection setting method, and computer program product
CN105898490A (en) Upgrading method for remote controller, television and remote controller
CN107193609B (en) Function module calling method and device in application and electronic equipment
CN108874426B (en) Application program updating method and device and readable storage medium
CN108182077B (en) Device, firmware upgrading method and device of device and storage medium
CN111901142B (en) Firmware silence upgrading method and device for embedded device cluster
CN105871568B (en) Software upgrading method and system
CN105978937A (en) Bluetooth slave device and upgrade method thereof
WO2016177169A1 (en) Electronic apparatus firmware update assisting method, device, and terminal
CN110535776B (en) Gateway current limiting method, device, gateway, system and storage medium
CN106469078A (en) A kind of upgrade method of intelligent appliance and device
CN113342419B (en) Push system loading method and device, electronic equipment and storage medium
CN108319551B (en) Software testing method and device, computer equipment and readable storage medium
CN112134718B (en) Firmware upgrading method, household appliance, firmware upgrading system and readable storage medium
CN113094064A (en) Gateway software module upgrading method, device, equipment and storage medium
CN112312212B (en) Upgrading method and related device for digital television system
CN106293814B (en) Upgrading method and device
CN112492577B (en) Profile migration method and device, SM-DP + and operator background system
CN112346760A (en) Application upgrading method, system, equipment and storage medium
CN110688136A (en) Application program updating method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant