CN107957880A - Air-conditioning firmware upgrade method, device, air-conditioning and computer equipment - Google Patents
Air-conditioning firmware upgrade method, device, air-conditioning and computer equipment Download PDFInfo
- Publication number
- CN107957880A CN107957880A CN201711235175.0A CN201711235175A CN107957880A CN 107957880 A CN107957880 A CN 107957880A CN 201711235175 A CN201711235175 A CN 201711235175A CN 107957880 A CN107957880 A CN 107957880A
- Authority
- CN
- China
- Prior art keywords
- firmware upgrade
- file
- firmware
- air
- bag
- 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
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The present invention provides a kind of air-conditioning firmware upgrade method, device, air-conditioning and computer equipment.Wherein, air-conditioning firmware upgrade method, including:The fileinfo in firmware upgrade file cache area is detected, determines whether unfinished firmware upgrade flow;If so, detecting the check information of each file data bag, when check information mistake, the bag sequence number of current file data packet is determined;Communicate with control centre, send the repeat requests for including bag sequence number, and receive the firmware upgrade file retransmission bag of control centre's transmission.Pass through technical scheme, firmware upgrade process occurs when powered-off fault, error in data, pause upgrading, when powering on again or asking upgrading again, an escalation process before continuing, and once the upgrading point of interruption starts the firmware upgrade file that transmission does not transmit completion in the past, so as to increase the stability of firmware upgrade, shorten the recovery time of big firmware upgrade exception, while mitigate the transmission burden of control centre.
Description
Technical field
The present invention relates to air-conditioning manufacturing technology field, in particular to a kind of air-conditioning firmware upgrade method, a kind of air-conditioning
Device for upgrading firmware, a kind of air-conditioning, a kind of computer equipment, a kind of computer-readable recording medium.
Background technology
Air-conditioning products are in use, need to carry out firmware upgrade to control chip for some reason, traditional product is limited
In firmware size, upgrade method is single, only carries out simple firmware upgrade management mostly, such as escalation process power-off, transmission upgrading
During data, interference is received, or escalation process needs pause etc., causes this time upgrading failure, then needs to upgrade again.With chip
Function is stronger and stronger, and firmware size is increasing, and upgrading mode is more and more diversified.If repeatedly upgraded again, gesture
The problems such as update time must being caused to increase, upgrading control centre's burden.
Therefore, how to propose a kind of firmware upgrade management method for supporting breakpoint transmission, become skill urgently to be resolved hurrily at present
Art problem.
The content of the invention
It is contemplated that at least solve one of technical problem present in the prior art or correlation technique.
For this reason, it is an aspect of the invention to propose a kind of air-conditioning firmware upgrade method.
Another aspect of the present invention is to propose a kind of air-conditioning device for upgrading firmware.
Another aspect of the invention is to propose a kind of air-conditioning.
Another aspect of the present invention is to propose a kind of computer equipment.
Another aspect of the present invention is to propose a kind of computer-readable recording medium.
In view of this, the present invention proposes a kind of air-conditioning firmware upgrade method, including:Detect firmware upgrade file cache area
Fileinfo, determine whether unfinished firmware upgrade flow;If so, the check information of each file data bag is detected, when
During check information mistake, the bag sequence number of current file data packet is determined;Communicate, sent comprising bag sequence number with control centre
Repeat requests, and receive the firmware upgrade file retransmission bag of control centre's transmission.
Air-conditioning firmware upgrade method according to the present invention, after firmware upgrade procedure is started shooting or re-powered, passes through detection
The information of upgrade file in firmware upgrade file cache area, to determine whether having unfinished firmware upgrade flow, if having unfinished
Firmware upgrade flow, then detect the check information of each file data bag successively, when check information mistake, illustrate current file
Data packet is the point of interruption of last upgrading, it is determined that the bag sequence number of current file data packet, and send and rise to control centre
Level repeat requests, request needs the bag sequence number retransmitted, after control centre receives request, starts the firmware upgrade that transmission needs to retransmit
File bag.By technical scheme, there is situations such as powered-off fault, error in data, pause upgrading in firmware upgrade process
When, when powering on again or asking upgrading again, an escalation process before continuing, and once the upgrading point of interruption starts in the past
Transmission does not transmit the firmware upgrade file of completion, so as to increase the stability of firmware upgrade, shortens the extensive of big firmware upgrade exception
The multiple time, while mitigate the transmission burden of control centre.
In the above-mentioned technical solutions, it is preferable that determine the bag sequence number of current file data packet, be specially:According to ought be above
The buffer address and fileinfo of part data packet determine the bag sequence number of current file data packet.
In the technical scheme, each file data bag for firmware upgrade, is stored in firmware upgrade file and delays
The fixing address in area is deposited,, can such as total bag number of file data bag according to the buffer address and fileinfo of current file data packet
To determine the bag sequence number of current file data packet, so that it is determined that go out the last upgrading point of interruption, can be to control centre based on this
Repeat requests are sent, carry out upgrade file breakpoint re-transmission, so as to reach the stability of increase firmware upgrade, shorten big firmware upgrade
The purpose of abnormal recovery time.
In any of the above-described technical solution, it is preferable that communicate with control centre, send the re-transmission for including bag sequence number
Request, and receive control centre transmission firmware upgrade file retransmission bag after, which further includes:Detection
Whether the file in firmware upgrade file cache area is legal;If the file in firmware upgrade file cache area is legal, according to firmware liter
The file in level file cache area upgrades firmware, and the file status in firmware upgrade file cache area is arranged to upgrade
Into.
In the technical scheme, it is necessary to detect firmware upgrade file cache area after firmware upgrade file is sent
Whether file is legal, if file is legal, carries out firmware upgrade, and by the file status of file in firmware upgrade file cache area
Upgrading is arranged to complete;If file is illegal, the model of the upgrade file and firmware to be upgraded that such as receive and store is not inconsistent, then
It cannot carry out firmware upgrade.This way it is possible to avoid upgrading corrupt data, it is ensured that firmware upgrade is smoothed out.
In any of the above-described technical solution, it is preferable that the air-conditioning firmware upgrade method further includes:If determine whether not complete
Into the judging result of firmware upgrade flow be the firmware upgrade flow that does not complete, then communicate, look into control centre
Whether inquiry has upgrade requirement, if there is upgrade requirement, is ready for file reception;And the firmware upgrade file received is stored
To firmware upgrade file cache area, and by the file information storage received to memory.
In the technical scheme, can be true if the firmware upgrade flow that firmware upgrade file cache area does not complete
Fixed last upgrading does not have abnormal conditions, can communicate with control centre, whether inquiry has upgrade requirement, if there is liter
Level demand, then be ready for firmware upgrade file reception.After preparation routine, it is first begin to receive information of upgrade file, its
Middle fileinfo is storable in control chip internal processes backup area or the plug-in sflash of system (flash memory), is preferably stored
In control chip internal processes backup area.Secondly, firmware upgrade file is received, and is stored to firmware upgrade file cache
Area, while the state of file in buffer area is arranged in download, wherein often receiving a bag upgrade file data, it is stored in
Firmware upgrade file cache area, while store the check information of the data packet.By the control method of the present invention, can monitor solid
The abnormal conditions of part upgrading, and upgrade file breakpoint transmission is carried out according to abnormal conditions, while upgrading progress can be carried out real
Shi Baocun, so as to avoid escalation process power-off from causing upgrading loss of data, further increases upgrading stability.
In any of the above-described technical solution, it is preferable that fileinfo includes at least any one of following or its combination:Firmware liter
Size, the state of level file, size, the quantity of file data bag;Wherein the state of firmware upgrade file includes downloading neutralizing and rises
Level is completed.
In the technical scheme, fileinfo includes but not limited to the size of upgrade file, the state of file (as downloaded
In, upgrading completes etc.), the information such as the size of file data bag, quantity.
The invention also provides a kind of air-conditioning device for upgrading firmware, including:Detection unit, for detecting firmware upgrade file
The fileinfo of buffer area, determines whether unfinished firmware upgrade flow;If so, detect the verification letter of each file data bag
Breath;Determination unit, for when check information mistake, determining the bag sequence number of current file data packet;Communication unit, for control
Center processed communicates, and sends the repeat requests for including bag sequence number, and receives the firmware upgrade file retransmission of control centre's transmission
Bag.
Air-conditioning device for upgrading firmware according to the present invention, after firmware upgrade procedure is started shooting or re-powered, passes through detection
The information of upgrade file in firmware upgrade file cache area, to determine whether having unfinished firmware upgrade flow, if having unfinished
Firmware upgrade flow, then detect the check information of each file data bag successively, when check information mistake, illustrate current file
Data packet is the point of interruption of last upgrading, it is determined that the bag sequence number of current file data packet, and send and rise to control centre
Level repeat requests, request needs the bag sequence number retransmitted, after control centre receives request, starts the firmware upgrade that transmission needs to retransmit
File bag.By technical scheme, there is situations such as powered-off fault, error in data, pause upgrading in firmware upgrade process
When, when powering on again or asking upgrading again, an escalation process before continuing, and once the upgrading point of interruption starts in the past
Transmission does not transmit the firmware upgrade file of completion, so as to increase the stability of firmware upgrade, shortens the extensive of big firmware upgrade exception
The multiple time, while mitigate the transmission burden of control centre.
In the above-mentioned technical solutions, it is preferable that determination unit, is specifically used for:According to the caching of current file data packet
Location and fileinfo determine the bag sequence number of current file data packet.
In the technical scheme, each file data bag for firmware upgrade, is stored in firmware upgrade file and delays
The fixing address in area is deposited,, can such as total bag number of file data bag according to the buffer address and fileinfo of current file data packet
To determine the bag sequence number of current file data packet, so that it is determined that go out the last upgrading point of interruption, can be to control centre based on this
Repeat requests are sent, carry out upgrade file breakpoint re-transmission, so as to reach the stability of increase firmware upgrade, shorten big firmware upgrade
The purpose of abnormal recovery time.
In any of the above-described technical solution, it is preferable that the air-conditioning device for upgrading firmware further includes:Verification unit, for
Control centre communicates, and sends the repeat requests for including bag sequence number, and receives the firmware upgrade file weight of control centre's transmission
After passing bag, whether the file in detection firmware upgrade file cache area is legal;Upgrade unit, if for firmware upgrade file cache
The file in area is legal, then firmware is upgraded according to the file in firmware upgrade file cache area;Setting unit, for by firmware
The file status of upgrade file buffer area is arranged to upgrading and completes.
In the technical scheme, it is necessary to detect firmware upgrade file cache area after firmware upgrade file is sent
Whether file is legal, if file is legal, carries out firmware upgrade, and by the file status of file in firmware upgrade file cache area
Upgrading is arranged to complete;If file is illegal, the model of the upgrade file and firmware to be upgraded that such as receive and store is not inconsistent, then
It cannot carry out firmware upgrade.This way it is possible to avoid upgrading corrupt data, it is ensured that firmware upgrade is smoothed out.
In any of the above-described technical solution, it is preferable that communication unit, if being additionally operable to determine whether unfinished firmware liter
The judging result of level flow is the firmware upgrade flow not completed, then communicates with control centre, and whether inquiry has liter
Level demand, if there is upgrade requirement, is ready for file reception;And storage unit, for the firmware upgrade file that will be received
Store to firmware upgrade file cache area, and by the file information storage received to memory.
In the technical scheme, can be true if the firmware upgrade flow that firmware upgrade file cache area does not complete
Fixed last upgrading does not have abnormal conditions, can communicate with control centre, whether inquiry has upgrade requirement, if there is liter
Level demand, then be ready for firmware upgrade file reception.After preparation routine, it is first begin to receive information of upgrade file, its
Middle fileinfo is storable in control chip internal processes backup area or the plug-in sflash of system (flash memory), is preferably stored
In control chip internal processes backup area.Secondly, firmware upgrade file is received, and is stored to firmware upgrade file cache
Area, while the state of file in buffer area is arranged in download, wherein often receiving a bag upgrade file data, it is stored in
Firmware upgrade file cache area, while store the check information of the data packet.By the control method of the present invention, can monitor solid
The abnormal conditions of part upgrading, and upgrade file breakpoint transmission is carried out according to abnormal conditions, while upgrading progress can be carried out real
Shi Baocun, so as to avoid escalation process power-off from causing upgrading loss of data, further increases upgrading stability.
In any of the above-described technical solution, it is preferable that fileinfo includes at least any one of following or its combination:Firmware liter
Size, the state of level file, size, the quantity of file data bag;Wherein the state of firmware upgrade file includes downloading neutralizing and rises
Level is completed.
In the technical scheme, fileinfo includes but not limited to the size of upgrade file, the state of file (as downloaded
In, upgrading completes etc.), the information such as the size of file data bag, quantity.
The invention also provides a kind of air-conditioning, including the air-conditioning device for upgrading firmware such as any one of above-mentioned technical proposal.
Air-conditioning according to the present invention, using the air-conditioning device for upgrading firmware of such as any one of above-mentioned technical proposal, thus has
There is effective effect of air-conditioning device for upgrading firmware whole, details are not described herein.
The fourth aspect of the present invention, it is proposed that a kind of computer equipment, including memory, processor and it is stored in memory
Computer program that is upper and can running on a processor, processor are used to perform such as any one of any of the above-described technical solution method
The step of.
Computer equipment according to the present invention, its processor included are used to perform as any of the above-described technical solution is hollow
Adjust firmware upgrade method the step of, thus the computer equipment can realize the air-conditioning firmware upgrade method all beneficial to imitate
Fruit, details are not described herein.
The fifth aspect of the present invention, it is proposed that a kind of computer-readable recording medium, is stored thereon with computer program, meter
Calculation machine program is realized when being executed by processor such as the step of any one of any of the above-described technical solution method.
Computer-readable recording medium according to the present invention, the computer program stored thereon are realized when being executed by processor
As in any of the above-described technical solution the step of air-conditioning firmware upgrade method, thus the computer-readable recording medium can be realized
Whole beneficial effects of the air-conditioning firmware upgrade method, details are not described herein.
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 flow diagram of air-conditioning firmware upgrade method according to an embodiment of the invention;
Fig. 2 shows the flow diagram of air-conditioning firmware upgrade method according to another embodiment of the invention;
Fig. 3 shows the flow diagram of air-conditioning firmware upgrade method according to still a further embodiment;
Fig. 4 shows the flow diagram of air-conditioning firmware upgrade method according to still another embodiment of the invention;
Fig. 5 shows the schematic block diagram of air-conditioning device for upgrading firmware according to an embodiment of the invention;
Fig. 6 shows the schematic block diagram of air-conditioning device for upgrading firmware according to another embodiment of the invention;
Fig. 7 shows the schematic block diagram of air-conditioning device for upgrading firmware according to still a further embodiment;
Fig. 8 shows the schematic block diagram of air-conditioning according to an embodiment of the invention;
Fig. 9 shows the workflow schematic diagram of the boot program of a specific embodiment according to the present invention;
Figure 10 shows the firmware upgrade control flow schematic diagram of a specific embodiment according to the present invention;
Figure 11 shows the schematic diagram of computer equipment according to an embodiment of the invention.
Embodiment
It is to better understand the objects, features and advantages of the present invention, below in conjunction with the accompanying drawings and specific real
Mode is applied the present invention is further described in detail.It should be noted that in the case where there is no conflict, 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 implemented using other different from other modes described here, therefore, protection scope of the present invention and from described below
Specific embodiment limitation.
As shown in Figure 1, the flow diagram of air-conditioning firmware upgrade method according to an embodiment of the invention.Wherein,
The air-conditioning firmware upgrade method, including:
Step 102, the fileinfo in firmware upgrade file cache area is detected, determines whether unfinished firmware upgrade stream
Journey;
Step 104, if so, detecting the check information of each file data bag, when check information mistake, current file is determined
The bag sequence number of data packet;
Step 106, communicate with control centre, send the repeat requests for including bag sequence number, and receive control centre's hair
The firmware upgrade file retransmission bag sent.
Air-conditioning firmware upgrade method provided by the invention, after firmware upgrade procedure is started shooting or re-powered, passes through detection
The information of upgrade file in firmware upgrade file cache area, to determine whether having unfinished firmware upgrade flow, if having unfinished
Firmware upgrade flow, then detect the check information of each file data bag successively, when check information mistake, illustrate current file
Data packet is the point of interruption of last upgrading, it is determined that the bag sequence number of current file data packet, and send and rise to control centre
Level repeat requests, request needs the bag sequence number retransmitted, after control centre receives request, starts the firmware upgrade that transmission needs to retransmit
File bag.By the embodiment of the present invention, when there is powered-off fault, error in data, pause upgrading in firmware upgrade process,
When powering on again or asking upgrading again, an escalation process before continuing, and once the upgrading point of interruption starts to pass in the past
The firmware upgrade file for not transmitting completion is sent, so as to increase the stability of firmware upgrade, shortens the recovery of big firmware upgrade exception
Time, while mitigate the transmission burden of control centre.
As shown in Fig. 2, the flow diagram of air-conditioning firmware upgrade method according to another embodiment of the invention.Its
In, the air-conditioning firmware upgrade method, including:
Step 202, the fileinfo in firmware upgrade file cache area is detected, determines whether unfinished firmware upgrade stream
Journey;
Step 204, if so, detecting the check information of each file data bag, when check information mistake, according to current file
The buffer address and fileinfo of data packet determine the bag sequence number of current file data packet;
Step 206, communicate with control centre, send the repeat requests for including bag sequence number, and receive control centre's hair
The firmware upgrade file retransmission bag sent.
In this embodiment, each file data bag for firmware upgrade, is stored in firmware upgrade file cache
The fixing address in area,, can be with such as total bag number of file data bag according to the buffer address and fileinfo of current file data packet
Determine the bag sequence number of current file data packet, so that it is determined that going out the last upgrading point of interruption, based on this, can be sent out to control centre
Repeat requests are sent, carry out upgrade file breakpoint re-transmission, so as to reach the stability of increase firmware upgrade, it is different to shorten big firmware upgrade
The purpose of normal recovery time.
As shown in figure 3, the flow diagram of air-conditioning firmware upgrade method according to still a further embodiment.Its
In, the air-conditioning firmware upgrade method, including:
Step 302, the fileinfo in firmware upgrade file cache area is detected, determines whether unfinished firmware upgrade stream
Journey;
Step 304, if so, detecting the check information of each file data bag, when check information mistake, according to current file
The buffer address and fileinfo of data packet determine the bag sequence number of current file data packet;
Step 306, communicate with control centre, send the repeat requests for including bag sequence number, and receive control centre's hair
The firmware upgrade file retransmission bag sent;
Step 308, the transmission for receiving control centre's transmission finishes instruction;
Step 310, whether the file for detecting firmware upgrade file cache area is legal;
Step 312, if the file in firmware upgrade file cache area is legal, according to the file in firmware upgrade file cache area
Firmware is upgraded, and the file status in firmware upgrade file cache area is arranged to upgrading and is completed.
In this embodiment, it is necessary to detect the text in firmware upgrade file cache area after firmware upgrade file is sent
Whether part is legal, if file is legal, carries out firmware upgrade, and the file status of file in firmware upgrade file cache area is set
Upgrading is set to complete;If file is illegal, the model of the upgrade file and firmware to be upgraded that such as receive and store is not inconsistent, then not
It can carry out firmware upgrade.This way it is possible to avoid upgrading corrupt data, it is ensured that firmware upgrade is smoothed out.
As shown in figure 4, the flow diagram of air-conditioning firmware upgrade method according to still another embodiment of the invention.Its
In, the air-conditioning firmware upgrade method, including:
Step 402, the fileinfo in firmware upgrade file cache area is detected, determines whether unfinished firmware upgrade stream
Journey;If so, perform step 404;If it is not carried out step 414;
Step 404, the check information of each file data bag is detected, when check information mistake, according to current file data
The buffer address and fileinfo of bag determine the bag sequence number of current file data packet;
Step 406, communicate with control centre, send the repeat requests for including bag sequence number, and receive control centre's hair
The firmware upgrade file retransmission bag sent;
Step 408, the transmission for receiving control centre's transmission finishes instruction;
Step 410, whether the file for detecting firmware upgrade file cache area is legal;If legal, step 412 is performed, if not
It is legal, perform step 414;
Step 412, firmware is upgraded according to the file in firmware upgrade file cache area, and firmware upgrade file is delayed
The file status for depositing area is arranged to upgrading completion;
Step 414, communicate with control centre, whether inquiry has upgrade requirement;
Step 416, if there is upgrade requirement, it is ready for file reception;
Step 418, after preparation, proceed by file reception, by the firmware upgrade file received store to
Firmware upgrade file cache area, and by the file information storage received to memory.
In this embodiment, if the firmware upgrade flow that firmware upgrade file cache area does not complete, can determine
Last time upgrading does not have abnormal conditions, can communicate with control centre, and whether inquiry has upgrade requirement, if there is upgrading
Demand, then be ready for firmware upgrade file reception.After preparation routine, it is first begin to receive information of upgrade file, wherein
Fileinfo is storable in control chip internal processes backup area or the plug-in sflash of system, is stored preferably in control core
Piece internal processes backup area.Secondly, firmware upgrade file is received, and is stored to firmware upgrade file cache area, at the same time will
The state of file is arranged in download in buffer area, wherein often receiving a bag upgrade file data, is stored in firmware upgrade
File cache area, while store the check information of the data packet.By the control method of the present invention, can be upgraded with monitor firmware
Abnormal conditions, and upgrade file breakpoint transmission is carried out according to abnormal conditions, while upgrading progress can be preserved in real time, from
And avoid escalation process power-off from causing upgrading loss of data, further increase upgrading stability.
In any of the above-described embodiment, it is preferable that fileinfo includes at least any one of following or its combination:Firmware upgrade
Size, the state of file, size, the quantity of file data bag;Wherein the state of firmware upgrade file, which includes downloading, neutralizes upgrading
Complete.
In this embodiment, fileinfo include but not limited to the size of upgrade file, the state of file (as download in,
Upgrading is completed etc.), the information such as the size of file data bag, quantity.
As shown in figure 5, the schematic block diagram of air-conditioning device for upgrading firmware according to an embodiment of the invention.Wherein, should
Air-conditioning device for upgrading firmware 500, including:
Detection unit 502, for detecting the fileinfo in firmware upgrade file cache area, determines whether unfinished consolidate
Part upgrades flow;If so, detect the check information of each file data bag;
Determination unit 504, for when check information mistake, determining the bag sequence number of current file data packet;
Communication unit 506, for communicating with control centre, sends the repeat requests for including bag sequence number, and receive control
The firmware upgrade file retransmission bag that center processed is sent.
Air-conditioning device for upgrading firmware 500 provided by the invention, after firmware upgrade procedure is started shooting or re-powered, passes through inspection
The information of upgrade file in firmware upgrade file cache area is surveyed, to determine whether having unfinished firmware upgrade flow, if having not complete
Into firmware upgrade flow, then detect the check information of each file data bag successively, when check information mistake, explanation ought be above
Part data packet is the point of interruption of last upgrading, it is determined that the bag sequence number of current file data packet, and sent to control centre
Upgrade repeat requests, request needs the bag sequence number retransmitted, after control centre receives request, starts the firmware liter that transmission needs to retransmit
Level file bag.By the embodiment of the present invention, there is situations such as powered-off fault, error in data, pause upgrading in firmware upgrade process
When, when powering on again or asking upgrading again, an escalation process before continuing, and once the upgrading point of interruption starts in the past
Transmission does not transmit the firmware upgrade file of completion, so as to increase the stability of firmware upgrade, shortens the extensive of big firmware upgrade exception
The multiple time, while mitigate the transmission burden of control centre.
In the above embodiment, it is preferable that determination unit 504, is specifically used for:According to the caching of current file data packet
Location and fileinfo determine the bag sequence number of current file data packet.
In this embodiment, each file data bag for firmware upgrade, is stored in firmware upgrade file cache
The fixing address in area,, can be with such as total bag number of file data bag according to the buffer address and fileinfo of current file data packet
Determine the bag sequence number of current file data packet, so that it is determined that going out the last upgrading point of interruption, based on this, can be sent out to control centre
Repeat requests are sent, carry out upgrade file breakpoint re-transmission, so as to reach the stability of increase firmware upgrade, it is different to shorten big firmware upgrade
The purpose of normal recovery time.
As shown in fig. 6, the schematic block diagram of air-conditioning device for upgrading firmware according to another embodiment of the invention.Wherein,
The air-conditioning device for upgrading firmware 600, including:
Detection unit 602, for detecting the fileinfo in firmware upgrade file cache area, determines whether unfinished consolidate
Part upgrades flow;If so, detect the check information of each file data bag;
Determination unit 604, for when check information mistake, being believed according to the buffer address of current file data packet and file
Breath determines the bag sequence number of current file data packet;
Communication unit 606, for communicating with control centre, sends the repeat requests for including bag sequence number, and receive control
The firmware upgrade file retransmission bag that center processed is sent;
Verification unit 608, for communicating with control centre, sends the repeat requests for including bag sequence number, and receive control
After the firmware upgrade file retransmission bag that center processed is sent, whether the file in detection firmware upgrade file cache area is legal;
Upgrade unit 610, if the file for firmware upgrade file cache area is legal, according to firmware upgrade file cache
The file in area upgrades firmware;
Setting unit 612, is completed for the file status in firmware upgrade file cache area to be arranged to upgrading.
In this embodiment, it is necessary to detect the text in firmware upgrade file cache area after firmware upgrade file is sent
Whether part is legal, if file is legal, carries out firmware upgrade, and the file status of file in firmware upgrade file cache area is set
Upgrading is set to complete;If file is illegal, the model of the upgrade file and firmware to be upgraded that such as receive and store is not inconsistent, then not
It can carry out firmware upgrade.This way it is possible to avoid upgrading corrupt data, it is ensured that firmware upgrade is smoothed out.
As shown in fig. 7, the schematic block diagram of air-conditioning device for upgrading firmware according to still a further embodiment.Wherein,
The air-conditioning device for upgrading firmware 700, including:
Detection unit 702, for detecting the fileinfo in firmware upgrade file cache area, determines whether unfinished consolidate
Part upgrades flow;If so, detect the check information of each file data bag;
Determination unit 704, for when check information mistake, being believed according to the buffer address of current file data packet and file
Breath determines the bag sequence number of current file data packet;
Communication unit 706, for communicating with control centre, sends the repeat requests for including bag sequence number, and receive control
The firmware upgrade file retransmission bag that center processed is sent;
Verification unit 708, for communicating with control centre, sends the repeat requests for including bag sequence number, and receive control
After the firmware upgrade file retransmission bag that center processed is sent, whether the file in detection firmware upgrade file cache area is legal;
Upgrade unit 710, if the file for firmware upgrade file cache area is legal, according to firmware upgrade file cache
The file in area upgrades firmware;
Setting unit 712, is completed for the file status in firmware upgrade file cache area to be arranged to upgrading;
Communication unit 706, if the judging result for being additionally operable to determine whether unfinished firmware upgrade flow is without not
The firmware upgrade flow of completion, then communicate with control centre, and whether inquiry has upgrade requirement, accurate if there is upgrade requirement
It is standby to carry out file reception;
Storage unit 714, for storing the firmware upgrade received file to firmware upgrade file cache area, and will
The file information storage received is to memory.
In this embodiment, if the firmware upgrade flow that firmware upgrade file cache area does not complete, can determine
Last time upgrading does not have abnormal conditions, can communicate with control centre, and whether inquiry has upgrade requirement, if there is upgrading
Demand, then be ready for firmware upgrade file reception.After preparation routine, it is first begin to receive information of upgrade file, wherein
Fileinfo is storable in control chip internal processes backup area or the plug-in sflash of system, is stored preferably in control core
Piece internal processes backup area.Secondly, firmware upgrade file is received, and is stored to firmware upgrade file cache area, at the same time will
The state of file is arranged in download in buffer area, wherein often receiving a bag upgrade file data, is stored in firmware upgrade
File cache area, while store the check information of the data packet.By the control method of the present invention, can be upgraded with monitor firmware
Abnormal conditions, and upgrade file breakpoint transmission is carried out according to abnormal conditions, while upgrading progress can be preserved in real time, from
And avoid escalation process power-off from causing upgrading loss of data, further increase upgrading stability.
In any of the above-described embodiment, it is preferable that fileinfo includes at least any one of following or its combination:Firmware upgrade
Size, the state of file, size, the quantity of file data bag;Wherein the state of firmware upgrade file, which includes downloading, neutralizes upgrading
Complete.
In this embodiment, fileinfo include but not limited to the size of upgrade file, the state of file (as download in,
Upgrading is completed etc.), the information such as the size of file data bag, quantity.
As shown in figure 8, the schematic block diagram of air-conditioning according to an embodiment of the invention.Wherein, the air-conditioning 800, including
Such as the air-conditioning device for upgrading firmware 802 of any one of above-described embodiment.
Air-conditioning 800 according to the present invention, using the air-conditioning device for upgrading firmware 802 of such as any one of above-described embodiment, because
And with the whole effective effect of the air-conditioning device for upgrading firmware 802, details are not described herein.
Specific embodiment:Provide a kind of firmware upgrade management method for supporting breakpoint transmission.Wherein, system firmware
It is made of two parts:Boot program and APP application programs, the program's memory space of control chip, be also classified into boot memory blocks with
APP application programs memory block.Firmware upgrade is to carry out firmware upgrade for APP application programs, and boot program is responsible for delaying in firmware
File renewal is deposited to APP application areas.APP application programs include the different upgrading modes that manage, and firmware file receives and caching,
And the preservation and recovery of upgrade status.
The workflow of boot program, as shown in Figure 9:
Step 902, judge whether firmware file buffer area has firmware to need to update;When judging result is to be, step is performed
Rapid 904;When judging result is no, step 908 is performed;
Step 904, judge whether firmware file caching area file is legal;
Step 906, it is if legal, carry out firmware upgrade;If illegal, step 908 is performed;
Step 908, APP application programs are performed.
Firmware upgrade control flow, as shown in Figure 10:
Step 12, it is connected with firmware upgrade control centre;
Step 14, firmware file buffer area is scanned, detects whether to preserve unfinished firmware upgrade flow;
Step 16, if there is unfinished firmware upgrade flow, repeat requests are sent;
Step 18, if the firmware upgrade flow not completed, whether inquiry has upgrade request;
Step 20, if without upgrade request, application program is performed;
Step 22, if there is upgrade request, firmware file information is received;
Step 24, the first bag firmware file data are received;
Step 26, N bag firmware file data are received;
Step 28, receive firmware and be sent message;
Step 30, firmware file buffer area file validation is detected;If illegal, return to step 14;
Step 32, renewal mark that is if legal, setting firmware upgrade to need;
Step 34, restart.
In this embodiment, control centre is not limited to serial ports upgrading of control software or remote server upgrading control journey
Sequence, firmware file information are stored in the program's memory space of control chip, and firmware file data packet is stored in firmware file caching
Area.The firmware upgrade management method provided by the invention for supporting breakpoint transmission, can upgrade exception with monitor firmware, while according to different
Reason condition carries out upgrade file breakpoint re-transmission, to reach increase upgrading stability, shortens the big firmware upgrade abnormal restoring time.
As shown in figure 11, the schematic diagram of computer equipment according to an embodiment of the invention.Wherein the computer is set
Standby 1100, including memory 1102, processor 1104 and be stored on memory 1102 and can be run on processor 1104
Computer program, processor 1104 are used to perform such as the step of any one of above-described embodiment method.
Computer equipment 1100 according to the present invention, its processor 1104 included are used to perform such as any of the above-described implementation
In example the step of air-conditioning firmware upgrade method, thus the computer equipment 1100 can realize the complete of the air-conditioning firmware upgrade method
Portion's beneficial effect, details are not described herein.
The fifth aspect of the present invention embodiment, it is proposed that a kind of computer-readable recording medium, is stored thereon with computer
Program, realizes when computer program is executed by processor such as the step of any one of above-mentioned any embodiment method.
Computer-readable recording medium according to the present invention, the computer program stored thereon are realized when being executed by processor
As in above-mentioned any embodiment the step of air-conditioning firmware upgrade method, thus the computer-readable recording medium can realize this
Whole beneficial effects of air-conditioning firmware upgrade method, details are not described herein.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the invention, for the skill of this area
For art personnel, the invention may be variously modified and varied.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should all be included in the protection scope of the present invention.
Claims (13)
- A kind of 1. air-conditioning firmware upgrade method, it is characterised in that including:The fileinfo in firmware upgrade file cache area is detected, determines whether unfinished firmware upgrade flow;If so, detecting the check information of each file data bag, when the check information mistake, current file data packet is determined Bag sequence number;Communicate with control centre, send the repeat requests for including the bag sequence number, and receive what the control centre sent Firmware upgrade file retransmission bag.
- 2. air-conditioning firmware upgrade method according to claim 1, it is characterised in that the definite current file data packet Bag sequence number, is specially:The bag of the current file data packet is determined according to the buffer address of the current file data packet and the fileinfo Sequence number.
- 3. air-conditioning firmware upgrade method according to claim 2, it is characterised in that it is described to communicate with control centre, Send and include the repeat requests of the bag sequence number, and after receiving the firmware upgrade file retransmission bag of control centre's transmission, Further include:Whether the file for detecting the firmware upgrade file cache area is legal;If the file in the firmware upgrade file cache area is legal, according to the file in the firmware upgrade file cache area to institute Firmware is stated to be upgraded;The file status in the firmware upgrade file cache area is arranged to upgrading to complete.
- 4. air-conditioning firmware upgrade method according to any one of claim 1 to 3, it is characterised in that further include:If the judging result for determining whether unfinished firmware upgrade flow is the firmware upgrade flow not completed, with The control centre communicates, and whether inquiry has upgrade requirement, if there is upgrade requirement, is ready for file reception;The firmware upgrade file received is stored to the firmware upgrade file cache area, and described in receiving File information storage is to memory.
- 5. air-conditioning firmware upgrade method according to claim 4, it is characterised in thatThe fileinfo includes at least any one of following or its combination:Size, the state of the firmware upgrade file, the text Size, the quantity of part data packet;The state of wherein described firmware upgrade file, which includes downloading, neutralizes upgrading completion.
- A kind of 6. air-conditioning device for upgrading firmware, it is characterised in that including:Detection unit, for detecting the fileinfo in firmware upgrade file cache area, determines whether unfinished firmware upgrade Flow;If so, detect the check information of each file data bag;Determination unit, for when the check information mistake, determining the bag sequence number of current file data packet;Communication unit, for communicating with control centre, sends the repeat requests for including the bag sequence number, and receive the control The firmware upgrade file retransmission bag that center processed is sent.
- 7. air-conditioning device for upgrading firmware according to claim 6, it is characterised in that the determination unit, is specifically used for:The bag of the current file data packet is determined according to the buffer address of the current file data packet and the fileinfo Sequence number.
- 8. air-conditioning device for upgrading firmware according to claim 7, it is characterised in that further include:Verification unit, communicates for described with control centre, sends the repeat requests for including the bag sequence number, and receive institute After the firmware upgrade file retransmission bag for stating control centre's transmission, whether the file for detecting the firmware upgrade file cache area closes Method;Upgrade unit, if the file for the firmware upgrade file cache area is legal, delays according to the firmware upgrade file The file for depositing area upgrades the firmware;Setting unit, is completed for the file status in the firmware upgrade file cache area to be arranged to upgrading.
- 9. the air-conditioning device for upgrading firmware according to any one of claim 6 to 8, it is characterised in thatThe communication unit, if the judging result for being additionally operable to determine whether unfinished firmware upgrade flow is without unfinished Firmware upgrade flow, then communicate with the control centre, whether inquiry has upgrade requirement, accurate if there is upgrade requirement It is standby to carry out file reception;Storage unit, for storing the firmware upgrade file received to the firmware upgrade file cache area, and By the file information storage received to memory.
- 10. air-conditioning device for upgrading firmware according to claim 9, it is characterised in thatThe fileinfo includes at least any one of following or its combination:Size, the state of the firmware upgrade file, the text Size, the quantity of part data packet;The state of wherein described firmware upgrade file, which includes downloading, neutralizes upgrading completion.
- 11. a kind of air-conditioning, it is characterised in that including the air-conditioning device for upgrading firmware as any one of claim 6 to 10.
- 12. 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 the processor is used to perform the method as any one of claim 1 to 5 The step of.
- 13. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program The step of method as any one of claim 1 to 5 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711235175.0A CN107957880A (en) | 2017-11-30 | 2017-11-30 | Air-conditioning firmware upgrade method, device, air-conditioning and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711235175.0A CN107957880A (en) | 2017-11-30 | 2017-11-30 | Air-conditioning firmware upgrade method, device, air-conditioning and computer equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107957880A true CN107957880A (en) | 2018-04-24 |
Family
ID=61959633
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711235175.0A Pending CN107957880A (en) | 2017-11-30 | 2017-11-30 | Air-conditioning firmware upgrade method, device, air-conditioning and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107957880A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109842523A (en) * | 2019-02-14 | 2019-06-04 | 上海华测导航技术股份有限公司 | A kind of firmware upgrade method, device, equipment and storage medium |
CN110262816A (en) * | 2019-05-15 | 2019-09-20 | 深圳市优博讯科技股份有限公司 | It is a kind of to power off the upgrade method and its terminal system resumed |
CN110471684A (en) * | 2019-08-14 | 2019-11-19 | 珠海格力电器股份有限公司 | The upgrading verification method and system of reliability can be examined |
CN110471685A (en) * | 2019-08-15 | 2019-11-19 | 珠海格力电器股份有限公司 | Upgrade the analysis method and analysis system of disturbing factor |
CN112559014A (en) * | 2020-12-28 | 2021-03-26 | 南京立迈胜机器人有限公司 | Servo drive firmware upgrading method based on EtherCAT real-time Ethernet |
CN113407211A (en) * | 2021-06-20 | 2021-09-17 | 杭州登虹科技有限公司 | Embedded equipment-based upgrading method without redundant space |
CN113865043A (en) * | 2021-09-14 | 2021-12-31 | 北京小米移动软件有限公司 | Program upgrading method and device for air conditioner, air conditioner and storage medium |
CN114443095A (en) * | 2022-01-21 | 2022-05-06 | 佛山市钒音科技有限公司 | Air conditioner upgrading method and air conditioner |
CN115134828A (en) * | 2022-05-24 | 2022-09-30 | 深圳绿米联创科技有限公司 | Data updating method, device, equipment, system and storage medium of target equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101515967A (en) * | 2009-03-18 | 2009-08-26 | 中兴通讯股份有限公司 | Over-the-air downloader of terminal firmware and method thereof |
CN103347095A (en) * | 2013-07-22 | 2013-10-09 | 广州市交通信息中心 | Wireless firmware updating method used in vehicle networking system |
CN103455354A (en) * | 2013-09-06 | 2013-12-18 | 南京南自信息技术有限公司 | Method and equipment for preventing hardware update from failing |
CN104007996A (en) * | 2014-06-16 | 2014-08-27 | 南京融教科技有限公司 | Reliable firmware upgrading realizing method for distributed control system |
US20150261521A1 (en) * | 2014-03-11 | 2015-09-17 | Hyuksang CHOI | Mobile system including firmware verification function and firmware update method thereof |
CN106325929A (en) * | 2016-08-22 | 2017-01-11 | 合肥华凌股份有限公司 | Firmware upgrading method, firmware upgrading device, refrigerator and server side |
-
2017
- 2017-11-30 CN CN201711235175.0A patent/CN107957880A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101515967A (en) * | 2009-03-18 | 2009-08-26 | 中兴通讯股份有限公司 | Over-the-air downloader of terminal firmware and method thereof |
CN103347095A (en) * | 2013-07-22 | 2013-10-09 | 广州市交通信息中心 | Wireless firmware updating method used in vehicle networking system |
CN103455354A (en) * | 2013-09-06 | 2013-12-18 | 南京南自信息技术有限公司 | Method and equipment for preventing hardware update from failing |
US20150261521A1 (en) * | 2014-03-11 | 2015-09-17 | Hyuksang CHOI | Mobile system including firmware verification function and firmware update method thereof |
CN104007996A (en) * | 2014-06-16 | 2014-08-27 | 南京融教科技有限公司 | Reliable firmware upgrading realizing method for distributed control system |
CN106325929A (en) * | 2016-08-22 | 2017-01-11 | 合肥华凌股份有限公司 | Firmware upgrading method, firmware upgrading device, refrigerator and server side |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109842523A (en) * | 2019-02-14 | 2019-06-04 | 上海华测导航技术股份有限公司 | A kind of firmware upgrade method, device, equipment and storage medium |
CN110262816A (en) * | 2019-05-15 | 2019-09-20 | 深圳市优博讯科技股份有限公司 | It is a kind of to power off the upgrade method and its terminal system resumed |
CN110471684A (en) * | 2019-08-14 | 2019-11-19 | 珠海格力电器股份有限公司 | The upgrading verification method and system of reliability can be examined |
CN110471685A (en) * | 2019-08-15 | 2019-11-19 | 珠海格力电器股份有限公司 | Upgrade the analysis method and analysis system of disturbing factor |
CN112559014A (en) * | 2020-12-28 | 2021-03-26 | 南京立迈胜机器人有限公司 | Servo drive firmware upgrading method based on EtherCAT real-time Ethernet |
CN113407211A (en) * | 2021-06-20 | 2021-09-17 | 杭州登虹科技有限公司 | Embedded equipment-based upgrading method without redundant space |
CN113865043A (en) * | 2021-09-14 | 2021-12-31 | 北京小米移动软件有限公司 | Program upgrading method and device for air conditioner, air conditioner and storage medium |
CN114443095A (en) * | 2022-01-21 | 2022-05-06 | 佛山市钒音科技有限公司 | Air conditioner upgrading method and air conditioner |
CN115134828A (en) * | 2022-05-24 | 2022-09-30 | 深圳绿米联创科技有限公司 | Data updating method, device, equipment, system and storage medium of target equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107957880A (en) | Air-conditioning firmware upgrade method, device, air-conditioning and computer equipment | |
CN105988809B (en) | A kind of on-line loaded method of game resource and micro- end engine | |
CN107770140A (en) | A kind of single sign-on authentication method and device | |
WO2017113527A1 (en) | Method and device for switching virtual sim card, and terminal | |
CN107239288B (en) | Version upgrading method and device for mobile terminal | |
CN108379845B (en) | Information processing method, device and storage medium | |
CN106843957A (en) | System firmware upgrade method and device | |
US20040054995A1 (en) | Method of updating firmware | |
CN106610854A (en) | Model update method and device | |
US20160191492A1 (en) | Method and device for transferring resources | |
WO2004015569A3 (en) | Method and apparatus for booting with remote configuration data | |
CN101605108A (en) | A kind of method, system and device of instant messaging | |
CN102111449A (en) | Method, device and system for updating data | |
CN104978530B (en) | A kind of application method for managing security, device, server and system | |
CN109302394A (en) | A kind of anti-simulation login method of terminal, device, server and storage medium | |
CN102468906A (en) | Interactive logic fault-tolerance method in online games and online game fault-tolerance system | |
CN109525542A (en) | Data reconstruction method, transmitting/receiving means and computer readable storage medium | |
CN105704178A (en) | Task platform access method and task platform access device | |
CN106934272B (en) | Application information verification method and device | |
CN107766699A (en) | A kind of authorized appropriation method and apparatus | |
CN105426272A (en) | Backup method and device for application programs | |
CN106485139B (en) | A kind of safe verification method of application program | |
CN106570685B (en) | Service processing method and device | |
CN112636984A (en) | Federation chain configuration updating method, equipment and computer medium | |
CN116483409A (en) | Remote firmware updating method, system, electronic equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180424 |