CN118363641B - Upgrading method and device of battery equipment, computer equipment and storage medium - Google Patents
Upgrading method and device of battery equipment, computer equipment and storage medium Download PDFInfo
- Publication number
- CN118363641B CN118363641B CN202410797184.2A CN202410797184A CN118363641B CN 118363641 B CN118363641 B CN 118363641B CN 202410797184 A CN202410797184 A CN 202410797184A CN 118363641 B CN118363641 B CN 118363641B
- Authority
- CN
- China
- Prior art keywords
- file
- charger
- current version
- latest version
- incremental
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000012795 verification Methods 0.000 claims abstract description 60
- 238000011156 evaluation Methods 0.000 claims abstract description 40
- 238000012545 processing Methods 0.000 claims description 41
- 239000000463 material Substances 0.000 claims description 28
- 230000008859 change Effects 0.000 claims description 27
- 230000008569 process Effects 0.000 claims description 24
- 239000011159 matrix material Substances 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 12
- 238000006243 chemical reaction Methods 0.000 claims description 10
- 238000013097 stability assessment Methods 0.000 claims description 9
- 238000012217 deletion Methods 0.000 claims description 8
- 230000037430 deletion Effects 0.000 claims description 8
- 238000013507 mapping Methods 0.000 claims description 7
- 238000005457 optimization Methods 0.000 claims description 6
- 238000000513 principal component analysis Methods 0.000 claims description 5
- 238000013144 data compression Methods 0.000 claims description 4
- 238000012986 modification Methods 0.000 claims description 4
- 230000004048 modification Effects 0.000 claims description 4
- 238000004806 packaging method and process Methods 0.000 claims description 4
- 230000004044 response Effects 0.000 claims description 2
- 230000005540 biological transmission Effects 0.000 abstract description 12
- 238000005096 rolling process Methods 0.000 abstract 1
- 230000000694 effects Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 4
- 238000007792 addition Methods 0.000 description 3
- 238000003491 array Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 239000002699 waste material Substances 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000002950 deficient Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 238000011900 installation process Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to a battery equipment upgrading method, a battery equipment upgrading device, a computer equipment and a storage medium. The comparison version then determines whether an update is needed, avoiding unnecessary operations. If the data needs to be updated, the server generates an incremental upgrade file, and the data transmission quantity and time are reduced. And after the equipment receives the file, carrying out integrity check, and selecting a low-usage period to execute upgrading so as to ensure normal operation. And collecting data for stability evaluation after upgrading, and rolling back to the current version if the data do not pass the verification. The upgrading efficiency and the safety are improved integrally, and the remote upgrading requirement of the equipment is met.
Description
Technical Field
The present invention relates to the field of battery devices, and in particular, to a method and apparatus for upgrading a battery device, a computer device, and a storage medium.
Background
In today's society, with advances in technology and the popularity of automation, unmanned aerial vehicles, automated Guided Vehicles (AGVs), and the like, are becoming more common. These devices generally rely on small battery powered systems, and as they are widely used, the need for intelligence and customization of these systems is increasing. In particular, remote upgrades to these battery systems, i.e., software updates via OTA (Over-The-Air) technology, have become an important means of maintaining device functionality and performance.
However, current OTA upgrades typically use a full volume update, requiring the downloading and replacement of all firmware on the device, rather than updating only the changed portion. This approach not only results in a waste of large amounts of data transmission and storage, but also makes the download and installation process time consuming due to the huge updated files, and severely reduces the efficiency and usability of the device. Especially on battery powered devices, the long updates not only waste device usage time, but may also consume additional energy.
Furthermore, if the new firmware is defective or incompatible with existing hardware configurations, it may result in reduced device performance, with even more serious consequences of complete device failure or irreparable hardware damage.
Disclosure of Invention
The invention mainly aims to provide a battery equipment upgrading method, a device, a computer equipment and a storage medium, so as to solve the technical problems that the current OTA upgrading mode causes data waste, time consumption for downloading and installing, reduces equipment efficiency, and can cause equipment performance reduction, even complete failure or hardware damage if new firmware is defective or incompatible.
In order to achieve the above object, the present invention provides an upgrade method of a battery device, including: acquiring a device material number and a current version of the charger, sending the device material number to the firmware server, and feeding back the latest version corresponding to the device material number to the charger by the firmware server according to the device material number; judging whether the current version of the charger is the latest version; if not, an incremental update request is sent to the firmware server, the firmware server responds to the incremental update request, differential processing is carried out on the current version and the latest version to obtain an incremental update file, and the incremental update file is fed back to the charger; receiving the incremental upgrade file sent by the firmware server, and carrying out integrity check on the incremental upgrade file; under the condition that the incremental upgrade file passes the integrity check, the incremental upgrade file is temporarily stored, and upgrade processing is carried out on the charger through the incremental upgrade file in a period of time when the battery equipment utilization rate is lowest; restarting the charger, and collecting preliminary operation data of the charger after restarting the charger; performing stability evaluation on the charger subjected to upgrading treatment according to the preliminary operation data to obtain charger upgrading stability evaluation data, and judging whether the charger subjected to upgrading treatment passes stability verification according to the charger upgrading stability evaluation data; and controlling the charger to roll back from the latest version to the current version under the condition that the charger after the upgrading process does not pass the stability check, and ending the upgrading process under the condition that the charger after the upgrading process passes the stability check.
Further, the firmware server responding to the incremental update request, performing differential processing on the current version and the latest version to obtain an incremental update file, and feeding the incremental update file back to the charger, including: the firmware server responds to the incremental update request, and loads and stores the current version file corresponding to the current version and the latest version file corresponding to the latest version into an update file processing area of the firmware server; decoding and decompressing the current version file and the latest version file to obtain the current version file in a binary format and the latest version file in the binary format; respectively generating numerical fingerprints for the current version file and the latest version file to obtain a current version file digital fingerprint and a latest version file digital fingerprint; identifying a data change between the current version file and the latest version file, wherein the data change comprises: data content of file addition, file deletion and file modification; constructing an incremental data packet containing all data changes according to the data changes between the current version file and the latest version file; performing data compression processing on the incremental data packet, and packaging the compressed incremental data packet into a complete incremental upgrade file, wherein the file header information of the incremental upgrade file comprises: the version number of the current version, the version number of the latest version, the digital fingerprint of the current version file and the digital fingerprint of the latest version file; generating an incremental upgrade file digital fingerprint for the incremental upgrade file, and feeding back the incremental upgrade file and the incremental upgrade file digital fingerprint to the charger.
Further, identifying the data change between the current version file and the latest version file, and constructing an incremental data packet containing all the data changes according to the data change between the current version file and the latest version file, including: identifying all character strings in the current version file, sub-character strings from each position to the end of the character string in each character string, and constructing a current version suffix array of the current version file based on the sub-character strings; identifying all character strings in the latest version file, sub-character strings from each position to the end of the character string in each character string, and constructing a latest version suffix array of the latest version file based on the sub-character strings; respectively sorting the current version suffix array and the latest version suffix array by using a merging sorting algorithm by taking a dictionary sequence as a sorting reference to obtain the current version suffix array subjected to sorting and the latest version suffix array subjected to sorting; sequentially comparing suffix characters in the suffix array of the current version and the suffix characters in the suffix array of the latest version one by one until a first unmatched character is found, and recording the number of the matched characters as the longest common prefix length; continuing to execute the step of comparing the suffix characters in the suffix array of the current version and the suffix characters in the suffix array of the latest version one by one sequentially by taking the first unmatched character as a starting character until the suffix characters in the suffix array of the current version and the suffix characters in the suffix array of the latest version are compared completely, and generating an array with the longest common prefix length; determining the longest public prefix length value exceeding a preset threshold value in the longest public prefix length array, mapping the longest public prefix length value exceeding the preset threshold value to the current version suffix array and the latest version suffix array, and extracting the same character strings in the current version suffix array and the latest version suffix array; mapping the same character strings in the current version suffix array and the latest version suffix array to the current version file and the latest version file to obtain unchanged content areas between the current version file and the latest version file; respectively removing the unchanged content areas from the current version file and the latest version file to obtain a difference content area of the current version file and a difference content area of the latest version file; and determining data change between the current version file and the latest version file based on the difference content area of the current version file and the difference content area of the latest version file, and constructing an incremental data packet containing all the data change according to the data change between the current version file and the latest version file.
Further, based on the difference content area of the current version file and the difference content area of the latest version file, determining data changes between the current version file and the latest version file, and constructing an incremental data packet containing all the data changes according to the data changes between the current version file and the latest version file, including: dividing the difference content area of the current version file and the difference content area of the latest version file into a plurality of difference blocks; sequentially identifying the position of each difference block in the current version file and the latest version file; if the difference block is not identified in the current version file and is identified in the latest version file, recording the content of the difference block and the position information of the difference block in the latest version file, and adding an identifier to the difference block mark; if the difference block is identified in the current version file and is not identified in the latest version file, recording the content of the difference block and the position information of the difference block in the current version file, and marking the difference block with a deletion mark; if the difference block is identified in the current version file and the table is also identified in the latest version file, recording the content of the difference block, the position information of the difference block in the current version file and the position information of the difference block in the latest version file, and marking a mobile identifier for the difference block; and carrying out optimization combination on the recorded content and the identification content, and constructing the incremental data packet according to the optimization combination result.
Further, performing integrity check on the incremental upgrade file includes: generating an incremental upgrade file verification fingerprint for the incremental upgrade file, and comparing the incremental upgrade file verification fingerprint with the incremental upgrade file digital fingerprint by adopting the incremental upgrade file verification fingerprint; if the digital fingerprint of the incremental upgrade file is consistent with the incremental upgrade file verification fingerprint, determining that the incremental upgrade file passes a first integrity check;
Decompressing the incremental upgrade file, and acquiring the version number of the current version and the version number of the latest version from the decompressed file; the version number of the current version is sent to the firmware server, the firmware server obtains the current version file according to the version number of the current version, generates a current version file verification fingerprint corresponding to the current version file according to the current version file, and feeds the current version file verification fingerprint back to the charging equipment; comparing the current version file verification fingerprint with the current version file digital fingerprint, and if the current version file verification fingerprint is consistent with the current version file digital fingerprint, determining that the incremental upgrade file passes the second integrity check; the version number of the latest version is sent to the firmware server, the firmware server obtains the latest version file according to the version number of the latest version, generates a latest version file verification fingerprint corresponding to the latest version file according to the current version file, and feeds the latest version file verification fingerprint back to the charging equipment; comparing the latest version file verification fingerprint with the latest version file digital fingerprint, and if the latest version file verification fingerprint is consistent with the latest version file digital fingerprint, determining that the incremental upgrade file passes the third integrity check; and under the condition that the incremental upgrade file passes three integrity checks, determining that the incremental upgrade file passes the integrity checks.
Further, performing stability evaluation on the charger after the upgrade processing according to the preliminary operation data to obtain charger upgrade stability evaluation data, including: extracting basic data of a plurality of key performance indexes from the preliminary operation data, wherein the key performance indexes comprise: start-up time, charge rate, battery temperature, and error frequency in the system log; performing standardized processing on the basic data of each key performance index, so that the basic data of each key performance index is converted into a basic form with a mean value of a first threshold value and a standard deviation of a second threshold value; distributing weight values for the key performance indexes, and calculating the score of each key performance index according to the weight values and the basic data corresponding to the key performance indexes; performing nonlinear logarithmic conversion on each key performance index score to obtain a first key performance index score array; performing nonlinear index conversion on each key performance index score to obtain a second key performance index score array; the first key performance index score array and the second key performance index score array are combined in a matrix mode to obtain a target array matrix; performing principal component analysis on the target array matrix, and extracting a first principal component in the target array matrix; and adopting the first main component as a new score index, and taking numerical data corresponding to the first main component as the charger upgrade stability evaluation data.
Further, judging whether the charger after the upgrading treatment passes the stability check according to the charger upgrading stability evaluation data, including: and judging whether each numerical value data in the charger upgrade stability evaluation data exceeds a target threshold value, and if the numerical value data exceeds the target threshold value, determining that the charger after upgrade treatment passes the stability check.
The invention also provides an upgrading device of the battery equipment, which is applied to a battery equipment upgrading system, wherein the battery equipment upgrading system comprises the battery equipment and a firmware server, the battery equipment comprises a charger, and the upgrading device of the battery equipment comprises: the feedback unit is used for acquiring the equipment material number and the current version of the charger, sending the equipment material number to the firmware server, and feeding back the latest version corresponding to the equipment material number to the charger according to the equipment material number by the firmware server; a judging unit, configured to judge whether a current version of the charger is the latest version; the processing unit is used for sending an increment updating request to the firmware server if not, responding to the increment updating request by the firmware server, carrying out differential processing on the current version and the latest version to obtain an increment upgrading file, and feeding back the increment upgrading file to the charger; the verification unit is used for receiving the incremental upgrade file sent by the firmware server and carrying out integrity verification on the incremental upgrade file; the upgrading unit is used for temporarily storing the incremental upgrading file under the condition that the incremental upgrading file passes the integrity check, and upgrading the charger through the incremental upgrading file in a period of lowest utilization rate of the battery equipment; the restarting unit is used for restarting the charger and collecting preliminary operation data of the charger after restarting the charger; the assessment unit is used for carrying out stability assessment on the charger subjected to the upgrading treatment according to the preliminary operation data to obtain charger upgrading stability assessment data, and judging whether the charger subjected to the upgrading treatment passes stability verification according to the charger upgrading stability assessment data; and the rollback unit is used for controlling the charger to rollback from the latest version to the current version under the condition that the charger after the upgrading treatment fails the stability check.
The invention also provides a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of any of the methods described above when the computer program is executed.
The invention also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of any of the preceding claims.
According to the battery equipment upgrading method, device, computer equipment and storage medium, equipment material numbers and current versions of the chargers are obtained, and the information is sent to the firmware server, and the server feeds back corresponding latest version information according to the equipment material numbers, so that accurate information matching between the chargers and the server is ensured, and necessary basic data are provided for subsequent incremental updating. Then, by comparing the current version of the charger with the latest version provided by the server, whether the update is needed or not is judged, unnecessary update operation is avoided, resources are saved, and efficiency is improved. Then, if the firmware of the charger is not the latest version, the server is requested to perform incremental update. After the server responds to the request, differential processing is carried out on the current version and the latest version, and an incremental upgrade file is generated. The incremental updating mode obviously reduces the transmission quantity and storage requirement of data and shortens the time required by updating. After the charger receives the incremental upgrade file, integrity check is performed to ensure that the upgrade file is not destroyed or tampered in the transmission process. This verification step is critical to ensuring upgrade security. Once the incremental upgrade file passes the integrity check, the file is temporarily stored, and the upgrade is selectively executed in the period of lowest battery equipment use rate, so that the influence on the normal use of the equipment is reduced to the greatest extent. Restarting the equipment after the upgrading is finished, and collecting preliminary operation data. This step is to ensure that the device will start up and operate properly after the upgrade, providing data support for further stability assessment. And evaluating the stability of the charger according to the collected operation data. This evaluation ensures that the upgraded equipment is running stably, consistent with the expected performance. If the upgraded device fails the stability check, the system will control the charger to roll back from the latest version to the current version to prevent performance problems or device failures that may be caused by the new firmware.
Summarizing, the technical scheme remarkably improves the efficiency of data transmission and the safety of the upgrading process through incremental updating and integrity checking. The option of upgrading and providing a rollback mechanism during periods of minimal device usage further ensures high availability and stability of the device. Overall, this scheme has effectively improved battery power supply device's OTA upgrading efficiency and security, has satisfied modern automation equipment's demand to remote upgrade technique.
Drawings
FIG. 1 is a schematic diagram showing steps of an upgrade method of a battery device according to an embodiment of the present invention;
FIG. 2 is a block diagram of an upgrade apparatus for a battery device according to an embodiment of the present invention;
fig. 3 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, an upgrade method of a battery device according to an embodiment of the present invention includes:
S1, acquiring a device material number and a current version of the charger, sending the device material number to the firmware server, and feeding back the latest version corresponding to the device material number to the charger by the firmware server according to the device material number.
S2, judging whether the current version of the charger is the latest version.
S3, if not, an incremental update request is sent to the firmware server, the firmware server responds to the incremental update request, differential processing is conducted on the current version and the latest version, an incremental upgrade file is obtained, and the incremental upgrade file is fed back to the charger.
S4, receiving the incremental upgrade file sent by the firmware server, and carrying out integrity check on the incremental upgrade file.
And S5, under the condition that the incremental upgrade file passes the integrity check, temporarily storing the incremental upgrade file, and upgrading the charger through the incremental upgrade file in a period of lowest utilization rate of the battery equipment.
S6, restarting the charger, and collecting preliminary operation data of the charger after restarting the charger.
And S7, carrying out stability evaluation on the charger subjected to the upgrading treatment according to the preliminary operation data to obtain charger upgrading stability evaluation data, and judging whether the charger subjected to the upgrading treatment passes the stability verification according to the charger upgrading stability evaluation data.
S8, controlling the charger to roll back from the latest version to the current version under the condition that the charger after the upgrading process does not pass the stability check, and ending the upgrading process under the condition that the charger after the upgrading process passes the stability check.
Namely, in the technical scheme, an incremental upgrading method for battery equipment is provided, and the method comprises the following specific steps and technical effects: firstly, the equipment material number and the current version of the charger are obtained, and the information is sent to a firmware server, and the server feeds back the corresponding latest version information according to the equipment material number. This step ensures accurate matching of information between the charger and the server, providing the necessary underlying data for subsequent incremental updates. Then, by comparing the current version of the charger with the latest version provided by the server, whether the update is needed or not is judged. This step avoids unnecessary update operations, saves resources and improves efficiency. Then, if the firmware of the charger is not the latest version, the server is requested to perform incremental update. After the server responds to the request, differential processing is carried out on the current version and the latest version, and an incremental upgrade file is generated. The incremental updating mode obviously reduces the transmission quantity and storage requirement of data and shortens the time required by updating. After the charger receives the incremental upgrade file, integrity check is performed to ensure that the upgrade file is not destroyed or tampered in the transmission process. This verification step is critical to ensuring upgrade security. Once the incremental upgrade file passes the integrity check, the file is temporarily stored, and the upgrade is selectively executed in the period of lowest battery equipment use rate, so that the influence on the normal use of the equipment is reduced to the greatest extent. Restarting the equipment after the upgrading is finished, and collecting preliminary operation data. This step is to ensure that the device will start up and operate properly after the upgrade, providing data support for further stability assessment. And evaluating the stability of the charger according to the collected operation data. This evaluation ensures that the upgraded equipment is running stably, consistent with the expected performance. If the upgraded equipment fails the stability check, the system will control the charger to roll back from the latest version to the current version. This mechanism provides a safeguard against performance problems or device failures that may be caused by the new firmware.
Summarizing, the technical scheme remarkably improves the efficiency of data transmission and the safety of the upgrading process through incremental updating and integrity checking. The option of upgrading and providing a rollback mechanism during periods of minimal device usage further ensures high availability and stability of the device. Overall, this scheme has effectively improved battery power supply device's OTA upgrading efficiency and security, has satisfied modern automation equipment's demand to remote upgrade technique.
In one example, the firmware server responding to the incremental update request, performing differential processing on the current version and the latest version to obtain an incremental update file, and feeding back the incremental update file to the charger, including: the firmware server responds to the incremental update request, and loads and stores the current version file corresponding to the current version and the latest version file corresponding to the latest version into an update file processing area of the firmware server; decoding and decompressing the current version file and the latest version file to obtain the current version file in a binary format and the latest version file in the binary format; respectively generating numerical fingerprints for the current version file and the latest version file to obtain a current version file digital fingerprint and a latest version file digital fingerprint; identifying a data change between the current version file and the latest version file, wherein the data change comprises: data content of file addition, file deletion and file modification; constructing an incremental data packet containing all data changes according to the data changes between the current version file and the latest version file; performing data compression processing on the incremental data packet, and packaging the compressed incremental data packet into a complete incremental upgrade file, wherein the file header information of the incremental upgrade file comprises: the version number of the current version, the version number of the latest version, the digital fingerprint of the current version file and the digital fingerprint of the latest version file; generating an incremental upgrade file digital fingerprint for the incremental upgrade file, and feeding back the incremental upgrade file and the incremental upgrade file digital fingerprint to the charger.
In this example, the firmware server responds to the delta update request by differentially processing the current version and the latest version, generating a delta upgrade file, and feeding it back to the charger. The method comprises the following specific steps: first, the firmware server loads and stores the current version and the latest version files into the update file processing area. This ensures that the server can access these files for subsequent processing. Next, the current version and the latest version files are decoded and decompressed to obtain their binary formats. This step provides the basis for subsequent data processing. Digital fingerprints are then generated for the current version and the latest version files, respectively, to identify data changes. This helps determine differences between files, including data content for file additions, deletions, and modifications. And constructing an incremental data packet containing all the changes according to the data changes between the current version and the latest version files. This helps to reduce the amount of data transmitted and improve efficiency. And carrying out data compression processing on the incremental data packet, and packaging the incremental data packet into a complete incremental upgrade file. The file header information comprises a current version number, a latest version number, a current version file digital fingerprint and a latest version file digital fingerprint, so that the integrity and the accuracy of the file are ensured. And finally, generating a digital fingerprint for the incremental upgrade file, and feeding back the file and the digital fingerprint to the charger. This helps to verify the integrity of the file and ensures the security of the upgrade process. The whole technical scheme reduces the data transmission quantity and the storage requirement by means of differential processing and incremental updating, and improves the upgrading efficiency. Meanwhile, the digital fingerprint and the integrity check ensure the accuracy and the safety of the upgrade file. In general, the technical scheme effectively improves the OTA upgrading efficiency and the safety of the battery equipment, and meets the requirements of modern automation equipment on remote upgrading technology.
In one example, identifying data changes between the current version file and the latest version file and constructing an incremental data packet containing all data changes based on the data changes between the current version file and the latest version file, includes: identifying all character strings in the current version file, sub-character strings from each position to the end of the character string in each character string, and constructing a current version suffix array of the current version file based on the sub-character strings; identifying all character strings in the latest version file, sub-character strings from each position to the end of the character string in each character string, and constructing a latest version suffix array of the latest version file based on the sub-character strings; respectively sorting the current version suffix array and the latest version suffix array by using a merging sorting algorithm by taking a dictionary sequence as a sorting reference to obtain the current version suffix array subjected to sorting and the latest version suffix array subjected to sorting; sequentially comparing suffix characters in the suffix array of the current version and the suffix characters in the suffix array of the latest version one by one until a first unmatched character is found, and recording the number of the matched characters as the longest common prefix length; continuing to execute the step of comparing the suffix characters in the suffix array of the current version and the suffix characters in the suffix array of the latest version one by one sequentially by taking the first unmatched character as a starting character until the suffix characters in the suffix array of the current version and the suffix characters in the suffix array of the latest version are compared completely, and generating an array with the longest common prefix length; determining the longest public prefix length value exceeding a preset threshold value in the longest public prefix length array, mapping the longest public prefix length value exceeding the preset threshold value to the current version suffix array and the latest version suffix array, and extracting the same character strings in the current version suffix array and the latest version suffix array; mapping the same character strings in the current version suffix array and the latest version suffix array to the current version file and the latest version file to obtain unchanged content areas between the current version file and the latest version file; respectively removing the unchanged content areas from the current version file and the latest version file to obtain a difference content area of the current version file and a difference content area of the latest version file; and determining data change between the current version file and the latest version file based on the difference content area of the current version file and the difference content area of the latest version file, and constructing an incremental data packet containing all the data change according to the data change between the current version file and the latest version file.
In this example, all the character strings in the current version file and the latest version file and all the sub-character strings of each character string are first identified, and a suffix array of the current version file and a suffix array of the latest version file are constructed based on the sub-character strings. The technical effect of this step is to prepare for the subsequent comparison and recognition data change, and the comparison and matching of the character strings can be more efficiently performed by constructing the suffix array. And then, performing sorting processing on the suffix arrays of the current version and the latest version through a merging sorting algorithm, and obtaining the suffix arrays of the current version and the latest version after sorting by taking the dictionary sequence as a sorting benchmark. The technical effect of this step is to make the subsequent character comparison more orderly and efficient, laying the foundation for identifying the longest common prefix length. And comparing the suffix characters in the suffix arrays of the current version and the latest version one by one, recording the matched character number as the longest common prefix length, and generating the longest common prefix length array. The technical effect of this step is to find the same parts in the two files, providing basis for subsequent differential content identification. After the longest common prefix length value exceeding the preset threshold is determined, mapping the longest common prefix length value to a suffix array, and extracting unchanged content areas in the two files. The technical effect of this step is to exclude parts that do not need to be changed and accurately locate the differential content of the file. And finally, eliminating unchanged content areas to obtain difference content areas of the current version file and the latest version file, determining data changes based on the difference content areas, and constructing an incremental data packet containing all the data changes. The whole technical scheme can be used for generating an incremental data packet by efficiently identifying the file change part, realizing the accurate capture and processing of the data change among the file versions, and improving the transmission efficiency of the data change and the accuracy of the file update.
In one example, determining a data change between the current version file and the latest version file based on the difference content area of the current version file and the difference content area of the latest version file, and constructing an incremental data packet containing all the data changes according to the data change between the current version file and the latest version file, including: dividing the difference content area of the current version file and the difference content area of the latest version file into a plurality of difference blocks; sequentially identifying the position of each difference block in the current version file and the latest version file; if the difference block is not identified in the current version file and is identified in the latest version file, recording the content of the difference block and the position information of the difference block in the latest version file, and adding an identifier to the difference block mark; if the difference block is identified in the current version file and is not identified in the latest version file, recording the content of the difference block and the position information of the difference block in the current version file, and marking the difference block with a deletion mark; if the difference block is identified in the current version file and the table is also identified in the latest version file, recording the content of the difference block, the position information of the difference block in the current version file and the position information of the difference block in the latest version file, and marking a mobile identifier for the difference block; and carrying out optimization combination on the recorded content and the identification content, and constructing the incremental data packet according to the optimization combination result.
In this example, the current version file and the latest version file are first divided into a plurality of difference blocks according to their difference content areas. The technical effect of this step is to subdivide the changes to the file into smaller units in order to more accurately identify and process changes to the file. Then, the positions of each difference block in the current version file and the latest version file are identified one by one. If a difference block exists in the current version file but does not exist in the latest version file, the contents of the difference block and the location information in the current version file are recorded and marked for deletion. If a difference block does not exist in the current version file but exists in the latest version file, the content of the difference block and the position information in the latest version file are recorded and marked as added. If a difference block exists in both version files, the content of the difference block and the position information in both version files are recorded and marked as moving. The technical effect of these steps is to accurately identify the change type and position information of each difference block, providing an accurate data basis for subsequent incremental data packet construction. And finally, optimizing the content and the identification of the merging record, and constructing an incremental data packet according to the optimized merging result. The technical effect of this step is to integrate all data change information into one incremental data packet, so that the change between file versions can be recorded and transmitted clearly, and the transmission efficiency of the data change and the accuracy of the file update are improved. The whole technical scheme constructs an incremental data packet containing all data changes by carefully identifying and processing the difference content among file versions, realizes the accurate capturing and processing of the file changes, and provides an efficient solution for file version management and updating.
In one example, the integrity checking of the incremental upgrade file includes: generating an incremental upgrade file verification fingerprint for the incremental upgrade file, and comparing the incremental upgrade file verification fingerprint with the incremental upgrade file digital fingerprint by adopting the incremental upgrade file verification fingerprint; if the digital fingerprint of the incremental upgrade file is consistent with the incremental upgrade file verification fingerprint, determining that the incremental upgrade file passes a first integrity check; decompressing the incremental upgrade file, and acquiring the version number of the current version and the version number of the latest version from the decompressed file; the version number of the current version is sent to the firmware server, the firmware server obtains the current version file according to the version number of the current version, generates a current version file verification fingerprint corresponding to the current version file according to the current version file, and feeds the current version file verification fingerprint back to the charging equipment; comparing the current version file verification fingerprint with the current version file digital fingerprint, and if the current version file verification fingerprint is consistent with the current version file digital fingerprint, determining that the incremental upgrade file passes the second integrity check; the version number of the latest version is sent to the firmware server, the firmware server obtains the latest version file according to the version number of the latest version, generates a latest version file verification fingerprint corresponding to the latest version file according to the current version file, and feeds the latest version file verification fingerprint back to the charging equipment; comparing the latest version file verification fingerprint with the latest version file digital fingerprint, and if the latest version file verification fingerprint is consistent with the latest version file digital fingerprint, determining that the incremental upgrade file passes the third integrity check; and under the condition that the incremental upgrade file passes three integrity checks, determining that the incremental upgrade file passes the integrity checks.
In this example, the technical solution for integrity checking of the incremental upgrade file includes the following steps: first, a verification fingerprint is generated for the incremental upgrade file and compared to the file digital fingerprint. The technical effect of this step is to ensure the integrity of the file, and to confirm that the file has not been tampered by verifying the identity of the fingerprint with the digital fingerprint. And then, decompressing the incremental upgrade file, and extracting the version numbers of the current version and the latest version. And then the current version number is sent to a firmware server, and the server acquires the current version file according to the version number, generates a corresponding verification fingerprint and feeds the verification fingerprint back to the charging equipment. And comparing the verification fingerprint of the current version file with the digital fingerprint to confirm the accuracy and the integrity of the file. And then, the version number of the latest version is sent to the firmware server, the latest version file is acquired, a verification fingerprint is generated, and the verification fingerprint is fed back to the charging equipment. And comparing the verification fingerprint of the latest version file with the digital fingerprint to ensure the integrity and the correctness of the latest version file. Finally, under the condition that the incremental upgrade file passes three integrity checks, the file is confirmed to pass the integrity checks. The whole technical scheme verifies the integrity of the file through multiple times of verification, and ensures the safety and reliability of the file in the transmission and updating processes, so that the firmware is effectively upgraded, and the stability of the system is ensured.
In one example, performing stability evaluation on the charger after performing upgrade processing according to the preliminary operation data to obtain charger upgrade stability evaluation data, including: extracting basic data of a plurality of key performance indexes from the preliminary operation data, wherein the key performance indexes comprise: start-up time, charge rate, battery temperature, and error frequency in the system log; performing standardized processing on the basic data of each key performance index, so that the basic data of each key performance index is converted into a basic form with a mean value of a first threshold value and a standard deviation of a second threshold value; distributing weight values for the key performance indexes, and calculating the score of each key performance index according to the weight values and the basic data corresponding to the key performance indexes; performing nonlinear logarithmic conversion on each key performance index score to obtain a first key performance index score array; performing nonlinear index conversion on each key performance index score to obtain a second key performance index score array; the first key performance index score array and the second key performance index score array are combined in a matrix mode to obtain a target array matrix; performing principal component analysis on the target array matrix, and extracting a first principal component in the target array matrix; and adopting the first main component as a new score index, and taking numerical data corresponding to the first main component as the charger upgrade stability evaluation data.
In this example, the technical solution for stability evaluation of the charger comprises the following steps: first, basic data of key performance indicators including start-up time, charge rate, battery temperature, and error frequency in the system log are extracted from the preliminary operation data. The technical effect of this step is to obtain the raw data of the key performance indicators, providing a basis for subsequent evaluation. And then, carrying out standardization processing on the basic data of each key performance index, so that the basic data are converted into basic forms with the mean value and standard deviation meeting specific thresholds. This facilitates the unified processing of data for different performance indicators for subsequent comparison and evaluation. Then, a weight value is assigned to each key performance indicator, and a score for each indicator is calculated from these weight values and the underlying data. The technical effect of this step is that the scores of the various indexes are obtained by weighted evaluation of the different indexes according to the importance. And then, carrying out nonlinear logarithmic conversion and nonlinear exponential conversion on each key performance index score to obtain a first key performance index score array and a second key performance index score array. This facilitates more rational processing and assessment of the score. And combining the first key performance index score array and the second key performance index score array to form a target array matrix. And then, performing principal component analysis on the target array matrix, and extracting a first principal component. This step helps to reduce the data dimension and extract the most representative primary information.
And finally, adopting the first main component as a new score index, and taking the corresponding numerical data as charger upgrade stability evaluation data. According to the whole technical scheme, through multi-step processing and analysis, original data are converted into comprehensive evaluation indexes so as to comprehensively evaluate and compare the stability of the charger.
In one example, determining whether the charger after the upgrade process passes the stability check according to the charger upgrade stability evaluation data includes: and judging whether each numerical value data in the charger upgrade stability evaluation data exceeds a target threshold value, and if the numerical value data exceeds the target threshold value, determining that the charger after upgrade treatment passes the stability check.
In this example, the technical solution for determining whether the charger after the upgrade process passes the stability check according to the charger upgrade stability evaluation data includes the following steps: first, each numerical data in the charger upgrade stability evaluation data is checked to determine whether each exceeds a set target threshold. The technical effect of this step is to quantitatively compare the stability assessment data of the charger to determine whether the expected stability criteria are met. And if all the numerical data exceeds the target threshold, determining that the charger after the upgrading treatment passes the stability check. This means that the charger shows stable performance after the upgrade process, meeting the expected requirements. According to the whole technical scheme, the charger stability after upgrading treatment is effectively evaluated and judged through analysis and comparison of charger upgrading stability evaluation data and setting and verification of a target threshold value. Through the process, the charger can still keep stable performance after upgrading treatment, and the reliability and safety of the charger are improved.
Referring to fig. 2, an apparatus for upgrading a battery device according to an embodiment of the present invention is applied to a battery device upgrading system, where the battery device upgrading system includes the battery device and a firmware server, the battery device includes a charger, and the apparatus for upgrading a battery device includes:
and the feedback unit 1 is used for acquiring the equipment material number and the current version of the charger, sending the equipment material number to the firmware server, and feeding back the latest version corresponding to the equipment material number to the charger by the firmware server according to the equipment material number.
A judging unit 2, configured to judge whether a current version of the charger is the latest version;
The processing unit 3 is configured to send an incremental update request to the firmware server if not, and perform differential processing on the current version and the latest version by the firmware server in response to the incremental update request to obtain an incremental update file, and feed back the incremental update file to the charger;
And the verification unit 4 is used for receiving the incremental upgrade file sent by the firmware server and carrying out integrity verification on the incremental upgrade file.
And the upgrading unit 5 is used for temporarily storing the incremental upgrading file under the condition that the incremental upgrading file passes the integrity check, and upgrading the charger through the incremental upgrading file in a period of time when the battery equipment utilization rate is lowest.
And the restarting unit 6 is used for restarting the charger and collecting preliminary operation data of the charger after restarting the charger.
And the evaluation unit 7 is used for evaluating the stability of the charger subjected to the upgrading treatment according to the preliminary operation data to obtain the charger upgrading stability evaluation data, and judging whether the charger subjected to the upgrading treatment passes the stability verification according to the charger upgrading stability evaluation data.
And the rollback unit 8 is used for controlling the charger to rollback from the latest version to the current version under the condition that the charger after the upgrading process fails the stability check.
In this embodiment, for specific implementation of each unit in the above embodiment of the apparatus, please refer to the description in the above embodiment of the method, and no further description is given here.
Referring to fig. 3, in an embodiment of the present invention, there is further provided a computer device, which may be a server, and an internal structure thereof may be as shown in fig. 3. The computer device includes a processor, a memory, a display screen, an input device, a network interface, and a database connected by a system bus. Wherein the computer is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store the corresponding data in this embodiment. The network interface of the computer device is used for communicating with an external terminal through a network connection. Which computer program, when being executed by a processor, carries out the above-mentioned method.
It will be appreciated by those skilled in the art that the architecture shown in fig. 3 is merely a block diagram of a portion of the architecture in connection with the present inventive arrangements and is not intended to limit the computer devices to which the present inventive arrangements are applicable.
An embodiment of the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above method. It is understood that the computer readable storage medium in this embodiment may be a volatile readable storage medium or a nonvolatile readable storage medium.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided by the present invention and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that comprises the element.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the invention, and all equivalent structures or equivalent processes using the descriptions and drawings of the present invention or direct or indirect application in other related technical fields are included in the scope of the present invention.
Claims (9)
1. An upgrade method of a battery device, applied to a battery device upgrade system, the battery device upgrade system including the battery device and a firmware server, the battery device including a charger, the upgrade method of the battery device comprising:
acquiring a device material number and a current version of the charger, sending the device material number to the firmware server, and feeding back the latest version corresponding to the device material number to the charger by the firmware server according to the device material number;
Judging whether the current version of the charger is the latest version;
If not, an incremental update request is sent to the firmware server, the firmware server responds to the incremental update request, differential processing is carried out on the current version and the latest version to obtain an incremental update file, and the incremental update file is fed back to the charger;
receiving the incremental upgrade file sent by the firmware server, and carrying out integrity check on the incremental upgrade file;
under the condition that the incremental upgrade file passes the integrity check, the incremental upgrade file is temporarily stored, and upgrade processing is carried out on the charger through the incremental upgrade file in a period of time when the battery equipment utilization rate is lowest;
restarting the charger, and collecting preliminary operation data of the charger after restarting the charger;
performing stability evaluation on the charger subjected to upgrading treatment according to the preliminary operation data to obtain charger upgrading stability evaluation data, and judging whether the charger subjected to upgrading treatment passes stability verification according to the charger upgrading stability evaluation data;
controlling the charger to roll back from the latest version to the current version under the condition that the charger after the upgrading process does not pass the stability check, and ending the upgrading process under the condition that the charger after the upgrading process passes the stability check;
The method for evaluating the stability of the charger after the upgrading treatment according to the preliminary operation data, to obtain the charger upgrading stability evaluation data, comprises the following steps: extracting basic data of a plurality of key performance indexes from the preliminary operation data, wherein the key performance indexes comprise: start-up time, charge rate, battery temperature, and error frequency in the system log; performing standardized processing on the basic data of each key performance index, so that the basic data of each key performance index is converted into a basic form with a mean value of a first threshold value and a standard deviation of a second threshold value; distributing weight values for the key performance indexes, and calculating the score of each key performance index according to the weight values and the basic data corresponding to the key performance indexes; performing nonlinear logarithmic conversion on each key performance index score to obtain a first key performance index score array; performing nonlinear index conversion on each key performance index score to obtain a second key performance index score array; the first key performance index score array and the second key performance index score array are combined in a matrix mode to obtain a target array matrix; performing principal component analysis on the target array matrix, and extracting a first principal component in the target array matrix; and adopting the first main component as a new score index, and taking numerical data corresponding to the first main component as the charger upgrade stability evaluation data.
2. The upgrade method according to claim 1, wherein the firmware server, in response to the incremental update request, differentially processes the current version and the latest version to obtain an incremental upgrade file, and feeds the incremental upgrade file back to the charger, comprising:
The firmware server responds to the incremental update request, and loads and stores the current version file corresponding to the current version and the latest version file corresponding to the latest version into an update file processing area of the firmware server;
Decoding and decompressing the current version file and the latest version file to obtain the current version file in a binary format and the latest version file in the binary format;
respectively generating numerical fingerprints for the current version file and the latest version file to obtain a current version file digital fingerprint and a latest version file digital fingerprint;
identifying a data change between the current version file and the latest version file, wherein the data change comprises: data content of file addition, file deletion and file modification;
Constructing an incremental data packet containing all data changes according to the data changes between the current version file and the latest version file;
performing data compression processing on the incremental data packet, and packaging the compressed incremental data packet into a complete incremental upgrade file, wherein the file header information of the incremental upgrade file comprises: the version number of the current version, the version number of the latest version, the digital fingerprint of the current version file and the digital fingerprint of the latest version file;
Generating an incremental upgrade file digital fingerprint for the incremental upgrade file, and feeding back the incremental upgrade file and the incremental upgrade file digital fingerprint to the charger.
3. The upgrade method of claim 2, wherein identifying data changes between the current version file and the latest version file and constructing an incremental data packet containing all data changes based on the data changes between the current version file and the latest version file comprises:
Identifying all character strings in the current version file, sub-character strings from each position to the end of the character string in each character string, and constructing a current version suffix array of the current version file based on the sub-character strings;
Identifying all character strings in the latest version file, sub-character strings from each position to the end of the character string in each character string, and constructing a latest version suffix array of the latest version file based on the sub-character strings;
Respectively sorting the current version suffix array and the latest version suffix array by using a merging sorting algorithm by taking a dictionary sequence as a sorting reference to obtain the current version suffix array subjected to sorting and the latest version suffix array subjected to sorting;
Sequentially comparing suffix characters in the suffix array of the current version and the suffix characters in the suffix array of the latest version one by one until a first unmatched character is found, and recording the number of the matched characters as the longest common prefix length;
continuing to execute the step of comparing the suffix characters in the suffix array of the current version and the suffix characters in the suffix array of the latest version one by one sequentially by taking the first unmatched character as a starting character until the suffix characters in the suffix array of the current version and the suffix characters in the suffix array of the latest version are compared completely, and generating an array with the longest common prefix length;
Determining the longest public prefix length value exceeding a preset threshold value in the longest public prefix length array, mapping the longest public prefix length value exceeding the preset threshold value to the current version suffix array and the latest version suffix array, and extracting the same character strings in the current version suffix array and the latest version suffix array;
Mapping the same character strings in the current version suffix array and the latest version suffix array to the current version file and the latest version file to obtain unchanged content areas between the current version file and the latest version file;
respectively removing the unchanged content areas from the current version file and the latest version file to obtain a difference content area of the current version file and a difference content area of the latest version file;
And determining data change between the current version file and the latest version file based on the difference content area of the current version file and the difference content area of the latest version file, and constructing an incremental data packet containing all the data change according to the data change between the current version file and the latest version file.
4. The upgrade method according to claim 3, wherein determining data changes between the current version file and the latest version file based on the difference content area of the current version file and the difference content area of the latest version file, and constructing an incremental data packet containing all the data changes according to the data changes between the current version file and the latest version file, comprises:
dividing the difference content area of the current version file and the difference content area of the latest version file into a plurality of difference blocks;
Sequentially identifying the position of each difference block in the current version file and the latest version file;
if the difference block is not identified in the current version file and is identified in the latest version file, recording the content of the difference block and the position information of the difference block in the latest version file, and adding an identifier to the difference block mark;
If the difference block is identified in the current version file and is not identified in the latest version file, recording the content of the difference block and the position information of the difference block in the current version file, and marking the difference block with a deletion mark;
if the difference block is identified in the current version file and the table is also identified in the latest version file, recording the content of the difference block, the position information of the difference block in the current version file and the position information of the difference block in the latest version file, and marking a mobile identifier for the difference block;
and carrying out optimization combination on the recorded content and the identification content, and constructing the incremental data packet according to the optimization combination result.
5. The upgrade method of claim 2, wherein the integrity checking of the incremental upgrade file comprises:
Generating an incremental upgrade file verification fingerprint for the incremental upgrade file, and comparing the incremental upgrade file verification fingerprint with the incremental upgrade file digital fingerprint by adopting the incremental upgrade file verification fingerprint;
if the digital fingerprint of the incremental upgrade file is consistent with the incremental upgrade file verification fingerprint, determining that the incremental upgrade file passes a first integrity check;
decompressing the incremental upgrade file, and acquiring the version number of the current version and the version number of the latest version from the decompressed file;
The version number of the current version is sent to the firmware server, the firmware server obtains the current version file according to the version number of the current version, generates a current version file verification fingerprint corresponding to the current version file according to the current version file, and feeds the current version file verification fingerprint back to the charging equipment;
comparing the current version file verification fingerprint with the current version file digital fingerprint, and if the current version file verification fingerprint is consistent with the current version file digital fingerprint, determining that the incremental upgrade file passes the second integrity check;
The version number of the latest version is sent to the firmware server, the firmware server obtains the latest version file according to the version number of the latest version, generates a latest version file verification fingerprint corresponding to the latest version file according to the current version file, and feeds the latest version file verification fingerprint back to the charging equipment;
Comparing the latest version file verification fingerprint with the latest version file digital fingerprint, and if the latest version file verification fingerprint is consistent with the latest version file digital fingerprint, determining that the incremental upgrade file passes the third integrity check;
And under the condition that the incremental upgrade file passes three integrity checks, determining that the incremental upgrade file passes the integrity checks.
6. The upgrade method according to claim 1, wherein determining whether the upgraded charger passes the stability check according to the charger upgrade stability evaluation data, comprises:
And judging whether each numerical value data in the charger upgrade stability evaluation data exceeds a target threshold value, and if the numerical value data exceeds the target threshold value, determining that the charger after upgrade treatment passes the stability check.
7. An upgrade apparatus for a battery device, applied to a battery device upgrade system, the battery device upgrade system including the battery device and a firmware server, the battery device including a charger, the upgrade apparatus for the battery device comprising:
The feedback unit is used for acquiring the equipment material number and the current version of the charger, sending the equipment material number to the firmware server, and feeding back the latest version corresponding to the equipment material number to the charger according to the equipment material number by the firmware server;
a judging unit, configured to judge whether a current version of the charger is the latest version;
the processing unit is used for sending an increment updating request to the firmware server if not, responding to the increment updating request by the firmware server, carrying out differential processing on the current version and the latest version to obtain an increment upgrading file, and feeding back the increment upgrading file to the charger;
The verification unit is used for receiving the incremental upgrade file sent by the firmware server and carrying out integrity verification on the incremental upgrade file;
the upgrading unit is used for temporarily storing the incremental upgrading file under the condition that the incremental upgrading file passes the integrity check, and upgrading the charger through the incremental upgrading file in a period of lowest utilization rate of the battery equipment;
The restarting unit is used for restarting the charger and collecting preliminary operation data of the charger after restarting the charger;
the assessment unit is used for carrying out stability assessment on the charger subjected to the upgrading treatment according to the preliminary operation data to obtain charger upgrading stability assessment data, and judging whether the charger subjected to the upgrading treatment passes stability verification according to the charger upgrading stability assessment data;
the rollback unit is used for controlling the charger to rollback from the latest version to the current version under the condition that the charger after the upgrading treatment fails the stability check;
The method for evaluating the stability of the charger after the upgrading treatment according to the preliminary operation data, to obtain the charger upgrading stability evaluation data, comprises the following steps: extracting basic data of a plurality of key performance indexes from the preliminary operation data, wherein the key performance indexes comprise: start-up time, charge rate, battery temperature, and error frequency in the system log; performing standardized processing on the basic data of each key performance index, so that the basic data of each key performance index is converted into a basic form with a mean value of a first threshold value and a standard deviation of a second threshold value; distributing weight values for the key performance indexes, and calculating the score of each key performance index according to the weight values and the basic data corresponding to the key performance indexes; performing nonlinear logarithmic conversion on each key performance index score to obtain a first key performance index score array; performing nonlinear index conversion on each key performance index score to obtain a second key performance index score array; the first key performance index score array and the second key performance index score array are combined in a matrix mode to obtain a target array matrix; performing principal component analysis on the target array matrix, and extracting a first principal component in the target array matrix; and adopting the first main component as a new score index, and taking numerical data corresponding to the first main component as the charger upgrade stability evaluation data.
8. A computer device comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the processor, when executing the computer program, carries out the steps of the method according to any one of claims 1 to 6.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410797184.2A CN118363641B (en) | 2024-06-20 | 2024-06-20 | Upgrading method and device of battery equipment, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410797184.2A CN118363641B (en) | 2024-06-20 | 2024-06-20 | Upgrading method and device of battery equipment, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118363641A CN118363641A (en) | 2024-07-19 |
CN118363641B true CN118363641B (en) | 2024-08-30 |
Family
ID=91884362
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410797184.2A Active CN118363641B (en) | 2024-06-20 | 2024-06-20 | Upgrading method and device of battery equipment, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118363641B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116521201A (en) * | 2023-04-26 | 2023-08-01 | 如果新能源科技(江苏)股份有限公司 | Software upgrading method of battery pack and battery pack |
CN117608616A (en) * | 2023-12-18 | 2024-02-27 | 深圳市智安新能源科技有限公司 | Upgrading method, device, equipment and storage medium of battery equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0396834B1 (en) * | 1989-05-12 | 1995-08-30 | International Business Machines Corporation | Version-control in a data-processing system |
US7487169B2 (en) * | 2004-11-24 | 2009-02-03 | International Business Machines Corporation | Method for finding the longest common subsequences between files with applications to differential compression |
CN107402794A (en) * | 2017-08-03 | 2017-11-28 | 特瓦特能源科技有限公司 | A kind of itself programme upgrade method of charging pile and device |
CN113157302B (en) * | 2021-05-24 | 2022-11-04 | 平安普惠企业管理有限公司 | Software updating method, device, medium and equipment |
CN117629215A (en) * | 2023-11-28 | 2024-03-01 | 福州大学 | Chassis charging pile-returning method based on single-line laser radar point cloud registration |
-
2024
- 2024-06-20 CN CN202410797184.2A patent/CN118363641B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116521201A (en) * | 2023-04-26 | 2023-08-01 | 如果新能源科技(江苏)股份有限公司 | Software upgrading method of battery pack and battery pack |
CN117608616A (en) * | 2023-12-18 | 2024-02-27 | 深圳市智安新能源科技有限公司 | Upgrading method, device, equipment and storage medium of battery equipment |
Also Published As
Publication number | Publication date |
---|---|
CN118363641A (en) | 2024-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109325865B (en) | Exception handling method, exception handling device, computer equipment and storage medium | |
CN109542428B (en) | Service processing method, device, computer equipment and storage medium | |
CN111880740B (en) | Data processing method, device, computer system and readable storage medium | |
US11379216B2 (en) | Software update agent device and software patching method through the same | |
US20120296878A1 (en) | File set consistency verification system, file set consistency verification method, and file set consistency verification program | |
CN112036144B (en) | Data analysis method, device, computer equipment and readable storage medium | |
CN109462661B (en) | Data synchronization method and device, computer equipment and storage medium | |
CN115269981A (en) | Abnormal behavior analysis method and system combined with artificial intelligence | |
CN115277677A (en) | Batch archive hooking method and device, computer equipment and storage medium | |
CN109753384B (en) | Cloud host snapshot backup method and device, computer equipment and storage medium | |
CN118363641B (en) | Upgrading method and device of battery equipment, computer equipment and storage medium | |
CN112632330A (en) | Method and device for routing inspection of ATM equipment, computer equipment and storage medium | |
CN112346771B (en) | Upgrade file generation method and device | |
CN115622884A (en) | Configuration data change processing method and device and computer equipment | |
CN111176882A (en) | Specific data processing method, specific data processing device, computer equipment and storage medium | |
CN112328287B (en) | Method, device, equipment and storage medium for updating embedded equipment system | |
CN115543816A (en) | Software regression test result verification method, device, equipment and storage medium | |
CN112363929B (en) | System online method and device, computer equipment and storage medium | |
CN109829750B (en) | Public transport transaction information processing method and device and computer equipment | |
CN114143308A (en) | File uploading information processing method and device, computer equipment and storage medium | |
CN116483611B (en) | Cross-level distributed abnormal data identification and processing system | |
KR101737575B1 (en) | Method and device for verifying data based on sql sentences generated automatically | |
CN114510256B (en) | Firmware upgrading method, electric energy meter, computer equipment and storage medium | |
CN109409040B (en) | Method and device for judging time reliability of operating system | |
CN114385595B (en) | Data migration method, device, computer 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |