CN107491328A - Updating firmware program method, system and electric equipment - Google Patents

Updating firmware program method, system and electric equipment Download PDF

Info

Publication number
CN107491328A
CN107491328A CN201710652670.5A CN201710652670A CN107491328A CN 107491328 A CN107491328 A CN 107491328A CN 201710652670 A CN201710652670 A CN 201710652670A CN 107491328 A CN107491328 A CN 107491328A
Authority
CN
China
Prior art keywords
program
information
judged result
electric equipment
eigenvalue
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.)
Pending
Application number
CN201710652670.5A
Other languages
Chinese (zh)
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
Guangdong Midea HVAC Equipment Co Ltd
Original Assignee
Midea Group Co Ltd
Guangdong Midea HVAC 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, Guangdong Midea HVAC Equipment Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201710652670.5A priority Critical patent/CN107491328A/en
Publication of CN107491328A publication Critical patent/CN107491328A/en
Pending legal-status Critical Current

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
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The present invention proposes a kind of updating firmware program method, system and electric equipment, wherein, updating firmware program method includes:When it is determined that having the first program in storage medium in the connected external storage medium of electric equipment or electric equipment, the second program when electric equipment dispatches from the factory is determined;Determine the First Eigenvalue of the first program and the Second Eigenvalue of the second program;It is whether consistent with Second Eigenvalue to compare the First Eigenvalue, when consistent, determines the first program information of the first program and the second program information of the second program;Whether the first version information for comparing the first program information is consistent with the second edition information of the second program information;When first version information and second edition information are inconsistent, control apparatus equipment carries out firmware upgrade with the first program.By technical scheme, realize before upgrading first to file verification, just upgraded after it is determined that this document is errorless, reduce the possibility of firmware selection mistake.

Description

Updating firmware program method, system and electric equipment
Technical field
The present invention relates to electric equipment field, in particular to a kind of updating firmware program method, a kind of firmware upgrade System, a kind of computer equipment, a kind of computer-readable recording medium and a kind of electric equipment.
Background technology
At present, business air conditioner after dispatching from the factory due to client's differentiation customized demand, practical engineering application scene change, The reasons such as the bug of product is repaired, normal upgrading, often carry out software upgrading using the technology of firmware upgrade to product. Because the model of business air conditioner is more, product is complex, one complicated topological structure of multiple air-conditionings compositions, and firmware Upgrading flow is frequently not that the professional research staff of general headquarters completes, but gives the on-site technical support of all parts of the world or sell Personnel complete afterwards, although general headquarters can provide various operating processes and guide, because Field Force's professional skill is irregular not Together, being often possible to can the operational error in escalation process.Air-conditioning system China and foreign countries machine, interior machine, line control machine, central controller etc. are all different Firmware, even if being both that interior machine is also likely to be that multiple models are formed, the interior machine of different model will corresponding different firmware program.It is existing Nowadays, firmware upgrade scheme is usually to manually select upgrading burning code file used by operating personnel, in USB flash disk or SD card The middle a certain file for finding a certain path, once choosing is wrong, the program that may result in upgrading is wrong, and redaction firmware loads are complete Into afterwards, air-conditioning can not normal operation, ultimately result in system crash.
The content of the invention
It is contemplated that at least solves one of technical problem present in prior art or correlation technique.
Therefore, it is an object of the present invention to propose a kind of updating firmware program method.
Another object of the present invention is to propose a kind of updating firmware program system.
A further object of the present invention is to propose a kind of computer equipment.
A further object of the present invention is to propose a kind of computer-readable recording medium.
A further object of the present invention is to propose a kind of electric equipment.
In view of this, the technical scheme of first aspect present invention proposes a kind of updating firmware program method, including:It is determined that The first program whether is stored with storage medium in the external storage medium or electric equipment being connected with electric equipment, is generated First judged result;When the first judged result is to be, the second program when electric equipment dispatches from the factory is determined;Determine the first program The Second Eigenvalue of the First Eigenvalue and the second program;It is whether consistent with Second Eigenvalue to compare the First Eigenvalue, generation second Judged result;When the second judged result is to be, the first program information of the first program and the second program of the second program are determined Information;Compare the second edition information corresponding with the second program information of first version information corresponding to the first program information whether one Cause;When first version information and second edition information are inconsistent, control apparatus equipment carries out firmware upgrade with the first program.
In the technical scheme, by determining depositing in the external storage medium or electric equipment being connected with electric equipment The first program whether is stored with storage media, generates the first judged result, realizes whether automatic decision needs ROMPaq presence; When the first judged result is to be, the second program when electric equipment dispatches from the factory is determined, realizes and program of dispatching from the factory is carried to electric equipment Reading;Again by determining the First Eigenvalue of the first program and the Second Eigenvalue of the second program, according to checking algorithm, it is determined that First program is the check value that the check value of program to be upgraded and determination the second program i.e. electric equipment dispatch from the factory from tape program, than It is whether consistent with Second Eigenvalue compared with the First Eigenvalue, the second judged result is generated, is yes in the second judged result, illustrates first The First Eigenvalue of program is consistent with the Second Eigenvalue of the second program, and the file for being stored with the first program is not modified or broken It is bad;In the second judged result when being, to determine the first program information of the first program and the second program information of the second program, the One program information includes but is not limited to model information corresponding to the first program, item number information and version information, the second program letter Breath includes but is not limited to model information, project information and version information corresponding to the second program, and it is corresponding to compare the first program information First version information second edition information corresponding with the second program information it is whether consistent, in first version information and the second edition When this information is inconsistent, control apparatus equipment carries out firmware upgrade with first program, realizes before upgrading, first to detecting The firmware program of redaction is decrypted and verified, and is defined as the firmware program of itself needs, just can be according to normal firmware liter Level flow starts to upgrade, and reduces because firmware selection mistake causes the abnormal possibility of upgrading.
Specifically, carry out the First Eigenvalue and Second Eigenvalue enciphering and deciphering algorithm can be used general solution AES and The enciphering and deciphering algorithm of intra-company's exploitation, wherein it is preferred to, enciphering and deciphering algorithm is carried out using MD5 codes, versatility is preferable.
It should be noted that it is determined that the first program the First Eigenvalue and the second program Second Eigenvalue when, utilize Calibration tool can be repeatedly calculated the First Eigenvalue and Second Eigenvalue, in each result of calculation all same, it is determined that meter Calculate the accuracy rate for correctly, improving result of calculation.
In addition, it should also be noted that, the external storage medium being connected with electric equipment includes but is not limited to set with electrical equipment Standby USB flash disk (i.e. USB (USB) equipment), hard disk, SD card (the Secure Digital Memory being joined directly together Card, safe digital card) etc. mobile memory medium and pass through computer or the mobile terminal such as smart mobile phone that networking connects;Electrical equipment Storage medium in equipment includes but is not limited to:Support software from the embedded chip upgraded.
In addition it is also necessary to explanation, the second program is not limited to dispatch from the factory program or program of dispatching from the factory by correct Program after firmware upgrade;Upgrade method in above-mentioned technical proposal can application include but is not limited to:Air-conditioning, refrigerator, sky Adjust the electric equipments such as line control machine.
In the above-mentioned technical solutions, it is preferable that also include:In the first judged result be no or the second judged result is no When, control apparatus equipment is run with the second program.
In the technical scheme, when the first judged result is no, illustrate without the first program, i.e., no journey to be upgraded Sequence, now firmware upgrade is not carried out to electric equipment, control apparatus equipment is run with the second program, is no in the second judged result When, illustrate that the First Eigenvalue is inconsistent with Second Eigenvalue, the first program be program to be upgraded may be changed or with mistake, this When control electric equipment run with the second program, i.e., not to electric equipment progress firmware upgrade, realize whether automatic decision needs The presence of ROMPaq, when program to be upgraded being present, treating ROMPaq and being verified, reduce because program error causes to rise The possibility of system crash after level.
It should be noted that being no in the first judged result or when the second judged result is no, can display reminding information, together When can play information of voice prompt simultaneously while display reminding information, user is reminded.
In any of the above-described technical scheme, it is preferable that comparing first version information corresponding to the first program information and the Before whether second edition information corresponding to two program informations is consistent, in addition to:Compare the first machine corresponding to the first program information Whether type information and first item information the second model information corresponding with the second program information and second item information are equal Unanimously, the 3rd judged result is generated;In the 3rd judged result when being, whether to compare first version information and second edition information Unanimously.
In the technical scheme, compare the first model information corresponding to the first program information and first item information and the Whether the second model information corresponding to two program informations is consistent with second item information, generates the 3rd judged result, reduces Because program error causes upgrading to cause the possibility of system crash;When the 3rd judged result is to be, illustrate that the first program is believed First model information corresponding to breath and first item information the second model information corresponding with the second program information and Section 2 Mesh information is consistent, then whether compare first version information consistent with second edition information, reduces because program error causes Staging error causes the possibility of system crash.
In the above-mentioned technical solutions, it is preferable that also include:The 3rd judged result for it is no when, control apparatus equipment is with the Two programs are run.
In the technical scheme, when the 3rd judged result is no, illustrate that the first type corresponding to the first program information is believed Breath and first item information the second model information corresponding with the second program information and second item information be not it is all identical, Now firmware upgrade is not carried out to electric equipment, control apparatus equipment is run with the second program, reduced because program error causes Staging error causes the possibility of system crash.
The technical scheme of second aspect of the present invention proposes a kind of firmware upgrade system, including:First judging unit, is used for It is determined that whether it is stored with first in storage medium in the external storage medium or the electric equipment being connected with electric equipment Program, generate the first judged result;Second program determining unit, for when the first judged result is to be, determining electric equipment The second program when dispatching from the factory;Characteristic value determining unit, for determine the first program the First Eigenvalue and the second program second Characteristic value;Second judging unit, it is whether consistent with Second Eigenvalue for comparing the First Eigenvalue, generate the second judged result; Program information determining unit, for when the second judged result is to be, determining the first program information and the second journey of the first program Second program information of sequence;Version information determining unit, for comparing first version information corresponding to the first program information and the Whether second edition information is consistent corresponding to two program informations;Upgrade unit, for believing in first version information and the second edition When ceasing inconsistent, control apparatus equipment carries out firmware upgrade with the first program.
In the technical scheme, by the first judging unit, it is determined that in the external storage medium being connected with electric equipment or The first program whether is stored with storage medium in electric equipment, the first judged result is generated, realizes whether automatic decision has Program to be upgraded is present;Again by the second program determining unit, in the first judged result for when being, when determining that electric equipment dispatches from the factory The second program, realize the reading that program of dispatching from the factory is carried to electric equipment;Again by characteristic value determining unit, the first program is determined The First Eigenvalue and the second program Second Eigenvalue, according to checking algorithm, determine the school of the first program program i.e. to be upgraded Test value and determine the check value that the second program i.e. electric equipment dispatches from the factory from tape program;Then by the second judging unit, compare Whether the First Eigenvalue is consistent with Second Eigenvalue, generates the second judged result, is yes in the second judged result, illustrates the first journey The First Eigenvalue of sequence is consistent with the Second Eigenvalue of the second program, and the file for being stored with the first program is not modified or destroyed; Afterwards by program information determining unit, in the second judged result when being, to determine the first program information of the first program and the Second program information of two programs, the first program information include but is not limited to model information corresponding to the first program, item number letter Breath and version information, the second program information include but is not limited to model information corresponding to the second program, project information and version letter Breath, afterwards by version information determining unit, compares first version information corresponding to the first program information and the second program information Whether corresponding second edition information is consistent, afterwards by upgrade unit, differs in first version information and second edition information During cause, control apparatus equipment carries out firmware upgrade with the first program, realizes before upgrading, first consolidating to the redaction that detects Part program is decrypted and verified, and is defined as the firmware program of itself needs, can just start according to normal firmware upgrade flow Upgrading, reduce because firmware selection mistake causes the abnormal possibility of upgrading.
Specifically, carry out the First Eigenvalue and Second Eigenvalue enciphering and deciphering algorithm can be used general solution AES and The enciphering and deciphering algorithm of intra-company's exploitation, wherein it is preferred to, enciphering and deciphering algorithm is carried out using MD5 codes, versatility is preferable.
It should be noted that it is determined that the first program the First Eigenvalue and the second program Second Eigenvalue when, utilize Calibration tool can be repeatedly calculated the First Eigenvalue and Second Eigenvalue, in each result of calculation all same, it is determined that meter Calculate the accuracy rate for correctly, improving result of calculation.
In addition, it should also be noted that, the external storage medium being connected with electric equipment includes but is not limited to set with electrical equipment The mobile memory mediums and the computer connected by networking or smart mobile phone etc. such as the standby USB flash disk being joined directly together, hard disk, SD card are mobile Terminal;Storage medium in electric equipment includes but is not limited to:Support software from the embedded chip upgraded.
In addition it is also necessary to explanation, the second program is not limited to dispatch from the factory program or program of dispatching from the factory by correct Program after firmware upgrade;Upgrade method in above-mentioned technical proposal can application include but is not limited to:Air-conditioning, refrigerator, sky Adjust the electric equipments such as line control machine.
In the above-mentioned technical solutions, it is preferable that also include:First dispatches from the factory program running unit, for judging knot first When fruit is no or the second judged result is no, control apparatus equipment is run with the second program.
In the technical scheme, dispatched from the factory program running unit by first, the first judged result for it is no when, explanation does not have First program, i.e., no program to be upgraded, now firmware upgrade is not carried out to electric equipment, control apparatus equipment is with the second program Operation, when the second judged result is no, illustrate that the First Eigenvalue is inconsistent with Second Eigenvalue, the first program is journey to be upgraded Sequence may be changed or with mistake, now control apparatus equipment run with the second program, i.e., not to electric equipment progress firmware liter Level, realizes whether automatic decision needs the presence of ROMPaq, when program to be upgraded being present, treating ROMPaq and carrying out school Test, reduce because program error causes the possibility of system crash after upgrading.
It should be noted that being no in the first judged result or when the second judged result is no, can display reminding information, together When can play information of voice prompt simultaneously while display reminding information, user is reminded.
In any of the above-described technical scheme, it is preferable that comparing first version information corresponding to the first program information and the Before whether second edition information corresponding to two program informations is consistent, in addition to:3rd judging unit, for comparing the first program First model information corresponding to information and first item information the second model information corresponding with the second program information and second Whether item number information is consistent, generates the 3rd judged result;Version information judging unit, for being yes in the 3rd judged result When, it is whether consistent with second edition information to compare first version information.
In the technical scheme, by the 3rd judging unit, compare the first model information corresponding to the first program information and Whether first item information the second model information corresponding with the second program information and second item information are consistent, generation 3rd judged result, reduce the possibility for causing upgrading to cause system crash because of program error;It is yes in the 3rd judged result When, illustrate the first model information corresponding to the first program information and first item information corresponding with the second program information second Model information is consistent with second item information, then whether compare first version information consistent with second edition information, reduces Because program error causes staging error to cause the possibility of system crash.
In the above-mentioned technical solutions, it is preferable that also include:Second dispatches from the factory program running unit, for judging knot the 3rd When fruit is no, control apparatus equipment is run with the second program.
In the technical scheme, dispatched from the factory program running unit by second, the 3rd judged result for it is no when, illustrate first First model information corresponding to program information and first item information the second model information corresponding with the second program information and Second item information is not all identical, does not now carry out firmware upgrade to electric equipment, control apparatus equipment is with the second program Operation, reduces the possibility for causing staging error to cause system crash because of program error.
The technical scheme of third aspect present invention proposes a kind of computer equipment, including memory, processor and storage On a memory and the computer program that can run on a processor, any of the above-described is performed during computing device computer program Updating firmware program method.
In the technical scheme, the computer program for performing the updating firmware program method of any of the above-described is stored in storage On device, during computing device computer program, before may be implemented in upgrading, first the firmware program of the redaction to detecting solves It is close and verification, be defined as itself needs firmware program, just can start to upgrade according to normal firmware upgrade flow, reduce because Cause the abnormal possibility of upgrading for firmware selection mistake.
The technical scheme of fourth aspect present invention proposes a kind of computer-readable recording medium, is stored thereon with computer Program, the updating firmware program method of any of the above-described is realized when computer program is executed by processor.
In the technical scheme, processor realizes that updating firmware program method as described above is needed by computer journey Sequence, this computer program need to be stored in computer-readable medium.This computer-readable medium ensure that calculating Machine program can be executed by processor, it is achieved thereby that before upgrading, first the firmware program of the redaction to detecting solves It is close and verification, be defined as itself needs firmware program, just can start to upgrade according to normal firmware upgrade flow, reduce because Cause the abnormal possibility of upgrading for firmware selection mistake.
The technical scheme of fifth aspect present invention proposes a kind of electric equipment, including:The firmware upgrade of any of the above-described System.
In the technical scheme, include the electric equipment of any one firmware upgrade system, before may be implemented in upgrading, first to inspection The firmware program of the redaction measured is decrypted and verified, and is defined as the firmware program of itself needs, just can be according to normal Firmware upgrade flow starts to upgrade, and reduces because firmware selection mistake causes the abnormal possibility of upgrading.
The additional aspect and advantage of the present invention will become obvious in following description section, or the practice by the present invention Recognize.
Brief description of the drawings
The above-mentioned and/or additional aspect and advantage of the present invention will become in the description from combination accompanying drawings below to embodiment Substantially and it is readily appreciated that, wherein:
Fig. 1 shows the schematic flow sheet of updating firmware program method according to an embodiment of the invention;
Fig. 2 shows the schematic flow sheet of updating firmware program method according to still a further embodiment;
Fig. 3 shows the structural representation of firmware upgrade system according to an embodiment of the invention;
Fig. 4 shows the structural representation of computer equipment according to an embodiment of the invention;
Fig. 5 shows the structural representation of electric equipment according to an embodiment of the invention.
Embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention Mode is applied the present invention is further described in detail.It should be noted that in the case where not conflicting, the implementation of the application Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also To be different from other modes described here using other to implement, therefore, protection scope of the present invention is not by described below Specific embodiment limitation.
Fig. 1 shows the schematic flow sheet of updating firmware program method according to an embodiment of the invention.
As shown in figure 1, updating firmware program method, including:
Step S102, it is determined that the storage medium in the external storage medium or the electric equipment being connected with electric equipment In whether be stored with the first program, generate the first judged result;
Step S104, when the first judged result is to be, determine the second program when electric equipment dispatches from the factory;
Step S106, determine the First Eigenvalue of the first program and the Second Eigenvalue of the second program;
Whether step S108, it is consistent with Second Eigenvalue to compare the First Eigenvalue, generates the second judged result;
Step S110, in the second judged result when being, to determine the first program information and second program of the first program Second program information;
Step S112, compare the second edition corresponding with the second program information of first version information corresponding to the first program information Whether this information is consistent;
Step S114, when first version information and second edition information are inconsistent, control apparatus equipment is with described first Program carries out firmware upgrade.
In this embodiment, by step S102, it is determined that being set in the external storage medium or electrical equipment being connected with electric equipment The first program whether is stored with standby interior storage medium, the first judged result is generated, it is to be upgraded to realize whether automatic decision has Program is present;Step S104, when the first judged result is to be, the second program when electric equipment dispatches from the factory is determined, is realized to electricity Device equipment carries the reading for program of dispatching from the factory;Again by step S106, the First Eigenvalue and the second program of the first program are determined Second Eigenvalue, according to checking algorithm, determine the check value of the first program program i.e. to be upgraded and determine that the second program is i.e. electric The check value that device equipment is dispatched from the factory from tape program, whether step S108, it is consistent with Second Eigenvalue to compare the First Eigenvalue, generation the Two judged results, it is yes in the second judged result, illustrates the First Eigenvalue of the first program and the Second Eigenvalue of the second program Unanimously, the file for being stored with the first program is not modified or destroyed;Step S110, in the second judged result when being, to determine the First program information of one program and the second program information of the second program, the first program information include but is not limited to the first program Corresponding model information, item number information and version information, the second program information include but is not limited to machine corresponding to the second program Type information, project information and version information, compare first version information corresponding to the first program information and the second program information pair Whether the second edition information answered consistent, first version information and second edition information it is inconsistent when, control apparatus equipment with First program carries out firmware upgrade, realizes before upgrading, and first the firmware program of the redaction to detecting is decrypted and school Test, be defined as the firmware program of itself needs, just can start to upgrade according to normal firmware upgrade flow, reduce because firmware Selection mistake causes the abnormal possibility of upgrading.
Specifically, carry out the First Eigenvalue and Second Eigenvalue enciphering and deciphering algorithm can be used general solution AES and The enciphering and deciphering algorithm of intra-company's exploitation, wherein it is preferred to, enciphering and deciphering algorithm is carried out using MD5 codes, versatility is preferable.
It should be noted that it is determined that the first program the First Eigenvalue and the second program Second Eigenvalue when, utilize Calibration tool can be repeatedly calculated the First Eigenvalue and Second Eigenvalue, in each result of calculation all same, it is determined that meter Calculate the accuracy rate for correctly, improving result of calculation.
In addition, it should also be noted that, the external storage medium being connected with electric equipment includes but is not limited to set with electrical equipment The mobile memory mediums and the computer connected by networking or smart mobile phone etc. such as the standby USB flash disk being joined directly together, hard disk, SD card are mobile Terminal;Storage medium in electric equipment includes but is not limited to:Support software from the embedded chip upgraded.
In addition it is also necessary to explanation, the second program is not limited to dispatch from the factory program or program of dispatching from the factory by correct Program after firmware upgrade;Upgrade method in above-described embodiment can application include but is not limited to:Air-conditioning, refrigerator, air-conditioning The electric equipments such as line control machine.
In the above embodiment, it is preferable that also include:When in the first judged result be no or the second judged result is no, Control apparatus equipment is run with the second program.
In this embodiment, when the first judged result is no, illustrate without the first program, i.e., no program to be upgraded, Now firmware upgrade not being carried out to electric equipment, control apparatus equipment is run with the second program, when the second judged result is no, Illustrate that the First Eigenvalue is inconsistent with Second Eigenvalue, the first program be program to be upgraded may be changed or with mistake, now Control apparatus equipment is run with the second program, i.e., does not carry out firmware upgrade to electric equipment, realize whether automatic decision needs to be risen The presence of level program, when program to be upgraded being present, treating ROMPaq and being verified, reduce because program error causes to upgrade The possibility of system crash afterwards.
It should be noted that being no in the first judged result or when the second judged result is no, can display reminding information, together When can play information of voice prompt simultaneously while display reminding information, user is reminded.
In any of the above-described embodiment, it is preferable that comparing first version information and second corresponding to the first program information Before whether second edition information corresponding to program information is consistent, in addition to:Compare the first type corresponding to the first program information Whether information and first item information the second model information corresponding with the second program information and second item information are homogeneous Cause, generate the 3rd judged result;In the 3rd judged result for when being, compare first version information and second edition information whether one Cause.
In this embodiment, the first model information corresponding to the first program information and first item information and second are compared Whether the second model information corresponding to program information is consistent with second item information, generates the 3rd judged result, reduces Because program error causes to upgrade the possibility for causing system crash;When the 3rd judged result is to be, illustrate the first program information Corresponding first model information and first item information the second model information corresponding with the second program information and second item Number information is consistent, then whether compare first version information consistent with second edition information, reduces because program error causes to rise Staging error causes the possibility of system crash.
In the above embodiment, it is preferable that also include:When the 3rd judged result is no, control apparatus equipment is with second Program is run.
In this embodiment, when the 3rd judged result is no, the first model information corresponding to the first program information is illustrated Corresponding with the second program information with first item information the second model information and second item information be not it is all identical, this When firmware upgrade is not carried out to electric equipment, control apparatus equipment run with the second program, reduced because program error causes to rise Staging error causes the possibility of system crash.
Specific embodiment:
Have inside air-conditioning and support software that there is the read-write for supporting flash from the embedded chip upgraded, the embedded chip Operation, in the information of External memory equipment acquisition redaction burning code, multiple storage sectors and it can be supported logical by interface The features such as firmware program is transmitted to other equipment by communication mode is crossed, has burning code file in external connection storage device, Enciphering and deciphering algorithm is carried out using MD5 codes.
As shown in Fig. 2 step S202, Bootloader program determines whether program to be upgraded, it is determined that having to be upgraded Confirm that parameter below is valid data in the presence of program, when being fixed as 0xAA55 such as information header, be otherwise invalid data.Step S204, Bootloader program read the burning code in External memory equipment, calculate its MD5 code, obtain MD5 code -1, step S206, the MD5 code TXT documents with burning code same file name in program to be upgraded are read, obtain when air-conditioning dispatches from the factory and carry journey MD5 code -2 of sequence, whether step S208, it is identical to compare MD5 codes -1 and MD5 codes -2, when the two is identical, step S210, it is determined that Program to be upgraded is model information corresponding to the first program, item number information and version information, step S212, it is determined that current operation Program is model information corresponding to the second program, item number information and version information, step S214, determines model information and project Number information whether all same and version information it is different, when being judged as YES, step S216, control air-conditioning is upgraded.
Fig. 3 shows the structural representation of firmware upgrade system according to an embodiment of the invention.
As shown in figure 3, firmware upgrade system 300, including:
First judging unit 302, for determining in the external storage medium or the electric equipment being connected with electric equipment The first program whether is stored with interior storage medium, generates the first judged result;
Second program determining unit 304, for when the first judged result is to be, determining second when electric equipment dispatches from the factory Program;
Characteristic value determining unit 306, for determining the First Eigenvalue of the first program and the Second Eigenvalue of the second program;
Second judging unit 308, whether consistent with Second Eigenvalue for comparing the First Eigenvalue, generation second judges knot Fruit;
Program information determining unit 310, for when the second judged result is to be, determining the first program letter of the first program Breath and the second program information of the second program;
Version information determining unit 312, for comparing first version information corresponding to the first program information and the second program Whether second edition information is consistent corresponding to information;
Upgrade unit 314, for when first version information and second edition information are inconsistent, control apparatus equipment to be with institute State the first program and carry out firmware upgrade.
In this embodiment, by the first judging unit 302, it is determined that in the external storage medium being connected with electric equipment or The first program whether is stored with storage medium in electric equipment, the first judged result is generated, realizes whether automatic decision has Program to be upgraded is present;Again by the second program determining unit 304, when the first judged result is to be, determine that electric equipment goes out The second program during factory, realizes the reading that program of dispatching from the factory is carried to electric equipment;Again by characteristic value determining unit 306, it is determined that The Second Eigenvalue of the First Eigenvalue of first program and the second program, according to checking algorithm, determine that the first program is i.e. to be upgraded The check value and the second program of determination of program are the check value that electric equipment dispatches from the factory from tape program;Then judge by second single Whether member 308, it is consistent with Second Eigenvalue to compare the First Eigenvalue, the second judged result of generation, be in the second judged result it is yes, Illustrate that the First Eigenvalue of the first program is consistent with the Second Eigenvalue of the second program, be stored with the file of the first program not by more Change or destroy;Afterwards by program information determining unit 310, when the second judged result is to be, the first of the first program is determined Second program information of program information and the second program, the first program information, which includes but is not limited to type corresponding to the first program, to be believed Breath, item number information and version information, the second program information include but is not limited to model information corresponding to the second program, project letter Breath and version information, afterwards by version information determining unit 312, compare first version information corresponding to the first program information with Whether second edition information is consistent corresponding to second program information, afterwards by upgrade unit 314, in first version information and the When two version informations are inconsistent, control apparatus equipment carries out firmware upgrade with the first program, realizes before upgrading, first to detection To the firmware program of redaction be decrypted and verify, be defined as the firmware program of itself needs, just can be according to normal solid Part upgrading flow starts to upgrade, and reduces because firmware selection mistake causes the abnormal possibility of upgrading.
Specifically, carry out the First Eigenvalue and Second Eigenvalue enciphering and deciphering algorithm can be used general solution AES and The enciphering and deciphering algorithm of intra-company's exploitation, wherein it is preferred to, enciphering and deciphering algorithm is carried out using MD5 codes, versatility is preferable.
It should be noted that it is determined that the first program the First Eigenvalue and the second program Second Eigenvalue when, utilize Calibration tool can be repeatedly calculated the First Eigenvalue and Second Eigenvalue, in each result of calculation all same, it is determined that meter Calculate the accuracy rate for correctly, improving result of calculation.
In addition, it should also be noted that, the external storage medium being connected with electric equipment includes but is not limited to set with electrical equipment The mobile memory mediums and the computer connected by networking or smart mobile phone etc. such as the standby USB flash disk being joined directly together, hard disk, SD card are mobile Terminal;Storage medium in electric equipment includes but is not limited to:Support software from the embedded chip upgraded.
In addition it is also necessary to explanation, the second program is not limited to dispatch from the factory program or program of dispatching from the factory by correct Program after firmware upgrade;Upgrade method in above-mentioned technical proposal can application include but is not limited to:Air-conditioning, refrigerator, sky Adjust the electric equipments such as line control machine.
In the above embodiment, it is preferable that also include:First dispatches from the factory program running unit, in the first judged result When for no or the second judged result being no, control apparatus equipment is run with the second program.
In this embodiment, dispatched from the factory program running unit by first, the first judged result for it is no when, illustrate not have the One program, i.e., no program to be upgraded now do not carry out firmware upgrade to electric equipment, and control apparatus equipment is transported with the second program OK, when the second judged result is no, illustrate that the First Eigenvalue is inconsistent with Second Eigenvalue, the first program is program to be upgraded May be changed or with mistake, now control apparatus equipment run with the second program, i.e., not to electric equipment progress firmware upgrade, Realize whether automatic decision needs the presence of ROMPaq, when program to be upgraded being present, treating ROMPaq and being verified, drop The low possibility for causing system crash after upgrading because of program error.
It should be noted that being no in the first judged result or when the second judged result is no, can display reminding information, together When can play information of voice prompt simultaneously while display reminding information, user is reminded.
In any of the above-described embodiment, it is preferable that comparing first version information and second corresponding to the first program information Before whether second edition information corresponding to program information is consistent, in addition to:3rd judging unit, for comparing the first program letter First model information corresponding to breath and first item information the second model information corresponding with the second program information and Section 2 Whether mesh information is consistent, generates the 3rd judged result;Version information judging unit, for being yes in the 3rd judged result When, it is whether consistent with second edition information to compare first version information.
In this embodiment, by the 3rd judging unit, the first model information corresponding to the first program information and are compared Whether one item number information the second model information corresponding with the second program information and second item information are consistent, generation the Three judged results, reduce the possibility for causing upgrading to cause system crash because of program error;When the 3rd judged result is to be, Illustrate the first model information corresponding to the first program information and first item information the second machine corresponding with the second program information Type information is consistent with second item information, then whether compare first version information consistent with second edition information, reduces Because program error causes staging error to cause the possibility of system crash.
In the above embodiment, it is preferable that also include:Second dispatches from the factory program running unit, in the 3rd judged result For it is no when, control apparatus equipment is run with the second program.
In this embodiment, dispatched from the factory program running unit by second, the 3rd judged result for it is no when, illustrate the first journey First model information corresponding to sequence information and first item information the second model information corresponding with the second program information and Two item number information are not all identical, now do not carry out firmware upgrade to electric equipment, and control apparatus equipment is transported with the second program OK, the possibility for causing staging error to cause system crash because of program error is reduced.
Fig. 4 shows the structural representation of computer electric equipment according to an embodiment of the invention.
As shown in figure 4, computer equipment 1, including:
Memory 12, memory 12 are used to store computer program;
Processor 14, processor 14 are used to perform the computer program stored in memory;
Processor 14 performs following steps when performing computer program:
Determine whether there is the first program in the storage medium in the connected external storage medium of electric equipment or electric equipment, Generate the first judged result;When the first judged result is to be, the second program when electric equipment dispatches from the factory is determined;Determine the first journey The Second Eigenvalue of the First Eigenvalue of sequence and the second program;It is whether consistent with Second Eigenvalue to compare the First Eigenvalue, generates Second judged result;The second judged result for be when, determine the first program the first program information and the second program second Program information;Whether the first version information for comparing the first program information is consistent with the second edition information of the second program information; When first version information and second edition information are inconsistent, control apparatus equipment carries out firmware upgrade with the first program.
In this embodiment, the computer program for performing the updating firmware program method of any of the above-described is stored in memory On 12, when processor 14 performs computer program, before may be implemented in upgrading, first the firmware program of the redaction to detecting is carried out Decryption and verification, it is defined as the firmware program of itself needs, just can starts to upgrade according to normal firmware upgrade flow, reduce Because firmware selection mistake causes the abnormal possibility of upgrading.
Fig. 5 shows the structural representation of electric equipment according to an embodiment of the invention.
As shown in figure 5, electrical equipment 50, including:
Firmware upgrade system 502, for carrying out firmware upgrade to electric equipment.
In this embodiment, include the electric equipment 50 of any firmware upgrade system 502, can realize before upgrading, first The firmware program of redaction to detecting is decrypted and verified, and is defined as the firmware program of itself needs, just can be according to just Normal firmware upgrade flow starts to upgrade, and reduces because firmware selection mistake causes the abnormal possibility of upgrading.
Technical scheme, firmware upgrade method, system and electrical equipment, energy is described in detail above in association with accompanying drawing Enough realize before upgrading, first the firmware program of the redaction to detecting is decrypted and verified, and is defined as consolidating for itself needs It part program, just can start to upgrade according to normal firmware upgrade flow, reduce because firmware selection mistake causes upgrading abnormal Possibility.
In the description of this specification, the description of term " one embodiment ", " some embodiments ", " specific embodiment " etc. Mean to combine at least one reality that specific features, structure, material or the feature that the embodiment or example describe are contained in the present invention Apply in example or example.In this manual, identical embodiment or reality are not necessarily referring to the schematic representation of above-mentioned term Example.Moreover, description specific features, structure, material or feature can in any one or more embodiments or example with Suitable mode combines.
The preferred embodiments of the present invention are these are only, are not intended to limit the invention, for those skilled in the art For member, the present invention can have various modifications and variations.Any modification within the spirit and principles of the invention, being made, Equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (11)

  1. A kind of 1. updating firmware program method, for electric equipment, it is characterised in that including:
    It is determined that whether it is stored with storage medium in the external storage medium or the electric equipment being connected with electric equipment First program, generate the first judged result;
    When first judged result is to be, the second program when the electric equipment dispatches from the factory is determined;
    Determine the First Eigenvalue of first program and the Second Eigenvalue of second program;
    It is whether consistent with the Second Eigenvalue to compare the First Eigenvalue, generates the second judged result;
    In second judged result when being, to determine the of the first program information of first program and second program Two program informations;
    Compare the second edition letter corresponding with second program information of first version information corresponding to first program information Whether breath is consistent;
    When the first version information and the second edition information are inconsistent, the electric equipment is controlled with first journey Sequence carries out firmware upgrade.
  2. 2. updating firmware program method according to claim 1, it is characterised in that also include:
    When it is no that first judged result, which is no or described second judged result, the electric equipment is controlled with described second Program is run.
  3. 3. updating firmware program method according to claim 1 or 2, it is characterised in that in first journey Before whether the second edition information corresponding with second program information of first version information corresponding to sequence information is consistent, also wrap Include:
    Compare the first model information corresponding to first program information and first item information and second program information Whether corresponding second model information is consistent with second item information, generates the 3rd judged result;
    In the 3rd judged result for when being, whether the first version information and the second edition information are consistent.
  4. 4. updating firmware program method according to claim 3, it is characterised in that also include:
    When the 3rd judged result is no, the electric equipment is controlled to be run with second program.
  5. A kind of 5. updating firmware program system, it is characterised in that including:
    First judging unit, for determining the storage in the external storage medium or the electric equipment being connected with electric equipment The first program whether is stored with medium, generates the first judged result;
    Second program determining unit, during for being in first judged result, determine the when the electric equipment dispatches from the factory Two programs;
    Characteristic value determining unit, for determining the First Eigenvalue of first program and the second feature of second program Value;
    Second judging unit, whether consistent with the Second Eigenvalue for the First Eigenvalue, generation second judges As a result;
    Program information determining unit, for when second judged result is to be, determining the first program of first program Second program information of information and second program;
    Version information determining unit, for first version information corresponding to first program information and second program Whether second edition information is consistent corresponding to information;
    Upgrade unit, for when the first version information and the second edition information are inconsistent, controlling the electrical equipment to set It is standby that firmware upgrade is carried out with first program.
  6. 6. updating firmware program system according to claim 5, it is characterised in that also include:
    First dispatches from the factory program running unit, for when it is no that first judged result, which is no or described second judged result, The electric equipment is controlled to be run with second program.
  7. 7. the updating firmware program system according to claim 5 or 6, it is characterised in that in first journey Before whether the second edition information corresponding with second program information of first version information corresponding to sequence information is consistent, also wrap Include:
    3rd judging unit, for the first model information corresponding to first program information and first item information with Whether the second model information is consistent with second item information corresponding to second program information, and generation the 3rd judges knot Fruit;
    Version information judging unit, for the 3rd judged result for be when, the first version information with it is described Whether second edition information is consistent.
  8. 8. updating firmware program system according to claim 7, it is characterised in that also include:
    Second dispatches from the factory program running unit, for the 3rd judged result for it is no when, control the electric equipment with described Second program is run.
  9. 9. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor The computer program of operation, it is characterised in that perform such as Claims 1-4 described in the computing device during computer program Any one of firmware upgrade method.
  10. 10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program The firmware upgrade method as any one of Claims 1-4 is realized when being executed by processor.
  11. A kind of 11. electric equipment, it is characterised in that including:Firmware upgrade system any one of claim 5 to 8.
CN201710652670.5A 2017-08-02 2017-08-02 Updating firmware program method, system and electric equipment Pending CN107491328A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710652670.5A CN107491328A (en) 2017-08-02 2017-08-02 Updating firmware program method, system and electric equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710652670.5A CN107491328A (en) 2017-08-02 2017-08-02 Updating firmware program method, system and electric equipment

Publications (1)

Publication Number Publication Date
CN107491328A true CN107491328A (en) 2017-12-19

Family

ID=60645150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710652670.5A Pending CN107491328A (en) 2017-08-02 2017-08-02 Updating firmware program method, system and electric equipment

Country Status (1)

Country Link
CN (1) CN107491328A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108446133A (en) * 2018-03-29 2018-08-24 广东美的暖通设备有限公司 Firmware upgrade control method, firmware upgrade control system and electric appliance
CN108512927A (en) * 2018-04-08 2018-09-07 珠海格力电器股份有限公司 A kind of information updating method and device of commercialization water-heating machine system
CN108845820A (en) * 2018-09-20 2018-11-20 广东美的暖通设备有限公司 firmware batch upgrading method, system and air conditioner
CN109254799A (en) * 2018-08-29 2019-01-22 新华三技术有限公司 The starting method, apparatus and communication equipment of bootstrap
CN109284122A (en) * 2018-08-14 2019-01-29 深圳德技医疗器械有限公司 A kind of automatically upgrading firmware method and its storage medium based on storage medium
CN109634670A (en) * 2018-11-20 2019-04-16 深圳市优博讯科技股份有限公司 A kind of PDA quickly configuration method and device based on USB OTG
CN111966970A (en) * 2020-07-31 2020-11-20 深圳比特微电子科技有限公司 Method and device for preventing firmware of digital currency mining machine from backing and digital currency mining machine
CN112559419A (en) * 2020-12-21 2021-03-26 厦门市美亚柏科信息股份有限公司 Firmware upgrade protection method and device for PCIE (peripheral component interface express) storage module

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001209527A (en) * 2000-01-26 2001-08-03 Nec Software Kobe Ltd Method for recovering preinstalled software
CN1584822A (en) * 2003-08-19 2005-02-23 联想(北京)有限公司 Method for upgrated computer fixing ware programm
CN102436383A (en) * 2010-09-29 2012-05-02 中国移动通信集团公司 Method and device for processing firmware programs
CN106203071A (en) * 2016-06-30 2016-12-07 浪潮(北京)电子信息产业有限公司 A kind of firmware upgrade method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001209527A (en) * 2000-01-26 2001-08-03 Nec Software Kobe Ltd Method for recovering preinstalled software
CN1584822A (en) * 2003-08-19 2005-02-23 联想(北京)有限公司 Method for upgrated computer fixing ware programm
CN102436383A (en) * 2010-09-29 2012-05-02 中国移动通信集团公司 Method and device for processing firmware programs
CN106203071A (en) * 2016-06-30 2016-12-07 浪潮(北京)电子信息产业有限公司 A kind of firmware upgrade method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108446133A (en) * 2018-03-29 2018-08-24 广东美的暖通设备有限公司 Firmware upgrade control method, firmware upgrade control system and electric appliance
CN108512927A (en) * 2018-04-08 2018-09-07 珠海格力电器股份有限公司 A kind of information updating method and device of commercialization water-heating machine system
CN109284122A (en) * 2018-08-14 2019-01-29 深圳德技医疗器械有限公司 A kind of automatically upgrading firmware method and its storage medium based on storage medium
CN109254799A (en) * 2018-08-29 2019-01-22 新华三技术有限公司 The starting method, apparatus and communication equipment of bootstrap
CN108845820A (en) * 2018-09-20 2018-11-20 广东美的暖通设备有限公司 firmware batch upgrading method, system and air conditioner
CN109634670A (en) * 2018-11-20 2019-04-16 深圳市优博讯科技股份有限公司 A kind of PDA quickly configuration method and device based on USB OTG
CN111966970A (en) * 2020-07-31 2020-11-20 深圳比特微电子科技有限公司 Method and device for preventing firmware of digital currency mining machine from backing and digital currency mining machine
CN112559419A (en) * 2020-12-21 2021-03-26 厦门市美亚柏科信息股份有限公司 Firmware upgrade protection method and device for PCIE (peripheral component interface express) storage module

Similar Documents

Publication Publication Date Title
CN107491328A (en) Updating firmware program method, system and electric equipment
CN106294171B (en) Test macro, the method and apparatus of product automatic deployment
CN104850427B (en) A kind of code upgrade method and device
CN107220141A (en) Data file method of calibration and device
CN106682491B (en) Application downloading method and device
CN111538517A (en) Server firmware upgrading method and system, electronic equipment and storage medium
US9430638B2 (en) Authentication method, authentication apparatus and authentication device
US20100191949A1 (en) Information processing terminal and falsification verification method
US11831359B2 (en) Dynamic power levels in NFC card communications
CN103425932B (en) Signature calibration method and terminal device
CN109543409B (en) Method, device and equipment for detecting malicious application and training detection model
CN108196975B (en) Data verification method and device based on multiple checksums and storage medium
CN108765786A (en) Quick Response Code withdrawal safe verification method and its system, computer storage media
CN108958779A (en) Firmware upgrade management method, device and computer readable storage medium
CN108334448B (en) Code verification method, device and equipment
CN116820528A (en) Firmware version upgrading method and device, chip and electronic equipment
CN109340999A (en) Verification method, air-conditioning, verification remote controler and the system of air-conditioning master control borad
CN105827413A (en) Electronic terminal, and system safety verification device and method thereof
CN104019927A (en) Method, device and system for detecting data of water heater temperature wrap
CN109324841B (en) Method and device for improving form verification Validform
CN107704756A (en) Safe checking method and system before a kind of system upgrade
KR101583856B1 (en) System and method of verification bluetooth for car, portable apparatus using the same
CN108200060B (en) Single sign-on verification method based on web subsystem, server and storage medium
CN106095505A (en) A kind of method and device of software upgrading
CN113781261A (en) Detonator online registration 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171219

RJ01 Rejection of invention patent application after publication