Communication test positioning method, device and equipment based on real vehicle diagnosis service and storage medium

Through monitoring real -car communication behavior, determining the diagnostic command and staying time, and performing automated pressure testing, the problem of low communication efficiency of communication abnormalities in existing technology has been solved, and efficient and accurate communication abnormal fault positioning is achieved. stability.

CN119383065AActive Publication Date: 2025-01-28VOYAH AUTOMOBILE TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411510678.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-01-28
Estimated Expiration
2044-10-28

AI Technical Summary

Technical Problem

In the upgrade test of real-time remote air download technology, the method of lifting the ban does not match the process of remote air download technology upgrade, resulting in difficulty in accurately and efficiently positioning communication abnormalities, and relying on manual operation efficiency and being susceptible to human errors.

Method used

By monitoring the communication behavior of each section of the real car, determine the time for the diagnosis of communication diagnosis and communication diagnosis. Based on these commands and residence time to determine the state and restoration status of the communication, perform automated pressure testing, generate test reports, and output communication status message features characteristics Value to position communication abnormal failure.

Benefits of technology

Achieve efficient and accurate positioning of communication abnormal failures, improve the accuracy and efficiency of testing, reduce human and time investment, reduce the cost of testing, and ensure the stability and security of the vehicle communication system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119383065A_ABST
    Figure CN119383065A_ABST
Patent Text Reader

Abstract

The invention discloses a communication test positioning method, device and equipment based on real vehicle diagnosis service and a storage medium, and relates to the technical field of automobile communication control, and the method comprises the steps: monitoring the communication behavior of each network segment of a real vehicle, and determining a communication diagnosis command and communication diagnosis stay time; determining a communication stop state and a communication recovery state based on the communication diagnosis command and the communication diagnosis dwell time; and performing an automatic pressure test based on the communication stop state and the communication recovery state to determine a test report, and outputting a communication state message feature value based on the test report to position a communication abnormal fault. According to the method and the device, the communication stop state and the communication recovery state are determined, the automatic pressure test is executed to generate the test report, the communication state message feature value is accurately output, the communication abnormal fault is efficiently and accurately positioned, the test accuracy is improved, the test efficiency is remarkably improved, the manpower and time investment is reduced, and the test cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automobile communication control technology, and in particular to a communication test positioning method, device, equipment and storage medium based on real vehicle diagnostic services. Background Art

[0002] With the update and iteration of automotive electronic systems, the reliability requirements of the communication system are getting higher and higher when the real vehicle is undergoing remote over-the-air technology upgrades or other diagnostic services. When some models are undergoing real vehicle remote over-the-air technology upgrade tests during the R&D stage, occasional abnormal situations occur where certain functions of the real vehicle are unavailable after an upgrade is completed or successfully. Therefore, in order to ensure the integrity and safety of vehicle functions, it is necessary to test and locate possible abnormalities in the real vehicle communication system.

[0003] At present, the existing practice is to send specific diagnostic commands through diagnostic equipment, such as sending mute commands and unmute commands, so as to monitor and control the communication status. It is also necessary to monitor the communication behavior, record the communication status, and analyze the data after the test to determine whether there is any communication anomaly.

[0004] However, the existing practice of unblocking the ban method does not match the remote over-the-air download technology upgrade process, and the various diagnostic commands cannot suppress the positive response in the vehicle communication. In addition, the diagnostic commands rely on manual execution, which requires manual operation, is inefficient, and is susceptible to human errors. It is not only time-consuming and labor-intensive, but also difficult to conduct large-scale stress testing due to the lack of automation. At the same time, the repeatability and consistency of manual testing are difficult to guarantee, resulting in errors in the test results, thereby affecting the performance and safety of the vehicle. Therefore, how to test and locate communication anomalies more accurately and efficiently has become an urgent problem to be solved.

[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0006] The main purpose of this application is to provide a communication test positioning method, device, equipment and storage medium based on real vehicle diagnostic services, aiming to solve the technical problem of how to test and locate communication anomalies more accurately and efficiently.

[0007] To achieve the above objectives, the present application proposes a communication test positioning method based on real vehicle diagnostic service, the method comprising:

[0008] Monitor the communication behavior of each network segment of the actual vehicle, and determine the communication diagnosis command and communication diagnosis dwell time;

[0009] determining a communication stop state and a communication recovery state based on the communication diagnosis command and the communication diagnosis stay time;

[0010] An automated stress test is performed based on the communication stop state and the communication recovery state to determine a test report, and a communication abnormality fault is located based on a communication status message characteristic value output from the test report.

[0011] In one embodiment, the step of monitoring the communication behaviors of each network segment of the actual vehicle and determining the communication diagnosis command and the communication diagnosis dwell time includes:

[0012] Determine diagnostic commands, online handshake commands, diagnostic service commands, switching default session mode diagnostic commands, extended session response dwell time, and communication stop duration;

[0013] determining a communication diagnostic command based on the diagnostic service command and the switch default session mode diagnostic command;

[0014] A communication diagnosis dwell time is determined based on the extended session response dwell time and the communication stop duration.

[0015] In one embodiment, the step of determining the communication stop state and the communication recovery state based on the communication diagnosis command and the communication diagnosis dwell time includes:

[0016] Based on the diagnostic service command in the communication diagnostic command and the extended session response dwell time in the communication diagnostic dwell time, the whole vehicle is controlled to close the whole vehicle recording function, and the dwell time of the closing function and the mute command are obtained;

[0017] The communication status of the network segment is determined based on the shutdown function residence time, the mute command, the communication diagnosis residence time and the communication diagnosis command to obtain a communication stop state and a communication recovery state.

[0018] In one embodiment, the step of determining the communication status of the network segment based on the shutdown function residence time, the mute command, the communication diagnosis residence time, and the communication diagnosis command to obtain the communication stop state and the communication recovery state includes:

[0019] Controlling the entire vehicle to stop communicating based on the shutdown function stay time and the mute command to determine a communication stop state;

[0020] The communication recovery state is determined based on the communication stop duration in the communication diagnosis stay time and the default session mode switching diagnosis command in the communication diagnosis command controlling the entire vehicle to resume communication.

[0021] In one embodiment, the step of performing an automated stress test based on the communication stop state and the communication recovery state to determine a test report, and outputting a communication status message characteristic value based on the test report to locate a communication abnormality fault includes:

[0022] Get the target stress test times;

[0023] Performing an automated stress test based on the target stress test number, the communication stop state, and the communication recovery state to determine a test report;

[0024] Based on the test report output communication status message characteristic value, communication abnormality fault is located.

[0025] In one embodiment, the step of performing an automated stress test based on the target stress test times, the communication stop state, and the communication recovery state to determine a test report includes:

[0026] Obtaining a network segment message characteristic value and a network segment message quantity, wherein the network segment message characteristic value includes a network segment message characteristic value before muting, a network segment message characteristic value after muting, and a network segment message characteristic value after muting is lifted, and the network segment message quantity includes a network segment message quantity before muting, a network segment message quantity after muting, and a network segment message quantity after muting is lifted;

[0027] The network segment communication status is judged based on the characteristic value of the network segment message before muting, the characteristic value of the network segment message after muting, the characteristic value of the network segment message after unmuting, the number of network segment messages before muting, the number of network segment messages after muting and the number of network segment messages after unmuting to obtain a test report.

[0028] In one embodiment, the step of determining the network segment communication status to obtain a test report based on the network segment message characteristic value before muting, the network segment message characteristic value after muting, the network segment message characteristic value after unmuting, the number of network segment messages before muting, the number of network segment messages after muting, and the number of network segment messages after unmuting includes:

[0029] Comparing the number of messages in the network segment before the mute with the number of messages in the network segment after the mute to determine the communication status of the first network segment;

[0030] Compare the message characteristic value of the network segment before the ban and the message characteristic value of the network segment after the ban is lifted to determine the communication state of the second network segment;

[0031] A network segment communication state is determined based on the first network segment communication state and the first network segment communication state, and a test report is obtained based on the network segment communication state.

[0032] In addition, to achieve the above-mentioned purpose, the present application also proposes a communication test positioning device based on a real vehicle diagnostic service, and the communication test positioning device based on a real vehicle diagnostic service includes:

[0033] A determination module is used to monitor the communication behavior of each network segment of the actual vehicle and determine the communication diagnosis command and communication diagnosis dwell time;

[0034] A processing module, configured to determine a communication stop state and a communication recovery state based on the communication diagnosis command and the communication diagnosis dwell time;

[0035] An execution module is used to perform an automated stress test based on the communication stop state and the communication recovery state to determine a test report, and output a communication status message characteristic value based on the test report to locate a communication abnormality fault.

[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a communication test positioning device based on real vehicle diagnostic services, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the communication test positioning method based on real vehicle diagnostic services as described above.

[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the communication test positioning method based on the real vehicle diagnostic service as described above are implemented.

[0038] One or more technical solutions proposed in this application have at least the following technical effects:

[0039] The present application proposes a communication test positioning method based on real vehicle diagnostic services, which monitors the communication behavior of each network segment of the real vehicle, determines the communication diagnostic command and the communication diagnostic dwell time; determines the communication stop state and the communication recovery state based on the communication diagnostic command and the communication diagnostic dwell time; performs automated stress testing based on the communication stop state and the communication recovery state to determine the test report, and outputs the communication status message characteristic value based on the test report to locate the abnormal communication fault. The present application automatically monitors the communication behavior of each network segment of the real vehicle, determines the communication diagnostic command and the communication diagnostic dwell time, thereby determining the communication stop state and the communication recovery state, and performs automated stress testing to generate a test report, accurately outputs the communication status message characteristic value, efficiently and accurately locates the abnormal communication fault, improves the accuracy of the test, and significantly improves the test efficiency through automated processes, reduces the investment of manpower and time, and reduces the test cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0042] Figure 1 A flow chart of the first embodiment of the communication test positioning method based on the real vehicle diagnostic service of the present application;

[0043] Figure 2 A flow chart of the second embodiment of the communication test positioning method based on the real vehicle diagnostic service provided by the present application;

[0044] Figure 3 A brief flowchart of a communication test positioning method based on a real vehicle diagnostic service provided in an embodiment of the present application;

[0045] Figure 4 This is a schematic diagram of the module structure of the communication test positioning device based on the real vehicle diagnosis service according to the embodiment of the present application;

[0046] Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the communication test positioning method based on the real vehicle diagnostic service in the embodiment of the present application.

[0047] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0048] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0049] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0050] The main solution of the embodiment of the present application is: monitor the communication behavior of each network segment of the actual vehicle, determine the communication diagnostic command and the communication diagnostic dwell time; determine the communication stop state and the communication recovery state based on the communication diagnostic command and the communication diagnostic dwell time; perform automated stress testing based on the communication stop state and the communication recovery state to determine a test report, and output the communication status message characteristic value based on the test report to locate the communication abnormality.

[0051] In this embodiment, for the convenience of description, the following description is made by taking the identification of a communication test positioning device based on a real vehicle diagnosis service as the execution subject.

[0052] Since the existing technology for unblocking the ban does not match the remote over-the-air download technology upgrade process, each diagnostic command cannot suppress the affirmative response in the vehicle communication, and relies on manually executed diagnostic commands, which requires manual operation, is inefficient, and is susceptible to human errors. It is not only time-consuming and labor-intensive, but also difficult to conduct large-scale stress testing due to the lack of automation. At the same time, the repeatability and consistency of manual testing are difficult to guarantee, resulting in errors in the test results, thereby affecting the performance and safety of the vehicle.

[0053] The present application provides a solution to monitor the communication behaviors of each network segment of an actual vehicle, determine the communication diagnostic command and the communication diagnostic dwell time; determine the communication stop state and the communication recovery state based on the communication diagnostic command and the communication diagnostic dwell time; perform an automated stress test based on the communication stop state and the communication recovery state to determine a test report, and output the communication status message characteristic value based on the test report to locate the communication abnormality fault.

[0054] It can be seen from the above embodiments that the present application automatically monitors the communication behaviors of each network segment of the actual vehicle, determines the communication diagnostic commands and the communication diagnostic dwell time, thereby determining the communication stop state and the communication recovery state, and performs automated stress testing to generate a test report, accurately outputs the characteristic values ​​of the communication status message, efficiently and accurately locates communication abnormalities and faults, improves the accuracy of the test, and significantly improves the test efficiency through automated processes, reduces the investment of manpower and time, and reduces the test cost.

[0055] Based on this, the embodiment of the present application provides a communication test positioning method based on real vehicle diagnostic service, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the communication test positioning method based on real vehicle diagnostic service of the present application.

[0056] In this embodiment, the communication test positioning method based on real vehicle diagnostic service includes steps S10 to S30:

[0057] Step S10, monitoring the communication behaviors of each network segment of the actual vehicle, and determining the communication diagnosis command and the communication diagnosis dwell time;

[0058] It should be noted that the communication diagnosis command reflects the characteristics of a command that expects to perform a specific diagnostic operation, and the communication diagnosis dwell time reflects the characteristics of the length of time to wait for a response after sending a diagnostic command.

[0059] It can be understood that by accurately monitoring and controlling the communication diagnostic commands and the communication diagnostic dwell time, the behavior of the actual vehicle communication system under different operating conditions can be more accurately simulated, and communication can be restored without abnormalities within the communication diagnostic dwell time, ensuring that the communication system operates stably and reliably, improving the efficiency of communication and the accuracy of diagnosis, and reducing the risk of vehicle function failure due to communication abnormalities.

[0060] In addition, it should be noted that automated stress testing can simulate complex communication scenarios, quickly locate and resolve communication anomalies, thereby improving the stability and reliability of the vehicle's communication system, ensuring that the vehicle can resume normal communication functions after muting and unmuting operations, improving vehicle safety and user experience, reducing errors and inconsistencies in human operations, reducing testing costs, and improving the repeatability and maintainability of the testing process.

[0061] For ease of understanding, the following description is given by taking determining a communication diagnosis command and a communication diagnosis dwell time as an example, wherein the information collection device is an information collection module, and the storage device is a memory.

[0062] The diagnostic device sends diagnostic commands in the form of functional addressing, such as the 10h 83h command sequence, and sends online handshake commands in the form of functional addressing with a period of 2s, such as the 3Eh 80h command sequence. At this time, the default session mode enters the extended session mode, and the extended session response residence time is determined, such as 100ms. It is expected that the vehicle ECU enters the extended session mode and can maintain the session. The diagnostic device sends diagnostic service commands in the form of functional addressing, such as the 85h 82h command sequence and the 28h83h 03h command sequence, that is, the mute is successful, and then waits for the extended session response residence time, such as 100ms. The diagnostic device sends the default session mode switching diagnostic command in the form of functional addressing, such as 10h 81h command sequence, and enter the default session mode at the same time. At this time, in the default session mode, it is expected that all ECUs of the entire vehicle will resume communication, that is, the ban is successfully lifted. The communication diagnostic command is determined based on the diagnostic service command and the default session mode switching diagnostic command, and the communication behavior of the entire vehicle ECU is continuously monitored to determine the communication stop duration, such as 5 minutes. It is expected that all ECUs can maintain the ban and no error frame is generated. The communication diagnostic dwell time is determined based on the extended session response dwell time and the communication stop duration. The information acquisition module determines the communication diagnostic command and the communication diagnostic dwell time, and stores the communication diagnostic command and the communication diagnostic dwell time in the memory, and performs subsequent processing based on the communication diagnostic command and the communication diagnostic dwell time.

[0063] In a feasible implementation, step S10 may include steps A11 to A13:

[0064] Step A11, determining a diagnostic command, an online handshake command, a diagnostic service command, a default session mode switching diagnostic command, an extended session response dwell time, and a communication stop duration;

[0065] It should be noted that the diagnostic command reflects the characteristics of the system performing basic diagnostic operations, the online handshake command reflects the characteristics of the system establishing and maintaining communication sessions, the diagnostic service command reflects the characteristics of the system executing specific diagnostic services, the switching default session mode diagnostic command reflects the characteristics of the system changing specific diagnostic services, the extended session response dwell time reflects the characteristics of the time the system waits for a response after sending a diagnostic command, and the communication stop duration reflects the characteristics of the length of time the system expects to stop communication after executing certain diagnostic commands.

[0066] Step A12, determining a communication diagnostic command based on the diagnostic service command and the switching default session mode diagnostic command;

[0067] It can be understood that the diagnostic service command corresponds to a specific diagnostic service ID and is used to perform complex diagnostic operations. For example, the diagnostic service command is an 85h 82h command sequence and a 28h 83h 03h command sequence. The 85h 82h command sequence is used to identify a fault in a vehicle emission control system or its components, and is also used to turn off or clear a diagnostic fault code, i.e., clear a fault code previously stored in the vehicle ECU. The 28h 83h 03h command sequence is used to control the communication behavior of the ECU in the vehicle network, such as being used to disable or un-disable the ECU, i.e., temporarily stop or restore the communication of the ECU, and is also used to specify specific operations to be performed under the communication control service, instructing the ECU to enter a special communication state, such as being used to prepare the ECU for a software update or reset operation, and instructing the ECU to stop sending all non-essential communication messages and only send necessary messages to maintain the current diagnostic session.

[0068] In addition, it should be noted that the switch default session mode diagnostic command allows the system to switch between different session modes. For example, the switch default session mode diagnostic command is a 10h 81h command sequence, which is used to control the diagnostic session with the vehicle electronic control unit ECU. The session mode can be changed to access different levels of diagnostic information. It is also used to specify specific operations to be performed under the diagnostic session control service, such as switching from the current extended session mode back to the default session mode.

[0069] Step A13: determining a communication diagnosis dwell time based on the extended session response dwell time and the communication stop duration.

[0070] It is understandable that in the vehicle's network system, diagnostic commands and response information need to be transmitted between multiple ECUs, and different ECUs take different amounts of time to process diagnostic commands. The extended session response dwell time also needs to take this network communication delay into account. Therefore, a reasonable extended session response dwell time needs to be set. If the extended session response dwell time is set too short, the system will mistakenly assume that the communication has failed before the ECU actually responds, resulting in an unstable or inaccurate diagnostic process. If the extended session response dwell time is too long, the diagnostic process will be unnecessarily prolonged. When performing a diagnostic mute test, it is necessary to ensure that all relevant ECUs stop communicating within the same time period. By controlling the duration of the communication stop, network communication problems such as message loss, response delays, or network conflicts can be more accurately detected and diagnosed.

[0071] Step S20, determining a communication stop state and a communication recovery state based on the communication diagnosis command and the communication diagnosis dwell time;

[0072] It should be noted that the communication stop state reflects the characteristics of the function execution state after the mute command is executed, and the communication recovery state reflects the characteristics of the function execution state after the mute release command is executed.

[0073] It can be understood that, after performing a diagnostic test and executing the mute command, it is determined whether the communication is stopped, and a mute function diagnosis is performed to determine whether the mute is successful. If the mute is successful, the communication stop state is a mute success, which means that the whole vehicle ECU has been successfully mute. If the mute fails, the communication stop state is a mute failure, which means that the ECU has been located. After executing the unmute command, it is determined whether the communication is restored, and an unmute function diagnosis is performed to determine whether the mute is successfully lifted. If the mute is successfully lifted, the communication recovery state is a mute success, which means that the whole vehicle ECU has been successfully lifted. If the mute fails to be lifted, the communication recovery state is a mute failure, which means that the ECU has failed to lift the mute, which means that the ECU has been located.

[0074] In addition, it should be noted that by determining the communication stop state and the communication recovery state, the position of the communication anomaly can be located, the accuracy and safety of the diagnostic operation can be improved, and potential failures caused by communication problems can be reduced.

[0075] For ease of understanding, the determination of the communication stop state and the communication recovery state is taken as an example for explanation, wherein the information collection device is an information collection module, the storage device is a memory, and the processing device is a processing module.

[0076] The information acquisition module determines the communication diagnostic command and the communication diagnostic residence time and stores them in the memory, sends a frame of diagnostic command, such as the 10h 83h command sequence, waits for 100ms, and then sends an online handshake command with a 2s period to maintain the session, such as the 3Eh 80h command sequence, controls the whole vehicle to close the whole vehicle recording function based on the diagnostic service command in the communication diagnostic command and the extended session response residence time in the communication diagnostic residence time, and obtains the shutdown function residence time and the mute command, sends a frame of diagnostic service command mute, such as the 85h 82h command sequence, waits for 100ms, controls the whole vehicle to stop communication based on the shutdown function residence time and the mute command to determine the communication stop state, sends a frame of diagnostic service command to lift the mute, such as the 28h 83h 03h diagnostic instruction, and continuously monitors the communication behavior of each network segment for 5min, sends a frame of switching the default session mode diagnostic command, such as the 10h 81h command sequence, waits for 100ms, and then stops the 3Eh 80h diagnostic session to maintain sending, and continuously monitors the communication behavior of each network segment for 30s. The communication recovery state is determined based on the communication stop duration in the communication diagnosis stay time and the default session mode switching diagnosis command in the communication diagnosis command controlling the entire vehicle to resume communication.

[0077] In a feasible implementation, step S20 may include steps B11 to B12:

[0078] Step B11, based on the diagnostic service command in the communication diagnostic command and the extended session response dwell time in the communication diagnostic dwell time, controlling the vehicle to close the vehicle recording function, and obtaining the dwell time for closing the function and the mute command;

[0079] It should be noted that the shutdown function retention time reflects the characteristics of the length of time to wait after executing the diagnostic command to shut down the vehicle recording function, and the mute command reflects the characteristics of the command to temporarily stop the vehicle communication.

[0080] It can be understood that by monitoring the changes in communication status before and after the mute command, the location and cause of the communication anomaly during the mute command can be accurately identified, and the communication anomaly can be effectively located, which not only improves the efficiency of fault diagnosis, but also reduces the risk of vehicle failure caused by communication problems and improves the stability and safety of the vehicle communication system.

[0081] Step B12, based on the shutdown function residence time, the mute command, the communication diagnosis residence time and the communication diagnosis command, the communication status of the network segment is determined to obtain the communication stop status and the communication recovery status.

[0082] It can be understood that by precisely controlling the shutdown function dwell time and executing the mute command, there can be sufficient time to respond and complete the expected operation when executing the diagnostic command, thereby avoiding misjudgment due to insufficient waiting time, providing a stable communication environment, reducing external interference, and improving the accuracy and reliability of the test.

[0083] In a feasible implementation, step B12 may include steps C11 to C12:

[0084] Step C11, controlling the entire vehicle to stop communicating based on the shutdown function stay time and the mute command to determine a communication stop state;

[0085] It can be understood that by precisely controlling the shutdown function dwell time and executing the mute command, communication anomalies during mute can be effectively located, the location and cause of communication anomalies during mute can be accurately and intelligently identified, the efficiency of fault diagnosis can be improved, and vehicle performance and user experience can be significantly improved.

[0086] Step C12, controlling the whole vehicle to resume communication based on the communication stop duration in the communication diagnosis dwell time and the default session mode switching diagnosis command in the communication diagnosis command to determine the communication recovery state.

[0087] It can be understood that by executing the switch default session mode diagnostic command, the communication anomaly when lifting the ban can be effectively located, the location and cause of the communication anomaly can be accurately identified, the efficiency of fault diagnosis can be improved, and the vehicle performance and user experience can be significantly improved.

[0088] Step S30, performing an automated stress test based on the communication stop state and the communication recovery state to determine a test report, and outputting a communication status message characteristic value based on the test report to locate a communication abnormality fault.

[0089] It should be noted that the test report reflects the characteristics of the abnormal communication failure state.

[0090] It can be understood that the test report is generated through automated stress testing. Through automated testing, the repetitiveness and labor intensity of manual testing are reduced, the efficiency of the testing process is improved, the manpower requirements are reduced, and the repeatability of the test is improved. The testing cost caused by human errors is reduced, and more communication scenarios can be simulated. Communication behavior can be continuously monitored, thereby improving the accuracy of the test results. The communication status message characteristic values ​​contained in the test report can quickly identify and locate communication abnormalities, thereby shortening the fault diagnosis time.

[0091] For ease of understanding, a test report is taken as an example for explanation, wherein the information collection device is an information collection module, the storage device is a memory, and the execution device is an execution module.

[0092] Develop a Panel, use Input or Output Box controls to input the number of stress tests that need to be performed, that is, the target number of stress tests, such as 1000 times. The automated test script obtains the number of stress tests performed by the Panel to implement the cyclic stress test function. The information collection module obtains the target number of stress tests, the communication stop status, and the communication recovery status and stores them in the memory, obtains the network segment message characteristic value and the number of network segment messages, the network segment message characteristic value includes the network segment message characteristic value before muting, the network segment message characteristic value after muting, and the network segment message characteristic value after unmuting, and the network segment message number includes the network segment message number before muting, the network segment message number after muting, and the network segment message number after unmuting.

[0093] Get the message characteristic value and quantity of the network segment before muting, start monitoring the communication of each CAN network segment for 5 seconds, use the onmessage* function to store the CAN message characteristic value ID received by each network segment into the array ALLID_Before[this.can][MsgID_Bef], and count the message quantity Num_ControlBefore[this.can] according to the non-repeated characteristic value ID of each network segment, where the one-dimensional array this.can corresponds to each CAN network segment channel, and the two-dimensional data MsgID_Bef corresponds to the message characteristic value ID before 28(h) muting, get the message characteristic value and quantity of the network segment after muting, start monitoring the communication of each CAN network segment for 5 minutes after the muting instruction, and use on The message* function stores the CAN messages that are still communicating in each network segment into the array ControlFail[this.can][MsgID_Fail], and searches the DBC file according to the message characteristic value ID, and outputs the mute failure message characteristic value ID and the ECU to which it belongs from the test report. Among them, the one-dimensional array this.can corresponds to each CAN network segment channel, and the two-dimensional data MsgID_Fail corresponds to the mute failure message characteristic value ID. The characteristic value and quantity of the network segment message after the mute is lifted are obtained. After the mute command is operated, the monitoring of the communication of each CAN network segment is started, and the on message* function is used to store the CAN message characteristic value ID received by each network segment into the array ALLID_After[this.can][MsgID_Aft], and the number of messages Num_ControlAfter[this.can] is counted according to the non-repeated characteristic value ID of each network segment. Among them, the one-dimensional array this.can corresponds to each CAN network segment channel, and the two-dimensional data MsgID_Aft corresponds to the message ID after the mute is lifted.

[0094] The number of messages in the network segment before the ban is compared with the number of messages in the network segment after the ban is determined to determine the communication status of the first network segment, the characteristic value of the messages in the network segment before the ban is compared with the characteristic value of the messages in the network segment after the ban is lifted to determine the communication status of the second network segment, and the network segment communication status is determined based on the first network segment communication status and the second network segment communication status.

[0095] Compare the number of messages after each network segment is unblocked with the number before the ban. When If(Num_ControlAfter[this.can]==Num_ControlAfter[this.can]) is satisfied, it is determined that the communication is normal after the ban is lifted; when If(Num_ControlAfter[this.can]!=Num_ControlAfter[this.can]) is satisfied, it is determined that the communication is abnormal after the ban is lifted, and a secondary judgment is performed, which is determined as a specific message to the ECU. Compare the message feature value ID of each network segment after the ban is lifted with the number before the ban. When If(ALLID_After[this.can][MsgID_Aft]==ALLID_Before[this.can][MsgID_Bef]) is satisfied, it is determined that the communication of the message in the network segment is normal after the ban is lifted; when If(ALLID_After[this.can][MsgID_Aft]==ALLID_Before[this.can][MsgID_Bef]) is satisfied, it is determined that the communication of the message in the network segment is normal after the ban is lifted; gID_Aft]!=ALLID_Before[this.can][MsgID_Bef]), it is determined that the communication of the message in the network segment is abnormal after the ban is lifted.

[0096] A test report is obtained based on the communication status of the network segment, and a communication abnormality fault is located based on the communication status message characteristic value outputted from the test report. The test report outputs the communication normal after the ban is lifted or the communication abnormality message characteristic value ID to the ECU.

[0097] The present application proposes a communication test positioning method based on real vehicle diagnostic service, which monitors the communication behavior of each network segment of the real vehicle, determines the communication diagnostic command and the communication diagnostic dwell time; determines the communication stop state and the communication recovery state based on the communication diagnostic command and the communication diagnostic dwell time; performs an automated stress test based on the communication stop state and the communication recovery state to determine the test report, and outputs the communication status message characteristic value based on the test report to locate the abnormal communication fault. The technical problem of how to efficiently and accurately perform intelligent positioning of abnormal communication faults is solved. Compared with the prior art, the present application monitors the communication behavior of each network segment of the real vehicle, determines the communication diagnostic command and the communication diagnostic dwell time, uses the automated test process to accurately simulate the behavior of the real vehicle communication system under different operating states, determines the communication stop state and the communication recovery state, and performs an automated stress test to generate a test report, accurately outputs the communication status message characteristic value, significantly improves the accuracy and efficiency of the test, enhances the stability and reliability of the communication system, ensures that the vehicle can restore normal communication functions after the mute and unmute operations, and improves the safety of the vehicle and user experience.

[0098] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction and will not be repeated later.

[0099] In this embodiment, refer to Figure 2 , Figure 2 This is a flow chart of the second embodiment of the communication test positioning method based on the real vehicle diagnostic service of the present application, step S30 specifically includes steps S31 to S33:

[0100] Step S31, obtaining the target stress test times;

[0101] It should be noted that the target number of stress tests reflects the characteristic of setting a specific number of test rounds according to actual needs.

[0102] It is understandable that different degrees of communication load and pressure conditions can be simulated based on the target stress test times, so that the test can be repeated under specific conditions, so that the test results are comparative, thereby comprehensively evaluating the performance of the communication system under repeated stress and accurately locating occasional communication anomalies.

[0103] For ease of understanding, obtaining the target stress test times is taken as an example for explanation, wherein the information collection device is the information collection module, the storage device is the memory, and the execution device is the execution module.

[0104] Develop a Panel, use the Input or Output Box control to input the number of stress tests to be performed, that is, the target number of stress tests, such as 1000 times. The automated test script obtains the number of stress tests performed by the Panel to implement the cyclic stress test function. The information collection module obtains the target number of stress tests and stores it in the memory, and performs subsequent processing based on the target number of stress tests.

[0105] Step S32, performing an automated stress test based on the target stress test times, the communication stop state, and the communication recovery state to determine a test report;

[0106] It is understandable that by using automated scripts or programs, the test is repeatedly executed according to the established communication stop state and communication recovery state to simulate long-term communication load, and a detailed test report is generated based on the data collected during the test to characterize the performance of the communication system under stress conditions, so that abnormal communication behavior can be captured.

[0107] For ease of understanding, a test report is taken as an example for explanation, wherein the information collection device is an information collection module, the storage device is a memory, and the execution device is an execution module.

[0108] Develop a Panel, use Input or Output Box controls to input the number of stress tests to be performed, that is, the target number of stress tests, such as 1000 times. The automated test script obtains the number of stress tests performed by the Panel to implement the cyclic stress test function. The information acquisition module obtains the target number of stress tests, the communication stop status, and the communication recovery status and stores them in the memory, obtains the network segment message characteristic value and the number of network segment messages, the network segment message characteristic value includes the network segment message characteristic value before muting, the network segment message characteristic value after muting, and the network segment message characteristic value after unmuting, the network segment message quantity includes the network segment message quantity before muting, the network segment message quantity after muting, and the network segment message quantity after unmuting, and compares the message quantity of each network segment after unmuting with the message quantity before muting in turn. When If(Num_ControlAfter[this.can]= ... =After[this.can]), it is determined that the communication is normal after the ban is lifted; when If(Num_ControlAfter[this.can]!=Num_ControlAfter[this.can]), it is determined that the communication is abnormal after the ban is lifted, and a secondary judgment is performed, which is defined as a specific message to the ECU, and the message feature value ID of each network segment after the ban is lifted is compared with that before the ban. When If(ALLID_After[this.can][MsgID_Aft]==ALLID_Before[this.can][MsgID_Bef]) is satisfied, it is determined that the communication of the network segment and the message is normal after the ban is lifted; when If(ALLID_After[this.can][MsgID_Aft]!=ALLID_Before[this.can][MsgID_Bef]) is satisfied, it is determined that the communication of the network segment and the message is abnormal after the ban is lifted, a test report is obtained based on the communication status of the network segment, and subsequent processing is performed based on the test report.

[0109] In a feasible implementation, step S32 may include steps D11 to D12:

[0110] Step D11, obtaining a network segment message characteristic value and a network segment message quantity, wherein the network segment message characteristic value includes a network segment message characteristic value before muting, a network segment message characteristic value after muting, and a network segment message characteristic value after unmuting, and the network segment message quantity includes a network segment message quantity before muting, a network segment message quantity after muting, and a network segment message quantity after unmuting;

[0111] It should be noted that the network segment message characteristic value reflects the characteristics of the content and attributes of the message, and the network segment message quantity reflects the characteristics of the total number of messages passing through a specific network segment within a specific time.

[0112] It can be understood that the network segment message characteristic value can identify the status of the message, such as whether it is transmitted correctly, whether there are errors and whether it is delayed, so as to quickly locate communication anomalies and improve the accuracy of fault detection. The number of network segment messages represents the communication activity of the network segment, that is, the frequency of communication events occurring within a specific time, which can timely discover and resolve network congestion or other performance problems, thereby optimizing network performance.

[0113] Step D12, based on the message characteristic value of the network segment before muting, the message characteristic value of the network segment after muting, the message characteristic value of the network segment after unmuting, the number of network segment messages before muting, the number of network segment messages after muting and the number of network segment messages after unmuting, determine the network segment communication status and obtain a test report.

[0114] It can be understood that by comparing the characteristic values ​​and quantity of network segment messages, the location and cause of communication anomalies can be accurately identified, thereby generating a test report containing detailed information on the communication status, more accurately identifying communication anomalies, improving the reliability of test results, and quickly locating faults, shortening fault handling time, improving system stability and security, and promptly discovering and resolving communication problems, thereby improving user satisfaction.

[0115] In a feasible implementation, step D12 may include steps E11 to E13:

[0116] Step E11, comparing the number of messages in the network segment before muting and the number of messages in the network segment after muting to determine the communication state of the first network segment;

[0117] It should be noted that the communication state of the first network segment reflects the characteristics of the change state of the communication load after the ban.

[0118] It can be understood that the comparative analysis of the number of network segment messages can measure the communication efficiency. If the number of network segment messages is significantly reduced after muting, it indicates that the muting function is effective. If the number of network segment messages does not decrease after muting, it indicates that there are communication problems, such as message filtering failure or communication control commands are not executed correctly.

[0119] Step E12, comparing the message characteristic value of the network segment before the ban and the message characteristic value of the network segment after the ban is lifted to determine the communication state of the second network segment;

[0120] It should be noted that the second network segment communication status reflects the characteristics of the change state of the communication quality after the ban is lifted.

[0121] It is understandable that comparative analysis of the characteristic values ​​of messages in network segments can measure the recovery situation. If the message characteristic values ​​are abnormal after the ban is lifted, it indicates abnormal communication behavior or potential system errors.

[0122] Step E13, determining a network segment communication status based on the first network segment communication status and the first network segment communication status, and obtaining a test report based on the network segment communication status.

[0123] It can be understood that by comprehensively evaluating the communication status of the network segment to locate communication anomalies, there can be no abnormal communication recovery after the communication stops, and the ECU of the entire vehicle can restore communication, so as to timely discover and solve potential problems, enhance the overall stability of the system, shorten the fault response time, and enable the system to quickly resume normal operation.

[0124] Step S33: locate the abnormal communication fault based on the communication status message characteristic value outputted from the test report.

[0125] It can be understood that real-time monitoring of communication status allows the system to detect faults immediately when they occur, improving the accuracy of fault detection, and through test reports, abnormal communication faults can be quickly located, improving fault detection efficiency.

[0126] For ease of understanding, an example of obtaining a test report is used for explanation, wherein the information collection device is an information collection module, the storage device is a memory, and the execution device is an execution module.

[0127] The information acquisition module obtains the communication status of the network segment, obtains a test report based on the communication status of the network segment, outputs the communication status message characteristic value based on the test report to locate the communication abnormality fault, and the test report outputs the communication normal or communication abnormality message characteristic value ID after the ban is lifted to the ECU.

[0128] The present application proposes a communication test positioning method based on real vehicle diagnostic services, which obtains the target stress test times; performs automated stress testing based on the target stress test times, the communication stop state, and the communication recovery state to determine the test report; and outputs the communication status message characteristic value based on the test report to locate the communication abnormality fault. This solves the technical problem of how to efficiently and accurately perform performance evaluation of occasional communication abnormalities and locate communication abnormality faults based on the generated test report. Compared with the prior art, this application obtains the target stress test times and performs automated stress testing, quickly and accurately simulates different communication load scenarios, collects test data and generates detailed test reports, analyzes the communication status message characteristic values ​​in the test report, quickly identifies and locates communication abnormalities, improves the stability and reliability of the system, and reduces maintenance costs and improves maintenance efficiency.

[0129] For example, in order to help understand the implementation process of the communication test positioning method based on the real vehicle diagnosis service obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 3 , Figure 3 A brief flow chart of a communication test positioning method based on real vehicle diagnostic service is provided, specifically:

[0130] Referring to Example 1, the communication behavior of each network segment of the actual vehicle is monitored, and the communication diagnostic command and the communication diagnostic dwell time are determined; the communication stop state and the communication recovery state are determined based on the communication diagnostic command and the communication diagnostic dwell time; the automatic stress test is performed based on the communication stop state and the communication recovery state to determine the test report, and the communication abnormality fault is located based on the communication status message characteristic value output from the test report. Referring to Example 2, the target stress test times are obtained; the automatic stress test is performed based on the target stress test times, the communication stop state and the communication recovery state to determine the test report; the communication abnormality fault is located based on the communication status message characteristic value output from the test report. CANoe monitors all network segments of the actual vehicle, obtains the Panel panel stress test times, the vehicle ECU enters the extended session mode, the vehicle ECU turns off the DTC recording function, the vehicle ECU stops communicating, determines the communication stop state, the vehicle ECU is successfully muted or the vehicle ECU fails to muted, the vehicle ECU resumes communication, determines the communication recovery state, the vehicle ECU successfully lifts the muting or the vehicle ECU fails to lift the muting, the stress test times are completed, and the test report outputs the results.

[0131] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the communication test positioning method based on the real vehicle diagnostic service of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0132] This application also provides a communication test positioning device based on real vehicle diagnostic services, please refer to Figure 4 The communication test positioning device based on real vehicle diagnostic service includes:

[0133] The determination module 10 is used to monitor the communication behavior of each network segment of the real vehicle and determine the communication diagnosis command and the communication diagnosis dwell time;

[0134] A processing module 20, configured to determine a communication stop state and a communication recovery state based on the communication diagnosis command and the communication diagnosis dwell time;

[0135] The execution module 30 is used to perform an automated stress test based on the communication stop state and the communication recovery state to determine a test report, and output a communication status message characteristic value based on the test report to locate a communication abnormality fault.

[0136] The determination module 10 is further used to determine a diagnostic command, an online handshake command, a diagnostic service command, a default session mode switching diagnostic command, an extended session response dwell time, and a communication stop duration;

[0137] determining a communication diagnostic command based on the diagnostic service command and the switch default session mode diagnostic command;

[0138] A communication diagnosis dwell time is determined based on the extended session response dwell time and the communication stop duration.

[0139] The processing module 20 is further used to control the whole vehicle to turn off the whole vehicle recording function based on the diagnostic service command in the communication diagnostic command and the extended session response residence time in the communication diagnostic residence time, and obtain the shutdown function residence time and the mute command;

[0140] The communication status of the network segment is determined based on the shutdown function residence time, the mute command, the communication diagnosis residence time and the communication diagnosis command to obtain a communication stop state and a communication recovery state.

[0141] The processing module 20 is further used to control the whole vehicle to stop communication and determine the communication stop state based on the shutdown function stay time and the mute command;

[0142] The communication recovery state is determined based on the communication stop duration in the communication diagnosis stay time and the default session mode switching diagnosis command in the communication diagnosis command controlling the entire vehicle to resume communication.

[0143] The execution module 30 is also used to obtain the target stress test times;

[0144] Performing an automated stress test based on the target stress test number, the communication stop state, and the communication recovery state to determine a test report;

[0145] Based on the test report output communication status message characteristic value, communication abnormality fault is located.

[0146] The execution module 30 is further used to obtain a network segment message characteristic value and a network segment message quantity, wherein the network segment message characteristic value includes a network segment message characteristic value before muting, a network segment message characteristic value after muting, and a network segment message characteristic value after unmuting, and the network segment message quantity includes a network segment message quantity before muting, a network segment message quantity after muting, and a network segment message quantity after unmuting;

[0147] The network segment communication status is judged based on the characteristic value of the network segment message before muting, the characteristic value of the network segment message after muting, the characteristic value of the network segment message after unmuting, the number of network segment messages before muting, the number of network segment messages after muting and the number of network segment messages after unmuting to obtain a test report.

[0148] The execution module 30 is further used to compare the number of messages in the network segment before the mute and the number of messages in the network segment after the mute to determine the communication state of the first network segment;

[0149] Compare the message characteristic value of the network segment before the ban and the message characteristic value of the network segment after the ban is lifted to determine the communication state of the second network segment;

[0150] A network segment communication state is determined based on the first network segment communication state and the first network segment communication state, and a test report is obtained based on the network segment communication state.

[0151] The communication test positioning device based on real vehicle diagnostic service provided by the present application adopts the communication test positioning method based on real vehicle diagnostic service in the above embodiment, which can solve the technical problem of how to test and locate communication anomalies more accurately and efficiently. Compared with the prior art, the beneficial effects of the communication test positioning device based on real vehicle diagnostic service provided by the present application are the same as the beneficial effects of the communication test positioning method based on real vehicle diagnostic service provided by the above embodiment, and the other technical features of the communication test positioning device based on real vehicle diagnostic service are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0152] The present application provides a communication test positioning device based on a real vehicle diagnostic service, and the communication test positioning device based on a real vehicle diagnostic service includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the communication test positioning method based on the real vehicle diagnostic service in the above-mentioned embodiment one.

[0153] Reference below Figure 5 , which shows a schematic diagram of the structure of a communication test positioning device based on real vehicle diagnostic service suitable for implementing the embodiment of the present application. The communication test positioning device based on real vehicle diagnostic service in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The communication test positioning device based on the real vehicle diagnosis service shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0154] like Figure 5As shown, the communication test positioning device based on the real vehicle diagnostic service may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM: Read Only Memory) 1002 or the program loaded from the storage device 1003 to the random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the communication test positioning device based on the real vehicle diagnostic service are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the communication test positioning device based on the real vehicle diagnostic service to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a communication test positioning device based on the real vehicle diagnostic service with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.

[0155] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0156] The communication test positioning device based on real vehicle diagnostic service provided by the present application adopts the communication test positioning method based on real vehicle diagnostic service in the above embodiment, which can solve the technical problem of how to test and locate communication anomalies more accurately and efficiently. Compared with the prior art, the beneficial effects of the communication test positioning device based on real vehicle diagnostic service provided by the present application are the same as the beneficial effects of the communication test positioning method based on real vehicle diagnostic service provided by the above embodiment, and the other technical features of the communication test positioning device based on real vehicle diagnostic service are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0157] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0158] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0159] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the communication test positioning method based on real vehicle diagnostic services in the above-mentioned embodiment.

[0160] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0161] The computer-readable storage medium may be included in the communication test positioning device based on the real vehicle diagnosis service; or may exist independently without being assembled into the communication test positioning device based on the real vehicle diagnosis service.

[0162] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the communication test positioning device based on the real vehicle diagnostic service, the communication test positioning device based on the real vehicle diagnostic service: monitors the communication behavior of each network segment of the real vehicle, determines the communication diagnostic command and the communication diagnostic dwell time; determines the communication stop state and the communication recovery state based on the communication diagnostic command and the communication diagnostic dwell time; performs automated stress testing based on the communication stop state and the communication recovery state to determine a test report, and outputs the communication status message characteristic value based on the test report to locate the communication abnormality.

[0163] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0164] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0165] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0166] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned communication test positioning method based on real vehicle diagnostic services, and can solve the technical problem of how to test and locate communication anomalies more accurately and efficiently. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the communication test positioning method based on real vehicle diagnostic services provided by the above-mentioned embodiments, and will not be repeated here.

[0167] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A communication test positioning method based on real vehicle diagnostic service, characterized in that: The method includes: Monitor the communication behavior of each network segment of the actual vehicle, and determine the communication diagnosis command and communication diagnosis dwell time; determining a communication stop state and a communication recovery state based on the communication diagnosis command and the communication diagnosis stay time; An automated stress test is performed based on the communication stop state and the communication recovery state to determine a test report, and a communication abnormality fault is located based on a communication status message characteristic value output from the test report.

2. The method according to claim 1, characterized in that The steps of monitoring the communication behaviors of each network segment of the actual vehicle and determining the communication diagnosis command and the communication diagnosis dwell time include: Determine diagnostic commands, online handshake commands, diagnostic service commands, switching default session mode diagnostic commands, extended session response dwell time, and communication stop duration; determining a communication diagnostic command based on the diagnostic service command and the switch default session mode diagnostic command; A communication diagnosis dwell time is determined based on the extended session response dwell time and the communication stop duration.

3. The method according to claim 1, characterized in that The step of determining the communication stop state and the communication recovery state based on the communication diagnosis command and the communication diagnosis stay time comprises: Based on the diagnostic service command in the communication diagnostic command and the extended session response dwell time in the communication diagnostic dwell time, the whole vehicle is controlled to close the whole vehicle recording function, and the dwell time of the closing function and the mute command are obtained; The communication status of the network segment is determined based on the shutdown function residence time, the mute command, the communication diagnosis residence time and the communication diagnosis command to obtain a communication stop state and a communication recovery state.

4. The method according to claim 3, characterized in that The step of determining the communication status of the network segment based on the shutdown function residence time, the mute command, the communication diagnosis residence time and the communication diagnosis command to obtain the communication stop state and the communication recovery state comprises: Controlling the entire vehicle to stop communicating based on the shutdown function stay time and the mute command to determine a communication stop state; The communication recovery state is determined based on the communication stop duration in the communication diagnosis stay time and the default session mode switching diagnosis command in the communication diagnosis command controlling the entire vehicle to resume communication.

5. The method according to claim 1, characterized in that The step of performing an automated stress test based on the communication stop state and the communication recovery state to determine a test report, and outputting a communication status message characteristic value based on the test report to locate a communication abnormality fault comprises: Get the target stress test times; Performing an automated stress test based on the target stress test times, the communication stop state, and the communication recovery state to determine a test report; Based on the test report output communication status message characteristic value, communication abnormality fault is located.

6. The method according to claim 5, characterized in that The step of performing automated stress testing based on the target stress test times, the communication stop state, and the communication recovery state to determine a test report comprises: Obtaining a network segment message characteristic value and a network segment message quantity, wherein the network segment message characteristic value includes a network segment message characteristic value before muting, a network segment message characteristic value after muting, and a network segment message characteristic value after muting is lifted, and the network segment message quantity includes a network segment message quantity before muting, a network segment message quantity after muting, and a network segment message quantity after muting is lifted; The network segment communication status is judged based on the characteristic value of the network segment message before muting, the characteristic value of the network segment message after muting, the characteristic value of the network segment message after unmuting, the number of network segment messages before muting, the number of network segment messages after muting and the number of network segment messages after unmuting to obtain a test report.

7. The method according to claim 6, characterized in that The step of determining the network segment communication status to obtain a test report based on the network segment message characteristic value before muting, the network segment message characteristic value after muting, the network segment message characteristic value after unmuting, the number of network segment messages before muting, the number of network segment messages after muting, and the number of network segment messages after unmuting comprises: Comparing the number of messages in the network segment before the mute with the number of messages in the network segment after the mute to determine the communication status of the first network segment; Compare the message characteristic value of the network segment before the ban and the message characteristic value of the network segment after the ban is lifted to determine the communication state of the second network segment; A network segment communication state is determined based on the first network segment communication state and the first network segment communication state, and a test report is obtained based on the network segment communication state.

8. A communication test positioning device based on real vehicle diagnostic service, characterized in that: The device comprises: A determination module is used to monitor the communication behavior of each network segment of the actual vehicle and determine the communication diagnosis command and communication diagnosis dwell time; A processing module, configured to determine a communication stop state and a communication recovery state based on the communication diagnosis command and the communication diagnosis dwell time; An execution module is used to perform an automated stress test based on the communication stop state and the communication recovery state to determine a test report, and output a communication status message characteristic value based on the test report to locate a communication abnormality fault.

9. A communication test positioning device based on real vehicle diagnostic service, characterized in that: The device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the communication test positioning method based on real vehicle diagnostic service as described in any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the communication test positioning method based on real vehicle diagnostic service as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Bus test system and method

    CN107491055A

  • Bus_Off fault testing system and testing method

    CN107959599A

  • A communication performance testing method, device and system for an automatic driving system

    CN109861884A

  • Abnormity monitoring method and device for vehicle CAN bus and computer equipment

    CN110191018A

  • Automobile CAN bus penetration test system and method

    CN112596962A