A Method and System for Inspection of Key Parameters of Motor Vehicles Based on Automatic Document Comparison

By constructing a key parameter file library and an intelligent inspection mechanism, and utilizing the WebSocket service module to achieve real-time communication and comparison, the problem of easy tampering with key parameters of the motor vehicle inspection system has been solved, thus improving the accuracy and reliability of the inspection results.

CN119739644BActive Publication Date: 2025-11-14TRAFFIC MANAGEMENT RES INST OF THE MIN OF PUBLIC SECURITY +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411792140.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-11-14
Estimated Expiration
2044-12-06

AI Technical Summary

Technical Problem

In existing technologies, key parameters of motor vehicle inspection systems are easily tampered with, affecting the reliability and accuracy of inspection results, and existing management measures are insufficient to effectively prevent tampering.

Method used

By constructing a key parameter file library, implementing an intelligent inspection mechanism, utilizing the WebSocket service module to achieve real-time communication and comparison, establishing key parameter inspection tasks, and generating inspection reports, the key parameters of the detection system are ensured to remain tampered with.

Benefits of technology

It enables comprehensive monitoring and effective protection of key parameters of the detection system, improves the accuracy and reliability of motor vehicle inspection results, simplifies inspection operations, and allows for real-time tracking of the inspection process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119739644B_ABST
    Figure CN119739644B_ABST
Patent Text Reader

Abstract

This invention relates to the field of motor vehicle inspection technology, specifically disclosing a method and system for inspecting key parameters of motor vehicle inspection based on automatic document comparison. The method includes: establishing WebSocket communication between the front-end and back-end of the testing system via a WebSocket service module; creating multiple key parameter libraries via a key parameter library management module; creating key parameter inspection tasks via a key parameter inspection task management module; executing key parameter inspection tasks via a key parameter inspection task execution module; generating execution records for key parameter inspection tasks during execution via a key parameter inspection task recording module; and generating an inspection report for key parameter inspection tasks based on the execution records via a key parameter inspection report printing module. This invention effectively prevents the tampering of key parameters in the inspection system, thereby improving the accuracy and reliability of motor vehicle inspection results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of motor vehicle inspection technology, and more specifically, to a method and system for inspecting key parameters of motor vehicle inspection based on automatic document comparison. Background Technology

[0002] Motor vehicle inspection is a crucial step in ensuring safe vehicle operation, and the accuracy and completeness of the key parameter files of the inspection system are essential to guaranteeing the authenticity of the test results. However, in practice, the tampering of key parameters of the inspection system occurs frequently, seriously affecting the reliability of the test results. These tamperings may stem from human factors, system vulnerabilities, or mismanagement. While existing technologies contain some management measures for key parameters of the inspection system, there are still issues that can be bypassed or ignored, making it impossible to effectively prevent tampering. Summary of the Invention

[0003] To address the aforementioned problems in existing technologies, this invention provides a method and system for inspecting key parameters of motor vehicle inspection based on automatic document comparison. By constructing a key parameter document library, implementing an intelligent inspection mechanism, and strengthening system security design, it achieves comprehensive monitoring and effective protection of key parameters of the inspection system, prevents parameters from being tampered with, and ensures the accuracy and impartiality of the inspection results.

[0004] As a first aspect of the present invention, a method for inspecting key parameters of motor vehicle inspection based on automatic document comparison is provided, the method comprising the following steps:

[0005] Step S1: Establish WebSocket communication between the front-end and back-end of the test system through the WebSocket service module for real-time push of inspection messages;

[0006] Step S2: Create multiple key parameter libraries through the key parameter library management module; each key parameter library includes the name of the vehicle inspection system to be inspected, the access path of the key parameter configuration file of the vehicle inspection system to be inspected, standard key parameter key-value pairs, the activation status of the key parameter library, and the remarks of the key parameter library.

[0007] Step S3: Create a key parameter inspection task through the key parameter inspection task management module; wherein, the information of the key parameter inspection task includes the name of the key parameter inspection task, the number of the key parameter library, the status of the key parameter inspection task, and the remarks of the key parameter inspection task.

[0008] Step S4: Execute the key parameter inspection task through the key parameter inspection task execution module;

[0009] Step S5: During the execution of the key parameter inspection task, the key parameter inspection task recording module generates the execution record of the key parameter inspection task; wherein, the execution record of the key parameter inspection task includes the name of the key parameter inspection task, the number of the key parameter inspection task, the inspection result, the start execution time and the end execution time;

[0010] Step S6: Generate an inspection report for the key parameter inspection task based on the execution record of the key parameter inspection task through the key parameter inspection report printing module.

[0011] Furthermore, the step of establishing WebSocket communication between the front-end and back-end of the test system via the WebSocket service module for real-time push of inspection messages also includes:

[0012] The key parameter configuration files of the test system and the vehicle inspection system to be inspected are deployed on actual equipment, and the test environment is consistent with the actual use environment to ensure that the test system operates normally.

[0013] The test system runs as a JAR package. After startup, the WebSocket service module runs automatically. The inspection message is in JSON format and includes message type, message content, message status, and sequence number.

[0014] Furthermore, the creation of multiple key parameter libraries through the key parameter library management module also includes:

[0015] The key parameter library management module allows for adding, deleting, modifying, and querying key parameters in the key parameter library.

[0016] Furthermore, the execution of the key parameter inspection task through the key parameter inspection task execution module also includes:

[0017] Verify whether a corresponding key parameter inspection task exists in the key parameter inspection task management module; if no corresponding key parameter inspection task exists, push a message that the key parameter inspection task does not exist to the front end of the test system through the WebSocket service module; if a corresponding key parameter inspection task exists, continue to verify whether a key parameter library number exists in the information of the key parameter inspection task.

[0018] If the key parameter library number is not found in the information of the key parameter inspection task, a message indicating that the key parameter library is empty is pushed to the front end of the test system through the WebSocket service module; if the key parameter library number is found in the information of the key parameter inspection task, all key parameter library numbers in the information of the key parameter inspection task are traversed item by item.

[0019] When the key parameter library number traversal begins, the WebSocket service module pushes a message to the front end of the test system to start checking the current key parameter library. Then, it obtains the access path of the current key parameter configuration file from the current key parameter library of the key parameter library management module, reads the current key parameter configuration file from the access path into the memory of the actual device, and compares the content of the current key parameter configuration file with the standard key parameter key-value pairs in the current key parameter library.

[0020] If the content of the current key parameter configuration file is inconsistent with the standard key parameter key-value pairs in the current key parameter library, then the current key parameter library inspection of the key parameter inspection task is unqualified; if they are consistent, then the current key parameter library inspection of the key parameter inspection task is qualified; the inspection results of the current key parameter library of the key parameter inspection task are pushed to the front end of the test system in real time through the WebSocket service module for display, and the inspection results are saved to the database;

[0021] Once all key parameter libraries for the key parameter inspection task have been inspected, the overall inspection results of the key parameter inspection task are pushed to the front end of the test system for display through the WebSocket service module, and updated in the database.

[0022] Furthermore, during the execution of the key parameter inspection task, the execution record of the key parameter inspection task generated by the key parameter inspection task recording module further includes:

[0023] After each key parameter library of this key parameter inspection task is completed, the key parameter library number, inspection result, inspection information, inspection start time and inspection end time of each sub-task can be viewed in the key parameter inspection task record module.

[0024] After all key parameter libraries for this key parameter inspection task have been inspected, the task status, inspection results, execution start time, and execution end time can be viewed in the key parameter inspection task record module.

[0025] Furthermore, the step of generating the inspection report for the key parameter inspection task through the key parameter inspection report printing module based on the execution record of the key parameter inspection task also includes:

[0026] The inspection report of the key parameter inspection task includes the task name, task number, inspection result, start time, end time and record number. The inspection content of each sub-task in the key parameter inspection task includes parameter name, system name, access path, key-value pair and whether it passed.

[0027] As a second aspect of the present invention, a vehicle inspection key parameter inspection system based on automatic document comparison is provided. The vehicle inspection key parameter inspection system based on automatic document comparison includes a test system and a key parameter configuration file of the vehicle inspection system to be inspected. The deployment of the key parameter configuration file of the test system and the vehicle inspection system to be inspected is completed on actual equipment. The test system includes a WebSocket service module, a key parameter library management module, a key parameter inspection task management module, a key parameter inspection task execution module, a key parameter inspection task recording module, and a key parameter inspection report printing module.

[0028] The WebSocket service module is used to establish WebSocket communication between the front-end and back-end of the test system for real-time push of inspection messages;

[0029] The key parameter library management module is used to create multiple key parameter libraries; each key parameter library includes the name of the vehicle inspection system to be inspected, the access path of the key parameter configuration file of the vehicle inspection system to be inspected, standard key parameter key-value pairs, the activation status of the key parameter library, and the remarks of the key parameter library.

[0030] The key parameter inspection task management module is used to create key parameter inspection tasks; wherein, the information of the key parameter inspection task includes the name of the key parameter inspection task, the number of the key parameter library, the status of the key parameter inspection task, and the remarks of the key parameter inspection task.

[0031] The key parameter inspection task execution module is used to execute the key parameter inspection task.

[0032] The key parameter inspection task recording module is used to generate an execution record of the key parameter inspection task during the execution of the key parameter inspection task; wherein, the execution record of the key parameter inspection task includes the name of the key parameter inspection task, the number of the key parameter inspection task, the inspection result, the start execution time and the end execution time;

[0033] The key parameter inspection report printing module is used to generate an inspection report for the key parameter inspection task based on the execution record of the key parameter inspection task.

[0034] The present invention provides a method for inspecting key parameters of motor vehicle inspection based on automatic file comparison, which has the following advantages: by configuring a key parameter library, key parameter information of various types of detection systems can be collected; one parameter inspection task supports the inspection of multiple parameter files, simplifying the operation of inspectors; with the help of WebSocket, the inspection process is visible in real time, which is convenient for inspectors to track in real time; it can effectively prevent the key parameters of the detection system from being tampered with, thereby improving the accuracy and reliability of motor vehicle inspection results. Attached Figure Description

[0035] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used together with the following detailed description to explain the invention, but do not constitute a limitation thereof.

[0036] Figure 1 The flowchart shows the inspection method for key parameters of motor vehicle inspection based on automatic document comparison provided by the present invention.

[0037] Figure 2 A flowchart for creating a parameter library provided for this invention.

[0038] Figure 3 The flowchart for creating parameter inspection tasks provided by this invention.

[0039] Figure 4 The flowchart for the execution parameter inspection task provided by the present invention.

[0040] Figure 5 This is a template image of the parameter inspection report provided by the present invention.

[0041] Figure 6 The structural diagram of the vehicle inspection key parameter inspection system based on automatic document comparison provided by the present invention. Detailed Implementation

[0042] To further illustrate the technical means and effects adopted by the present invention to achieve its intended purpose, the following, in conjunction with the accompanying drawings and preferred embodiments, details the specific implementation, structure, features, and effects of a method for inspecting key parameters of motor vehicle inspection based on automatic document comparison, as proposed by the present invention. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the protection scope of the present invention.

[0043] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of the invention described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0044] This embodiment provides a method for inspecting key parameters of motor vehicle inspection based on automatic document comparison, such as... Figure 1 As shown, the method for inspecting key parameters of motor vehicle inspection based on automatic document comparison includes the following steps:

[0045] Step S1: Establish WebSocket communication between the front-end and back-end of the test system through the WebSocket service module for real-time push of inspection messages;

[0046] Preferably, the step of establishing WebSocket communication between the front-end and back-end of the test system via the WebSocket service module for real-time push of inspection messages further includes:

[0047] The key parameter configuration files of the test system and the vehicle inspection system to be inspected are deployed on actual equipment, and the test environment is consistent with the actual use environment to ensure that the test system operates normally.

[0048] The test system runs as a JAR package. After startup, the WebSocket service module runs automatically. The inspection message is in JSON format and includes message type, message content, message status, and sequence number.

[0049] In practice, when the front-end of the test system connects to the WebSocket service module, the SID passed by the front-end must be the current user's ID, and the user ID is registered on the server as the SID. In this way, the back-end can push messages related to different users, achieving the effect of displaying information in real time while ensuring that multiple users do not affect each other.

[0050] In practice, the sequence number in the main inspection record must be empty, while the sequence number in the sub-inspection record must be the entered sequence number.

[0051] Step S2: Create multiple key parameter libraries through the key parameter library management module; each key parameter library includes the name of the vehicle inspection system to be inspected, the access path of the key parameter configuration file of the vehicle inspection system to be inspected, standard key parameter key-value pairs, the activation status of the key parameter library, and the remarks of the key parameter library.

[0052] Preferably, the creation of multiple key parameter libraries through the key parameter library management module further includes:

[0053] The key parameter library management module allows for adding, deleting, modifying, and querying key parameters in the key parameter library.

[0054] In practice, users must have permission to access the key parameter library management module.

[0055] In specific implementation, such as Figure 2 As shown, in the key parameter library management module, click the "Add" button to open the Add Key Parameter window. In the window, enter the name of the vehicle inspection system to be tested, the access path of the key parameter configuration file of the vehicle inspection system to be tested, the standard key parameter key-value pairs, and the remarks of the key parameter library. After selecting the status of the key parameter library, click "OK" to complete the creation of the key parameter library. The key parameter library management module will check whether the name of the vehicle inspection system to be tested is duplicated. If it is duplicated, it cannot be created; otherwise, it is created successfully.

[0056] It should be noted that the name of the vehicle inspection system to be inspected, the access path of the key parameter configuration file of the vehicle inspection system to be inspected, the standard key parameter key-value pairs, the activation status of the key parameter library, and the remarks of the key parameter library must be entered or selected according to the content format required by the test system. Among them, the access path must be the complete path of the file that actually exists in the current actual equipment.

[0057] Step S3: Create a key parameter inspection task through the key parameter inspection task management module; wherein, the information of the key parameter inspection task includes the name of the key parameter inspection task, the number of the key parameter library, the status of the key parameter inspection task, and the remarks of the key parameter inspection task.

[0058] Preferably, the key parameter inspection task management module allows for the preset of commonly used parameter inspection tasks, or the direct execution of pre-set parameter inspection tasks. Furthermore, the current user must have permission to access the key parameter inspection task management module.

[0059] In specific implementation, such as Figure 3As shown, in the key parameter inspection task management module, click the "Add" button to open the Add Parameter Inspection Task window. In the window, enter the name of the parameter inspection task, select the key parameter library related to the parameter inspection task, select the activation status of the parameter inspection task, enter the remarks information of the parameter inspection task, and click "OK" to complete the creation of the parameter inspection task. The system will check whether the task name is duplicated. If it is duplicated, it cannot be created.

[0060] It should be noted that the parameter inspection task information includes the task name, key parameter library, task status, and remarks, and must be entered or selected according to the content format required by the testing system. The task name cannot be duplicated, and the parameter library sequence cannot be empty.

[0061] Step S4: Execute the key parameter inspection task through the key parameter inspection task execution module;

[0062] Preferably, such as Figure 4 As shown, the execution of the key parameter inspection task through the key parameter inspection task execution module also includes:

[0063] After identifying the vehicle inspection system to be inspected, select the inspection task to be executed in the key parameter inspection task management module of the test system, and click the "Execute" button to bring up the task execution window, starting the key parameter inspection task execution module. The task execution window displays information such as the current task name, task content list, and task execution progress. The task content list includes the name of the vehicle inspection system to be inspected, standard key parameter key-value pairs, comparison information, and task status, and automatically calls the parameter inspection task execution interface of the key parameter inspection task execution module. The execution process of the key parameter inspection task execution module is as follows:

[0064] The parameter inspection task execution interface verifies whether a corresponding key parameter inspection task exists in the key parameter inspection task management module; if no corresponding key parameter inspection task exists, a message indicating that the key parameter inspection task does not exist is pushed to the front end of the test system through the WebSocket service module; if a corresponding key parameter inspection task exists, the key parameter library number is further verified in the information of the key parameter inspection task.

[0065] If the key parameter library number is not found in the information of the key parameter inspection task, a message indicating that the key parameter library is empty is pushed to the front end of the test system through the WebSocket service module; if the key parameter library number is found in the information of the key parameter inspection task, all key parameter library numbers in the information of the key parameter inspection task are traversed item by item.

[0066] When the key parameter library number traversal begins, the WebSocket service module pushes a message to the front end of the test system to start checking the current key parameter library. Then, it obtains the access path of the current key parameter configuration file from the current key parameter library of the key parameter library management module, reads the current key parameter configuration file from the access path into the memory of the actual device, and compares the content of the current key parameter configuration file with the standard key parameter key-value pairs in the current key parameter library.

[0067] It should be noted that the current key parameter configuration file is read line by line. If a comment symbol is present at the beginning of a non-empty position in the current line, the next line is read. Otherwise, the content of this line is compared with the standard key parameter values, and the existence of each parameter, whether the parameter value is consistent, and whether there are multiple identical parameters are recorded. After the comparison of the entire current key parameter configuration file is completed, the parameter is judged based on the number of times it appears. If the number of occurrences is 0, it means that the parameter is missing. If the number of occurrences is greater than 1, it means that the parameter is duplicated. Only when the number of occurrences is equal to 1, it means that the parameter exists normally. Then, it is checked whether the parameter value in the current key parameter configuration file is consistent with the standard key parameter value. If they are inconsistent, the parameter inspection is unqualified. If they are consistent, the parameter inspection is qualified.

[0068] If the content of the current key parameter configuration file is inconsistent with the standard key parameter key-value pairs in the current key parameter library, then the current key parameter library inspection of the key parameter inspection task is unqualified; if they are consistent, then the current key parameter library inspection of the key parameter inspection task is qualified; the inspection results of the current key parameter library of the key parameter inspection task are pushed to the front end of the test system in real time through the WebSocket service module for display, and the inspection results are saved to the database;

[0069] Once all key parameter libraries for the key parameter inspection task have been inspected, the overall inspection results of the key parameter inspection task are pushed to the front end of the test system for display through the WebSocket service module, and updated in the database.

[0070] In practice, the parameter inspection task to be executed needs to be selected before clicking execute. The front end needs to pass the ID of the selected parameter inspection task as a parameter to the parameter inspection task execution interface in order to call the parameter inspection task execution interface of the key parameter inspection task execution module.

[0071] Step S5: During the execution of the key parameter inspection task, the key parameter inspection task recording module generates the execution record of the key parameter inspection task; wherein, the execution record of the key parameter inspection task includes the name of the key parameter inspection task, the number of the key parameter inspection task, the inspection result, the start execution time and the end execution time;

[0072] Preferably, the step of generating the execution record of the key parameter inspection task through the key parameter inspection task recording module during the execution of the key parameter inspection task further includes:

[0073] After each key parameter library of this key parameter inspection task is completed, the key parameter library number, inspection result, inspection information, inspection start time and inspection end time of each sub-task can be viewed in the key parameter inspection task record module.

[0074] After all key parameter libraries for this key parameter inspection task have been inspected, the task status, inspection results, execution start time, and execution end time can be viewed in the key parameter inspection task record module.

[0075] In practice, only inspection tasks successfully started in the critical parameter inspection task execution module will generate parameter inspection records. After a task starts successfully, the task name, task status, and task execution start time can be viewed in the parameter inspection task record module. After each critical parameter library in the task sequence is inspected, the critical parameter library number, inspection result, inspection information, inspection start time, and inspection end time of the subtask can be viewed in the parameter inspection task record module. After the task is completed, the task status, inspection result, and execution end time can be viewed in the parameter inspection task record module.

[0076] It should be noted that the task name, inspection result, status, execution start time, and execution end time are all generated during the execution of the main inspection process by the parameter inspection task execution module; the key parameter number, inspection result, inspection information, inspection start time, and inspection end time in the task content list are all generated during the execution of the inspection sub-process by the parameter inspection task execution module.

[0077] Step S6: Generate an inspection report for the key parameter inspection task based on the execution record of the key parameter inspection task through the key parameter inspection report printing module.

[0078] It should be noted that the inspection status can be previewed on the web page, or the inspection status can be exported to an Excel file using the relevant POI JAR file as an electronic inspection report, which is convenient for generating a paper report.

[0079] Preferably, the step of generating the inspection report for the key parameter inspection task through the key parameter inspection report printing module based on the execution record of the key parameter inspection task further includes:

[0080] like Figure 5 As shown, the inspection report of the key parameter inspection task includes the task name, task number, inspection result, start time, end time and record number. The inspection content of each subtask in the key parameter inspection task includes parameter name, system name, access path, key-value pair and whether it passed.

[0081] In practice, the ID of the parameter inspection record is passed as a parameter to the key parameter inspection report printing module to generate the inspection report. Exporting the report requires a preset Excel template integrated into the system JAR package. This template cannot be edited arbitrarily; after adjusting the template, the JAR package needs to be regenerated for the new template to take effect.

[0082] As another embodiment of the present invention, a vehicle inspection key parameter inspection system based on automatic document comparison is provided, such as... Figure 6 As shown, the vehicle inspection key parameter inspection system based on automatic file comparison includes a test system 1 and a key parameter configuration file 2 for the vehicle inspection system to be inspected. The test system 1 and the key parameter configuration file 2 for the vehicle inspection system to be inspected are deployed on actual equipment. The test system 1 includes a WebSocket service module 11, a key parameter library management module 12, a key parameter inspection task management module 13, a key parameter inspection task execution module 14, a key parameter inspection task recording module 15, and a key parameter inspection report printing module 16.

[0083] The WebSocket service module 11 is used to establish WebSocket communication between the front end and the back end of the test system, and to push inspection messages in real time.

[0084] The key parameter library management module 12 is used to create multiple key parameter libraries; wherein, each key parameter library includes the name of the vehicle inspection system to be inspected, the access path of the key parameter configuration file of the vehicle inspection system to be inspected, standard key parameter key-value pairs, the activation status of the key parameter library, and the remarks of the key parameter library.

[0085] The key parameter inspection task management module 13 is used to create key parameter inspection tasks; wherein, the information of the key parameter inspection task includes the name of the key parameter inspection task, the number of the key parameter library, the status of the key parameter inspection task, and the remarks of the key parameter inspection task.

[0086] The key parameter inspection task execution module 14 is used to execute the key parameter inspection task.

[0087] The key parameter inspection task recording module 15 is used to generate an execution record of the key parameter inspection task during the execution of the key parameter inspection task; wherein, the execution record of the key parameter inspection task includes the name of the key parameter inspection task, the number of the key parameter inspection task, the inspection result, the start execution time and the end execution time.

[0088] The key parameter inspection report printing module 16 is used to generate an inspection report for the key parameter inspection task based on the execution record of the key parameter inspection task.

[0089] In this embodiment of the invention, (1) Preset inspection tasks: Based on the parameter configuration methods of different manufacturers and different parts of the detection system, different inspection tasks are set. Each inspection task uses a different name to distinguish different detection systems. In order to simplify the inspection operation, the inspection content sequence can contain multiple key parameter libraries. The system will check the parameters in the parameter library in sequence. (2) Confirm the inspection target system: Determine the detection system to be tested for parameters. (3) Select inspection tasks: Select the preset inspection tasks according to the target system. Alternatively, a new inspection task can be created temporarily. The system interface displays information such as task name, task content list, task status, and execution result. (4) Execute the inspection task: The system will verify whether the inspection task and content sequence exist. If they do not exist, the system will execute the inspection task. The system will push the results to the corresponding front end via WebSocket for display. Then, the system will iterate through each key parameter library in the inspection content sequence, read the parameter configuration information currently used by the target detection system into the system memory according to the parameter file storage location of the key parameter library, and compare the parameter values ​​with the parameters in the parameter key-value pairs in the parameter library line by line. If there are any abnormal situations such as missing parameters, different parameter values, or duplicate parameters, the system backend will push the warning information to the front end page in real time via WebSocket for display. (5) Output the inspection results. After all the inspection content sequences are checked, the system will determine whether the inspection results are qualified based on whether there are any errors or abnormal information, and push the result information to the front end page in real time via WebSocket for display.

[0090] The vehicle inspection key parameter inspection system based on automatic file comparison provided in this embodiment of the invention is tested through a test system 1 using a system parameter configuration file 2 to be inspected. Specifically, a WebSocket service module 11 establishes WebSocket communication between the front-end and back-end of the test system 1 for real-time push of inspection messages and parameter collection. A key parameter library is established through a key parameter library management module 12, and inspection tasks are created in the key parameter inspection task management module 13 to implement an intelligent inspection mechanism. Anomaly information is output through the inspection results executed in the key parameter inspection task execution module 14. Finally, an inspection report is generated in the key parameter inspection report printing module 16. This test system 1 can meet the testing requirements of the system parameter configuration file 2 to be inspected, effectively manage and verify the key parameters of the inspection system, prevent tampering, thereby improving the accuracy and reliability of vehicle inspection results. It has a wide range of applications and is safe and reliable.

[0091] The vehicle inspection key parameter inspection system based on automatic file comparison provided in this invention collects key parameter files of the inspection systems of various inspection software manufacturers and files them to form a key parameter library. By using the automated operation of the system, it reads the real-time system parameter files of the target inspection system and compares them with the parameter files in the filed key parameter library. It provides real-time warnings for parameter value changes, missing parameters, or duplicate parameters, thereby realizing automatic parameter inspection of the inspection systems of inspection software manufacturers.

[0092] The specific operation process of the vehicle inspection key parameter inspection system based on automatic document comparison provided in this embodiment of the invention includes:

[0093] (1) After the test system is running normally, a WebSocket server is automatically created and its SID is recorded after being connected to the front-end page. When the test user enters the test user information on the login page of the test system, if the wrong username, password or verification code is entered, the system will give the corresponding prompt and the user will be unable to log in. After logging into the system, the page establishes a WebSocket connection with the system backend and sends the current user ID as the SID to the backend for registration.

[0094] (2) Click the parameter inspection management button on the homepage of the test system to enter the key parameter library module;

[0095] (3) In the key parameter library module of the test system, click the "Add" button to open the Add Key Parameter window. Enter the system name, access path, parameter key-value pair, and remarks in the window. After selecting the parameter storage type and status, click "OK" to complete the creation of the key parameter library information. The system will check whether the system name is duplicated. If it is duplicated, it cannot be created. If it is not duplicated, it will be created successfully.

[0096] (4) In the key parameter library module of the test system, click the "Edit" button, enter the new system name, access path, parameter key-value pair, and remarks in the editing window, and click "OK" to submit the modification. The system will check whether the system name, access path, and parameter key-value pair information are duplicated. If they are duplicated, the modification cannot be made. If they are not duplicated, the editing is successful.

[0097] (5) In the key parameter library module of the test system, click the "Delete" button to pop up the confirmation deletion dialog box. Click the "OK" button and the system will check whether this parameter library has been configured in the parameter inspection task. If so, it will prompt that it has been used and cannot be deleted. Otherwise, invalid parameter library information can be cleaned up.

[0098] (6) Click the parameter inspection management button on the homepage of the test system to enter the parameter inspection task module. In this module, you can preset commonly used parameter inspection tasks or directly execute the parameter inspection tasks that have been set.

[0099] (7) In the parameter inspection task module of the test system, click the "Add" button to open the Add Parameter Inspection Task window. Enter the task name in the window, select the key parameter library related to the task, select the task status, enter the remarks information, and click "OK" to complete the creation of the parameter inspection task. The system will check whether the task name is duplicated. If it is duplicated, it cannot be created.

[0100] (8) In the parameter inspection task module of the test system, click the "Modify" button, adjust the inspection task content in the modification window, click "OK" to submit, the system will check whether the task name is duplicated. If it is duplicated, it cannot be modified. If it is not duplicated, the modification is completed.

[0101] (9) In the parameter inspection task module of the test system, click the "Delete" button to pop up the confirmation deletion dialog box, and click the "OK" button to clean up the selected inspection task information.

[0102] (10) After determining the target detection system to be inspected, select the inspection task to be executed in the parameter inspection task module of the test system, click the "execute" button to pop up the task execution window, the window displays the current task name, task content list, task execution progress and other information. The task content list includes system name, storage type, parameter key-value pairs, task status and other information, and automatically calls the parameter inspection task execution interface in the background.

[0103] (11) The parameter inspection task execution interface first checks whether the corresponding inspection task information exists. If it does not exist, it pushes a message that the inspection task information does not exist to the front end via WebSocket. If it exists, it continues to check whether the content sequence of the inspection task information is empty. If it is empty, it also pushes a message that the content sequence is empty to the front end via WebSocket. If it is not empty, the interface will traverse the key parameter library in the task content sequence item by item. When the traversal starts, it first pushes a message to the front end via WebSocket to start checking the current key parameter library. Then, it obtains the parameter file storage path from the key parameter library information, uses data stream to read the parameter configuration file content from this path into memory, and reads it line by line. If there is a comment symbol at the beginning of the line, it reads the next line. Otherwise, it compares the content of this line with the key-value pairs in the parameter library information and records whether each parameter exists, whether the parameter value is consistent, and whether there are multiple identical parameters. After the entire file comparison is completed, the parameters are judged based on their occurrence count. If the occurrence count is 0, the parameter is missing; if the occurrence count is greater than 1, the parameter is duplicated; only if the occurrence count is equal to 1, the parameter is considered to exist normally. Then, the parameter value is checked to see if it matches the value in the parameter library information. If they do not match, the parameter fails the inspection. The interface pushes the comparison results to the front end in real time via WebSocket for display and saves the comparison information to the database. After all parameter libraries in the task sequence have been inspected, the overall inspection results are displayed at the top of the window and updated in the database.

[0104] (12) Click the parameter inspection management button on the homepage of the test system to enter the parameter inspection record module. This module displays the records generated each time a parameter inspection task is executed, mainly showing the task name, inspection result, status, execution start time and execution end time, etc. Clicking the triangle in front of the record can also expand to view the information of each item in the task content list, including the key parameter number, inspection result, inspection information, inspection start time and inspection end time, etc.

[0105] (13) Click the parameter inspection management button on the homepage of the test system to enter the parameter inspection record module. Click "Export Report". The system will export the relevant information of the task to the Excel form according to the pre-set Excel template.

[0106] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any simple modifications, equivalent changes, and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.

Claims

1. A method for inspecting key parameters of motor vehicle inspection based on automatic document comparison, characterized in that, The method for inspecting key parameters of motor vehicle inspection based on automatic file comparison includes the following steps: Step S1: Establish WebSocket communication between the front-end and back-end of the test system through the WebSocket service module for real-time push of inspection messages; Step S2: Create multiple key parameter libraries through the key parameter library management module; each key parameter library includes the name of the vehicle inspection system to be inspected, the access path of the key parameter configuration file of the vehicle inspection system to be inspected, standard key parameter key-value pairs, the activation status of the key parameter library, and the remarks of the key parameter library. Step S3: Create a key parameter inspection task through the key parameter inspection task management module; wherein, the information of the key parameter inspection task includes the name of the key parameter inspection task, the number of the key parameter library, the status of the key parameter inspection task, and the remarks of the key parameter inspection task. Step S4: Execute the key parameter inspection task through the key parameter inspection task execution module; Step S5: During the execution of the key parameter inspection task, the key parameter inspection task recording module generates the execution record of the key parameter inspection task; wherein, the execution record of the key parameter inspection task includes the name of the key parameter inspection task, the number of the key parameter inspection task, the inspection result, the start execution time and the end execution time; Step S6: Generate an inspection report for the key parameter inspection task based on the execution record of the key parameter inspection task through the key parameter inspection report printing module; The execution of the key parameter inspection task through the key parameter inspection task execution module further includes: Verify whether a corresponding key parameter inspection task exists in the key parameter inspection task management module; if no corresponding key parameter inspection task exists, push a message that the key parameter inspection task does not exist to the front end of the test system through the WebSocket service module; if a corresponding key parameter inspection task exists, continue to verify whether a key parameter library number exists in the information of the key parameter inspection task. If the key parameter library number is not found in the information of the key parameter inspection task, a message indicating that the key parameter library is empty is pushed to the front end of the test system through the WebSocket service module; if the key parameter library number is found in the information of the key parameter inspection task, all key parameter library numbers in the information of the key parameter inspection task are traversed item by item. When the key parameter library number traversal begins, the WebSocket service module pushes a message to the front end of the test system to start checking the current key parameter library. Then, it obtains the access path of the current key parameter configuration file from the current key parameter library of the key parameter library management module, reads the current key parameter configuration file from the access path into the memory of the actual device, and compares the content of the current key parameter configuration file with the standard key parameter key-value pairs in the current key parameter library. If the content of the current key parameter configuration file is inconsistent with the standard key parameter key-value pairs in the current key parameter library, then the current key parameter library inspection of the key parameter inspection task is unqualified; if they are consistent, then the current key parameter library inspection of the key parameter inspection task is qualified; the inspection results of the current key parameter library of the key parameter inspection task are pushed to the front end of the test system in real time through the WebSocket service module for display, and the inspection results are saved to the database; Once all key parameter libraries for the key parameter inspection task have been inspected, the overall inspection results of the key parameter inspection task are pushed to the front end of the test system for display through the WebSocket service module, and updated in the database.

2. The method for inspecting key parameters of motor vehicle inspection based on automatic document comparison according to claim 1, characterized in that, The method of establishing WebSocket communication between the front-end and back-end of the test system via the WebSocket service module for real-time push of inspection messages also includes: The key parameter configuration files of the test system and the vehicle inspection system to be inspected are deployed on actual equipment, and the test environment is consistent with the actual use environment to ensure that the test system operates normally. The test system runs as a JAR package. After startup, the WebSocket service module runs automatically. The inspection message is in JSON format and includes message type, message content, message status, and sequence number.

3. The method for inspecting key parameters of motor vehicle inspection based on automatic document comparison according to claim 1, characterized in that, The creation of multiple key parameter libraries through the key parameter library management module also includes: The key parameter library management module allows for the addition, deletion, modification, and querying of key parameters within the key parameter library.

4. The method for inspecting key parameters of motor vehicle inspection based on automatic document comparison according to claim 1, characterized in that, The execution record of the key parameter inspection task, generated by the key parameter inspection task recording module during the execution of the key parameter inspection task, also includes: After each key parameter library of this key parameter inspection task is completed, the key parameter library number, inspection result, inspection information, inspection start time and inspection end time of each sub-task can be viewed in the key parameter inspection task record module. After all key parameter libraries for this key parameter inspection task have been inspected, the task status, inspection results, execution start time, and execution end time can be viewed in the key parameter inspection task record module.

5. The method for inspecting key parameters of motor vehicle inspection based on automatic document comparison according to claim 1, characterized in that, The step of generating the inspection report for the key parameter inspection task through the key parameter inspection report printing module based on the execution record of the key parameter inspection task also includes: The inspection report of the key parameter inspection task includes the task name, task number, inspection result, start time, end time and record number. The inspection content of each sub-task in the key parameter inspection task includes parameter name, system name, access path, key-value pair and whether it passed.

6. A vehicle inspection key parameter inspection system based on automatic document comparison, used to implement the vehicle inspection key parameter inspection method based on automatic document comparison as described in any one of claims 1 to 5, characterized in that, The vehicle inspection key parameter inspection system based on automatic file comparison includes a test system (1) and a key parameter configuration file (2) of the vehicle inspection system to be inspected. The test system (1) and the key parameter configuration file (2) of the vehicle inspection system to be inspected are deployed on actual equipment. The test system (1) includes a WebSocket service module (11), a key parameter library management module (12), a key parameter inspection task management module (13), a key parameter inspection task execution module (14), a key parameter inspection task recording module (15), and a key parameter inspection report printing module (16). The WebSocket service module (11) is used to establish WebSocket communication between the front end and the back end of the test system, and to push inspection messages in real time. The key parameter library management module (12) is used to create multiple key parameter libraries; wherein each key parameter library includes the name of the vehicle inspection system to be inspected, the access path of the key parameter configuration file of the vehicle inspection system to be inspected, standard key parameter key-value pairs, the activation status of the key parameter library, and the remarks of the key parameter library. The key parameter inspection task management module (13) is used to create key parameter inspection tasks; wherein, the information of the key parameter inspection task includes the name of the key parameter inspection task, the number of the key parameter library, the status of the key parameter inspection task, and the remarks of the key parameter inspection task. The key parameter inspection task execution module (14) is used to execute the key parameter inspection task. The key parameter inspection task recording module (15) is used to generate an execution record of the key parameter inspection task during the execution of the key parameter inspection task; wherein, the execution record of the key parameter inspection task includes the name of the key parameter inspection task, the number of the key parameter inspection task, the inspection result, the start execution time and the end execution time; The key parameter inspection report printing module (16) is used to generate an inspection report for the key parameter inspection task based on the execution record of the key parameter inspection task.

Citation Information

Patent Citations

  • Knowledge base-based server automatic inspection system and method

    CN110019203A

  • Comprehensive information system for running safety inspection of auxiliary driving automobile

    CN118365280A