A system and method for checking the version of marine software using MD5 code

By using MD5 code to verify the marine software version, the problem of not being able to ensure the correctness of the software version in the existing technology is solved, and the accurate verification and correction of the marine software version is achieved, which improves the reliability of the equipment and troubleshooting efficiency.

CN114968338BActive Publication Date: 2025-05-23TIANJIN NAVIGATION INSTR RES INST
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210610457.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2025-05-23
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

The marine software version verification method in the prior art cannot ensure the correctness of the software version in the actual ship environment, and the wrong files cannot be identified and corrected, resulting in difficulty in equipment troubleshooting.

Method used

The MD5 code is used to verify the marine software version. By generating the verification file in the development environment, copying and using the version verification module in the real-ship environment, the MD5 algorithm is used to generate and compare the verification code of the file, and the file errors or losses are identified and recorded.

Benefits of technology

It realizes accurate verification of marine software and its supporting file versions, ensures the consistency and correctness of software versions, reduces the occurrence of equipment failures, and improves the efficiency of troubleshooting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114968338B_ABST
    Figure CN114968338B_ABST
Patent Text Reader

Abstract

The present invention relates to a system and method for checking the version of marine software using MD5 code, comprising: a verification file generation module, which is used to generate a verification file when the marine software generates a version update in a development environment; and a version verification module, which is used to verify the software version using the verification file. The present invention can meet the requirements of checking and managing the software version of marine field equipment, and solve technical problems such as incorrect or inconsistent versions of software and its supporting files in the equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of computer application and data verification, and relates to a system and method for checking a version of marine software, in particular to a system and method for checking a version of marine software by using an MD5 code. Background Art

[0002] During the process of marine software development, testing, delivery and subsequent maintenance, there will be many different versions of the software itself and its related supporting documents. A mechanism is needed to verify the correctness of the software and its supporting document versions placed in the marine equipment to prevent operation errors caused by software and its supporting document version problems. At the same time, due to the diversity of marine software operating systems, the verification method is required to run on Windows, Linux, and Vxworks systems.

[0003] However, the prior art method for checking the version of marine software has the following defects:

[0004] The existing software version control for actual ship installation mostly adopts the form of filling in the version number in the version file. The actual software version is recorded at the software development end and is manually updated. Manually checking the version number in the version file under the actual ship installation environment as a means of inspection cannot guarantee that all kinds of files required for software operation under the actual ship environment are truly the correct version, and it is impossible to identify the wrong files, making it difficult to verify the version. In the case of being unable to determine the software version, it will also have a great impact on the troubleshooting of equipment failures.

[0005] After searching, no published patent documents identical or similar to the present invention were found. Summary of the invention

[0006] The purpose of the present invention is to overcome the shortcomings of the prior art and propose a system and method for checking the version of marine software using MD5 code, which can meet the needs of checking and managing the software version of marine field equipment and solve technical problems such as incorrect or inconsistent versions of software and its supporting files in the equipment.

[0007] The present invention solves the practical problem by adopting the following technical solutions:

[0008] A system for checking the version of marine software using MD5 code, comprising:

[0009] A verification file generation module is used to generate verification files when the marine software generates a version update in a development environment;

[0010] The version checking module is used to check the software version using the verification file.

[0011] Furthermore, the system for checking the version of the marine software using the MD5 code further comprises: a copy module for the verification file and the version checking module, which is used to copy the generated verification file and the version checking module to the directory where the actual marine software is installed.

[0012] A method for checking the version of marine software using MD5 code, such as Figures 2 to 6 As shown, the following steps are included:

[0013] Step 1: In the development environment, when the marine software generates a version update, a verification file is generated using a verification file generation module;

[0014] Step 2: When checking the software version in the actual ship environment, copy the verification file and version verification module generated in step 1 to the directory where the actual ship software is installed;

[0015] Step 3: Use the version checking module to verify the software version;

[0016] Moreover, the specific steps of step 1 include:

[0017] (1) Depending on the system environment in which the marine software works, load the verification file generation module under the corresponding system in the directory where the marine software is located;

[0018] (2) Generate a verification file module that reads the current directory name and creates a blank verification file in the directory, named directory name.LIST;

[0019] (3) Generate a verification file module to read the file information structure in the current folder;

[0020] (4) Determine whether the current file information structure is a file or a directory. If the current file is a directory, the software enters the directory and repeats steps (3) to (4);

[0021] (5) When the current file is a file, the software reads the file content and calls the MD5 algorithm to generate an MD5 code, and stores the file MD5 code and the file relative path into a verification file;

[0022] (6) The marine software determines whether the file is the last one in the current directory based on the file information structure. If it is not the last one, repeat steps (4) to (6);

[0023] (7) The software determines whether the file is the last one in the current directory and whether it is the last one in the top-level directory. If it is not the last one in the top-level directory, it returns to the upper directory and determines whether it returns to the top-level directory. If it does not return to the top-level directory, it executes step (6). If it is the last one in the top-level directory, it executes step (9).

[0024] (8) If you return to the top-level directory, determine whether the file is the last one in the directory. If not, return to step (4);

[0025] (9) If you return to the top-level directory and determine that the file is the last one in the directory, save the verification file, output a success message, and exit.

[0026] Moreover, the specific steps of step 3 include:

[0027] (1) Load the version check module copied in step 2 in the directory where the marine software is located;

[0028] (2) The version check module reads the contents of the .LIST check file copied in step 2 in the current directory;

[0029] (3) The version check module reads the file location and MD5 code in a verification message;

[0030] (4) The version check module searches for the file location. If the file does not exist, the file loss record is incremented by one.

[0031] (5) If the file exists, the version check module calls the MD5 algorithm to generate an MD5 code and compares it with the MD5 code in the verification information. If the MD5 codes are inconsistent, the file error is incremented by one;

[0032] (6) The version check module determines whether it is the last piece of information in the .LIST verification file, and if not, repeats steps (3) to (6);

[0033] (7) The version check module determines whether it is the last .LIST file in the directory. If not, repeat steps (2) to (7);

[0034] (8) Output the verification result to complete the verification.

[0035] Moreover, after step 3, the method further includes the following steps:

[0036] Step 4: Find and replace the wrong or missing files according to the verification result output in step 3 to complete the software version correction.

[0037] In this embodiment, the missing and erroneous files are found according to the check result, and the version check of the software installed on the marine equipment is completed.

[0038] Advantages and beneficial effects of the present invention:

[0039] 1. The present invention proposes a system and method for checking the version of marine software using MD5 code, which can verify the correctness of the marine software and its supporting file versions, thereby achieving the effect of ensuring quality and reducing failures. The present invention is simple to operate, convenient to use, and occupies few resources, and can perform version checking on software in marine equipment. When the software is used, it is used in conjunction with a verification file generation module, a version checking module, and a verification file.

[0040] 2. The present invention proposes a system and method for data verification based on MD5 code, which can solve the problem of confusion in the actual ship software installation version and difficulty in verification, and speed up the staff's troubleshooting. In addition, the present invention can cover commonly used marine equipment operating systems (Windows, Linux, VxWorks), has wide applicability, and is easy to use. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a working principle diagram of the system of the present invention;

[0042] Figure 2 A flow chart of generating a verification file of the present invention;

[0043] Figure 3 It is a verification file content diagram of the present invention;

[0044] Figure 4 This is a diagram showing the successful operation result of the verification file generation module of the present invention;

[0045] Figure 5 is a version checking flow chart of the present invention;

[0046] Figure 6 This is a diagram of the file missing operation result of the present invention. DETAILED DESCRIPTION

[0047] The embodiments of the present invention are further described in detail below with reference to the accompanying drawings:

[0048] A system for checking the version of marine software using MD5 code, such as Figure 1 As shown, including:

[0049] Generate verification file module, used to generate verification files when the marine software generates version updates in the development environment;

[0050] The version checking module is used to check the software version using the verification file.

[0051] The system for checking the version of the marine software using the MD5 code also includes: a copy module for the verification file and the version verification module, which is used to copy the generated verification file and the version verification module to the directory where the actual ship software is installed.

[0052] A method for checking the version of marine software using MD5 code, such as Figures 2 to 6 As shown, the following steps are included:

[0053] Step 1: In the development environment, when the marine software generates a version update, a verification file is generated using a verification file generation module;

[0054] The specific steps of step 1 include:

[0055] (1) Depending on the system environment in which the marine software works, load the verification file generation module under the corresponding system in the directory where the marine software is located;

[0056] (2) Generate a verification file module that reads the current directory name and creates a blank verification file in the directory, named directory name.LIST;

[0057] (3) Generate a verification file module to read the file information structure in the current folder;

[0058] (4) Determine whether the current file information structure is a file or a directory. If the current file is a directory, the software enters the directory and repeats steps (3) to (4);

[0059] (5) When the current file is a file, the software reads the file content and calls the MD5 algorithm to generate an MD5 code, and stores the file MD5 code and the file relative path into a verification file;

[0060] (6) The marine software determines whether the file is the last one in the current directory based on the file information structure. If it is not the last one, repeat steps (4) to (6);

[0061] (7) The software determines whether the file is the last one in the current directory and whether it is the last one in the top-level directory. If it is not the last one in the top-level directory, it returns to the upper directory and determines whether it returns to the top-level directory. If it does not return to the top-level directory, it executes step (6). If it is the last one in the top-level directory, it executes step (9).

[0062] (8) If you return to the top-level directory, determine whether the file is the last one in the directory. If not, return to step (4);

[0063] (9) If you return to the top-level directory and determine that the file is the last one in the directory, save the verification file, output a success message, and exit.

[0064] Step 2: When checking the software version in the actual ship environment, copy the verification file and version verification module generated in step 1 to the directory where the actual ship software is installed;

[0065] Step 3: Use the version checking module to verify the software version;

[0066] The specific steps of step 3 include:

[0067] (1) Load the version check module copied in step 2 in the directory where the marine software is located;

[0068] (2) The version check module reads the contents of the .LIST check file copied in step 2 in the current directory;

[0069] (3) The version check module reads the file location and MD5 code in a verification message;

[0070] (4) The version check module searches for the file location. If the file does not exist, the file loss record is incremented by one.

[0071] (5) If the file exists, the version check module calls the MD5 algorithm to generate an MD5 code and compares it with the MD5 code in the verification information. If the MD5 codes are inconsistent, the file error is incremented by one;

[0072] (6) The version check module determines whether it is the last piece of information in the .LIST verification file, and if not, repeats steps (3) to (6);

[0073] (7) The version check module determines whether it is the last .LIST file in the directory. If not, repeat steps (2) to (7);

[0074] (8) Output the verification result to complete the verification.

[0075] Step 4: Find and replace the wrong or missing files according to the verification result output in step 3 to complete the software version correction;

[0076] Based on the inspection results, missing and erroneous files are found and the version check of the software installed on the marine equipment is completed.

[0077] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0078] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0079] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0080] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

Claims

1. A system for checking the version of marine software using MD5 code. Features: include: Generate verification file module, used to generate verification files when the marine software generates version updates in the development environment; A version checking module is used to check the software version using a verification file; The system for checking the version of marine software using MD5 code includes the following steps: Step 1: In the development environment, when the marine software generates a version update, a verification file is generated using a verification file generation module; Step 2: When checking the software version in the actual ship environment, copy the verification file and version verification module generated in step 1 to the directory where the actual ship software is installed; Step 3: Use the version checking module to verify the software version; The specific steps of step 1 include: (1) Depending on the system environment in which the marine software works, load the verification file generation module under the corresponding system in the directory where the marine software is located; (2) Generate a verification file module that reads the current directory name and creates a blank verification file in the directory, named directory name.LIST; (3) Generate a verification file module to read the file information structure in the current folder; (4) Determine whether the current file information structure is a file or a directory. If the current file is a directory, the software enters the directory and repeats steps (3) to (4); (5) When the current file is a file, the software reads the file content and calls the MD5 algorithm to generate an MD5 code, and stores the file MD5 code and the file relative path into a verification file; (6) The marine software determines whether the file is the last one in the current directory based on the file information structure. If it is not the last one, repeat steps (4) to (6); (7) The software determines whether the file is the last one in the current directory and whether it is the last one in the top-level directory. If it is not the last one in the top-level directory, it returns to the upper directory and determines whether it returns to the top-level directory. If it does not return to the top-level directory, it executes step (6). If it is the top-level directory, it executes step (8); (8) If you return to the top-level directory, determine whether the file is the last one in the directory. If not, return to step (4). If the file is the last one in the directory, save the verification file, output a success message, and exit.

2. A system for checking the version of marine software using MD5 code according to claim 1, Features: The system for checking the version of the marine software using the MD5 code also includes: a copy module for the verification file and the version verification module, which is used to copy the generated verification file and the version verification module to the directory where the actual ship software is installed.

3. A system for checking the version of marine software using MD5 code according to claim 1, Features: The specific steps of step 3 include: (1) Load the version check module copied in step 2 in the directory where the marine software is located; (2) The version check module reads the contents of the .LIST check file copied in step 2 in the current directory; (3) The version check module reads the file location and MD5 code in a verification message; (4) The version check module searches for the file location. If the file does not exist, the file loss record is incremented by one. (5) If the file exists, the version check module calls the MD5 algorithm to generate an MD5 code and compares it with the MD5 code in the verification information. If the MD5 codes are inconsistent, the file error is incremented by one; (6) The version check module determines whether it is the last piece of information in the .LIST verification file, and if not, repeats steps (3) to (6); (7) The version check module determines whether it is the last .LIST file in the directory. If not, repeat steps (2) to (7); (8) Output the verification result to complete the verification.

4. A system for checking the version of marine software using MD5 code according to claim 1, Features: After step 3, the method further includes the following steps: Step 4: Find and replace the wrong or missing files according to the verification result output in step 3 to complete the software version correction.

Citation Information

Patent Citations

  • Software version upgrading method and device

    CN113157307A