CN115964071A - Software partition upgrading method with historical version saving function - Google Patents

Software partition upgrading method with historical version saving function Download PDF

Info

Publication number
CN115964071A
CN115964071A CN202310055820.XA CN202310055820A CN115964071A CN 115964071 A CN115964071 A CN 115964071A CN 202310055820 A CN202310055820 A CN 202310055820A CN 115964071 A CN115964071 A CN 115964071A
Authority
CN
China
Prior art keywords
software
upgrading
area
upgrade
upper computer
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
CN202310055820.XA
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.)
Hangzhou Pengcheng New Energy Technology Co ltd
Original Assignee
Hangzhou Pengcheng New Energy Technology 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 Hangzhou Pengcheng New Energy Technology Co ltd filed Critical Hangzhou Pengcheng New Energy Technology Co ltd
Priority to CN202310055820.XA priority Critical patent/CN115964071A/en
Publication of CN115964071A publication Critical patent/CN115964071A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a software partition upgrading method with a historical version saving function, which comprises the steps of partitioning a software storage space, receiving and transmitting data through an upgrading bootstrap program, carrying out primary verification during data transmission, carrying out global verification after data transmission, and entering different upgrading steps according to different verification results. And stopping upgrading until the upgrading is successful or the old version is reserved. The method can realize the upgrading function only by establishing communication connection between the equipment and the upper computer software, gets rid of the dependence of equipment software upgrading on a special upgrading device and a computer provided with development software, and has lower requirements on upgrading operators. In addition, the software storage space of the equipment is re-planned, so that the utilization rate of the storage space is improved, and the software partition upgrading method with the historical version storage function is realized.

Description

Software partition upgrading method with historical version saving function
Technical Field
The invention belongs to the field of battery management systems, and particularly relates to a software partition upgrading method with a historical version saving function.
Background
With the development of technology and the upgrading of functions, the battery management system software also needs to be updated and optimized continuously. The conventional upgrading mode is to connect a special upgrading device to a special upgrading port on a circuit board of the battery management system, and then upgrade new software into a chip through corresponding development software. The method has high requirements on equipment and operators, and an upgrade operator must hold a special updater and a computer provided with development software, and needs to be familiar with the upgrade operation steps of the development software to complete software upgrade.
In the upgrading process, if data transmission errors or upgrading interruption and other conditions occur, not only is the upgrading of new software failed, but also old software cannot continue to run because the old software is deleted before upgrading, and the problem that the old software cannot be operated because the old software is upgraded again can be solved, so that the time is wasted, and the use experience is influenced.
Disclosure of Invention
In order to solve the problem, the invention provides an intelligent software partition upgrading method with a historical version saving function. The method gets rid of the dependence of software upgrading on a special upgrading device and an upgrading computer, has a software partition upgrading function, can store the historical version of the software, and prevents the condition that equipment is halted and can not be used due to errors or interruption in the upgrading process.
The software partition upgrading method with the historical version saving function comprises the following steps of:
the method comprises the following steps that S1, a software storage space of a battery management system is divided according to the sequence of addresses from low to high and is respectively a bootstrap program area, a software operation area, a software downloading area and an upgrading mark area;
s2, the upper computer sends an upgrading instruction to the system, and the system runs upgrading guide software in the guide program area after receiving the upgrading instruction;
s3, the upper computer transmits the software data to be upgraded to an upgrade bootstrap program in batches;
s4, after receiving the software data packet, the upgrading bootstrap program carries out primary verification on the software data packet, and if the verification is passed, the software data are stored in a software downloading area according to the batch sequence; otherwise, the upper computer retransmits the software data packets of the batch;
s5, after all software data packets are completely transmitted and all data are stored in the software downloading area, the upgrading bootstrap program can carry out global verification on the software data and feed back a verification result;
s6, according to the verification result in the step S5, the verification is carried out
S62, after the global verification is successful, integrally transferring the new software data stored in the software downloading area to the software running area, and skipping to run the new software;
s62, the global verification fails, the result of the global verification failure is fed back, and the next instruction of the upper computer is waited.
Further, the step S62 includes:
s621, the upper computer upgrades the software again, and the steps S1 to S5 are repeated;
and S622, the upper computer abandons the upgrade, does not send the upgrade instruction, and the system runs the old software stored in the software running area.
Furthermore, the upgrade communication is established between the upgrade boot software in the boot program area and the upper computer software, and the received software is downloaded to the area.
Further, the software running area stores software data of system running.
Furthermore, a mark generated in the upgrading process is stored in the upgrading mark area, and different states of the upgrading process are indicated through the mark.
Compared with the prior art, the invention has the following advantages:
the method can realize the upgrading function only by establishing communication connection between the equipment and the upper computer software, gets rid of the dependence of equipment software upgrading on a special upgrading device and a computer provided with development software, and has lower requirements on upgrading operators. In addition, the software storage space of the equipment is re-planned, so that the utilization rate of the storage space is improved, and the software partition upgrading method with the historical version storage function is realized.
Drawings
FIG. 1 is a schematic diagram of software memory space region division;
FIG. 2 is a flow chart of a software upgrade process.
Detailed description of the preferred embodiments
The invention will be further explained with reference to the drawings.
As shown in fig. 1, the software storage space of the battery management system is divided into 4 areas according to the sequence of addresses from low to high, where the areas are: a bootstrap program area, a software operation area, a software downloading area and an upgrading mark area. Wherein:
the boot program area stores upgrade boot software. The upgrading guide software is mainly used for establishing upgrading communication with the upper computer software, receiving software data transmitted by the upper computer software and storing the software data in a software downloading area.
In the upgrading process, the upgrading guide software also needs to verify the received software data, so that data errors caused by external interference and other reasons in the transmission process are prevented, and upgrading failure is prevented. If the upgrade guide software does not receive the upgrade instruction of the upper computer, the upgrade guide software guides the system to run the software stored in the software running area.
The software downloading area stores new software data transmitted by the upper computer. Due to the fact that the software data is large, the upper computer needs to transmit the software data in batches in the upgrading process, and the verified data are sequentially stored in the software storage area according to the transmission sequence. After the software data transmission and storage of all batches are completed, a global check needs to be performed on all stored software data to prevent data errors in the storage process.
The software running area stores software data run by the system. The storage of the new software data in the software downloading area is completed, and after the global verification is passed, the upgrade boot software migrates the new software data stored in the software downloading area to the software operating area. After the software data migration is completed, the system runs the software stored in the software running area. At this point, a software upgrade is complete.
The upgrading mark area is used for storing marks in the upgrading process. These flags are used to indicate some status in the upgrade process to service the upgrade process.
With reference to fig. 2, the detailed upgrade process is as follows:
1. the upper computer sends an upgrading instruction to the system, and the system skips to an upgrading bootstrap program to run after receiving the upgrading instruction and establishes data transmission connection with the upper computer;
2. the upper computer transmits the software data to be upgraded to an upgrade bootstrap program in batches;
3. and after receiving the batch software data packets, the upgrading bootstrap program verifies the batch software data packets. If the verification is passed, storing the software data into a software downloading area according to the batch sequence; otherwise, the upper computer retransmits the software data packets of the batch;
4. and after all the software data packets are completely transmitted and all the data are stored in the software downloading area, the software data can be globally checked by the upgrading bootstrap program. If the global check is successful, the upgrading bootstrap program integrally migrates the new software data stored in the software downloading area to the software running area, updates the upgrading mark and skips to run the new software; if the global verification fails, the upgrading guide software does not transfer the data to the software operation area, and simultaneously feeds back the result of the global verification failure to the upper computer to wait for the next instruction of the upper computer;
5. when the upper computer receives the feedback of the global upgrading failure, if the upper computer carries out the software upgrading again, the upgrading step is executed again according to the steps 1-4; if the upper computer gives up the upgrade, the upper computer does not send an upgrade instruction to the system any more, and then the system directly runs the old software stored in the software running area.
The method can realize the upgrading function only by establishing communication connection between the equipment and the upper computer software, gets rid of the dependence of equipment software upgrading on a special upgrading device and a computer provided with development software, and has lower requirements on upgrading operators. In addition, the software storage space of the equipment is re-planned, so that the utilization rate of the storage space is improved, and the software partition upgrading method with the historical version storage function is realized.
The method can check the data transmitted in batches in the upgrading process, so that errors in the intermediate transmission process are prevented, if transmission errors occur, the method can automatically feed back and enable the upper computer to retransmit, the self-error-correcting capability is strong, and the workload of upgrading operators for processing upgrading failures is reduced.
The method has the advantages of having a global check function, preventing errors in the storage process or data errors caused by storage medium faults due to environmental factor interference, having strong anti-interference capability and ensuring data integrity and correctness. The method has a historical version storage function, and when global verification fails, data migration to a software operation area can be automatically prohibited, so that the historical version of software is saved. At this time, if the upgrade is abandoned, the system can still run the software of the old version, so that the equipment cannot be run due to crash.

Claims (5)

1. A software partition upgrading method with a historical version saving function is characterized by comprising the following steps:
the method comprises the following steps that S1, a software storage space of a battery management system is divided according to the sequence of addresses from low to high and is respectively a bootstrap program area, a software operation area, a software downloading area and an upgrading mark area;
s2, the upper computer sends an upgrading instruction to the system, and the system runs upgrading guide software in the guide program area after receiving the upgrading instruction;
s3, the upper computer transmits the software data to be upgraded to an upgrade bootstrap program in batches;
s4, after receiving the software data packet, the upgrading bootstrap program carries out primary verification on the software data packet, and if the verification is passed, the software data are stored in a software downloading area according to the batch sequence; otherwise, the upper computer retransmits the software data packets of the batch;
s5, after all software data packets are completely transmitted and all data are stored in the software downloading area, the upgrading bootstrap program can carry out global verification on the software data and feed back a verification result;
s6, according to the verification result in the step S5, the verification is carried out
S62, if the global verification is successful, integrally transferring the new software data stored in the software downloading area to the software running area, and skipping to run the new software;
s62, the global verification fails, the result of the global verification failure is fed back, and the next instruction of the upper computer is waited.
2. The method for upgrading a software partition with a history version saving function according to claim 1, wherein the step S62 comprises:
s621, the upper computer carries out software upgrading again and repeats the steps S1-S5;
and S622, the upper computer abandons the upgrade, does not send an upgrade instruction any more, and the system runs the old software stored in the software running area.
3. The method as claimed in claim 1, wherein the upgrade communication is established between the boot software and the upper computer software via the upgrade in the boot program area, and the received software is downloaded to the area.
4. The method as claimed in claim 1, wherein the software data of the system operation is stored in the software operation area.
5. The method as claimed in claim 1, wherein a flag generated during the upgrade process is stored in the upgrade flag area, and different statuses of the upgrade process are indicated by the flag.
CN202310055820.XA 2023-01-18 2023-01-18 Software partition upgrading method with historical version saving function Pending CN115964071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310055820.XA CN115964071A (en) 2023-01-18 2023-01-18 Software partition upgrading method with historical version saving function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310055820.XA CN115964071A (en) 2023-01-18 2023-01-18 Software partition upgrading method with historical version saving function

Publications (1)

Publication Number Publication Date
CN115964071A true CN115964071A (en) 2023-04-14

Family

ID=87354121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310055820.XA Pending CN115964071A (en) 2023-01-18 2023-01-18 Software partition upgrading method with historical version saving function

Country Status (1)

Country Link
CN (1) CN115964071A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118012471A (en) * 2024-01-24 2024-05-10 安易行(常州)新能源科技有限公司 Charging program upgrading method based on charging control board of new energy automobile battery exchange station

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118012471A (en) * 2024-01-24 2024-05-10 安易行(常州)新能源科技有限公司 Charging program upgrading method based on charging control board of new energy automobile battery exchange station

Similar Documents

Publication Publication Date Title
CN104090796B (en) A kind of embedded device method for updating program and system
US7991988B2 (en) Communication device and firmware update method thereof
CN105183515B (en) The method and device of holder firmware upgrade
CN100421071C (en) Updating method for distance equipment system software
CN105930236A (en) Application program version returning method based on BMS Bootloaderupgrade
CN103226484A (en) On-orbit update method for satellite-borne integrated electronic system program
CN110633091A (en) Electronic module and software wireless upgrading method thereof
CN115964071A (en) Software partition upgrading method with historical version saving function
CN110865826B (en) Robot software upgrading method, device, equipment and storage medium
CN112202602A (en) Charging pile remote upgrading system and method based on CAN bus
CN115562699A (en) On-orbit batch upgrading method and system for multi-satellite networking-oriented satellite-borne software
CN113778739B (en) System repair method, system, equipment and storage medium of all-in-one machine
CN114531431A (en) Bluetooth-based multi-device OTA (over the air) upgrading method, electronic device, storage medium and program product
CN113138788A (en) Air conditioner program upgrading method and air conditioner system
CN100463414C (en) A method and device for remote batch upgrade of the embedded device
CN111459519A (en) MCU upgrading method and device
CN111984287A (en) Equipment upgrading method and system
CN111367740B (en) BMC debugging system and method and computer readable storage medium
CN110727445B (en) Method and system for upgrading tower hanging equipment based on OTA
CN114020294A (en) Method, system and storage medium for wireless upgrading of ECU
CN103914339A (en) Server management system and server management method
CN117707556A (en) Program installation method, device, system, equipment and storage medium
CN110798523A (en) Method, control device and system for upgrading software of communication equipment
CN114064086B (en) Multi-stage processor system and upgrading method thereof
CN111913728A (en) Program upgrading method for sewing equipment

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