Vehicle bus simulation method and device, computer equipment and storage medium

By analyzing and verifying the vehicle bus communication protocol, setting simulation conditions for link testing, the problem of inaccurate vehicle bus simulation in the prior art is solved, the accuracy and diagnostic capabilities of the simulation are improved, and more reliable links are achieved Evaluate.

CN119166433APending Publication Date: 2024-12-20SHENZHEN CHAOYUE TECH DEV CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411241832.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

The existing vehicle bus communication protocol simulation technology has problems such as limited resources, high costs, inconvenient operation, and inaccurate link integrity and smoothness detection, resulting in unreliable simulation results and affecting the development efficiency and quality of diagnostic equipment.

Method used

By obtaining simulated vehicle communication protocol, analyzing and performing integrity verification, generating protocol complete messages, setting simulation conditions for link simulation, performing high-load and random data transmission tests, analyzing test results to generate link test reports, using users Select the mode to adapt to testing needs flexibly, and apply preset protocol libraries and verification algorithms to ensure data accuracy and completeness.

Benefits of technology

It improves the accuracy and comprehensiveness of protocol simulation, enhances the stability evaluation of links under high load and random conditions, provides detailed fault analysis basis, and improves diagnostic accuracy and fault prediction capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119166433A_ABST
    Figure CN119166433A_ABST
Patent Text Reader

Abstract

The invention relates to a vehicle bus simulation method and device, computer equipment and a storage medium, and the method comprises the steps: obtaining a simulation vehicle communication protocol, carrying out the analysis of the simulation vehicle communication protocol, obtaining protocol analysis data, carrying out the integrity verification of the protocol analysis data, and carrying out the verification of the integrity of the protocol analysis data under the condition that the protocol analysis data is complete. Generating a protocol complete message; performing link simulation on the simulation vehicle communication protocol according to the protocol complete message, setting simulation conditions and generating simulation data corresponding to the simulation vehicle communication protocol, executing a high-load test and a random data transmission test, and obtaining a test result; and performing connectivity analysis on the vehicle communication protocol according to a test result, and generating a corresponding link test report according to an analysis result. The method has the effect of improving the protocol simulation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of bus simulation, and in particular to a vehicle bus simulation method, apparatus, computer equipment and storage medium. Background Art

[0002] At present, with the continuous improvement of automotive electronic technology and intelligence level, the types and complexity of vehicle communication protocols are also increasing. Especially in the field of automotive diagnosis and maintenance, the simulation of vehicle bus communication protocols has gradually become an important part of developing and testing diagnostic equipment.

[0003] Existing vehicle bus communication protocol simulation technology is mainly tested through real vehicles or separate ECU devices, or with the help of special simulation software to simulate the communication process. However, when using real vehicles or ECU devices for testing, there are often problems such as limited vehicle resources, high costs, and inconvenient operation; and the use of simulation software requires complex hardware support and customized development, which increases the development cycle and difficulty. In addition, the existing simulation technology lacks accuracy in the detection of link integrity and smoothness, and it is difficult to effectively identify potential link failures, resulting in unreliable simulation results, which affects the development efficiency and quality of diagnostic equipment. Therefore, how to improve the accuracy of vehicle communication protocol simulation, especially in terms of link integrity and smoothness, has become a problem that needs to be solved urgently in existing technologies.

[0004] The above-mentioned existing technical solutions have the following defects: the existing vehicle bus simulation technology has many limitations, which makes it difficult to perform efficient and comprehensive protocol simulation, so there is room for improvement. Summary of the invention

[0005] In order to improve the efficiency of protocol simulation, the present application provides a vehicle bus simulation method, apparatus, computer equipment and storage medium.

[0006] The above-mentioned invention objective of the present application is achieved through the following technical solutions: A vehicle bus simulation method, the vehicle bus simulation method comprising: Acquire a simulated vehicle communication protocol, parse the simulated vehicle communication protocol to obtain protocol parsing data, perform integrity check on the protocol parsing data, and generate a protocol complete message if the protocol parsing data is complete; Perform link simulation on the simulated vehicle communication protocol according to the complete message of the protocol, perform high load test and random data transmission test by setting simulation conditions and generating simulation data corresponding to the simulated vehicle communication protocol, and obtain test results; The vehicle communication protocol is subjected to connectivity analysis according to the test results, and a corresponding link test report is generated according to the analysis results.

[0007] By adopting the above technical solution, by obtaining the simulated vehicle communication protocol and parsing the simulated vehicle communication protocol, it is possible to ensure that the input protocol data is accurate and in line with expectations before the simulation process begins, thereby avoiding simulation deviations caused by incomplete or erroneous data. By performing integrity verification on the parsed protocol parsed data and generating a complete protocol message after the verification, the integrity and accuracy of the protocol data can be further guaranteed, laying a solid foundation for subsequent link simulation. By performing link simulation according to the complete protocol message, setting simulation conditions, and generating simulation data corresponding to the simulated vehicle communication protocol, a real communication link can be simulated in a controlled environment, thereby effectively verifying the stability of the communication link under high load and random data transmission conditions. By performing high load tests and random data transmission tests, the performance and reliability of the communication link under various complex conditions can be comprehensively evaluated, thereby improving the accuracy and comprehensiveness of the test results. By performing connectivity analysis on the vehicle communication protocol according to the test results and generating a corresponding link test report, a detailed reference basis can be provided for subsequent diagnosis and fault analysis, thereby improving the system's fault prediction capability and diagnostic accuracy.

[0008] In one example, the present application may be further configured as follows: before obtaining the simulated vehicle communication protocol and parsing the simulated vehicle communication protocol, the method further includes: Acquire a user selection mode, and when the user selection mode is protocol simulation, generate a protocol simulation message, and acquire the simulated vehicle communication protocol selected by the user in real time; When the user selected mode is the whole vehicle simulation, a vehicle simulation message is generated, and the vehicle information selected by the user is obtained in real time, and all the simulated vehicle communication protocols of the corresponding vehicle are queried according to the vehicle information selected by the user.

[0009] By adopting the above technical solution, by obtaining the mode selected by the user before obtaining the simulated vehicle communication protocol and parsing it, the system can flexibly select different simulation modes according to the actual needs of the user, thereby adapting to diverse testing needs; when the user selects the protocol simulation mode, a protocol simulation message is generated and the simulated vehicle communication protocol selected by the user is obtained in real time, which enables the system to focus on the precise simulation of a single protocol, thereby improving the accuracy and efficiency of protocol-level testing; when the user selects the whole vehicle simulation mode, a vehicle simulation message is generated and the vehicle information selected by the user is obtained in real time, and all corresponding simulated vehicle communication protocols are queried based on the vehicle information, which can simulate the multi-protocol environment of the whole vehicle, thereby more comprehensively evaluating the communication performance and stability of the whole vehicle.

[0010] In one example, the present application may be further configured as follows: the simulated vehicle communication protocol is obtained, and the simulated vehicle communication protocol is parsed to obtain protocol parsing data, and the protocol parsing data is checked for integrity, and when the protocol parsing data is complete, a protocol complete message is generated, specifically including: According to the simulated vehicle communication protocol, extracting a definition file of the simulated vehicle communication protocol from a preset protocol library, parsing a protocol frame structure in the definition file, and generating protocol frame data; Performing syntax and format checks on the protocol frame data to ensure that the format of the protocol frame complies with the standard specification of the simulated vehicle communication protocol; Performing a cyclic redundancy check on the protocol frame data, calculating and verifying the check code of each protocol frame data, and detecting whether there is an error or damage in the data during transmission; The protocol complete message is generated for the verified simulated vehicle communication protocol.

[0011] By adopting the above technical scheme, by extracting the definition file of the simulated vehicle communication protocol from the preset protocol library and parsing the protocol frame structure in the definition file, it is possible to ensure that the source of the protocol data is standardized and the structure is clear, providing a reliable data basis for subsequent verification and simulation; by performing syntax and format verification on the protocol frame data, it is possible to ensure that the data format of the protocol frame conforms to the standard specifications, avoiding simulation failures or errors due to format errors; by performing cyclic redundancy check on the protocol frame data, calculating and verifying the check code of each protocol frame data, it is possible to effectively detect errors or damage that may occur in the data transmission process, thereby further ensuring the integrity and reliability of the data; by generating a complete protocol message for the protocol data that has passed the verification, it is possible to provide accurate and error-free input data for the link simulation, thereby improving the accuracy and credibility of the link simulation.

[0012] In one example, the present application may be further configured as follows: performing link simulation on the simulated vehicle communication protocol according to the complete protocol message, setting simulation conditions and generating simulation data corresponding to the simulated vehicle communication protocol, performing high load test and random data transmission test, and obtaining test results, specifically including: Set the initial transmission rate and gradually increase the data flow by dynamically adjusting the transmission rate to simulate the link status under different load conditions; Generate multiple sets of simulation data with different data lengths and formats, and gradually introduce them during the link simulation process to test the response speed and processing capability of the link.

[0013] By adopting the above technical solution, by setting the initial transmission rate and dynamically adjusting the transmission rate to gradually increase the data flow, the link status under different load conditions can be simulated, thereby comprehensively evaluating the performance of the link under high load conditions; by generating multiple groups of simulated data with different data lengths and formats, and gradually introducing them during the link simulation process, the response speed and processing capacity of the link under different data conditions can be tested, thereby verifying the reliability and stability of the link in actual use.

[0014] In one example, the present application may be further configured as follows: the connectivity analysis of the vehicle communication protocol according to the test result specifically includes: Acquire link status information at different time points during the test according to the test results; Multi-dimensional data analysis is performed on the link status information at different time nodes to identify fluctuation trends of the link status information and detect potential anomalies through pattern recognition algorithms.

[0015] By adopting the above technical solution, by obtaining the link status information at different time nodes during the test process according to the test results, the state changes of the link during the entire test process can be recorded in detail, thereby providing comprehensive data support for subsequent analysis; by performing multi-dimensional data analysis on the link status information at different time nodes and identifying the fluctuation trend of the link status information, it is possible to better understand the performance of the link under different conditions and identify potential problems that may exist, and detect potential anomalies based on pattern recognition algorithms, so as to timely discover hidden dangers in the link, thereby providing direction for subsequent optimization and repair, and ultimately improving the overall stability and reliability of the communication link.

[0016] In one example, the present application may be further configured as follows: performing multi-dimensional data analysis on the link state information at different time nodes, identifying fluctuation trends of the link state information, and detecting potential anomalies through a pattern recognition algorithm, specifically including: Using a time series analysis method to evaluate the link status information, obtain the change trend of link delay and signal strength over time, and identify abnormal peaks or fluctuations that continuously deviate from a normal range from the change trend; A machine learning algorithm is applied to perform pattern recognition on the link status information, detect abnormal data points and record status information corresponding to the abnormal data points.

[0017] By adopting the above technical solution and using the time series analysis method to evaluate the link status information, the changing trend of link delay and signal strength over time can be clearly displayed, so as to more intuitively identify abnormal peaks or fluctuations that continuously deviate from the normal range during the operation of the link; by applying machine learning algorithms to perform pattern recognition on link status information, abnormal data points can be automatically detected and recorded to ensure that potential problems in the link are discovered and handled in a timely manner, thereby improving the system's early warning capabilities for link anomalies and fault response speed.

[0018] The second object of the invention is achieved by the following technical solutions: A vehicle bus simulation device, characterized in that the vehicle bus simulation device comprises: An integrity analysis module, used for acquiring a simulated vehicle communication protocol, parsing the simulated vehicle communication protocol to obtain protocol parsing data, performing integrity check on the protocol parsing data, and generating a protocol integrity message when the protocol parsing data is complete; A protocol parsing module, used to perform link simulation on the simulated vehicle communication protocol according to the complete message of the protocol, perform high load test and random data transmission test by setting simulation conditions and generating simulation data corresponding to the simulated vehicle communication protocol, and obtain test results; The connectivity analysis module is used to perform connectivity analysis on the vehicle communication protocol according to the test results, and generate a corresponding link test report according to the analysis results.

[0019] By adopting the above technical solution, by obtaining the simulated vehicle communication protocol and parsing the simulated vehicle communication protocol, it is possible to ensure that the input protocol data is accurate and in line with expectations before the simulation process begins, thereby avoiding simulation deviations caused by incomplete or erroneous data. By performing integrity verification on the parsed protocol parsed data and generating a complete protocol message after the verification, the integrity and accuracy of the protocol data can be further guaranteed, laying a solid foundation for subsequent link simulation. By performing link simulation according to the complete protocol message, setting simulation conditions, and generating simulation data corresponding to the simulated vehicle communication protocol, a real communication link can be simulated in a controlled environment, thereby effectively verifying the stability of the communication link under high load and random data transmission conditions. By performing high load tests and random data transmission tests, the performance and reliability of the communication link under various complex conditions can be comprehensively evaluated, thereby improving the accuracy and comprehensiveness of the test results. By performing connectivity analysis on the vehicle communication protocol according to the test results and generating a corresponding link test report, a detailed reference basis can be provided for subsequent diagnosis and fault analysis, thereby improving the system's fault prediction capability and diagnostic accuracy.

[0020] The third objective of the present application is achieved through the following technical solutions: A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the vehicle bus simulation method when executing the computer program.

[0021] The fourth objective of the present application is achieved through the following technical solutions: A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the vehicle bus simulation method are implemented.

[0022] In summary, this application includes the following beneficial technical effects: 1. By obtaining the simulated vehicle communication protocol and parsing the simulated vehicle communication protocol, it is possible to ensure that the input protocol data is accurate and in line with expectations before the simulation process begins, thereby avoiding simulation deviations caused by incomplete or erroneous data. By performing integrity verification on the parsed protocol parsed data and generating a complete protocol message after the verification, the integrity and accuracy of the protocol data can be further guaranteed, laying a solid foundation for subsequent link simulation. By performing link simulation according to the complete protocol message and setting simulation conditions to generate simulation data corresponding to the simulated vehicle communication protocol, a real communication link can be simulated in a controlled environment, thereby effectively verifying the stability of the communication link under high load and random data transmission conditions. By performing high load tests and random data transmission tests, the performance and reliability of the communication link under various complex conditions can be comprehensively evaluated, thereby improving the accuracy and comprehensiveness of the test results. By performing connectivity analysis on the vehicle communication protocol according to the test results and generating a corresponding link test report, a detailed reference basis can be provided for subsequent diagnosis and fault analysis, thereby improving the system's fault prediction capability and diagnostic accuracy. 2. By obtaining the mode selected by the user before obtaining the simulated vehicle communication protocol and parsing it, the system can flexibly select different simulation modes according to the actual needs of the user, thereby adapting to diverse testing needs; when the user selects the protocol simulation mode, the system generates a protocol simulation message and obtains the simulated vehicle communication protocol selected by the user in real time, which enables the system to focus on the accurate simulation of a single protocol, thereby improving the accuracy and efficiency of protocol-level testing; when the user selects the whole vehicle simulation mode, the system generates a vehicle simulation message and obtains the vehicle information selected by the user in real time, and queries all the corresponding simulated vehicle communication protocols based on the vehicle information, which can simulate the multi-protocol environment of the whole vehicle, thereby more comprehensively evaluating the communication performance and stability of the whole vehicle; 3. By extracting the definition file of the simulated vehicle communication protocol from the preset protocol library and parsing the protocol frame structure in the definition file, it can ensure that the source of the protocol data is standardized and the structure is clear, providing a reliable data basis for subsequent verification and simulation; by performing syntax and format verification on the protocol frame data, it can ensure that the data format of the protocol frame meets the standard specifications, avoiding simulation failures or errors due to format errors; by performing cyclic redundancy check on the protocol frame data, calculating and verifying the check code of each protocol frame data, it can effectively detect errors or damage that may occur in the data transmission process, thereby further ensuring the integrity and reliability of the data; by generating a complete protocol message for the verified protocol data, it can provide accurate and error-free input data for the link simulation, thereby improving the accuracy and credibility of the link simulation. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 is a flow chart of a vehicle bus simulation method in one embodiment of the present application; Figure 2 This is an implementation flow chart before step S10 in the vehicle bus simulation method in one embodiment of the present application; Figure 3 is a flowchart for implementing step S10 in the vehicle bus simulation method in one embodiment of the present application; Figure 4 is a flowchart for implementing step S20 in the vehicle bus simulation method in one embodiment of the present application; Figure 5 is a flowchart for implementing step S30 in the vehicle bus simulation method in one embodiment of the present application; Figure 6 is a flowchart for implementing step S32 in the vehicle bus simulation method in one embodiment of the present application; Figure 7 is a principle block diagram of a vehicle bus simulation device in one embodiment of the present application; Figure 8 It is a schematic diagram of a device in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The present application is further described in detail below in conjunction with the accompanying drawings.

[0025] In one embodiment, if Figure 1 As shown, the present application discloses a vehicle bus simulation method, which specifically includes the following steps: S10: Acquire a simulated vehicle communication protocol, parse the simulated vehicle communication protocol, obtain protocol parsing data, perform integrity check on the protocol parsing data, and generate a protocol complete message when the protocol parsing data is complete.

[0026] Specifically, the simulation device obtains the vehicle communication protocol specified by the user as the simulated vehicle communication protocol, including information such as the communication standard between the vehicle and external equipment or the communication standard between different protocols, and parses the acquired protocol layer by layer through a preset protocol parser, extracts the key fields and data structures in the protocol, and performs a comprehensive check on the format and integrity of the data during the parsing process, including the structural consistency of the protocol frame and the verification of the data check code, to ensure that there is no error or loss in the data during transmission and processing. When all data pass the integrity check, a complete protocol message is generated.

[0027] S20: Perform link simulation on the simulated vehicle communication protocol according to the complete protocol message, set simulation conditions and generate simulation data corresponding to the simulated vehicle communication protocol, perform high load test and random data transmission test, and obtain test results.

[0028] Specifically, after receiving the complete protocol message, the corresponding link simulation conditions are set according to the protocol content in the message, including data transmission rate, load conditions, etc., and then simulation data matching the simulated vehicle communication protocol is generated to simulate different communication scenarios and load conditions. During the test, the simulation device will perform a high-load transmission test, gradually increase the data flow, and simulate the communication link conditions under various extreme situations. At the same time, random data will be introduced for transmission testing to evaluate the link's ability to handle irregular data streams.

[0029] S30: Performing connectivity analysis on the vehicle communication protocol according to the test results, and generating a corresponding link test report according to the analysis results.

[0030] Specifically, the data collected from the test will be organized and analyzed, especially the various indicators on the connectivity, stability and performance of the link, as well as the link status at different stages of the test, including latency, packet loss rate, signal strength, etc., and compared with the expected standards to determine the performance of the communication protocol in the actual environment and to dig deeper into potential problems, such as discovering unstable factors in data transmission or potential defects in protocol design. Based on the analysis results, a detailed link test report will be generated, including the identification of connectivity problems, the analysis process and its conclusions.

[0031] In one embodiment, if Figure 2 As shown, before step S10, that is, before obtaining the simulated vehicle communication protocol and parsing the simulated vehicle communication protocol, the process also includes: S101: Obtain a user selected mode. When the user selected mode is protocol simulation, generate a protocol simulation message and obtain the simulated vehicle communication protocol selected by the user in real time.

[0032] Specifically, the simulation device first provides a user selection interface, through which the user can select the "protocol simulation" mode. After selecting and confirming, the system will automatically detect the vehicle communication protocol selected by the user in the background and load the detailed information of the protocol in real time, including the protocol version, supported communication standards, etc., and then prepare for subsequent simulation tests by parsing this information, and ensure that the selected protocol matches the simulated target environment, so as to generate accurate protocol data in the simulation test.

[0033] S102: When the user selects the whole vehicle simulation mode, a vehicle simulation message is generated, and the vehicle information selected by the user is obtained in real time, and all simulated vehicle communication protocols of the corresponding vehicle are queried according to the vehicle information selected by the user.

[0034] Specifically, when the user selects the "whole vehicle simulation" mode in the selection interface, the system will generate a vehicle simulation message and will query all communication protocols of the vehicle in real time based on the vehicle information input or selected by the user, such as model, year, configuration, etc., such as extracting from the preset vehicle database or querying through the network, including power system protocols, vehicle network protocols, safety system protocols, etc., to ensure that all protocols of the selected vehicle are accurately acquired and provide a complete set of protocols for subsequent whole vehicle simulation operations to facilitate a comprehensive evaluation of the vehicle's communication capabilities.

[0035] In one embodiment, if Figure 3 As shown, in step S10, the simulated vehicle communication protocol is obtained, and the simulated vehicle communication protocol is parsed to obtain protocol parsing data, and the integrity of the protocol parsing data is checked. When the protocol parsing data is complete, a protocol complete message is generated, which specifically includes: S11: according to the simulated vehicle communication protocol, extracting a definition file of the simulated vehicle communication protocol from a preset protocol library, parsing the protocol frame structure in the definition file, and generating protocol frame data.

[0036] Specifically, after receiving the simulated vehicle communication protocol, the corresponding definition file is first retrieved from the internal protocol library, including the frame structure of the protocol, such as data fields, control bits, check bits, etc. After obtaining the definition file, it is parsed using a parsing tool to extract each component of the frame structure one by one, and the protocol frame data is generated based on the parsing results, that is, the standard format of the protocol in actual communication, which can accurately reflect the function and expected behavior of the protocol.

[0037] S12: Perform syntax and format check on the protocol frame data to ensure that the format of the protocol frame complies with the standard specification of the simulated vehicle communication protocol.

[0038] Specifically, after the protocol frame data is generated, the syntax and format verification module will be automatically started to perform a comprehensive check on the protocol frame data, including the protocol's syntax rules, data format, field order, check code, etc., and then compare them one by one according to the standard specifications of the simulated vehicle communication protocol to ensure that each part of the frame data complies with the prescribed syntax structure and format requirements, and whether there are problems such as missing data, incorrect field arrangement or format mismatch. After the verification is passed, the protocol frame data is confirmed to meet the standards and can be used for subsequent link simulation and testing.

[0039] S13: Perform cyclic redundancy check on the protocol frame data, calculate and verify the check code of each protocol frame data, and detect whether there is error or damage in the data during transmission.

[0040] Specifically, a cyclic redundancy check is further performed on the protocol frame data. According to the protocol's verification algorithm, a corresponding check code is generated for each protocol frame data to detect the integrity and accuracy of the data during transmission. The check code of the current frame is calculated and compared with the original check code attached to the protocol frame to determine whether the data is consistent. If the two are consistent, it means that no error occurred during the data transmission process; otherwise, the system will identify the erroneous part of the data and mark it as incomplete data.

[0041] S14: Generate a protocol complete message for the simulated vehicle communication protocol that has passed the verification.

[0042] Specifically, after confirming that the protocol frame data has passed the cyclic redundancy check, the system will integrate these frame data to generate a complete protocol message, including all protocol frame data that have passed the check, and indicate the overall integrity status of the protocol. It will also serve as the basic data for subsequent link simulations to ensure that the data used in the simulation process is verified and correct.

[0043] In one embodiment, if Figure 4 As shown, in step S20, the link simulation of the simulated vehicle communication protocol is performed according to the complete protocol message, by setting simulation conditions and generating simulation data corresponding to the simulated vehicle communication protocol, performing high load test and random data transmission test, and obtaining test results, specifically including: S21: Set the initial transmission rate and gradually increase the data flow by dynamically adjusting the transmission rate to simulate the link status under different load conditions.

[0044] Specifically, the initial transmission rate is set based on the standard transmission speed of the protocol or the simulation parameters set by the user. As the simulation progresses, the transmission rate is gradually increased to simulate data transmission under different load conditions. The response of the link is monitored in real time, including key performance indicators such as latency, throughput, and bit error rate, to detect the stability and processing capacity of the link under high load conditions, and then identify performance bottlenecks or anomalies that may occur in the protocol under high load conditions.

[0045] S22: Generate multiple groups of simulation data with different data lengths and formats, and gradually introduce them into the link simulation process to test the response speed and processing capability of the link.

[0046] Specifically, multiple groups of simulated data with different lengths and formats are generated to reflect various data transmission situations that may be encountered in the real environment. These data groups are gradually introduced at set time intervals. The processing capability and response speed of the link are tested through different data combinations. At the same time, attention is paid to the performance of the link in processing large data packets and high-frequency small data packets, as well as the stability when processing complex data formats.

[0047] In one embodiment, if Figure 5 As shown, in step S30, the vehicle communication protocol is subjected to connectivity analysis according to the test results, specifically including: S31: Obtain link status information at different time points during the test process according to the test results.

[0048] Specifically, the link status is monitored in real time, and key status information of the link is collected at different time points, including data transmission delay, packet loss rate, bandwidth utilization, signal strength, etc., and this status information is recorded in the form of a time series for subsequent detailed analysis to reflect the performance of the link in different test stages and help identify changing trends and potential problems in the link status.

[0049] S32: Perform multi-dimensional data analysis on the link status information at different time nodes, identify the fluctuation trend of the link status information, and detect potential anomalies through pattern recognition algorithms.

[0050] Specifically, multi-dimensional data analysis is performed on the collected time node link status information, including statistical analysis, trend analysis and anomaly detection of the data. First, the data of each time node is compared to identify the fluctuation trend of the link status information, such as changes in data delay, fluctuations in packet loss rate, etc. Then, a pattern recognition algorithm is used to conduct an in-depth analysis of these fluctuation trends to detect possible abnormal patterns, such as short-term connection interruptions or continuous signal weakening.

[0051] In one embodiment, if Figure 6As shown, in step S32, multi-dimensional data analysis is performed on the link status information at different time nodes to identify the fluctuation trend of the link status information and detect potential anomalies through a pattern recognition algorithm, specifically including: S321: Use a time series analysis method to evaluate the link status information, obtain the change trend of link delay and signal strength over time, and identify abnormal peaks or fluctuations that continuously deviate from the normal range from the change trend.

[0052] Specifically, the time series analysis method is used to process the link status information collected during the test. First, the key indicators such as link delay and signal strength are decomposed into time series to extract the basic trends of these indicators over time. By analyzing these trends, the normal fluctuation range of the link status is identified, and abnormal peaks that occur at certain time points or continuous deviations from the normal range are marked.

[0053] S322: Apply a machine learning algorithm to perform pattern recognition on the link status information, detect abnormal data points and record status information corresponding to the abnormal data points.

[0054] Specifically, the link status information is input into a pre-trained machine learning algorithm, which can identify abnormal patterns in the link status. Through pattern recognition, it can detect abnormal data points that deviate from the normal range and analyze the possible causes of these anomalies, such as sudden high loads, signal interference, or equipment failures. Based on the identified abnormal patterns, an abnormality report is generated, including detailed information on the abnormal data points, cause analysis, and possible solutions.

[0055] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0056] In one embodiment, a vehicle bus simulation device is provided, which corresponds one-to-one to the vehicle bus simulation method in the above embodiment. Figure 7 As shown, the vehicle bus simulation device includes an integrity analysis module, a protocol analysis module, and a connectivity analysis module. The detailed description of each functional module is as follows: The integrity analysis module is used to obtain the simulated vehicle communication protocol, parse the simulated vehicle communication protocol, obtain protocol parsing data, perform integrity check on the protocol parsing data, and generate a protocol integrity message when the protocol parsing data is complete; The protocol parsing module is used to perform link simulation on the simulated vehicle communication protocol according to the complete protocol message, and to perform high-load test and random data transmission test by setting simulation conditions and generating simulation data corresponding to the simulated vehicle communication protocol, and obtain test results; The connectivity analysis module is used to perform connectivity analysis on the vehicle communication protocol according to the test results, and generate a corresponding link test report according to the analysis results.

[0057] Optionally, before the integrity analysis module, also include: A mode acquisition module is used to acquire the mode selected by the user, generate a protocol simulation message when the user selects the mode as protocol simulation, and acquire the simulated vehicle communication protocol selected by the user in real time; The vehicle information query module is used to generate a vehicle simulation message when the user selects the whole vehicle simulation mode, and obtain the user selected vehicle information in real time, and query all simulated vehicle communication protocols of the corresponding vehicle according to the user selected vehicle information.

[0058] Optionally, the integrity analysis module specifically includes: The protocol extraction submodule is used to extract the definition file of the simulated vehicle communication protocol from the preset protocol library according to the simulated vehicle communication protocol, and parse the protocol frame structure in the definition file to generate protocol frame data; The format check submodule is used to check the syntax and format of the protocol frame data to ensure that the format of the protocol frame complies with the standard specifications of the simulated vehicle communication protocol; The CRC check submodule is used to perform cyclic redundancy check on the protocol frame data, calculate and verify the check code of each protocol frame data, and detect whether there is error or damage in the data transmission process; The message generation submodule is used to generate a complete protocol message for the simulated vehicle communication protocol that has passed the verification.

[0059] Optionally, the protocol parsing module specifically includes: The transmission rate setting submodule is used to set the initial transmission rate and gradually increase the data flow by dynamically adjusting the transmission rate to simulate the link status under different load conditions; The data generation submodule is used to generate multiple sets of simulation data with different data lengths and formats, which are gradually introduced during the link simulation process to test the response speed and processing capability of the link.

[0060] Optionally, the connectivity analysis module specifically includes: The status information acquisition submodule is used to obtain the link status information at different time points during the test process according to the test results; The data analysis submodule is used to perform multi-dimensional data analysis on link status information at different time nodes, identify the fluctuation trend of link status information, and detect potential anomalies through pattern recognition algorithms.

[0061] Optionally, the data analysis submodule specifically includes: A time series analysis unit, used to evaluate the link status information using a time series analysis method, obtain the change trend of the link delay and signal strength over time, and identify abnormal peaks or fluctuations that continuously deviate from the normal range from the change trend; The anomaly detection unit is used to apply a machine learning algorithm to perform pattern recognition on the link status information, detect abnormal data points and record the status information corresponding to the abnormal data points.

[0062] The specific definition of the vehicle bus simulation device can be found in the definition of the vehicle bus simulation method above, which will not be repeated here. Each module in the above-mentioned vehicle bus simulation device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0063] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a vehicle bus simulation method is implemented.

[0064] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: Acquire the simulated vehicle communication protocol, parse the simulated vehicle communication protocol, obtain protocol parsing data, perform integrity check on the protocol parsing data, and generate a protocol complete message when the protocol parsing data is complete; Perform link simulation on the simulated vehicle communication protocol according to the complete protocol message, set simulation conditions and generate simulation data corresponding to the simulated vehicle communication protocol, perform high load test and random data transmission test, and obtain test results; Perform connectivity analysis on the vehicle communication protocol based on the test results, and generate a corresponding link test report based on the analysis results.

[0065] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: Acquire the simulated vehicle communication protocol, parse the simulated vehicle communication protocol, obtain protocol parsing data, perform integrity check on the protocol parsing data, and generate a protocol complete message when the protocol parsing data is complete; Perform link simulation on the simulated vehicle communication protocol according to the complete protocol message, set simulation conditions and generate simulation data corresponding to the simulated vehicle communication protocol, perform high load test and random data transmission test, and obtain test results; Perform connectivity analysis on the vehicle communication protocol based on the test results, and generate a corresponding link test report based on the analysis results.

[0066] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0067] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0068] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A vehicle bus simulation method, characterized in that: The vehicle bus simulation method comprises: Acquire a simulated vehicle communication protocol, parse the simulated vehicle communication protocol to obtain protocol parsing data, perform integrity check on the protocol parsing data, and generate a protocol complete message if the protocol parsing data is complete; Perform link simulation on the simulated vehicle communication protocol according to the complete message of the protocol, perform high load test and random data transmission test by setting simulation conditions and generating simulation data corresponding to the simulated vehicle communication protocol, and obtain test results; The vehicle communication protocol is subjected to connectivity analysis according to the test results, and a corresponding link test report is generated according to the analysis results.

2. The vehicle bus simulation method according to claim 1, characterized in that: Before obtaining the simulated vehicle communication protocol and parsing the simulated vehicle communication protocol, the method further includes: Acquire a user selection mode, and when the user selection mode is protocol simulation, generate a protocol simulation message, and acquire the simulated vehicle communication protocol selected by the user in real time; When the user selected mode is the whole vehicle simulation, a vehicle simulation message is generated, and the vehicle information selected by the user is obtained in real time, and all the simulated vehicle communication protocols of the corresponding vehicle are queried according to the vehicle information selected by the user.

3. The vehicle bus simulation method according to claim 1, characterized in that: The acquiring of the simulated vehicle communication protocol, parsing the simulated vehicle communication protocol to obtain protocol parsing data, performing integrity check on the protocol parsing data, and generating a protocol complete message when the protocol parsing data is complete, specifically includes: According to the simulated vehicle communication protocol, extracting a definition file of the simulated vehicle communication protocol from a preset protocol library, parsing a protocol frame structure in the definition file, and generating protocol frame data; Performing syntax and format checks on the protocol frame data to ensure that the format of the protocol frame complies with the standard specification of the simulated vehicle communication protocol; Performing a cyclic redundancy check on the protocol frame data, calculating and verifying the check code of each protocol frame data, and detecting whether there is an error or damage in the data during transmission; The protocol complete message is generated for the verified simulated vehicle communication protocol.

4. The vehicle bus simulation method according to claim 1, characterized in that: The link simulation of the simulated vehicle communication protocol is performed according to the complete message of the protocol, and the high load test and random data transmission test are performed by setting simulation conditions and generating simulation data corresponding to the simulated vehicle communication protocol, and obtaining the test results, specifically including: Set the initial transmission rate and gradually increase the data flow by dynamically adjusting the transmission rate to simulate the link status under different load conditions; Generate multiple sets of simulation data with different data lengths and formats, and gradually introduce them during the link simulation process to test the response speed and processing capability of the link.

5. The vehicle bus simulation method according to claim 1, characterized in that: The performing connectivity analysis on the vehicle communication protocol according to the test result specifically includes: Acquire link status information at different time points during the test according to the test results; Multi-dimensional data analysis is performed on the link status information at different time nodes to identify fluctuation trends of the link status information and detect potential anomalies through pattern recognition algorithms.

6. The vehicle bus simulation method according to claim 5, characterized in that: The performing of multi-dimensional data analysis on the link status information at different time nodes, identifying the fluctuation trend of the link status information, and detecting potential anomalies through a pattern recognition algorithm specifically includes: Using a time series analysis method to evaluate the link status information, obtain the change trend of link delay and signal strength over time, and identify abnormal peaks or fluctuations that continuously deviate from a normal range from the change trend; A machine learning algorithm is applied to perform pattern recognition on the link status information, detect abnormal data points and record status information corresponding to the abnormal data points.

7. A vehicle bus simulation device, characterized in that: The vehicle bus simulation device comprises: An integrity analysis module, used for acquiring a simulated vehicle communication protocol, parsing the simulated vehicle communication protocol to obtain protocol parsing data, performing integrity check on the protocol parsing data, and generating a protocol integrity message when the protocol parsing data is complete; A protocol parsing module, used to perform link simulation on the simulated vehicle communication protocol according to the complete message of the protocol, perform high load test and random data transmission test by setting simulation conditions and generating simulation data corresponding to the simulated vehicle communication protocol, and obtain test results; The connectivity analysis module is used to perform connectivity analysis on the vehicle communication protocol according to the test results, and generate a corresponding link test report according to the analysis results.

8. The vehicle bus simulation device according to claim 7, characterized in that: Before the integrity analysis module, it also includes: A mode acquisition module, used to acquire a mode selected by a user, generate a protocol simulation message when the mode selected by the user is protocol simulation, and acquire the simulated vehicle communication protocol selected by the user in real time; The vehicle information query module is used to generate a vehicle simulation message and obtain the user-selected vehicle information in real time when the user-selected mode is full vehicle simulation, and query all the simulated vehicle communication protocols of the corresponding vehicle according to the user-selected vehicle information.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the vehicle bus simulation method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the vehicle bus simulation method according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Data analysis method, device and equipment

    CN120821685A

  • Communication test system and method for vehicle equipment

    CN122120178A