CN107291516B - A kind of firmware upgrade method and system - Google Patents

A kind of firmware upgrade method and system Download PDF

Info

Publication number
CN107291516B
CN107291516B CN201710565932.4A CN201710565932A CN107291516B CN 107291516 B CN107291516 B CN 107291516B CN 201710565932 A CN201710565932 A CN 201710565932A CN 107291516 B CN107291516 B CN 107291516B
Authority
CN
China
Prior art keywords
firmware
target object
firmware upgrade
upgrade
address url
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
CN201710565932.4A
Other languages
Chinese (zh)
Other versions
CN107291516A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201710565932.4A priority Critical patent/CN107291516B/en
Publication of CN107291516A publication Critical patent/CN107291516A/en
Application granted granted Critical
Publication of CN107291516B publication Critical patent/CN107291516B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1433Saving, restoring, recovering or retrying at system level during software upgrading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The application provides a kind of firmware upgrade method and system, and method includes: to obtain the edition upgrading instruction of user's input, and edition upgrading instruction includes at least the device address of target object;Version information, which is sent, to target object according to device address transfers instruction;Obtain firmware version number and firmware code number that target object transfers the target object of instruction feedback according to version information;By and the corresponding server of target object on obtain the address url of latest firmware corresponding with firmware code number version number and firmware upgrade, the address url of firmware upgrade is stored with firmware application programs corresponding with latest firmware version number;When getting the determination upgrade command of user's input, the address url of control target device access firmware upgrade is obtained by the address url of firmware upgrade and the address url of the firmware upgrade firmware application programs stored is issued to target object.Timely updating for the firmware version of target device is realized, user experience is improved.

Description

A kind of firmware upgrade method and system
Technical field
The present invention relates to technical field of electric equipment, and in particular to a kind of firmware program for electrical equipment rises The firmware upgrade method and system of grade.
Background technique
Currently, intelligent electric appliance has come into huge numbers of families, each electrical equipment will load necessary control when leaving the factory Processing procedure sequence, in order to provide better service, the control program that electrical equipment developer can constantly to electrical equipment to user It is tested and is adjusted, to repair loophole existing for former control program and increase new function etc. for electrical equipment.
However, needing the operation maintenance personnel of electrical equipment manual to device context after new control program development comes out The control program of equipment is updated, since operation maintenance personnel can not can know that the more specific location information of each electrical equipment, Therefore, after the requirement that electrical equipment user can only be waited actively to propose system upgrade, the location information of electrical equipment can be just obtained, Therefore, this mode low efficiency, at high cost, it is difficult to provide the user with good after-sale service.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of firmware liter that the firmware program for electrical equipment is upgraded Grade method and system, low efficiency, at high cost when solving the problems, such as in the prior art to smart machine progress firmware upgrade.
To achieve the above object, the embodiment of the present invention provides the following technical solutions:
A kind of firmware upgrade method, comprising:
The edition upgrading instruction of user's input is obtained, the edition upgrading instruction is with including at least the equipment of target object Location;
Version information, which is sent, to target object according to the device address transfers instruction;
Obtain firmware version number and firmware that target object transfers the target object of instruction feedback according to the version information Code clerk;
By and the corresponding server of the target object on obtain latest firmware version corresponding with the firmware code number Number and firmware upgrade address url, the address url of the firmware upgrade is stored with firmware corresponding with latest firmware version number Application program;
When getting the determination upgrade command of user's input, the address url of control target device access firmware upgrade leads to The address url for crossing firmware upgrade is obtained and the address url of the firmware upgrade firmware application programs stored is issued to the target Object.
Preferably, in above-mentioned firmware upgrade method, the address url of the control target device access firmware upgrade is specific Are as follows: the WIFI module for controlling the target device accesses the firmware upgrade address url.
Preferably, in above-mentioned firmware upgrade method, the target object is air-conditioning equipment;
The edition upgrading instruction includes: MAC Address, air-conditioning internal machine firmware ID and the air-conditioning of the WIFI module of air-conditioning equipment Outer machine firmware ID, wherein device address of the MAC Address of the WIFI module as the target object;
The firmware version number and firmware code number of the target object include: that the firmware version number of WIFI module and firmware are compiled Code number, the firmware version number of air-conditioning internal machine and firmware code number, the firmware version number of outdoor machine of air-conditioner and firmware code number.
Preferably, in above-mentioned firmware upgrade method, when get user input determination upgrade command when before, also wrap It includes:
Judge the firmware version number by the WIFI module of target device acquisition and the WIFI module by server acquisition most New firmware version number, the firmware version number of the air-conditioning internal machine obtained by target device with the air-conditioning internal machine obtained by server most New firmware version number, the firmware version number of the outdoor machine of air-conditioner obtained by target device with the outdoor machine of air-conditioner obtained by server most Whether new firmware version number is consistent;
The address url of the access firmware upgrade, specifically: whether the WIFI module is judged according to above-mentioned judging result Firmware upgrade is needed, if so, the address url of the WIFI module firmware upgrade is accessed, when the WIFI module firmware upgrade After or WIFI module do not need update when, judge whether air-conditioning internal machine needs firmware upgrade, if so, accessing the air-conditioning The address url of interior machine firmware upgrade, after the air-conditioning internal machine firmware upgrade or when air-conditioning internal machine does not need to update, judgement Whether outdoor machine of air-conditioner needs firmware upgrade, if so, accessing the address url of the outdoor machine of air-conditioner firmware upgrade.
Preferably, in above-mentioned firmware upgrade method, can not obtain on by server corresponding with the target object with When the address url of the corresponding firmware upgrade of the firmware code number, the mark letter for the label being arranged on the target object is obtained Breath obtains the address url of firmware upgrade according to the identification information.
Preferably, in above-mentioned firmware upgrade method, after the address url for accessing firmware upgrade further include:
During firmware application programs are issued to the target object, because suspension leads to target object and the firmware When the address url connection of upgrading disconnects, breakpoint is marked automatically, when detecting that network is normal, is judged whether there is disconnected The label of point is based on breakpoint location if so, establishing the connection between target object and the address url of the firmware upgrade, after It is continuous to obtain firmware application programs.
A kind of firmware upgrade system, comprising:
User instruction acquisition unit, for obtaining the edition upgrading instruction of user's input, the edition upgrading instruction is at least Device address including target object;
Local version transfers unit, transfers instruction for sending version information to target object according to the device address, Obtain firmware version number and firmware code number that target object transfers the target object of instruction feedback according to the version information;
Server version transfers unit, for being compiled by obtaining on server corresponding with the target object with the firmware Code number corresponding latest firmware version number and firmware upgrade address url, the address url of the firmware upgrade be stored with most The corresponding firmware application programs of new firmware version number;
Version updating unit, for controlling the target device and visiting when getting the determination upgrade command of user's input The address url for asking firmware upgrade, the firmware for obtaining by the address url of firmware upgrade and storing the address url of firmware upgrade Application program is issued to the target object.
Preferably, in above-mentioned firmware upgrade system, further includes:
The address acquisition unit of firmware upgrade, for obtaining the label being arranged on the target object according to user's operation Identification information obtains the address url of firmware upgrade according to the identification information.
It preferably, further include breakpoint transmission unit in above-mentioned firmware upgrade system, the breakpoint transmission unit is arranged in institute It states in target device, is used for:
During firmware application programs are issued to the target object, because suspension leads to target object and the firmware When the address url connection of upgrading disconnects, breakpoint is marked automatically, when detecting that network is normal, is judged whether there is disconnected The label of point is based on breakpoint location if so, establishing the connection between target object and the address url of the firmware upgrade, after It is continuous to obtain firmware application programs.
Preferably, in above-mentioned firmware upgrade system, further includes:
WIFI module transfers unit, version updating unit, between server for realizing target device and local version Data interaction.
Based on the above-mentioned technical proposal, above scheme provided in an embodiment of the present invention, when needing the firmware version to target device It when this is upgraded, is communicated with target device, obtains version number and the firmware of the firmware of the required upgrading of target device Code clerk, according to the firmware code number by server end obtain corresponding latest firmware version number and for store it is described most The firmware upgrade address url of the new corresponding application program of firmware version number, when user passes through the firmware version number and newest It when firmware version number judgement needs to upgrade firmware, generates and determines upgrade command, instructed and controlled by the fixed raise of wages Target device accesses firmware upgrade address url, and the latest firmware version for obtaining server end storage by the address is corresponding to answer With program, local firmware version is updated, to realize timely updating for the firmware version of target device, improves use Family Experience Degree.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow diagram of firmware upgrade method disclosed in the embodiment of the present application;
Fig. 2 is a kind of structural schematic diagram of firmware upgrade system disclosed in the embodiment of the present application;
Fig. 3 is a kind of structural schematic diagram of user terminal disclosed in the embodiment of the present application.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In order to make housed device timely update the version information of firmware, this application discloses a kind of firmware upgrade sides Method and system, this method can system be applied to set by user terminal (also referring to the internet devices such as mobile phone, computer), target In the system that standby (also referring to the smart machines such as air-conditioning, refrigerator, washing machine) and server form.
Referring to Fig. 1, firmware upgrade method disclosed in the embodiment of the present application may include:
Step S101: obtaining the edition upgrading instruction of user's input, and the edition upgrading instruction includes at least target object Device address;
In method disclosed in the embodiment of the present application, an app can be pre-seted, in the app preparatory bound targets object with Binding relationship between user account, by the device address of the available target object of the binding relationship;Wherein, the target pair The device address of elephant can pass through the WIFI module for the MAC Address of the WIFI module of its insertion, the user terminal Data interaction is carried out using udp protocol and the user terminal.When user needs to check the firmware version of some target device, User can input edition upgrading instruction by equipment such as keyboards, and the ground of target object is included at least in the edition upgrading instruction Location information can send version information to target device by the address information and transfer instruction;
Step S102: version information is sent to target object according to the device address and transfers instruction;
In this step, the device address of the target object in the upgrade command is transferred, build version information transfers finger It enables, using the device address as destination address, Xiang Suoshu destination address sends the version information and transfers instruction;
Step S103: the firmware version that target object transfers the target object of instruction feedback according to the version information is obtained Number and firmware code number;
In this step, the target device obtains the firmware version of its firmware when getting version information and transferring instruction This information (version information of the current application program of firmware) and firmware code.In this step, in each smart machine There are some scalable components, such as intelligent air condition, the capable of updating firmware of intelligent air condition may include WIFI module, air-conditioning internal machine And outdoor machine of air-conditioner transfers the WIFI module, air-conditioning when the WIFI module, which gets the version information, transfers instruction The firmware version and firmware code number of interior machine and outdoor machine of air-conditioner, by the WIFI module, air-conditioning internal machine and outdoor machine of air-conditioner Firmware version and firmware code number feed back to user terminal.Wherein, the firmware code number is used to inquire in server end Latest edition corresponding with firmware and the corresponding application program of latest edition.
Step S104: by and the corresponding server of the target object on obtain it is corresponding with the firmware code number newest Firmware version number and the address url of firmware upgrade, the address url of the firmware upgrade are stored with and latest firmware version number pair The firmware application programs answered;
In this step, when getting the firmware code that the target device is sent, the user terminal and service Communication is established at device end, the firmware code number is sent to the server end, the server end is getting the firmware After code clerk, inquire the latest firmware version number of corresponding with the firmware code number component, and with latest firmware version pair The address url (the address url of firmware upgrade) for the application program answered, the target device can be obtained by the address url The application program of the latest edition of the component of required upgrading;
Step S105: when getting the determination upgrade command of user's input, control target device access firmware upgrade Address url is obtained by the address url of firmware upgrade and is issued the address url of the firmware upgrade firmware application programs stored To the target object.
In this step, user is in the firmware version number and all parts for getting all parts of the target device Latest firmware version number when, the two can be shown in user terminal, user can actively judge whether to need to update solid Part version is sent to the target device by user terminal when needing to update firmware version and determines upgrade command, the determination The corresponding firmware upgrade address url of firmware upgraded needed for including in upgrade command, after target device obtains address url, The address url is accessed, by transferring the corresponding firmware application programs of latest firmware version number in the corresponding webpage in the address, works as firmware After the completion of application program downloading, the application program of the former firmware of the target device is updated, and update firmware version number, will updated Firmware version number afterwards is sent to the user terminal to prompt user's firmware upgrade to finish.
Disclosed in the above embodiments of the present application in technical solution, when needing the firmware version to target device to upgrade When, it is communicated with target device, obtains version number and the firmware code number of the firmware of the required upgrading of target device, foundation The firmware code number by server end obtains corresponding latest firmware version number and for storing the latest firmware version The firmware upgrade address url of number corresponding application program, when user passes through the firmware version number and latest firmware version number It when judgement needs to upgrade firmware, generates and determines upgrade command, instruct control target device to visit by the fixed raise of wages It asks firmware upgrade address url, the corresponding application program of latest firmware version of server end storage is obtained by the address, to this Ground firmware version is updated, to realize timely updating for the firmware version of target device, improves user experience.
Disclosed in the above embodiments of the present application in technical solution, when downloading the application program of latest firmware version, institute It states target device and passes through foundation wireless connection between WIFI module and server end, and carry out data interaction, therefore, above scheme In, the address url of the control target device access firmware upgrade specifically: control the WIFI module access of the target device The firmware upgrade address url.
In above scheme, the user can carry out account registration on the app of user terminal in advance, under the register account number Multiple target devices and the corresponding server of each target device are bound, the WIFI module of each target device can be passed through MAC Address determination need to establish linking objective equipment with user terminal app, for example, when the target object is air-conditioning equipment;Institute State MAC Address, air-conditioning internal machine firmware ID and the outdoor machine of air-conditioner firmware that edition upgrading instruction includes: the WIFI module of air-conditioning equipment ID, wherein device address of the MAC Address of the WIFI module as the target object;User terminal is by above-mentioned version liter When grade instruction is sent to the WIFI module, the target device is solid according to MAC Address, air-conditioning internal machine firmware ID and outdoor machine of air-conditioner Part ID obtains the firmware version letter of these objects using WIFI module, air-conditioning internal machine and outdoor machine of air-conditioner as the object upgraded Breath and firmware code number, and the firmware version information and firmware code number that will acquire are sent to the user terminal.
It is corresponding with above-described embodiment, when the target device is air-conditioning equipment, the firmware version of the target object Number and firmware code number include: WIFI module firmware version number and firmware code number, the firmware version number of air-conditioning internal machine and solid The firmware version number and firmware code number of part code clerk, outdoor machine of air-conditioner.
When judging whether to need to be updated the version of firmware, can be realized in such a way that user actively judges, It can certainly be realized automatically by preset judgment rule, that is, before when getting the determination upgrade command of user's input, Can also include:
Judge the firmware version number by the WIFI module of target device acquisition and the WIFI module by server acquisition most The firmware version number for the air-conditioning internal machine that whether new firmware version number is consistent, is obtained by target device and the air-conditioning obtained by server The firmware version number for the outdoor machine of air-conditioner that whether the latest firmware version number of interior machine is consistent, is obtained by target device is obtained with by server Whether the latest firmware version number of the outdoor machine of air-conditioner taken is consistent;If some judging result be it is inconsistent, show the judgement pair The firmware version answered needs to upgrade, if unanimously, showing that firmware version corresponding to the judgement does not need to upgrade;
When target device is air-conditioning equipment, in the present embodiment, also the upgrading sequence of firmware version is defined, i.e., The firmware version for first upgrading WIFI module, then upgrades the firmware version of air-conditioning internal machine, finally upgrades the firmware version of outdoor machine of air-conditioner This.That is, in above scheme, the address url of the access firmware upgrade, specifically: according to described in the judgement of above-mentioned judging result Whether WIFI module needs to carry out firmware upgrade, if so, the address url of the WIFI module firmware upgrade is accessed, by this Address obtains the corresponding application program of latest firmware version of the WIFI module, after the WIFI module firmware upgrade Or WIFI module then judges whether air-conditioning internal machine needs to carry out firmware upgrade, if so, accessing the air-conditioning when not needing to update The address url of interior machine firmware upgrade obtains the corresponding application program of latest firmware version of the air-conditioning internal machine by the address, After the air-conditioning internal machine firmware upgrade or when air-conditioning internal machine does not need to update, judge whether outdoor machine of air-conditioner needs firmware liter Grade, if so, accessing the address url of the outdoor machine of air-conditioner firmware upgrade, obtains the newest of the outdoor machine of air-conditioner by the address The corresponding application program of firmware version.It is pointed out that being not responding to when the outdoor machine of air-conditioner does not need to carry out edition upgrading yet The determination upgrade command of user's input.
Disclosed in another embodiment of the application in technical solution, the nothing on by server corresponding with the target object It, can also be by being arranged on the target device when method obtains the address url of firmware upgrade corresponding with the firmware code number Label on obtain firmware upgrade address url, that is, the ground for carrying out firmware upgrade can be set on the target device Location url, the address can be arranged on label with the identification information of two dimensional code, bar code or other forms, and user can pass through User terminal acquires the identification information on label to obtain the address url for carrying out firmware upgrade.
Disclosed in the application the present embodiment in technical solution, the movement for judging whether to firmware upgrade can serviced Device end is directly judged, such as air-conditioning internal machine receives the EE program version number (firmware version number) and EE that outdoor machine of air-conditioner is sent When encoding (firmware code number), it can be transmitted to server and user terminal respectively by WIFI module, server according to Version number judges whether to need to update, if version number is less than the newest EE program version in server, server will be sentenced Disconnected result is sent to the user terminal, and when server gets the determination edition upgrading instruction of user terminal transmission, server will The corresponding EE program of newest EE program version number issues air-conditioning internal machine by WIFI module, and air-conditioning internal machine writes data into air-conditioning Data after verification is correct, are transmitted to outdoor machine of air-conditioner in such a way that inside and outside zero firewire of machine communicates by machine eeprom chip, to air-conditioning outside Nationality EE program is upgraded.WIFI module and air-conditioning internal machine carry out the process of firmware upgrade and the mode of air-conditioning foreign nationality firmware upgrade It is similar, it is not illustrated one by one.
In practical application, under abnormal condition, such as: occur the case where " suspension " suddenly, if at this time The firmware program of escalation target equipment, then target device will carry out breakpoint label to the program obtained automatically.Work as detection When marking to the breakpoint, the target device stops continuing firmware upgrade request.And the promoted portion of target device at this time Branch can be saved in a part of storage region opened up in the memory of target device, can be with if the program of upgrading is larger It is saved in external eeprom chip.When next network is normal, whether target device automaticly inspects to have causes because of power-off Breakpoint label continue the program point continuation of the transmission of last time if there is just directly access breakpoint marks the corresponding address url It is transmitted, until being transmitted.It, can be by way of opening up multithreading during firmware upgrade procedure, upgrade procedure is simultaneously It will not influence the execution of the normal procedure of target device.After updating operation is completed, target device can write the program after upgrading Enter into flash, after being written successfully, the firmware of upgrading can be automatically reset.The firmware of upgrading carries out updated Program.By the above-mentioned means, the failure that target device caused by " suspension " is not available can be effectively prevented, avoid simultaneously Rewrite floating resources caused by downloading and waste of time.
That is, in above scheme, after the address url for accessing firmware upgrade further include:
During firmware application programs are issued to the target object, because suspension leads to target object and the firmware When the address url connection of upgrading disconnects, breakpoint is marked automatically, when detecting that network is normal, is judged whether there is disconnected The label of point is based on breakpoint location if so, establishing the connection between target object and the address url of the firmware upgrade, after It is continuous to obtain firmware application programs.
Firmware upgrade system provided by the embodiments of the present application is described below, firmware upgrade system described below with Above-described firmware upgrade method can correspond to each other reference.
Referring to fig. 2, above-mentioned a kind of firmware upgrade system may include:
User terminal A and server B;
Referring to Fig. 3, the user terminal A may include:
User instruction acquisition unit 100, corresponding with step S101, the edition upgrading for obtaining user's input refers to It enables, the edition upgrading instruction includes at least the device address of target object;
Binding relationship between preparatory bound targets object and user account in the user terminal, after user logs in, It can be by the device address of the available target object of the binding relationship;Wherein, the device address of the target object can be The MAC Address of its WIFI module being embedded in, the user terminal can be by the WIFI modules using udp protocol and the use Family terminal carries out data interaction.When user needs to check the firmware version of some target device, user can pass through keyboard etc. Equipment is instructed to the user instruction acquisition unit 100 input edition upgrading, includes at least target in the edition upgrading instruction Edition upgrading instruction is sent to local version again and transfers list by the address information of object, the user instruction acquisition unit 100 Member 200;
Local version transfers unit 200, corresponding with step S102-S103, and local version is transferred unit 200 and is used for When getting edition upgrading instruction, it is parsed to obtain its device address for being included, according to the device address to target pair As sending version information transfer instruction, acquisition target object is consolidated according to the target object that the version information transfers instruction feedback Part version number and firmware code number;
The semantic object extraction transfers instruction to version information, transfers the firmware version that can carry out the firmware of firmware upgrade Number and firmware code number and feed back to the local version and transfer unit 200.Wherein, there is some rise in each smart machine The component of grade, such as intelligent air condition, the capable of updating firmware of intelligent air condition may include outside WIFI module, air-conditioning internal machine and air-conditioning Machine transfers the WIFI module, air-conditioning internal machine and sky when the WIFI module, which gets the version information, transfers instruction The firmware version and firmware code number for adjusting outer machine, by the firmware version of the WIFI module, air-conditioning internal machine and outdoor machine of air-conditioner And firmware code number feeds back to user terminal.Wherein, the firmware code number is used to inquire in server end corresponding with firmware Latest edition and the corresponding application program of latest edition.
Server version transfers unit 300, corresponding with step S104, for by clothes corresponding with the target object The address url of latest firmware corresponding with the firmware code number version number and firmware upgrade, the firmware are obtained on business device The address url of upgrading is stored with firmware application programs corresponding with latest firmware version number;
When getting the firmware code that the target device is sent, the user terminal and server end are established and are led to Letter, is sent to the server end for the firmware code number, the server end is looked into after getting the firmware code number Ask the latest firmware version number of component corresponding with the firmware code number, and application program corresponding with latest firmware version Address url (the address url of firmware upgrade), the target device can pass through the address url obtain needed for upgrade portion The application program of the latest edition of part;
Version updating unit 400, it is corresponding with step S105, for when the determination upgrade command for getting user's input When, the address url of target device access firmware upgrade is controlled, is obtained by the address url of firmware upgrade and by firmware liter The firmware application programs of the address url storage of grade are issued to the target object.
The user terminal A is in the firmware version number and all parts for getting all parts of the target device When latest firmware version number, the two can be shown in user terminal, user can actively judge whether to need to update firmware Version is sent to the target device by version updating unit 400 when needing to update firmware version and determines upgrade command, The corresponding firmware upgrade address url of firmware upgraded needed for including in the determination upgrade command, target device obtain the address After url, the address url is accessed, by transferring the corresponding firmware application journey of latest firmware version number in the corresponding webpage of address url Sequence updates the application program of the former firmware of the target device, and update firmware version after the completion of firmware application programs downloading Number, updated firmware version number is sent to the user terminal to prompt user's firmware upgrade to finish.
It corresponds to the above method, user terminal described in above system can also include: judging unit, and the judgement is single Member is for judge the newest of the firmware version number by the WIFI module of target device acquisition and the WIFI module that is obtained by server In the firmware version number of air-conditioning internal machine and the air-conditioning by server acquisition that whether firmware version number is consistent, is obtained by target device The firmware version number for the outdoor machine of air-conditioner that whether the latest firmware version number of machine is consistent, is obtained by target device is obtained with by server Outdoor machine of air-conditioner latest firmware version number it is whether consistent;If some judging result be it is inconsistent, show that the judgement is corresponding Firmware version need to upgrade, if unanimously, showing that firmware version corresponding to the judgement does not need to upgrade.
It corresponds to the above method, when the target device is air-conditioning equipment, the version updating unit 400 is specifically used In: the judging result according to above-mentioned judging unit judges whether the WIFI module needs to carry out firmware upgrade, if so, access The address url of the WIFI module firmware upgrade, the latest firmware version for obtaining the WIFI module by the address are corresponding Application program after the WIFI module firmware upgrade or when WIFI module does not need to update, then judges that air-conditioning internal machine is It is no to need to carry out firmware upgrade, if so, accessing the address url of the air-conditioning internal machine firmware upgrade, institute is obtained by the address The corresponding application program of latest firmware version for stating air-conditioning internal machine, after the air-conditioning internal machine firmware upgrade or air-conditioning internal machine When not needing to update, judge whether outdoor machine of air-conditioner needs firmware upgrade, if so, accessing the ground of the outdoor machine of air-conditioner firmware upgrade Location url obtains the corresponding application program of latest firmware version of the outdoor machine of air-conditioner by the address.It is pointed out that institute When stating outdoor machine of air-conditioner and also not needing to carry out edition upgrading, it is not responding to the determination upgrade command of user input.
The case where corresponding to the above method, the code clerk of firmware can not being obtained by server end in order to prevent, above-mentioned system Can also include: in system
The address acquisition unit of firmware upgrade, for obtaining the label being arranged on the target object according to user's operation Identification information obtains the address url of firmware upgrade according to the identification information.
It corresponds to the above method, occurs the case where suspension during version updating in order to prevent, above system can be with Including breakpoint transmission unit, which is arranged in the target device, is used for:
During firmware application programs are issued to the target object, because suspension leads to target object and the firmware When the address url connection of upgrading disconnects, breakpoint is marked automatically, when detecting that network is normal, is judged whether there is disconnected The label of point is based on breakpoint location if so, establishing the connection between target object and the address url of the firmware upgrade, after It is continuous to obtain firmware application programs.
It corresponds to the above method, can also include WIFI module, for realizing target device and this in above system Ground version transfers unit, version updating unit, the data interaction between server.
For convenience of description, it is divided into various modules when description system above with function to describe respectively.Certainly, implementing this The function of each module can be realized in the same or multiple software and or hardware when application.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system or For system embodiment, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method The part of embodiment illustrates.System and system embodiment described above is only schematical, wherein the conduct The unit of separate part description may or may not be physically separated, component shown as a unit can be or Person may not be physical unit, it can and it is in one place, or may be distributed over multiple network units.It can root According to actual need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill Personnel can understand and implement without creative efforts.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of firmware upgrade method characterized by comprising
The edition upgrading instruction of user's input is obtained, the edition upgrading instruction includes at least the device address of target object;
Version information, which is sent, to target object according to the device address transfers instruction;
Obtain firmware version number and firmware code that target object transfers the target object of instruction feedback according to the version information Number;
By and the corresponding server of the target object on obtain latest firmware corresponding with the firmware code number version number with And the address url of firmware upgrade, the address url of the firmware upgrade are stored with firmware application corresponding with latest firmware version number Program;
When getting the determination upgrade command of user's input, the address url of control target device access firmware upgrade, by solid The address url of part upgrading is obtained and the address url of the firmware upgrade firmware application programs stored is issued to the target object.
2. firmware upgrade method according to claim 1, which is characterized in that the control target device accesses firmware upgrade Address url specifically: the WIFI module for controlling the target device accesses the firmware upgrade address url.
3. firmware upgrade method according to claim 1, which is characterized in that the target object is air-conditioning equipment;
The edition upgrading instruction includes: MAC Address, air-conditioning internal machine firmware ID and the outdoor machine of air-conditioner of the WIFI module of air-conditioning equipment Firmware ID, wherein device address of the MAC Address of the WIFI module as the target object;
The firmware version number and firmware code number of the target object include: the firmware version number and firmware code of WIFI module Number, the firmware version number of air-conditioning internal machine and firmware code number, the firmware version number of outdoor machine of air-conditioner and firmware code number.
4. firmware upgrade method according to claim 3, which is characterized in that when the determining upgrading for getting user's input refers to Before when enabling, further includes:
Judge the newest solid of the firmware version number of the WIFI module obtained by target device and the WIFI module that is obtained by server Part version number, the air-conditioning internal machine obtained by target device firmware version number and the air-conditioning internal machine that is obtained by server it is newest solid Part version number, the outdoor machine of air-conditioner obtained by target device firmware version number and the outdoor machine of air-conditioner that is obtained by server it is newest solid Whether part version number is consistent;
The address url of the access firmware upgrade, specifically: judge whether the WIFI module needs according to above-mentioned judging result Firmware upgrade, if so, the address url of the WIFI module firmware upgrade is accessed, when the WIFI module firmware upgrade terminates When afterwards or WIFI module does not need to update, judge whether air-conditioning internal machine needs firmware upgrade, if so, accessing the air-conditioning internal machine The address url of firmware upgrade judges air-conditioning after the air-conditioning internal machine firmware upgrade or when air-conditioning internal machine does not need to update Whether outer machine needs firmware upgrade, if so, accessing the address url of the outdoor machine of air-conditioner firmware upgrade.
5. firmware upgrade method according to claim 1, which is characterized in that when by service corresponding with the target object When can not obtain the address url of firmware upgrade corresponding with the firmware code number on device, obtains and be arranged on the target object Label identification information, according to the identification information obtain firmware upgrade address url.
6. firmware upgrade method according to claim 1, which is characterized in that the address url for accessing firmware upgrade is gone back later Include:
During firmware application programs are issued to the target object, because suspension leads to target object and the firmware upgrade Address url connection disconnect when, breakpoint is marked automatically, when detecting that network is normal, judges whether there is breakpoint Label is based on breakpoint location, continues to obtain if so, establishing the connection between target object and the address url of the firmware upgrade Take firmware application programs.
7. a kind of firmware upgrade system characterized by comprising
User instruction acquisition unit, for obtaining the edition upgrading instruction of user's input, the edition upgrading instruction is included at least The device address of target object;
Local version transfers unit, transfers instruction for sending version information to target object according to the device address, obtains Target object transfers the firmware version number and firmware code number of the target object of instruction feedback according to the version information;
Server version transfers unit, for by obtaining and the firmware code number on server corresponding with the target object The address url of corresponding latest firmware version number and firmware upgrade, the address url of the firmware upgrade be stored with it is newest solid The corresponding firmware application programs of part version number;
Version updating unit, for when getting the determination upgrade command of user's input, control target device to access firmware liter The address url of grade, the firmware application programs for obtaining by the address url of firmware upgrade and storing the address url of firmware upgrade It is issued to the target object.
8. firmware upgrade system according to claim 7, which is characterized in that further include:
The address acquisition unit of firmware upgrade, for obtaining the mark for the label being arranged on the target object according to user's operation Information obtains the address url of firmware upgrade according to the identification information.
9. firmware upgrade system according to claim 7, which is characterized in that further include breakpoint transmission unit, the breakpoint It resumes unit to be arranged in the target device, be used for:
During firmware application programs are issued to the target object, because suspension leads to target object and the firmware upgrade Address url connection disconnect when, breakpoint is marked automatically, when detecting that network is normal, judges whether there is breakpoint Label is based on breakpoint location, continues to obtain if so, establishing the connection between target object and the address url of the firmware upgrade Take firmware application programs.
10. firmware upgrade system according to claim 7, which is characterized in that further include:
WIFI module, for realizing the data interaction between target device and version updating unit, server.
CN201710565932.4A 2017-07-12 2017-07-12 A kind of firmware upgrade method and system Active CN107291516B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710565932.4A CN107291516B (en) 2017-07-12 2017-07-12 A kind of firmware upgrade method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710565932.4A CN107291516B (en) 2017-07-12 2017-07-12 A kind of firmware upgrade method and system

Publications (2)

Publication Number Publication Date
CN107291516A CN107291516A (en) 2017-10-24
CN107291516B true CN107291516B (en) 2019-10-22

Family

ID=60101281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710565932.4A Active CN107291516B (en) 2017-07-12 2017-07-12 A kind of firmware upgrade method and system

Country Status (1)

Country Link
CN (1) CN107291516B (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109951860B (en) * 2017-12-21 2022-07-08 深圳Tcl新技术有限公司 Method for acquiring WIFI information, smart television and storage medium
CN108334282B (en) * 2017-12-28 2021-07-09 宁德时代新能源科技股份有限公司 Method and device for downloading program file of automobile electronic control unit
CN108616391A (en) * 2018-04-11 2018-10-02 杭州嘉楠耘智信息科技有限公司 Method and system for upgrading equipment firmware at server side
CN108769214B (en) * 2018-05-31 2020-02-14 北京百度网讯科技有限公司 Method and apparatus for controlling edge computing device, and method and apparatus for updating data
CN108958786B (en) * 2018-06-15 2021-11-12 合肥美的电冰箱有限公司 Matching and updating processing method and device for refrigerator software
CN109213506A (en) * 2018-08-24 2019-01-15 郑州云海信息技术有限公司 A kind of firmware information acquisition methods and relevant apparatus
CN109343881A (en) * 2018-10-11 2019-02-15 珠海格力电器股份有限公司 Firmware upgrade update method, device and air-conditioning
CN109739528B (en) * 2018-12-03 2020-12-15 珠海格力电器股份有限公司 Equipment upgrading method and device, storage medium and terminal
CN109669714A (en) * 2018-12-19 2019-04-23 广东美的暖通设备有限公司 Firmware upgrade method, device and computer readable storage medium
CN110113183A (en) * 2019-04-10 2019-08-09 深圳市飞比电子科技有限公司 Firmware update, device, Internet of things system, electronic equipment and storage medium
CN110311801A (en) * 2019-05-10 2019-10-08 珠海格力电器股份有限公司 A kind of device firmware upgrade method and system
CN111309348B (en) * 2019-05-27 2023-05-02 深圳市鸿合创新信息技术有限责任公司 Firmware upgrading method of electronic equipment and electronic equipment
CN110795119A (en) * 2019-09-19 2020-02-14 平安科技(深圳)有限公司 Firmware upgrading method and device, computer equipment and storage medium
WO2021051370A1 (en) * 2019-09-20 2021-03-25 深圳市大疆创新科技有限公司 Device control method and system as well as control terminal
CN110825404A (en) * 2019-10-21 2020-02-21 珠海格力电器股份有限公司 Multi-version firmware upgrading method and device and networking equipment
CN110851158B (en) * 2019-10-30 2023-08-15 广东汇泰龙科技股份有限公司 Method and system for upgrading external firmware of intelligent lock
CN111258611B (en) * 2020-01-22 2023-04-07 重庆长安汽车股份有限公司 Method for upgrading firmware of whole vehicle in air
CN111309362B (en) * 2020-02-28 2023-03-28 四川长虹空调有限公司 Remote upgrading method for parameters of outdoor unit of variable frequency air conditioner
CN111796844B (en) * 2020-06-29 2024-01-12 南京智鹤电子科技有限公司 Firmware upgrading method and device based on Bluetooth network topology and Bluetooth network topology
CN113944991A (en) * 2020-07-17 2022-01-18 海信(山东)空调有限公司 Air conditioner and firmware upgrading method
CN112732307B (en) * 2020-12-29 2024-03-08 北京浪潮数据技术有限公司 Firmware upgrading method, system and device for SSDs with different capacities
CN113852489A (en) * 2021-08-16 2021-12-28 青岛海尔科技有限公司 Upgrade package obtaining method and intelligent device
CN113835726B (en) * 2021-08-16 2023-11-28 青岛海尔科技有限公司 Method for determining upgrade package and server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045611A (en) * 2015-06-24 2015-11-11 深圳市兰丁科技有限公司 Upgrading method and apparatus
CN106681766A (en) * 2016-12-26 2017-05-17 广东芬尼克兹节能设备有限公司 Remote firmware upgrading controlling method and system
CN106802813A (en) * 2016-12-06 2017-06-06 智车优行科技(北京)有限公司 Method, device and vehicle for aerial firmware upgrade

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045611A (en) * 2015-06-24 2015-11-11 深圳市兰丁科技有限公司 Upgrading method and apparatus
CN106802813A (en) * 2016-12-06 2017-06-06 智车优行科技(北京)有限公司 Method, device and vehicle for aerial firmware upgrade
CN106681766A (en) * 2016-12-26 2017-05-17 广东芬尼克兹节能设备有限公司 Remote firmware upgrading controlling method and system

Also Published As

Publication number Publication date
CN107291516A (en) 2017-10-24

Similar Documents

Publication Publication Date Title
CN107291516B (en) A kind of firmware upgrade method and system
CN100527080C (en) Method for software program synchronization
CN106897086B (en) Method, device and system for upgrading robot operating system
CN102314369B (en) Self-upgrade method for equipment in remote online monitoring system
JP6444405B2 (en) Software update method, system and device
KR101007739B1 (en) Method and system for providing fota service
EP2456257B1 (en) Method and system for upgrading wireless data card
CN101241364B (en) Local controller, remote management controller and method for automatically updating the local controller of an air conditioner system
JP2004229266A (en) House electric appliance network system, house electric appliance network adapter, index server, house electric appliance network connection method, house electric appliance network adapter control method, and index server operating method
CN109842523A (en) A kind of firmware upgrade method, device, equipment and storage medium
CN105912340A (en) Primary device, remote control and overhead upgrading method of remote control
CN103634935B (en) WPS (Wi-Fi protected setup) or QSS (quick secure setup)-based network accessing method and device
CN106033322B (en) A kind of date storage method and device
CN109002310A (en) firmware upgrade method
CN104346198A (en) Information processing apparatus, server apparatus, information processing method, and program
CN109634634A (en) A kind of BMC firmware upgrade method, device and terminal
CN109189434A (en) A kind of online upgrading method of electric energy meter
CN109144532A (en) Upgrade method and device
CN102857358A (en) Customer premise equipment capable of repairing firmware and firmware repairing method of customer premise equipment
CN105933326A (en) Remote terminal data reporting method and device
CN106412078A (en) Precise information pushing method and system, and devices
CN109002305A (en) A kind of update method and its system of device program
CN109117161A (en) The online upgrading control method and appliance system of appliance system
CN105025467B (en) A kind of terminal control method and system based on MDM
CN103532870A (en) Method and device for updating Web application cluster

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