Concentrator differential upgrading method
Through the differential upgrade method, the software upgrade package of the concentrator is only upgraded to the difference part, which solves the problems of slow upgrade speed and low success rate of the concentrator in a network signal environment, and realizes an efficient and bandwidth-saving upgrade process.
Patent Information
- Application Number
- CN202510610554.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-13
- Publication Date
- 2025-08-08
AI Technical Summary
The software upgrade package of the concentrator is slow to download and difficult to complete efficiently in an environment with poor network signals, resulting in large bandwidth usage, high traffic costs, and low upgrade success rate.
The differential upgrade method is adopted, and by traversing each file to be upgraded and the new version, a differential file and a differential file list is generated, only the difference part is incrementally upgraded, the differential upgrade package is generated, and the checksum is performed after the main site is deployed and the concentrator is downloaded.
Significantly reduce the size of the upgrade package, shorten the download time, reduce the amount of data transmission, and improve the upgrade efficiency and success rate.
Smart Images

Figure CN120447942A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of concentrator software upgrade, and in particular to a concentrator differential upgrade method. Background Art
[0002] With the continuous development of technology, concentrators deployed earlier in various regions are facing the problem of upgrading, and the number of concentrator software upgrade packages is also increasing year by year. Since many concentrators are deployed in mountainous areas, building basements, or pipe wells where communication facilities are not very developed, the 4G or 5G network signal will be very poor. Therefore, downloading the concentrator upgrade package has become a difficult task. When using carrier channels to download software packages, the download speed is very slow. Therefore, how to speed up the download, reduce bandwidth usage, and reduce traffic costs have become issues that must be solved during the concentrator upgrade process. Summary of the Invention
[0003] The present invention aims to solve the above problems and provides a concentrator differential upgrade method, which adopts the following technical solutions: A differential upgrade method for a concentrator includes the following steps: S1. Locally traverse each file of the software version to be upgraded and the new software version; S2. Generate differential files and differential file lists based on the differences between files in different versions, and package them to generate differential upgrade packages; S3 differential upgrade package and upgrade path deployed to the master station, the master station to obtain the software version running in the concentrator, if the original version number of the configured upgrade path is found to correspond to the software version running in the concentrator, then send an upgrade command to the concentrator; S4. The concentrator downloads the differential upgrade package corresponding to the upgraded version from the autonomous station; S5. The concentrator decompresses the differential upgrade package and processes and verifies the files and records therein; S6. The concentrator completes the software version update.
[0004] On the basis of the above scheme, step S2 includes, S21 traverses the various files of the software to be upgraded, and searches for corresponding files in the same path in the new version of the software. According to the search results, step S22 or S23 is executed; S22. If the file is not found in the new version of the software, the file is recorded as a file that needs to be deleted; S23. If the corresponding file is found in the new version of the software, the checksum value of the file to be upgraded is compared with the new version of the file, and step S24 or S25 is performed according to the comparison result; S24. If the checksum of the file to be upgraded is the same as that of the new version, the file is not recorded; S25. If the checksum of the upgraded version of the file is inconsistent with the checksum of the new version of the file, the file is recorded as a file to be synthesized to generate a differential file; S26. Traverse the various files of the new version of the software and find out whether there is a corresponding file in the same path in the upgraded version of the software; S27. If the corresponding file is not found, the file is recorded as a file that needs to be added.
[0005] Preferably, the differential upgrade package includes: For the files that need to be deleted, record the file name, file path and checksum; For differential files, include the differential file and record its file name, file path and the checksum of the corresponding file in the new version of the software; For the files that need to be added, include the files that need to be added, and record their file names, file paths and checksums. And the operation commands corresponding to the above three types of files.
[0006] Preferably, when the differential upgrade package is deployed to the master station in step S3, the deployment content includes the differential upgrade package and its corresponding version number of the software to be upgraded, the version number of the new version software, the differential upgrade package download path and the verification code of the differential upgrade package.
[0007] Preferably, step S5 includes, S51. Decompress the differential upgrade package downloaded by the concentrator; S52. Traverse the differential files and operation commands in the differential upgrade package; S53-1 need to delete the file, find the file in the corresponding path in the concentrator, calculate the checksum of the file, and compare it with the corresponding checksum in the differential upgrade package. If the checksum is consistent, the corresponding file in the concentrator is deleted; S53-2 differential file, find the concentrator and the differential upgrade package in the corresponding path of the file synthesis, calculate the synthesis of the file check code, and the differential upgrade package in the differential file check code compared, if the check code is consistent, it indicates that the synthesis is correct; S53-3. For the files that need to be added, find the files in the corresponding path in the upgrade differential package, add them to the concentrator, calculate the checksum of the file in the concentrator, and compare it with the checksum of the file in the upgrade differential package. If the checksums are consistent, it indicates that the addition is correct.
[0008] Preferably, the verification includes but is not limited to a hash check, an MD5 check or a SHA check.
[0009] A differential upgrade method for a concentrator, used for a concentrator, comprises the following steps: A1. For the running software version to be upgraded, receive the differential upgrade package from the master station. The differential upgrade package is a list of differential files and differential files generated for the differences between the different versions of each file after traversing each file of the software version to be upgraded and the new software version; A2. Unzip the differential upgrade package and process and verify the files and records within it. A3.Complete software version update.
[0010] On the basis of the above scheme, The steps to generate a differential upgrade package include: A11 traverses the various files of the software to be upgraded, and searches for corresponding files in the same path in the new version of the software. Execute steps A12 or A13 based on the search results. A12. If the file is not found in the new version of the software, the file will be recorded as a file that needs to be deleted; A13. If the corresponding file is found in the new version of the software, the checksum of the file to be upgraded is compared with the checksum of the new version of the file, and steps A14 or A15 are performed according to the comparison result. A14. If the checksum of the file to be upgraded matches the checksum of the new version, the file will not be recorded. A15. If the checksum of the file to be upgraded is inconsistent with that of the new version, the file is recorded as a file to be synthesized, and a differential file is generated based on the difference between the two files. A16. Traverse each file in the new version of the software and search for corresponding files in the same path in the version to be upgraded. A17. If the corresponding file is not found, the file is recorded as a file that needs to be added; Step A2 includes: A21. Decompress the differential upgrade package downloaded from the concentrator. A22. Traverse the differential files and operation commands in the differential upgrade package; A23-1. To delete the file, find the file in the corresponding path in the concentrator, calculate the checksum of the file, and compare it with the corresponding checksum in the differential upgrade package. If the checksum matches, delete the corresponding file in the concentrator; A23-2 differential file, find the concentrator and the differential upgrade package in the corresponding path of the file synthesis, calculate the synthesis of the file check code, and the differential upgrade package in the differential file check code compared, if the check code is the same, it indicates that the synthesis is correct; A23-3. For the files that need to be added, find the files in the corresponding paths in the upgrade differential package, add them to the concentrator, calculate the checksum of the files in the concentrator, and compare it with the checksum of the files in the upgrade differential package. If the checksums match, the addition is correct.
[0011] A concentrator differential upgrade method, used for a master station, comprises the following steps: B1 receives a differential upgrade package from the local, the differential upgrade package for the software version to be upgraded and the new software version of each file, for the differences between the different versions of each file generated by the differential file and the differential file list; B2 obtains the software version running in the concentrator for verification. If the original version number in the upgrade path corresponds to the software version running in the concentrator, an upgrade command is sent to the concentrator; B3. The concentrator downloads the differential upgrade package corresponding to the upgraded version from the autonomous station; B4. The concentrator decompresses the differential upgrade package and processes and verifies the files and records therein; B5. The concentrator completes the software version update.
[0012] On the basis of the above scheme, The steps to generate a differential upgrade package include: B11 traverses the various files of the software to be upgraded, and searches for corresponding files in the same path in the new version of the software. Execute steps B12 or B13 based on the search results. B12. If the file is not found in the new version of the software, the file will be recorded as a file that needs to be deleted; B13. If the corresponding file is found in the new version of the software, the checksum of the file to be upgraded is compared with the checksum of the new version of the file, and steps B14 or B15 are performed according to the comparison result; B14. If the checksum of the file to be upgraded matches the checksum of the new version, the file will not be recorded. B15. If the checksum of the upgraded version file is inconsistent with that of the new version file, the file is recorded as a file to be synthesized, and a differential file is generated based on the difference between the two files; B16. Traverse each file of the new version of the software and search for corresponding files in the same path of the software to be upgraded; B17. If the corresponding file is not found, record the file as a file that needs to be added; Step B4 includes: B41. Decompress the differential upgrade package downloaded from the concentrator; B42. Traverse the differential files and operation commands in the differential upgrade package; B43-1. To delete the file, find the file in the corresponding path in the concentrator, calculate the checksum of the file, and compare it with the corresponding checksum in the differential upgrade package. If the checksum matches, delete the corresponding file in the concentrator; B43-2 differential file, find the concentrator and the differential upgrade package in the corresponding path of the file synthesis, calculate the synthesis of the file check code, and the differential upgrade package in the differential file check code compared, if the check code is the same, it indicates that the synthesis is correct; B43-3. For the files that need to be added, find the files in the corresponding path in the upgrade differential package, add them to the concentrator, calculate the verification code of the file in the concentrator, and compare it with the verification code of the file in the upgrade differential package. If the verification codes are the same, it indicates that the addition is correct.
[0013] The beneficial effects of the present invention are as follows: using differential technology, the differences between the version to be upgraded and the new version of the software are compared in units of single files, and only the different parts are incrementally upgraded, which greatly reduces the size of the concentrator software upgrade package, and can reduce the upgrade package from M level to K level, thereby shortening the software download time, reducing the data transmission volume and bandwidth occupancy, improving download efficiency, and greatly improving the success rate of concentrator upgrades. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 : Schematic diagram of the process of the present invention; Figure 2 : Flowchart of differential upgrade package production of the present invention; Figure 3 : Concentrator upgrade flow chart of the present invention. DETAILED DESCRIPTION
[0015] The present invention will be further described below with reference to the accompanying drawings and examples: In the present invention, unless otherwise expressly specified or limited, terms such as "mounted," "connected," "connect," and "fixed" should be understood broadly. For example, they may refer to fixed connection, detachable connection, or integration; they may refer to direct connection or indirect connection through an intermediate medium; they may refer to internal communication between two components or interaction between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on specific circumstances.
[0016] Example 1 like Figures 1 to 3 As shown, a concentrator differential upgrade method includes the following steps: S1. Locally traverse each file of the software version to be upgraded and the new software version; S2. Generate differential files and differential file lists based on the differences between files in different versions, and package them to generate differential upgrade packages; S3 differential upgrade package and upgrade path deployed to the master station, the master station to obtain the software version running in the concentrator, if the original version number of the configured upgrade path is found to correspond to the software version running in the concentrator, then send an upgrade command to the concentrator; S4. The concentrator downloads the differential upgrade package corresponding to the upgraded version from the autonomous station; S5. The concentrator decompresses the differential upgrade package and processes and verifies the files and records therein; S6. The concentrator completes the software version update.
[0017] Specifically, in step S1, the software to be upgraded and the new version are decompressed separately to obtain a single file. The old version file and the new version file can be placed in the "old" and "new" folders, respectively. A tool such as bsdiff is used to compare the differences between the files in the same path under different versions. A diff directory is set to store the differential files and the files to be added. A file list filelist is set to store the file names, file paths, checksums, and operation commands corresponding to the files with differences. The checksum is obtained using other verification methods such as hash check, MD5 check, or SHA check.
[0018] Step S2 includes, S21 traverses the various files of the software to be upgraded, and searches for corresponding files in the same path in the new version of the software. According to the search results, step S22 or S23 is executed; S22. If the new version of the software is not found, the file is recorded as a file to be deleted, the file name, file path, checksum, and the corresponding operation command for the file are recorded in filelist to delete; S23. If the corresponding file is found in the new version of the software, the checksum value of the file to be upgraded is compared with the new version of the file, and step S24 or S25 is performed according to the comparison result; S24. If the checksum of the file to be upgraded is the same as that of the new version, the file is not recorded; S25. If the checksum of the upgraded version of the file is inconsistent with the checksum of the new version of the file, the file is recorded as a file to be synthesized, a differential file is generated, and the differential file is stored in the diff directory. At the same time, the file name, file path, checksum, and the corresponding operation command of the file are recorded in filelist to modify the file; S26. Traverse the various files of the new version of the software and find out whether there is a corresponding file in the same path in the upgraded version of the software; S27. If the corresponding file is not found, the file is recorded as a file that needs to be added, and the file is stored in the diff directory. At the same time, the file name, file path, and checksum are recorded in filelist, and the operation command corresponding to the file is recorded as add.
[0019] Then, a differential upgrade package is made based on the above traversal and comparison results. The differential upgrade package includes: For the files that need to be deleted, record the file name, file path and checksum; For differential files, include the differential file and record its file name, file path and the checksum of the corresponding file in the new version of the software; For the files that need to be added, include the files that need to be added, and record their file names, file paths and checksums. And the operation commands corresponding to the above three types of files.
[0020] When the differential upgrade package is deployed to the master station in step S3, the deployment content includes the differential upgrade package and its corresponding version number of the software to be upgraded, the version number of the new version software, the differential upgrade package download path and the verification code of the differential upgrade package.
[0021] In step S4, after the concentrator downloads the differential upgrade package, it needs to first verify the downloaded version to confirm the validity of the downloaded version.
[0022] Step S5 includes, S51. Decompress the differential upgrade package downloaded by the concentrator; S52 traverses the differential files and operation commands in the differential upgrade package, specifically, traverses each record in filelist; S53-1 reads the operation command to delete, determine the record corresponding to the file to be deleted; the file to be deleted, find the file in the corresponding path in the concentrator, calculate the checksum of the file, and compare it with the corresponding checksum in the differential upgrade package. If the checksum is consistent, the corresponding file in the concentrator is deleted; S53-2 reads the operation command to modify, determine the record corresponding to the need to merge the difference file correction, the difference file, find the concentrator and the differential upgrade package corresponding path file synthesis, calculate the synthesis of the file check code, and the differential upgrade package in the differential file check code compared, if the check code is consistent, it indicates that the synthesis is correct; S53-3. When the operation command read is add, it is determined that the record corresponds to the file that needs to be added to the concentrator. For the file that needs to be added, the file under the corresponding path in the upgrade differential package is found, and added to the concentrator. The check code of the file in the concentrator is calculated and compared with the check code of the file in the upgrade differential package. If the check codes are consistent, it indicates that the addition is correct.
[0023] After traversing and completing the operation commands corresponding to all records, delete, modify, and add actions are performed uniformly, and then the software or concentrator is restarted to complete the software upgrade.
[0024] Example 2 A differential upgrade method for a concentrator, used for a concentrator, comprises the following steps: A1. For the running software version to be upgraded, receive the differential upgrade package from the master station. The differential upgrade package is a list of differential files and differential files generated for the differences between the different versions of each file after traversing each file of the software version to be upgraded and the new software version; A2. Unzip the differential upgrade package and process and verify the files and records within it. A3.Complete software version update.
[0025] The steps to generate a differential upgrade package include: A11 traverses the various files of the software to be upgraded, and searches for corresponding files in the same path in the new version of the software. Execute steps A12 or A13 based on the search results. A12. If the file is not found in the new version of the software, the file is recorded as a file to be deleted. The file name, file path, and checksum are recorded in the filelist. The corresponding operation command for the file is also recorded as "delete". A13. If the corresponding file is found in the new version of the software, the checksum of the file to be upgraded is compared with the checksum of the new version of the file, and steps A14 or A15 are performed according to the comparison result. A14. If the checksum of the file to be upgraded matches the checksum of the new version, the file will not be recorded. A15. If the checksum values of the file to be upgraded and the new version are inconsistent, the file is recorded as the file to be synthesized, a differential file is generated based on the differences between the two files, and the differential file is stored in the diff directory. The file name, file path, and checksum are recorded in the filelist, and the corresponding operation command for the file is recorded as modify. A16. Traverse each file in the new version of the software and search for corresponding files in the same path in the version to be upgraded. A17. If the corresponding file is not found, the file is recorded as a file to be added and stored in the diff directory. The file name, file path, and checksum are recorded in filelist, and the corresponding operation command for the file is recorded as add.
[0026] Then, a differential upgrade package is made based on the above traversal and comparison results. The differential upgrade package includes: For the files that need to be deleted, record the file name, file path and checksum; For differential files, include the differential file and record its file name, file path and checksum; For the files that need to be added, include the files that need to be added, and record their file names, file paths and checksums. And the operation commands corresponding to the above three types of files.
[0027] After the concentrator downloads the differential upgrade package, it must first verify the downloaded version to confirm its validity and ensure that the software version to be upgraded in the differential upgrade package is consistent with the software version currently running on the concentrator.
[0028] Step A2 includes, A21. Decompress the differential upgrade package downloaded from the concentrator. A22. Traverse the differential files and operation commands in the differential upgrade package, specifically, traverse the records in filelist; A23-1. When the operation command is read as delete, it is determined that the record corresponds to the file to be deleted; for the file to be deleted, find the file under the corresponding path in the concentrator, calculate the checksum of the file, and compare it with the corresponding checksum in the differential upgrade package. If the checksum is consistent, the corresponding file in the concentrator is deleted; A23-2 reads the operation command to modify, determine the record corresponding to the need to merge the difference file correction, the difference file, find the concentrator and the differential upgrade package in the corresponding path of the file synthesis, calculate the synthesis of the file check code, and the differential upgrade package in the differential file check code compared, if the check code is the same, it indicates that the synthesis is correct; A23-3. When the operation command read is add, it is determined that the record corresponds to the file that needs to be added to the concentrator. For the file that needs to be added, the file under the corresponding path in the upgrade differential package is found, and added to the concentrator. The check code of the file in the concentrator is calculated and compared with the check code of the file in the upgrade differential package. If the check codes are consistent, it indicates that the addition is correct.
[0029] After traversing and completing the operation commands corresponding to all records, delete, modify, and add actions are performed uniformly, and then the software or concentrator is restarted to complete the software upgrade.
[0030] Example 3 A concentrator differential upgrade method, used for a master station, comprises the following steps: B1 receives a differential upgrade package from the local, the differential upgrade package for the software version to be upgraded and the new software version of each file, for the differences between the different versions of each file generated by the differential file and the differential file list; B2 obtains the software version running in the concentrator for verification. If the original version number in the upgrade path corresponds to the software version running in the concentrator, an upgrade command is sent to the concentrator; B3. The concentrator downloads the differential upgrade package corresponding to the upgraded version from the autonomous station; B4. The concentrator decompresses the differential upgrade package and processes and verifies the files and records therein; B5. The concentrator completes the software version update.
[0031] The steps to generate a differential upgrade package include: B11 traverses the various files of the software to be upgraded, and searches for corresponding files in the same path in the new version of the software. Execute steps B12 or B13 based on the search results. B12. If the file is not found in the new version of the software, the file is recorded as a file to be deleted. The file name, file path, and checksum are recorded in the filelist. The corresponding operation command for the file is recorded as delete. B13. If the corresponding file is found in the new version of the software, the checksum of the file to be upgraded is compared with the checksum of the new version of the file, and steps B14 or B15 are performed according to the comparison result; B14. If the checksum of the file to be upgraded matches the checksum of the new version, the file will not be recorded. B15. If the checksum of the file to be upgraded is inconsistent with the checksum of the new version file, the file is recorded as a file to be synthesized, a differential file is generated for the difference between the two files, the differential file is stored in the diff directory, and the file name, file path, checksum, and the corresponding operation command of the file are recorded in filelist as modify; B16. Traverse each file of the new version of the software and search for corresponding files in the same path of the software to be upgraded; B17. If the corresponding file is not found, record the file as a file that needs to be added and save it in the diff directory. At the same time, record the file name, file path, and checksum in filelist, and record the corresponding operation command of the file as add.
[0032] Then, a differential upgrade package is made based on the above traversal and comparison results. The differential upgrade package includes: For the files that need to be deleted, record the file name, file path and checksum; For differential files, include the differential file and record its file name, file path and checksum; For the files that need to be added, include the files that need to be added, and record their file names, file paths and checksums. And the operation commands corresponding to the above three types of files.
[0033] When the master station receives the differential upgrade package, the received content includes the differential upgrade package and the version number of the corresponding software to be upgraded, the version number of the new version software, the download path of the differential upgrade package and the verification code of the differential upgrade package.
[0034] In step B4, after the concentrator downloads the differential upgrade package, it needs to first verify the downloaded version to confirm the validity of the downloaded version.
[0035] Step B4 includes, B41. Decompress the differential upgrade package downloaded from the concentrator; B42 traverses the differential files and operation commands in the differential upgrade package, specifically, traverses each record in filelist; B43-1 reads the operation command to delete, determine the record corresponding to the file to be deleted; to delete the file, find the file in the corresponding path in the concentrator, calculate the checksum of the file, and compare it with the corresponding checksum in the differential upgrade package. If the checksum is consistent, the corresponding file in the concentrator is deleted; B43-2 reads the operation command to modify, determine the record corresponding to the difference file needs to be merged and corrected, the difference file, find the concentrator and the differential upgrade package in the corresponding path of the file synthesis, calculate the synthesis of the file check code, and the differential upgrade package in the differential file check code compared, if the check code is the same, it indicates that the synthesis is correct; B43-3. When the operation command read is add, it is determined that the record corresponds to the file that needs to be added to the concentrator. For the file that needs to be added, the file under the corresponding path in the upgrade differential package is found, and added to the concentrator. The check code of the file in the concentrator is calculated and compared with the check code of the file in the upgrade differential package. If the check codes are consistent, it indicates that the addition is correct.
[0036] After traversing and completing the operation commands corresponding to all records, delete, modify, and add actions are performed uniformly, and then the software or concentrator is restarted to complete the software upgrade.
[0037] The present invention has been described above by way of examples, but the present invention is not limited to the above specific embodiments. Any changes or modifications based on the present invention fall within the scope of protection claimed by the present invention.
Claims
1. A differential upgrade method for a concentrator, characterized in that: The following steps are included: S1. Locally traverse each file of the software version to be upgraded and the new software version; S2. Generate differential files and differential file lists based on the differences between files in different versions, and package them to generate differential upgrade packages; S3 differential upgrade package and upgrade path deployed to the master station, the master station to obtain the software version running in the concentrator, if the original version number of the configured upgrade path is found to correspond to the software version running in the concentrator, then send an upgrade command to the concentrator; S4. The concentrator downloads the differential upgrade package corresponding to the upgraded version from the autonomous station; S5. The concentrator decompresses the differential upgrade package and processes and verifies the files and records therein; S6. The concentrator completes the software version update.
2. A concentrator differential upgrade method according to claim 1, characterized in that: Step S2 includes, S21 traverses the various files of the software to be upgraded, and searches for corresponding files in the same path in the new version of the software. According to the search results, step S22 or S23 is executed; S22. If the file is not found in the new version of the software, the file is recorded as a file that needs to be deleted; S23. If the corresponding file is found in the new version of the software, the checksum value of the file to be upgraded is compared with the new version of the file, and step S24 or S25 is performed according to the comparison result; S24. If the checksum of the file to be upgraded is the same as that of the new version, the file is not recorded; S25. If the checksum of the upgraded version of the file is inconsistent with the checksum of the new version of the file, the file is recorded as a file to be synthesized to generate a differential file; S26. Traverse the various files of the new version of the software and find out whether there is a corresponding file in the same path in the upgraded version of the software; S27. If the corresponding file is not found, the file is recorded as a file that needs to be added.
3. A differential upgrade method for a concentrator according to claim 1, characterized in that: The differential upgrade package includes: For the files that need to be deleted, record the file name, file path and checksum; For differential files, include the differential file and record its file name, file path and the checksum of the corresponding file in the new version of the software; For the files that need to be added, include the files that need to be added, and record their file names, file paths and checksums. And the operation commands corresponding to the above three types of files.
4. A concentrator differential upgrade method according to claim 1, characterized in that: When the differential upgrade package is deployed to the master station in step S3, the deployment content includes the differential upgrade package and its corresponding version number of the software to be upgraded, the version number of the new version software, the differential upgrade package download path and the verification code of the differential upgrade package.
5. A differential upgrade method for a concentrator according to claim 3, characterized in that: Step S5 includes, S51. Decompress the differential upgrade package downloaded by the concentrator; S52. Traverse the differential files and operation commands in the differential upgrade package; S53-1 need to delete the file, find the file in the corresponding path in the concentrator, calculate the checksum of the file, and compare it with the corresponding checksum in the differential upgrade package. If the checksum is consistent, the corresponding file in the concentrator is deleted; S53-2 differential file, find the concentrator and the differential upgrade package in the corresponding path of the file synthesis, calculate the synthesis of the file check code, and the differential upgrade package in the differential file check code compared, if the check code is consistent, it indicates that the synthesis is correct; S53-3. For the files that need to be added, find the files in the corresponding path in the upgrade differential package, add them to the concentrator, calculate the checksum of the file in the concentrator, and compare it with the checksum of the file in the upgrade differential package. If the checksums are consistent, it indicates that the addition is correct.
6. A differential upgrade method for a concentrator according to claim 1, characterized in that: The verification includes but is not limited to Hash verification, MD5 verification or SHA verification.
7. A differential upgrade method for a concentrator, characterized in that: For concentrator, including the following steps, A1. For the running software version to be upgraded, receive the differential upgrade package from the master station. The differential upgrade package is a list of differential files and differential files generated for the differences between the different versions of each file after traversing each file of the software version to be upgraded and the new software version; A2. Unzip the differential upgrade package and process and verify the files and records within it. A3.Complete software version update.
8. A differential upgrade method for a concentrator according to claim 7, characterized in that: The steps to generate a differential upgrade package include: A11 traverses the various files of the software to be upgraded, and searches for corresponding files in the same path in the new version of the software. Execute steps A12 or A13 based on the search results. A12. If the file is not found in the new version of the software, the file will be recorded as a file that needs to be deleted; A13. If the corresponding file is found in the new version of the software, the checksum of the file to be upgraded is compared with the checksum of the new version of the file, and steps A14 or A15 are performed according to the comparison result. A14. If the checksum of the file to be upgraded matches the checksum of the new version, the file will not be recorded. A15. If the checksum of the file to be upgraded is inconsistent with that of the new version, the file is recorded as a file to be synthesized, and a differential file is generated based on the difference between the two files. A16. Traverse each file in the new version of the software and search for corresponding files in the same path in the version to be upgraded. A17. If the corresponding file is not found, the file is recorded as a file that needs to be added; Step A2 includes: A21. Decompress the differential upgrade package downloaded from the concentrator. A22. Traverse the differential files and operation commands in the differential upgrade package; A23-1. To delete the file, find the file in the corresponding path in the concentrator, calculate the checksum of the file, and compare it with the corresponding checksum in the differential upgrade package. If the checksum matches, delete the corresponding file in the concentrator; A23-2 differential file, find the concentrator and the differential upgrade package in the corresponding path of the file synthesis, calculate the synthesis of the file check code, and the differential upgrade package in the differential file check code compared, if the check code is the same, it indicates that the synthesis is correct; A23-3. For the files that need to be added, find the files in the corresponding paths in the upgrade differential package, add them to the concentrator, calculate the checksum of the files in the concentrator, and compare it with the checksum of the files in the upgrade differential package. If the checksums match, the addition is correct.
9. A differential upgrade method for a concentrator, characterized in that: For the master station, the following steps are included: B1 receives a differential upgrade package from the local, the differential upgrade package for the software version to be upgraded and the new software version of each file, for the differences between the different versions of each file generated by the differential file and the differential file list; B2 obtains the software version running in the concentrator for verification. If the original version number in the upgrade path corresponds to the software version running in the concentrator, an upgrade command is sent to the concentrator; B3. The concentrator downloads the differential upgrade package corresponding to the upgraded version from the autonomous station; B4. The concentrator decompresses the differential upgrade package and processes and verifies the files and records therein; B5. The concentrator completes the software version update.
10. A differential upgrade method for a concentrator according to claim 9, characterized in that: The steps to generate a differential upgrade package include: B11 traverses the various files of the software to be upgraded, and searches for corresponding files in the same path in the new version of the software. Execute steps B12 or B13 based on the search results. B12. If the file is not found in the new version of the software, the file will be recorded as a file that needs to be deleted; B13. If the corresponding file is found in the new version of the software, the checksum of the file to be upgraded is compared with the checksum of the new version of the file, and steps B14 or B15 are performed according to the comparison result; B14. If the checksum of the file to be upgraded matches the checksum of the new version, the file will not be recorded. B15. If the checksum of the upgraded version file is inconsistent with that of the new version file, the file is recorded as a file to be synthesized, and a differential file is generated based on the difference between the two files; B16. Traverse each file of the new version of the software and search for corresponding files in the same path of the software to be upgraded; B17. If the corresponding file is not found, record the file as a file that needs to be added; Step B4 includes: B41. Decompress the differential upgrade package downloaded from the concentrator; B42. Traverse the differential files and operation commands in the differential upgrade package; B43-1. To delete the file, find the file in the corresponding path in the concentrator, calculate the checksum of the file, and compare it with the corresponding checksum in the differential upgrade package. If the checksum matches, delete the corresponding file in the concentrator; B43-2 differential file, find the concentrator and the differential upgrade package in the corresponding path of the file synthesis, calculate the synthesis of the file check code, and the differential upgrade package in the differential file check code compared, if the check code is the same, it indicates that the synthesis is correct; B43-3. For the files that need to be added, find the files in the corresponding path in the upgrade differential package, add them to the concentrator, calculate the verification code of the file in the concentrator, and compare it with the verification code of the file in the upgrade differential package. If the verification codes are the same, it indicates that the addition is correct.