Disclosure of Invention
The invention provides a tamper-resistant calibration device and a tamper-resistant calibration method for an OBD diagnostic instrument, and aims to provide a calibration device which can accurately detect whether tamper data exists in the process of uploading data by the OBD diagnostic instrument and effectively prevent the occurrence of detection cheating.
The technical scheme is that the tamper-resistant OBD diagnostic instrument calibration device comprises an upper computer unit, a lower computer unit, a data simulation module, a protocol conversion module, a data acquisition module and a data verification module, wherein the data simulation module, the protocol conversion module, the data acquisition module and the data verification module are all integrated on the upper computer unit, the upper computer unit is used for generating standard protocol data, the lower computer unit is used for converting the standard protocol data into standard vehicle signals, the data simulation module is arranged in the upper computer unit and can perform protocol type selection, data parameter configuration and data issuing control, the protocol conversion module comprises a signal conversion circuit and a communication interface adaptation unit, and the data acquisition module is used for acquiring vehicle detection data uploaded by the OBD diagnostic instrument in real time and is used for verifying the detection data based on preset rules.
As a preferable scheme of the invention, further, the protocol type selection sub-module of the data simulation module supports the switching of a plurality of different communication protocols, the data parameter configuration sub-module is provided with an expandable parameter configuration database, and the data issuing control sub-module interacts data with the lower computer unit through an encrypted communication link.
As a preferred scheme of the present invention, the signal conversion circuit of the protocol conversion module further comprises an analog-to-digital conversion unit and a level matching circuit, and the communication interface adapting unit supports an OBD-II standard interface and various extension interface types.
As a preferred scheme of the invention, the data acquisition module further comprises a real-time data stream capturing unit, a fault code analyzing unit and a vehicle state information extracting unit, wherein each unit adopts a parallel processing architecture.
As a preferable scheme of the invention, the data verification module further comprises an integrity verification unit, a consistency verification unit and a rationality verification unit, wherein the integrity verification unit verifies the structural compliance of the data frame, the consistency verification unit compares the logical relevance of the original data and the detection data, and the rationality verification unit analyzes the statistical distribution characteristics of the data sequence.
The invention further provides a warning module and a log record module, wherein the warning module is used for triggering a warning mechanism when the detected data exceeds a preset threshold range, and the log record module is used for generating an operation log and a data verification record containing a time stamp.
A tamper-resistant OBD diagnostic instrument calibration method comprises the following steps:
s1, a protocol configuration step, namely selecting a target communication protocol type and configuring standard data parameters through an upper computer unit;
s2, a signal generation step, wherein the lower computer unit converts the standard data parameters into analog signals conforming to the vehicle communication standard;
S3, data acquisition, namely acquiring detection data of an OBD diagnostic instrument of the tested equipment in a communication protocol mode;
S4, a data verification step, namely verifying the detection data based on a preset rule;
s5, triggering corresponding early warning response according to the verification result.
As a preferable scheme of the invention, the protocol configuration step supports loading data configuration files of a plurality of different protocols at the same time, the signal generation step adopts a time division multiplexing technology to simulate a plurality of groups of vehicle signals, the data verification step adopts a dynamic weight distribution algorithm to comprehensively evaluate the results of each verification dimension, and the early warning processing step comprises threshold early warning, trend early warning and mode early warning.
The beneficial effects of the invention are as follows:
According to the invention, through the multidimensional checking mechanisms such as integrity check, consistency check, rationality check and the like and the comprehensive evaluation of the dynamic weight distribution algorithm, whether the tamper behavior exists in the uploaded data of the OBD diagnostic instrument can be accurately detected, the cheating phenomenon is effectively prevented, and the authenticity and the reliability of the detected data are greatly improved.
The protocol type selection sub-module of the data simulation module supports switching of a plurality of different communication protocols, and the communication interface adaptation unit of the protocol conversion module supports an OBD-II standard interface and a plurality of expansion interface types, so that the calibration device can adapt to communication requirements of vehicles of different brands and models and OBD diagnostic instruments, and has wide applicability.
The early warning module can timely send out early warning signals when the detected data are abnormal, and adopts a mode of combining threshold early warning, trend early warning and mode early warning, so that timeliness and accuracy of early warning are improved, operation logs and data verification records containing time stamps are generated by the log recording module, powerful evidence is provided for tracing and analyzing data tampering behaviors, and effective supervision is facilitated for supervision departments.
The data issuing control submodule interacts data with the lower computer unit through an encryption communication link, and adopts an advanced encryption algorithm to encrypt the data, so that the safety and the integrity of the data in the transmission process are ensured, and the data is prevented from being stolen or tampered.
The data parameter configuration sub-module of the data simulation module is provided with an expandable parameter configuration database, a user can configure and modify standard data parameters according to the needs, and the database can be conveniently expanded and updated to adapt to the requirements of new vehicle types and new protocols.
Detailed Description
The technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
As shown in fig. 1 to 5, the embodiment provides a tamper-resistant calibrating device for an OBD diagnostic apparatus, which includes an upper computer unit 1, a lower computer unit 2, a data simulation module 11, a protocol conversion module 3, a data acquisition module 4 and a data verification module 5, wherein the data simulation module 11, the protocol conversion module 3, the data acquisition module 4 and the data verification module 5 are all integrated on the upper computer unit 1, the upper computer unit 1 is used for generating standard protocol data, the lower computer unit 2 is used for converting the standard protocol data into standard vehicle signals, the data simulation module 11 is arranged in the upper computer unit 1, protocol type selection, data parameter configuration and data issuing control can be performed, the protocol conversion module 3 includes a signal conversion circuit and a communication interface adaptation unit, the data acquisition module 4 is used for acquiring vehicle detection data uploaded by the OBD diagnostic apparatus in real time, and the data verification module 5 is used for verifying the detection data based on preset rules.
The protocol type selection sub-module of the data simulation module 11 supports the switching of a plurality of different communication protocols, the data parameter configuration sub-module is provided with an expandable parameter configuration database, and the data issuing control sub-module interacts data with the lower computer unit 2 through an encrypted communication link.
The signal conversion circuit of the protocol conversion module 3 comprises an analog-to-digital conversion unit 31 and a level matching circuit 32, and the communication interface adaptation unit supports an OBD-II standard interface and various expansion interface types.
The data acquisition module 4 comprises a real-time data stream capturing unit 41, a fault code analyzing unit 42 and a vehicle state information extracting unit 43, wherein each unit adopts a parallel processing architecture.
The data verification module 5 comprises an integrity verification unit 51, a consistency verification unit 52 and a rationality verification unit 53, wherein the integrity verification unit 51 verifies the structural compliance of the data frame, the consistency verification unit 52 compares the logical relevance of the original data and the detection data, and the rationality verification unit 53 analyzes the statistical distribution characteristics of the data sequence.
The system further comprises an early warning module and a log recording module, wherein the early warning module is used for triggering an early warning mechanism when the detected data exceeds a preset threshold range, and the log recording module is used for generating an operation log containing a time stamp and a data verification record.
The invention also provides a tamper-proof OBD diagnostic instrument calibration method, which comprises the following steps:
s1, a protocol configuration step, namely selecting a target communication protocol type and configuring standard data parameters through an upper computer unit 1;
s2, a signal generation step, wherein the lower computer unit 2 converts standard data parameters into analog signals conforming to the vehicle communication standards;
S3, data acquisition, namely acquiring detection data of an OBD diagnostic instrument of the tested equipment in a communication protocol mode;
S4, a data verification step, namely verifying the detection data based on a preset rule;
s5, triggering corresponding early warning response according to the verification result.
The protocol configuration step supports loading data configuration files of a plurality of different protocols simultaneously, the signal generation step adopts a time division multiplexing technology to simulate a plurality of groups of vehicle signals, the data verification step adopts a dynamic weight distribution algorithm to comprehensively evaluate the results of all verification dimensions, and the early warning processing step comprises threshold early warning, trend early warning and mode early warning.
In this embodiment, specific:
The invention discloses a tamper-resistant OBD diagnostic instrument calibration device which comprises an upper computer unit 1, a lower computer unit 2, a data simulation module 11, a protocol conversion module 3, a data acquisition module 4, a data verification module 5, an early warning module and a log recording module.
The upper computer unit 1 is mainly used for generating standard protocol data. The upper computer unit 1 can generate standard data conforming to corresponding communication protocols according to different detection requirements and vehicle types, provides a basis for subsequent detection and calibration, and generally has stronger data processing and storage capacity, and can store a large amount of standard protocol data and detection history.
The lower computer unit 2 is responsible for converting standard protocol data generated by the upper computer unit 1 into standard vehicle signals, the lower computer is provided with a standard OBD connector for the tested equipment to be connected and read, and the simulated standard signals are sent to the OBD diagnostic instrument to be detected according to the simulated vehicle state, so that a real detection environment is provided for subsequent data acquisition and verification.
The data simulation module 11 is arranged in the upper computer unit 1 and comprises a protocol type selection submodule, a data parameter configuration submodule and a data issuing control submodule.
And the protocol type selection sub-module supports the switching of a plurality of different communication protocols, and as vehicles of different brands and models can adopt different communication protocols, such as ISO 15765, SAE J1939 and the like, the sub-module can flexibly select a proper communication protocol according to specific vehicle types and detection requirements, thereby ensuring the compatibility of the calibration device and various OBD diagnostic instruments.
The data parameter configuration sub-module is provided with an expandable parameter configuration database, standard parameter information of various vehicles such as engine speed, vehicle speed, emission data and the like are stored in the database, a user can configure and modify the parameters according to requirements so as to simulate the running states of different vehicles, and meanwhile, the database can be conveniently expanded and updated along with the appearance of new vehicle types and new protocols.
And the data issuing control sub-module is used for exchanging data with the lower computer unit 2 through an encryption communication link, wherein the encryption communication link adopts an advanced encryption algorithm, such as an Advanced Encryption Standard (AES), so as to encrypt the transmitted data, prevent the data from being stolen or tampered in the transmission process and ensure the safety and reliability of data transmission.
The protocol conversion module 3 comprises a signal conversion circuit and a communication interface adaptation unit.
The signal conversion circuit comprises an analog-to-digital conversion unit 31 and a level matching circuit 32, wherein the analog-to-digital conversion unit 31 converts a digital signal sent by the upper computer unit 1 into an analog signal so as to be compatible with an electrical system of a vehicle, and the level matching circuit 32 adjusts the level of the signal to ensure that the strength and the amplitude of the signal meet the requirements of vehicle communication.
The communication interface adapting unit supports an OBD-II standard interface and various expansion interface types, can be compatible with expansion interfaces of special vehicles or equipment besides common OBD-II standard interfaces, and improves the universality and applicability of the calibrating device.
The data acquisition module 4 is used for acquiring vehicle detection data uploaded by the OBD diagnostic apparatus in real time, and comprises a real-time data stream capturing unit 41, a fault code analyzing unit 42 and a vehicle state information extracting unit 43, wherein each unit adopts a parallel processing architecture.
The real-time data stream capturing unit 41 can capture various real-time data uploaded by the OBD diagnostic instrument in real time, such as the real-time rotating speed, air inflow, water temperature and the like of the engine, and provides rich data sources for subsequent data analysis and verification.
The fault code analysis unit 42 analyzes the fault code uploaded by the OBD diagnostic apparatus, identifies possible fault types and possible fault positions of the vehicle, and can rapidly judge the authenticity and accuracy of the fault code by comparing the fault type and the fault positions with a standard fault code library.
The vehicle state information extraction unit 43 extracts various state information of the vehicle, such as a running mode of the vehicle, shift position information, etc., from the detection data so as to comprehensively understand the running state of the vehicle.
The data verification module 5 is configured to verify the detection data based on a preset rule, and includes an integrity verification unit 51, a consistency verification unit 52, and a rationality verification unit 53.
The integrity check unit 51 verifies the compliance of the data frame structure, and checks whether the data frame format of the detected data conforms to the specifications of the corresponding communication protocol, including the length, the start bit, the end bit, the check bit, etc., of the data frame, so as to ensure that the data is not lost or damaged during transmission.
And the consistency check unit 52 compares the logical relevance of the original data and the detection data. By analyzing the logical relation among all parameters in the detection data, such as the relation between the engine speed and the vehicle speed and the relation between the air input and the oil injection quantity, whether the detection data accords with normal physical logic is judged, so that possible data tampering behavior is found.
The rationality checking unit 53 analyzes the statistical distribution characteristics of the data sequence, performs statistical analysis on the detected data, such as calculating statistics of the mean value, variance, standard deviation and the like of the data, and judges whether the distribution of the data accords with a normal statistical rule, if the statistical distribution of the data is abnormal, the data may be tampered.
The early warning module is used for triggering an early warning mechanism when the detection data exceeds a preset threshold range, the preset threshold range is set according to a large amount of experimental data and actual detection experience, and when a certain parameter in the detection data exceeds the threshold range, the early warning module immediately sends out an early warning signal which can adopt various modes such as audible and visual alarm, short message notification, mail notification and the like to timely inform a supervisor of possible data tampering behaviors.
The log record module is used for generating operation logs containing time stamps and data verification records, recording all operation processes and data verification results of the calibration device, including data acquisition time, verification results, early warning information and the like, and can be used as important evidence for tracing and analyzing data tampering behaviors and also be helpful for monitoring and evaluating the operation condition of the calibration device.
The invention discloses a tamper-proof OBD diagnostic instrument calibration method, which comprises the following steps of:
S1, a protocol configuration step, namely selecting a target communication protocol type and configuring standard data parameters through the upper computer unit 1, wherein an operator can select a proper communication protocol in a protocol type selection submodule of the data simulation module 11 according to the type of a vehicle to be detected and the communication protocol of the OBD diagnostic instrument, and simultaneously configuring corresponding standard data parameters, such as an engine rotating speed range, an emission data standard and the like, in the data parameter configuration submodule.
S2, a signal generation step, namely the lower computer unit 2 converts the standard data parameters into analog signals conforming to the vehicle communication standard, the lower computer unit 2 converts the digital signals into analog signals through a signal conversion circuit of the protocol conversion module 3 after receiving the standard data parameters sent by the upper computer unit 1, and the analog signals are fed to tested equipment for reading through a standard OBD connector on the lower computer.
S3, data acquisition, namely acquiring detection data of the OBD diagnostic instrument of the tested equipment in a communication protocol mode, wherein a real-time data stream capturing unit 41, a fault code analyzing unit 42 and a vehicle state information extracting unit 43 of the data acquisition module 4 work in parallel, and various detection data uploaded by the OBD diagnostic instrument are captured in real time, wherein the detection data comprise real-time data streams, fault codes, vehicle state information and the like.
S4, a data verification step, namely verifying the detection data based on a preset rule, wherein an integrity verification unit 51, a consistency verification unit 52 and a rationality verification unit 53 of a data verification module 5 are used for respectively verifying the detection data, the integrity verification unit 51 is used for verifying the compliance of a data frame structure, the consistency verification unit 52 is used for comparing the logic relevance of the original data and the detection data, the rationality verification unit 53 is used for analyzing the statistical distribution characteristics of a data sequence, a dynamic weight distribution algorithm is used for comprehensively evaluating the results of all the verification dimensions, the weight of all the verification dimensions is dynamically adjusted according to different detection scenes and data characteristics, and the accuracy and the reliability of the verification results are improved.
S5, triggering a corresponding early warning response according to the verification result, judging whether the detected data exceeds a preset threshold range by the early warning module according to the data verification result, and triggering a corresponding early warning mechanism if the detected data exceeds the threshold range, wherein the early warning processing step comprises threshold early warning, trend early warning and mode early warning.
And (3) threshold early warning, wherein when a certain parameter in the detection data exceeds a preset threshold value, an early warning signal is immediately sent out, and when the rotating speed of the engine exceeds a normal range, the threshold early warning is triggered.
Trend early warning, namely judging whether abnormality exists by analyzing the change trend of the detection data, and triggering trend early warning if the detection data shows abnormal rising or falling trend within a period of time even if the threshold value is not exceeded, wherein the emission data continuously rises, so that the existence of data tampering or vehicle faults can be predicted.
And (3) mode early warning, namely matching the detection data according to a preset abnormal data mode. If the detected data accords with a certain abnormal mode, such as abnormal combination of fault codes, periodic fluctuation of the data and the like, the mode early warning is triggered.