Motor vehicle inspection key parameter inspection method and system based on automatic file comparison
By building a key parameter file library and implementing an intelligent inspection mechanism, the problem that key parameters of the motor vehicle inspection system are easily tampered with is solved, and comprehensive monitoring and protection of key parameters of the inspection system is achieved, improving the accuracy and reliability of the inspection results.
Patent Information
- Application Number
- CN202411792140.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2044-12-06
AI Technical Summary
In the prior art, the key parameters of the motor vehicle detection system are easily tampered with, resulting in the reliability of the detection results being affected, and existing management measures are difficult to effectively prevent tampering.
The inspection methods and systems of key parameters of motor vehicle inspection based on automatic file comparison are adopted. By building a key parameter file library, implementing intelligent inspection mechanisms and strengthening system safety design, the key parameters of the detection system are monitored and protected in real time to prevent parameter tampering.
Effectively prevent key parameters of the inspection system from being tampered with, improve the accuracy and reliability of motor vehicle inspection results, and ensure the fairness of inspection results.
Smart Images

Figure CN119739644A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of motor vehicle inspection technology, and more specifically, to a motor vehicle inspection key parameter inspection method based on automatic file comparison and a motor vehicle inspection key parameter inspection system based on automatic file comparison. Background Art
[0002] Motor vehicle inspection is an important part of ensuring safe driving of vehicles, and the accuracy and integrity of the key parameter files of the inspection system are crucial to ensuring the authenticity of the inspection results. However, in actual operation, tampering of key parameters of the inspection system occurs from time to time, which seriously affects the reliability of the inspection results. These tampering may be caused by human factors, system vulnerabilities or poor management. In the prior art, although there are some management measures for the key parameters of the inspection system, there are still problems that are easy to be bypassed or ignored, and it is impossible to effectively prevent the occurrence of tampering. Summary of the invention
[0003] In view of the above-mentioned problems existing in the prior art, the present invention provides a method and system for inspecting key parameters of motor vehicle inspection based on automatic file comparison. By building a key parameter file library, implementing an intelligent inspection mechanism, strengthening system security design and other measures, comprehensive monitoring and effective protection of key parameters of the detection system are achieved to prevent parameters from being tampered with, thereby ensuring the accuracy and fairness of the detection results.
[0004] As a first aspect of the present invention, a method for inspecting key parameters of motor vehicle inspection based on automatic file comparison is provided, and the method for inspecting key parameters of motor vehicle inspection based on automatic file comparison comprises the following steps: Step S1: Establishing 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: creating multiple key parameter libraries through the key parameter library management module; wherein each key parameter library includes the name of the motor vehicle detection system to be inspected, the access path of the key parameter configuration file of the motor vehicle detection 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; Step S3: creating 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: executing 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 an 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 of the key parameter inspection task according to the execution record of the key parameter inspection task through a key parameter inspection report printing module.
[0005] Furthermore, 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 inspection messages, and further includes: Complete the deployment of the key parameter configuration files of the test system and the motor vehicle detection system to be inspected on the actual equipment, and keep the test environment consistent with the actual use environment to ensure the normal operation of the test system; The test system is run in the form of a JAR package. After startup, the WebSocket service module runs automatically. The inspection message is in JSON format, including message type, message content, message status and sequence number.
[0006] Furthermore, the step of creating multiple key parameter libraries through the key parameter library management module further includes: The key parameters in the key parameter library are added, deleted, modified and checked through the key parameter library management module.
[0007] Furthermore, the performing of the key parameter inspection task by the key parameter inspection task execution module further includes: Verify whether there is a corresponding key parameter inspection task in the key parameter inspection task management module; if there is no corresponding key parameter inspection task, 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 there is a corresponding key parameter inspection task, continue to verify whether there is a key parameter library number in the information of the key parameter inspection task; If the key parameter library number does not exist in the information of the key parameter inspection task, a message 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 exists 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 starts, the WebSocket service module pushes a message to the front end of the test system to start checking the current key parameter library, and then 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 pair in the current key parameter library, the current key parameter library inspection of the key parameter inspection task fails; if they are consistent, the current key parameter library inspection of the key parameter inspection task passes; the inspection result of the current key parameter library of the key parameter inspection task is pushed to the front end of the test system in real time through the WebSocket service module for display, and the inspection result is saved in the database; When all key parameter libraries of the key parameter inspection task have been inspected, the overall inspection result of the key parameter inspection task is pushed to the front end of the test system for display through the WebSocket service module, and updated to the database.
[0008] 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: After the inspection of each key parameter library of the key parameter inspection task is completed, the key parameter library number, inspection result, inspection information, inspection start time and inspection end time of each subtask can be viewed in the key parameter inspection task recording module; After all key parameter libraries of the 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 recording module.
[0009] Furthermore, the key parameter inspection report printing module generates the inspection report of the key parameter inspection task according to the execution record of the key parameter inspection task, and further 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, wherein the inspection content of each subtask in the key parameter inspection task includes the parameter name, system name, access path, key-value pair and whether it passed.
[0010] As a second aspect of the present invention, a motor vehicle inspection key parameter inspection system based on automatic file comparison is provided, the motor vehicle inspection key parameter inspection system based on automatic file comparison includes a test system and a key parameter configuration file of the motor vehicle inspection system to be inspected, and the deployment of the test system and the key parameter configuration file of the motor vehicle inspection system to be inspected is completed on an actual device, and 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; The WebSocket service module is used to establish WebSocket communication between the front-end and back-end of the test system, and to push inspection messages in real time; The key parameter library management module is used to create multiple key parameter libraries; each key parameter library includes the name of the motor vehicle detection system to be inspected, the access path of the key parameter configuration file of the motor vehicle detection system to be inspected, the standard key parameter key-value pair, the activation status of the key parameter library and the remarks of the key parameter library; The key parameter inspection task management module is used to create a key parameter inspection task; 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 is used for executing the key parameter inspection task by the execution module; 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; The key parameter inspection report printing module is used to generate an inspection report of the key parameter inspection task according to the execution record of the key parameter inspection task.
[0011] A motor vehicle inspection key parameter inspection method based on automatic file comparison provided by the present invention has the following beneficial effects: 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, which simplifies 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present invention, but do not constitute a limitation of the present invention.
[0013] Figure 1 A flow chart of a method for inspecting key parameters of motor vehicles based on automatic file comparison provided by the present invention.
[0014] Figure 2 A flow chart of creating a parameter library provided by the present invention.
[0015] Figure 3 A flowchart of creating a parameter inspection task provided by the present invention.
[0016] Figure 4 A flow chart of executing parameter inspection tasks provided by the present invention.
[0017] Figure 5 This is a template style diagram of the parameter inspection report provided by the present invention.
[0018] Figure 6 This is a structural diagram of the motor vehicle inspection key parameter inspection system based on automatic file comparison provided by the present invention. DETAILED DESCRIPTION
[0019] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation method, structure, characteristics and effects of a motor vehicle inspection key parameter inspection method based on automatic file comparison proposed by the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of the present invention.
[0020] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0021] In this embodiment, a method for inspecting key parameters of motor vehicle inspection based on automatic file comparison is provided. Figure 1 As shown, the motor vehicle inspection key parameter inspection method based on automatic file comparison includes the following steps: Step S1: Establishing 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; Preferably, the WebSocket service module is used to establish WebSocket communication between the front-end and the back-end of the test system for real-time push inspection messages, and further includes: Complete the deployment of the key parameter configuration files of the test system and the motor vehicle detection system to be inspected on the actual equipment, and keep the test environment consistent with the actual use environment to ensure the normal operation of the test system; The test system is run in the form of a JAR package. After startup, the WebSocket service module runs automatically. The inspection message is in JSON format, including message type, message content, message status and sequence number.
[0022] During the specific implementation, when the front end of the test system connects to the WebSocket service module, the SID passed by the front end must be the ID of the current user, and the user ID is registered as the SID on the server. In this way, the background can push messages related to this user to different users, achieving the effect of displaying information in real time and preventing multiple users from affecting each other.
[0023] During specific implementation, the sequence number in the message of the inspection master record must be empty, and the sequence number in the message of the inspection sub-record must be the entered sequence number.
[0024] Step S2: creating multiple key parameter libraries through the key parameter library management module; wherein each key parameter library includes the name of the motor vehicle detection system to be inspected, the access path of the key parameter configuration file of the motor vehicle detection 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; Preferably, the step of creating multiple key parameter libraries through the key parameter library management module further includes: The key parameters in the key parameter library are added, deleted, modified and checked through the key parameter library management module.
[0025] During specific implementation, users must have the permission of the key parameter library management module to enter this module.
[0026] When implementing it, Figure 2As shown, in the key parameter library management module, click the "Add" button to open the new key parameter window, enter the name of the motor vehicle inspection system to be inspected, the access path of the key parameter configuration file of the motor vehicle inspection system to be inspected, the standard key parameter key-value pairs and the remarks of the key parameter library in the window, select the status of the key parameter library, and click "OK" to complete the creation of the key parameter library; wherein, the key parameter library management module will check whether the name of the motor vehicle inspection system to be inspected is repeated. If it is repeated, it cannot be created. If it is not repeated, it is created successfully.
[0027] It should be noted that the name of the motor vehicle inspection system to be inspected, the access path of the key parameter configuration file of the motor vehicle inspection system to be inspected, the standard key parameter key-value pair, the enabled state of the key parameter library, the remarks of the key parameter library, etc. must be entered or selected in accordance with the content format required by the test system. Among them, the access path must be the full path of the file actually existing in the current actual device.
[0028] Step S3: creating 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; Preferably, commonly used parameter inspection tasks can be preset in the key parameter inspection task management module, or already set parameter inspection tasks can be directly executed. In addition, the current user must have the authority of the key parameter inspection task management module to enter this module.
[0029] When implementing it, Figure 3 As shown, in the key parameter inspection task management module, click the "Add" button to open the new parameter inspection task window, enter the parameter inspection task name in the window, select the key parameter library related to the parameter inspection task, select the enabled status of the parameter inspection task, enter the remark 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 repeated. If it is repeated, it cannot be created.
[0030] It should be noted that the parameter inspection task information includes the task name, key parameter library, task status and remarks, which must be entered or selected in accordance with the content format required by the test system. The task name cannot be repeated and the parameter library sequence cannot be empty.
[0031] Step S4: executing the key parameter inspection task through the key parameter inspection task execution module; Preferably, if Figure 4 As shown, the key parameter inspection task is executed by the key parameter inspection task execution module, and further includes: After determining the motor 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, click the "Execute" button to pop up the task execution window, and start the key parameter inspection task execution module. The task execution window displays the current task name, task content list, task execution progress and other information. The task content list includes the name of the motor 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: The parameter inspection task execution interface verifies whether there is a corresponding key parameter inspection task in the key parameter inspection task management module; if there is no corresponding key parameter inspection task, a message 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 there is a corresponding key parameter inspection task, the key parameter library number is further verified in the information of the key parameter inspection task; If the key parameter library number does not exist in the information of the key parameter inspection task, a message 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 exists 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 starts, the WebSocket service module pushes a message to the front end of the test system to start checking the current key parameter library, and then 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; It should be noted that the content of the current key parameter configuration file is read line by line. If there is a comment symbol in a non-empty position at the beginning of this line, the next line is read. Otherwise, the content of this line is compared with the standard key parameter key value, and it is recorded whether each parameter exists, whether the parameter value is consistent, and whether there are multiple identical parameters. After the comparison of the entire current key parameter configuration file is completed, it is judged according to the number of times the parameter appears. If the number of occurrences is 0, it means that this parameter is missing. If the number of occurrences is greater than 1, it means that this parameter is repeated. Only when the number of occurrences is equal to 1, it means that this parameter exists normally. Then check whether the parameter value of the current key parameter configuration file is consistent with the standard key parameter key value. If not, the parameter inspection fails. If consistent, the parameter inspection passes.
[0032] If the content of the current key parameter configuration file is inconsistent with the standard key parameter key-value pair in the current key parameter library, the current key parameter library inspection of the key parameter inspection task fails; if they are consistent, the current key parameter library inspection of the key parameter inspection task passes; the inspection result of the current key parameter library of the key parameter inspection task is pushed to the front end of the test system in real time through the WebSocket service module for display, and the inspection result is saved in the database; When all key parameter libraries of the key parameter inspection task have been inspected, the overall inspection result of the key parameter inspection task is pushed to the front end of the test system for display through the WebSocket service module, and updated to the database.
[0033] During the specific implementation, you need to select the parameter inspection task to be executed and then click to 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 to call the parameter inspection task execution interface of the key parameter inspection task execution module.
[0034] Step S5: During the execution of the key parameter inspection task, the key parameter inspection task recording module generates an 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; Preferably, 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: After the inspection of each key parameter library of the key parameter inspection task is completed, the key parameter library number, inspection result, inspection information, inspection start time and inspection end time of each subtask can be viewed in the key parameter inspection task recording module; After all key parameter libraries of the 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 recording module.
[0035] In specific implementation, only inspection tasks that are successfully started in the key parameter inspection task execution module will generate parameter inspection records. After the task is successfully started, the task name, task status, and task execution start time can be viewed in the parameter inspection task record module. After each key parameter library in the task sequence is inspected, the key parameter library number, inspection results, 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 executed, the task status, inspection results, and execution end time can be viewed in the parameter inspection task record module.
[0036] It should be noted that the task name, inspection result, status, execution start time and execution end time are all generated when the parameter inspection task execution module executes the inspection main process; the key parameter number, inspection result, inspection information, inspection start time and inspection end time in the task content list are all generated when the parameter inspection task execution module executes the inspection sub-process.
[0037] Step S6: Generate an inspection report of the key parameter inspection task according to the execution record of the key parameter inspection task through a key parameter inspection report printing module.
[0038] It should be noted that the inspection situation can be previewed on the Web page, and the inspection situation can also be exported to an Excel file as an electronic inspection report using the POI-related JAR, which facilitates the formation of a paper report.
[0039] Preferably, the key parameter inspection report printing module generates the inspection report of the key parameter inspection task according to the execution record of the key parameter inspection task, and further includes: 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, wherein the inspection content of each subtask in the key parameter inspection task includes the parameter name, system name, access path, key-value pair and whether it passed.
[0040] In the specific implementation, 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. The export report requires the preset Excel template to be integrated in the system JAR package and cannot be edited at will. After adjusting the template, the JAR package needs to be regenerated to make the new template effective.
[0041] As another embodiment of the present invention, a motor vehicle inspection key parameter inspection system based on automatic file comparison is provided. Figure 6 As shown, the motor 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 motor vehicle inspection system to be inspected, and the deployment of the test system 1 and the key parameter configuration file 2 of the motor vehicle inspection system to be inspected is completed on the actual device. 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; each key parameter library includes the name of the motor vehicle detection system to be inspected, the access path of the key parameter configuration file of the motor vehicle detection system to be inspected, the standard key parameter key-value pair, 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 a key parameter inspection task; 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 for executing the key parameter inspection task by the execution module; 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 of the key parameter inspection task according to the execution record of the key parameter inspection task.
[0042] In the embodiments of the present invention, (1) inspection tasks are preset. Different inspection tasks are set according to the parameter configuration methods of the detection systems of different manufacturers and different parts. 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) The inspection target system is confirmed to determine the detection system for parameter detection; (3) The inspection task is selected. The preset inspection task is selected according to the target system, and a new inspection task can also be temporarily created. The system interface displays information such as the task name, task content list, task status and execution results; (4) The inspection task is executed. The system will check whether the inspection task and content sequence exist. If not, It will be pushed to the corresponding front-end for display via WebSocket, and then the system will traverse and obtain 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 storage location of the parameter file of the key parameter library, and compare the same parameter values with the parameters in the parameter key-value pairs in the parameter library line by line. If there are abnormal conditions such as missing parameters, different parameter values, or repeated parameters, the system background 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, determine whether the inspection results are qualified based on whether there are errors or abnormal information, and push the result information to the front-end page in real time via WebSocket for display.
[0043] The motor vehicle inspection key parameter inspection system based on automatic file comparison provided by the embodiment of the present invention tests the system parameter configuration file 2 to be inspected through the test system 1. Specifically, WebSocket communication is established between the front end and the back end of the test system 1 through the WebSocket service module 11, which is used to push inspection messages in real time, collect parameters, and establish a key parameter library through the key parameter library management module 12. A new inspection task is created in the key parameter inspection task management module 13, and an intelligent inspection mechanism is implemented. The inspection result outputs abnormal information through the inspection result 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. Through the test system 1, the test of the system parameter configuration file 2 to be inspected can be met, and the key parameters of the inspection system can be effectively managed and verified to prevent them from being tampered with, thereby improving the accuracy and reliability of the motor vehicle inspection results, with a wide range of applications and safety and reliability.
[0044] The motor vehicle inspection key parameter patrol system based on automatic file comparison provided in the embodiment of the present invention collects the key parameter files of the inspection systems of various inspection software manufacturers for filing to form a key parameter library, utilizes the automatic operation of the system to read the real-time system parameter files of the target inspection system and compares them with the parameter files in the filed key parameter library, and issues real-time warnings for parameter value changes, parameter missing or parameter duplication, thereby realizing automatic parameter patrol and inspection of the inspection systems of inspection software manufacturers.
[0045] The specific operation process of the motor vehicle inspection key parameter inspection system based on automatic file comparison provided by the embodiment of the present invention includes: (1) After the test system runs normally, a WebSocket server is automatically created, and the SID is recorded after the front-end page is connected; enter the test user information on the test system login page to enter the system. If an incorrect user name, password or verification code is entered, the system will give a corresponding prompt and the system cannot be logged in. After logging in to 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.
[0046] (2) Click the parameter inspection management button on the test system homepage to enter the key parameter library module; (3) In the key parameter library module of the test system, click the "Add" button to open the new key parameter window. Enter the system name, access path, parameter key-value pair, remarks, and select the parameter storage type and status in the window. Click "OK" to complete the creation of the key parameter library information. The system will check whether the system name is repeated. If it is repeated, it cannot be created. If it is not repeated, it will be created successfully. (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 edit 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 repeated. If they are repeated, they cannot be modified. If they are not repeated, the editing is successful. (5) In the key parameter library module of the test system, click the "Delete" button to pop up the deletion confirmation dialog box. Click the "OK" button. The system will query whether this parameter library has been configured into the parameter inspection task. If so, it will prompt that it has been used and cannot be deleted. Otherwise, you can clean up the invalid parameter library information. (6) Click the parameter inspection management button on the test system homepage 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; (7) In the parameter inspection task module of the test system, click the "Add" button to open the new 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, and click "OK" to complete the creation of the parameter inspection task. The system will check whether the task name is repeated. If it is repeated, it cannot be created; (8) In the parameter inspection task module of the test system, click the "Modify" button, adjust the inspection task content in the modification window, and click "OK" to submit. The system will check whether the task name is repeated. If it is repeated, it cannot be modified. If it is not repeated, the modification is completed; (9) In the parameter inspection task module of the test system, click the "Delete" button to pop up the deletion confirmation dialog box, click the "OK" button, and the system can clean up the selected inspection task information; (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, and 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 background parameter inspection task execution interface; (11) The parameter inspection task execution interface first checks whether the corresponding inspection task information exists. If not, it pushes a message to the front end through WebSocket that the inspection task information does not exist. If it exists, it continues to check whether the content sequence of the inspection task information is empty. If it is empty, it will also push a message to the front end through WebSocket that the content sequence is empty. If it is not empty, the interface will traverse the key parameter library in the task content sequence item by item. At the beginning of the traversal, it pushes a message to the front end through WebSocket to start checking the current key parameter library, and then obtains the parameter file storage path from the key parameter library information. The data stream is used to read the parameter configuration file content from this path into the memory and read it line by line. If there is a comment symbol at the beginning of this line in a non-empty position, read the next line. Otherwise, compare the content of this line with the key-value pair in the parameter library information, and record whether each parameter exists, whether the parameter value is consistent, whether there are multiple identical parameters, and other information. After the entire file comparison is completed, the parameter is judged based on its appearance times. If the number of appearances is 0, it means that the parameter is missing. If the number of appearances is greater than 1, it means that the parameter is repeated. Only when the number of appearances is equal to 1, it means that the parameter exists normally. Then check whether the parameter value is consistent with the value in the parameter library information. If not, the parameter inspection fails. The interface pushes the comparison results to the front end in real time through WebSocket for display, and saves the comparison information in the database. After all parameter libraries in the task sequence are inspected, the overall inspection results are displayed in the upper part of the window and updated to the database; (12) Click the parameter inspection management button on the test system homepage to enter the parameter inspection record module, which displays the records generated each time a parameter inspection task is executed, mainly displaying the task name, inspection result, status, execution start time and execution end time, etc. Click the triangle in front of the record to expand and view the information of each inspection in the task content list, including key parameter number, inspection result, inspection information, inspection start time and inspection end time, etc. (13) Click the Parameter Inspection Management button on the test system homepage to enter the Parameter Inspection Record module. Click "Export Report". The system will export the task-related information to an Excel form according to the pre-set Excel template.
[0047] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with this profession can make some changes or modifications to equivalent embodiments of equivalent changes using the technical contents disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of the technical solution of the present invention.
Claims
1. A method for inspecting key parameters of motor vehicles based on automatic file comparison, characterized in that: The method for inspecting key parameters of motor vehicle inspection based on automatic file comparison comprises the following steps: Step S1: Establishing 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: creating multiple key parameter libraries through the key parameter library management module; wherein each key parameter library includes the name of the motor vehicle detection system to be inspected, the access path of the key parameter configuration file of the motor vehicle detection 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; Step S3: creating 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: executing 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 an 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 of the key parameter inspection task according to the execution record of the key parameter inspection task through a key parameter inspection report printing module.
2. A method for inspecting key parameters of motor vehicle inspection based on automatic file comparison according to claim 1, characterized in that: 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 inspection messages, and further includes: Complete the deployment of the key parameter configuration files of the test system and the motor vehicle detection system to be inspected on the actual equipment, and keep the test environment consistent with the actual use environment to ensure the normal operation of the test system; The test system is run in the form of a JAR package. After startup, the WebSocket service module runs automatically. The inspection message is in JSON format, including message type, message content, message status and sequence number.
3. The method for inspecting key parameters of motor vehicle inspection based on automatic file comparison according to claim 1 is characterized in that: The step of creating multiple key parameter libraries through the key parameter library management module further includes: The key parameters in the key parameter library are added, deleted, modified and checked through the key parameter library management module.
4. The method for inspecting key parameters of motor vehicle inspection based on automatic file comparison according to claim 1 is characterized in that: The step of executing the key parameter inspection task by the key parameter inspection task execution module further includes: Verify whether there is a corresponding key parameter inspection task in the key parameter inspection task management module; if there is no corresponding key parameter inspection task, 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 there is a corresponding key parameter inspection task, continue to verify whether there is a key parameter library number in the information of the key parameter inspection task; If the key parameter library number does not exist in the information of the key parameter inspection task, a message 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 exists 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 starts, the WebSocket service module pushes a message to the front end of the test system to start checking the current key parameter library, and then 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 pair in the current key parameter library, the current key parameter library inspection of the key parameter inspection task fails; if they are consistent, the current key parameter library inspection of the key parameter inspection task passes; the inspection result of the current key parameter library of the key parameter inspection task is pushed to the front end of the test system in real time through the WebSocket service module for display, and the inspection result is saved in the database; When all key parameter libraries of the key parameter inspection task have been inspected, the overall inspection result of the key parameter inspection task is pushed to the front end of the test system for display through the WebSocket service module, and updated to the database.
5. A method for inspecting key parameters of motor vehicle inspection based on automatic file comparison according to claim 4, characterized in that: In the process of executing the key parameter inspection task, the execution record of the key parameter inspection task generated by the key parameter inspection task recording module also includes: After the inspection of each key parameter library of the key parameter inspection task is completed, the key parameter library number, inspection result, inspection information, inspection start time and inspection end time of each subtask can be viewed in the key parameter inspection task recording module; After all key parameter libraries of the 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 recording module.
6. A method for inspecting key parameters of motor vehicle inspection based on automatic file comparison according to claim 1, characterized in that: The key parameter inspection report printing module generates the inspection report of the key parameter inspection task according to the execution record of the key parameter inspection task, and further 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, wherein the inspection content of each subtask in the key parameter inspection task includes the parameter name, system name, access path, key-value pair and whether it passed.
7. A motor vehicle inspection key parameter inspection system based on automatic file comparison, used to implement the motor vehicle inspection key parameter inspection method based on automatic file comparison as claimed in any one of claims 1 to 6, characterized in that: The motor vehicle inspection key parameter inspection system based on automatic file comparison comprises a test system (1) and a key parameter configuration file (2) of a motor vehicle inspection system to be inspected, and the deployment of the test system (1) and the key parameter configuration file (2) of the motor vehicle inspection system to be inspected is completed on an actual device. The test system (1) comprises 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 is used to push inspection messages in real time; The key parameter library management module (12) is used to create a plurality of key parameter libraries; wherein each key parameter library includes the name of the motor vehicle detection system to be inspected, the access path of the key parameter configuration file of the motor vehicle detection 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; The key parameter inspection task management module (13) is used to create a key parameter inspection task; 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 for executing the key parameter inspection task by the execution module; 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 of the key parameter inspection task according to the execution record of the key parameter inspection task.
Citation Information
Patent Citations
Knowledge base-based server automatic inspection system and method
CN110019203A
Inspection report generation method
CN110020417A
Maintenance detection system and method for tunnel electromechanical equipment
CN110191190A
Application security inspection system and method
CN116401673A
Service resource automatic inspection system and method, terminal and storage medium
CN116884107A