Simulation diagnosis method, terminal device and medium for vehicle data

By receiving instructions from the student side in the simulation and diagnosis system of the teacher side and finding corresponding data containers, the problems of low flexibility of diagnostic instructions and low protocol matching accuracy in the prior art are solved, and the accurate simulation diagnosis and efficient diagnosis of vehicle data are realized.

CN115050232BActive Publication Date: 2025-03-21LAUNCH TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210546941.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-19
Publication Date
2025-03-21
Estimated Expiration
2042-05-19

AI Technical Summary

Technical Problem

In the existing diagnostic teaching technology, the diagnostic instructions are low in flexibility and the protocol matching accuracy rate is low, which makes the student side unable to find the correct reply instructions when simulating the diagnosis.

Method used

By implementing the simulation and diagnosis method of vehicle data on the teacher side, receiving the function execution instructions and target diagnostic instructions sent by the student side, finding the target data container according to the instruction type, and obtaining and returning the target diagnostic data.

Benefits of technology

It realizes accurate simulation and diagnosis of vehicle data, improves the accuracy and efficiency of simulation diagnosis on the student side, and avoids data matching errors caused by different execution orders.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115050232B_ABST
    Figure CN115050232B_ABST
Patent Text Reader

Abstract

The present invention discloses a vehicle data simulation diagnosis method, a terminal device and a computer-readable storage medium, the vehicle data simulation diagnosis method comprising: receiving a function execution instruction and a target diagnosis instruction sent by a target student terminal, judging the function type executed by the target student terminal according to the function execution instruction; searching a target data container according to the function type, obtaining target diagnosis data from the target data container according to the target diagnosis instruction, and returning the target diagnosis data to the target student terminal. The present invention can realize accurate vehicle data simulation diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automobile technology, and in particular to a simulation diagnosis method for vehicle data, a terminal device and a computer-readable storage medium. Background Art

[0002] In diagnostic teaching, the most important function is that teachers collect vehicle data for students to simulate diagnosis. Multiple student devices connect to the teacher server to access the same diagnostic data. Currently, the collected data saves the complete sending and receiving information including vehicle protocol data and device-specific data, which ensures the uniqueness of each sent data, so that students can find the correct reply instructions when simulating.

[0003] The device-specific data includes a counter and a check bit. The counter of the next instruction is incremented by one relative to the previous instruction. This poses a problem: if the teacher performs data acquisition by first reading the data stream and then reading the code, the instruction counter of the data stream reading is 0 to X, and the instruction counter of the code reading function is X to Y. If the student performs simulation diagnosis without following the execution order of the teacher, the instruction sent by the student will not be able to find the reply instruction, that is, the execution order of the student is strictly in accordance with the order of the teacher.

[0004] In general, existing diagnostic teaching technologies have the problems of low flexibility of diagnostic instructions and low accuracy of protocol matching. Summary of the invention

[0005] The main purpose of the present invention is to provide a vehicle data simulation diagnosis method, terminal equipment and computer-readable storage medium, aiming to achieve accurate vehicle data simulation diagnosis.

[0006] To achieve the above object, the present invention provides a vehicle data simulation diagnosis method, which is applied to a teacher end, and the vehicle data simulation diagnosis method includes:

[0007] Receiving a function execution instruction and a target diagnosis instruction sent by a target student terminal, and determining the type of function executed by the target student terminal according to the function execution instruction;

[0008] The target data container is searched according to the function type, and the target diagnostic data is obtained from the target data container according to the target diagnostic instruction, and the target diagnostic data is returned to the target student terminal.

[0009] Optionally, before the step of receiving the function execution instruction and the target diagnosis instruction sent by the target student terminal, the method further includes:

[0010] Loading a preset course file and determining a sending instruction in the course file;

[0011] The valid vehicle diagnostic data in the sending instruction is extracted and stored in a corresponding data container as a key value.

[0012] Optionally, the function type includes: a read data stream function, the target diagnostic instruction includes: a target data stream read instruction, and the data container includes: a first data container;

[0013] The step of searching the target data container according to the function type and obtaining the target diagnostic data from the target data container according to the target diagnostic instruction includes:

[0014] The data stream reading function is executed at the target student terminal. When the target diagnostic instruction is the target data stream reading instruction, the data container copy mapped by the first data container is searched according to the target data stream reading instruction. After the search is successful, the target data stream corresponding to the target data stream reading instruction is obtained and sent to the target student terminal;

[0015] The target diagnostic data is cleared from the data container copy, wherein the data container copy corresponds to the student terminal.

[0016] Optionally, the data container includes: a second data container, and the step of searching for a target data container according to the function type and obtaining target diagnostic data from the target data container according to the target diagnostic instruction further includes:

[0017] When the target student terminal executes a function other than the data stream reading function, the second data container is searched according to the target diagnostic instruction, and the diagnostic data corresponding to the target diagnostic instruction is obtained after the search is successful.

[0018] Optionally, the step of searching for a target data container according to the function type and obtaining target diagnostic data from the target data container according to the target diagnostic instruction further includes:

[0019] When searching for the data container copy mapped to the first data container according to the target data stream read instruction, if the target data stream matching the target data stream read instruction is not obtained from the data container copy, copying the data stream corresponding to the target data stream read instruction in the first data container to the data container copy;

[0020] A data stream corresponding to the target data stream read instruction is obtained from the data container copy to return the data stream to the target student terminal.

[0021] Optionally, after the step of returning the target diagnostic data to the target student terminal, the method further includes:

[0022] An exit instruction is received, and when it is detected that the data container currently being searched is the data container copy, the data container copy is emptied based on the exit instruction, and the system exits after emptying the data container copy.

[0023] Optionally, after the step of directly emptying the data container copy based on the exit instruction and directly exiting after emptying the data container copy, the method further includes:

[0024] After detecting that the target student terminal exits the simulation diagnosis, the simulation diagnosis is performed again, and when the target data stream read instruction sent by the target student terminal is received, the data in the first data container is copied to the data container copy corresponding to the target student terminal, so as to search the diagnostic data corresponding to the target data stream read instruction from the data container copy.

[0025] The present application also provides a vehicle data simulation diagnosis method, which is applied to a student terminal and includes:

[0026] Triggering a function execution instruction and a target diagnosis instruction, and sending the function execution instruction and the target diagnosis instruction to a teacher terminal;

[0027] Receive the target diagnosis data returned by the teacher end based on the function execution instruction and the target diagnosis instruction.

[0028] To achieve the above object, the present invention further provides a vehicle data simulation diagnosis system, which is applied to a teacher side. The vehicle data simulation diagnosis system comprises:

[0029] A judgment module, used for receiving a function execution instruction and a target diagnosis instruction sent by a target student terminal, and judging the type of function executed by the target student terminal according to the function execution instruction;

[0030] The return module is used to search for a target data container according to the function type, obtain target diagnostic data from the target data container according to the target diagnostic instruction, and return the target diagnostic data to the target student terminal.

[0031] An instruction sending module, used for triggering a function execution instruction and a target diagnosis instruction, and sending the function execution instruction and the target diagnosis instruction to a teacher terminal;

[0032] The data receiving module is used to receive the target diagnosis data returned by the teacher end based on the function execution instruction and the target diagnosis instruction.

[0033] The vehicle data simulation diagnosis system of the present invention implements the steps of the vehicle data simulation diagnosis method described above during operation.

[0034] To achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes: a memory, a processor, and a simulation diagnostic program for vehicle data stored in the memory and executable on the processor, wherein the simulation diagnostic program for vehicle data implements the steps of the simulation diagnostic method for vehicle data as described above when executed by the processor.

[0035] In addition, to achieve the above-mentioned purpose, the present invention also proposes a computer-readable storage medium, on which a simulation diagnostic program for vehicle data is stored, and when the simulation diagnostic program for vehicle data is executed by a processor, the steps of the simulation diagnostic method for vehicle data as described above are implemented.

[0036] In addition, to achieve the above-mentioned object, the present invention also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the vehicle data simulation diagnosis method described above are implemented.

[0037] Compared to the existing simulation diagnosis technology, in the present invention, after receiving the function execution instruction and the target diagnosis instruction sent by the student end, the function type executed by the student end is determined according to the function execution instruction, so as to query the corresponding data container according to the different function types and target diagnosis instructions to obtain the target diagnosis data, and return the target diagnosis to the corresponding target student end to complete the simulation diagnosis of the vehicle data. The present application places the diagnostic data of different functions in different containers, determines the data container to be queried by identifying the function type corresponding to the function execution instruction sent by the student end, and finds the diagnostic data corresponding to the diagnostic instruction from the data container. Therefore, the present invention can cope with the simulation of multiple student-end data flow functions, and is not limited by the order of executing functions on the student end, which not only ensures the accuracy of the simulation diagnosis, but also improves the efficiency of the simulation diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A first flow chart of an embodiment of a method for simulating diagnosis of vehicle data of the present invention;

[0039] Figure 2 A second flow chart of an embodiment of a method for simulating diagnosis of vehicle data of the present invention;

[0040] Figure 3 A schematic diagram of the structure of the hardware operating environment involved in the embodiment of the present invention;

[0041] Figure 4 A schematic diagram of a first module of an embodiment of a simulation diagnosis method for vehicle data of the present invention;

[0042] Figure 5A schematic diagram of a second module of an embodiment of a simulation diagnosis method for vehicle data of the present invention.

[0043] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0044] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0045] Reference Figure 1 , Figure 1 FIG. 1 is a schematic diagram of a first flow chart of a first embodiment of a method for simulating diagnosis of vehicle data of the present invention.

[0046] In this embodiment, an embodiment of a simulation diagnosis method for vehicle data is provided, and the simulation diagnosis method for vehicle data is applied to a simulation service program in a teacher terminal. It should be noted that although a logical sequence is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than that shown here.

[0047] In the related art, the complete instruction collection method including the counter and the check bit may be: reading fault code and reading data stream, etc. Specifically, for example, reading fault code 55aaf0f8000400190208F1 and reading fault code 55aaf0f800040119020CFE, etc., reading data stream 55aaf0f800040222F187D5, reading data stream 55aaf0f8000403222003E7, reading data stream 55aaf0f800040422F187D5, and reading data stream 55aaf0f8000405222003E7, etc. At this time, the corresponding effective instruction collection methods include: reading fault code 190208, reading fault code 19020C, reading data stream 22F187, reading data stream 222003, reading data stream 22F187, and reading data stream 22203.

[0048] The vehicle data simulation diagnosis method in this embodiment may include:

[0049] Step S10, receiving a function execution instruction and a target diagnosis instruction sent by a target student terminal, and determining the type of function executed by the target student terminal according to the function execution instruction;

[0050] When the student side connects to the teacher side's simulation server (including the above-mentioned simulation service program) for simulation diagnosis, the simulation server side will receive the function execution instruction triggered by the student side to determine the function type of the function executed by the target student side, and can determine the diagnostic data that the target student side needs to obtain based on the target diagnosis instruction triggered by the student side.

[0051] It should be noted that, in the present embodiment, the function type includes a function of reading data stream and other functions except the function of reading data stream. On this basis, the simulation server divides the functions executed by the student end into the function of reading data stream and other functions except the function of reading data stream according to the function execution instruction, so as to query different data containers according to different function types.

[0052] Step S20, searching for a target data container according to the function type, obtaining target diagnostic data from the target data container according to the target diagnostic instruction, and returning the target diagnostic data to the target student terminal.

[0053] After receiving the function execution instruction and target diagnosis instruction triggered by the target student terminal, and determining the function type of the function executed by the student terminal according to the function execution instruction, the simulation server will further determine the data container corresponding to the function type, and determine the target diagnostic data that the target user terminal needs to obtain according to the target diagnosis instruction, and then return the target diagnostic data to the corresponding target student terminal.

[0054] It should be noted that, in this embodiment, the simulation server side queries the corresponding data container according to the target diagnostic instruction to obtain the corresponding target diagnostic data. The simulation server side can perform data flow function simulation on multiple student sides, and the student side is not restricted by the execution function order when performing vehicle data simulation diagnosis.

[0055] In this embodiment, when the student terminal connects to the simulation server for simulation diagnosis, the simulation server terminal of the teacher terminal will receive the function execution instruction triggered by the student terminal to determine the function type of the function executed by the target student terminal. After receiving the function execution instruction and the target diagnosis instruction triggered by the target student terminal, and determining the function type of the function executed by the student terminal according to the function execution instruction, the simulation server will further determine the data container corresponding to the function type, and determine the target diagnosis data to be obtained by the target user terminal according to the target diagnosis instruction, and then return the target diagnosis data to the corresponding target student terminal.

[0056] Compared with the existing simulation diagnosis technology, in the present invention, after receiving the function execution instruction and the target diagnosis instruction sent by the student end, the function type executed by the student end is determined according to the function execution instruction, and the corresponding data container is queried according to different function types and target diagnosis instructions to obtain the target diagnosis data, and the target diagnosis is returned to the corresponding target student end to complete the simulation diagnosis of the vehicle data. Therefore, the present invention can handle multiple student end data flow function simulations, and is not limited by the order of executing functions on the student end, which not only ensures the accuracy of the simulation diagnosis, but also improves the efficiency of the simulation diagnosis.

[0057] Furthermore, based on the first embodiment of the vehicle data simulation diagnosis method of the present invention, a second embodiment of the vehicle data simulation diagnosis method of the present invention is proposed.

[0058] In this embodiment, in the above step S10, before "receiving the function execution instruction and the target diagnosis instruction sent by the target student terminal", the following may also be included:

[0059] Step S30, loading a preset course file and determining a sending instruction in the course file;

[0060] Step S40, extracting the valid vehicle diagnostic data in the sending instruction and storing it in a corresponding data container as a key value.

[0061] It should be noted that, in this embodiment, before the teacher loads the preset course file, the teacher can collect vehicle data through a real-time test program, and save the collected measured data to a collection file according to a preset sending and receiving instruction format, so that the simulation server can load the course file from the collection file.

[0062] It should be noted that, in this embodiment, the format of the sending and receiving instructions is:

[0063] <Start Flag>+<Destination Address>+<Source Address>+<Packet Length>+<Counter>+<Command Word>+<Data Area>+<Packet Check>

[0064] Specifically, for example, save diagnostic data with function start / end identifiers:

[0065] Send: FUNCTION_01_START / / Start reading fault code identification

[0066] Send:55aaf0f8000400190208F1

[0067] Receive:****

[0068] Send:55aaf0f800040119020CFE

[0069] Receive:****

[0070] Send: FUNCTION_01_STOP / / End reading of fault code identification;

[0071] Send: FUNCTION_02_START / / Start to read data stream identifier

[0072] Send:55aaf0f800040222F187D5

[0073] Receive:****

[0074] Send:55aaf0f8000403222003E7

[0075] Receive:****

[0076] Send:55aaf0f800040422F187D5

[0077] Receive:****

[0078] Send:55aaf0f8000405222003E7

[0079] Receive:****

[0080] Send: FUNCTION_02_STOP / / End reading of data stream identifier;

[0081] It is worth noting that when measuring vehicle data, each time a function is started, the function start mark (such as the start of reading fault codes mark, the start of reading data stream mark) is saved in the collection file, and the function end mark (such as the end of reading fault codes mark, the end of reading data stream mark) is also saved in the collection file at the end. The diagnostic data of each function is identified by the preset start\end instructions for the teacher's simulation server to identify. The above function execution instructions include the above function start mark or function end mark.

[0082] On this basis, after the teacher completes the real-time data collection for the vehicle data, when performing simulated diagnosis of the vehicle data, the simulation server will load the preset course file, and then the simulation server will extract the valid vehicle diagnostic data in the sending instruction in the course file as the key value, and store the key value in the corresponding data container in sequence according to the function identifier of the sending instruction, so that the student end can query the corresponding data container to obtain the target diagnostic data.

[0083] Among them, the valid vehicle diagnostic data is <command word> + <data area>. In addition, the mapping value of the key value of each sending instruction is used as the corresponding reply instruction, so that the student terminal obtains the corresponding target diagnostic data according to the simulated diagnostic instruction. In this embodiment, multimap is used as a data container for storing data streams, and the data container is divided into a container for storing data streams and a container for storing other diagnostic data outside the data stream.

[0084] Furthermore, in the above step S20, “searching for a target data container according to the function type, and obtaining target diagnostic data from the target data container according to the target diagnostic instruction” may include:

[0085] Step S201, executing the data stream reading function at the target student terminal, when the target diagnostic instruction is the target data stream reading instruction, searching for a data container copy mapped by the first data container according to the target data stream reading instruction, and obtaining the target data stream corresponding to the target data stream reading instruction after the search is successful and sending it to the target student terminal;

[0086] Step S202: clear the target diagnostic data from the data container copy, wherein the data container copy corresponds to the student terminal.

[0087] It should be noted that, in this embodiment, the function types executed by the student terminal include: reading data stream function and other functions except reading data stream function. In addition, the first data container is a container for storing data stream, and the second data container is a container for storing other diagnostic data except data stream.

[0088] When the simulation server determines that the function type executed by the student terminal is a data stream reading function, it will determine the container copy mapped by the corresponding first data container of the student terminal according to the target diagnostic instruction sent by the student terminal, that is, the data stream container copy, and query the data stream container copy to obtain the target diagnostic data, and then return the target diagnostic data to the corresponding student terminal, and delete the target diagnostic data from the data stream container copy.

[0089] Furthermore, in the above step S20, “searching for a target data container according to the function type, and obtaining target diagnostic data from the target data container according to the target diagnostic instruction” may also include:

[0090] Step S203, when the target student terminal executes a function other than the data stream reading function, the second data container is searched according to the target diagnostic instruction, and the diagnostic data corresponding to the target diagnostic instruction is obtained after the search is successful.

[0091] When the simulation server determines that the function type executed by the student terminal is a function other than the function of reading the data stream, such as the function of reading the fault code, it will query the second data container, that is, the container for storing other diagnostic data other than the data stream, according to the simulation diagnosis instruction sent by the student terminal, and obtain the target diagnostic data, and then return the target diagnostic data to the corresponding student terminal, wherein the second data container is a data container shared by all student terminals. It should be noted that the second data container needs to be cleared only when the simulation server is disconnected or the course file is closed.

[0092] In the above step S20, “searching for a target data container according to the function type, and obtaining target diagnostic data from the target data container according to the target diagnostic instruction” may also include:

[0093] Step S204, when searching for the data container copy mapped to the first data container according to the target data stream read instruction, if the target data stream matching the target data stream read instruction is not obtained from the data container copy, copying the data stream corresponding to the target data stream read instruction in the first data container to the data container copy;

[0094] Step S205, obtaining a data stream corresponding to the target data stream read instruction from the data container copy, so as to return the data stream to the target student terminal.

[0095] In the prior art, since the data stream reading function is to send the same instruction in a loop to obtain the data stream value in real time, if the check bit and counter are not recorded, the same sending instruction will be recorded in a loop during data collection (the reply instruction may be the same or different), which brings difficulties to the diagnostic data simulation. Specifically, the teacher end finds the matching sending instruction and then returns the matching reply instruction. However, when the sending instructions of the same data stream are the same, the teacher end will directly match the data of the first one, which will cause the simulation data to be distorted.

[0096] However, after receiving the target data stream read instruction sent by the student terminal, the simulation server of the embodiment of the present application searches for the data container copy mapped to the first data container according to the target data stream read instruction. If the diagnostic data corresponding to the target data stream read instruction is not found in the data container copy (when the target student terminal has previously searched for the diagnostic data corresponding to the target data stream read instruction, the simulation server has deleted the diagnostic data), in this case, the simulation server automatically copies the data stream corresponding to the target data stream read instruction in the first data container to the data container copy, so that the target student terminal can obtain the data stream corresponding to the target data stream read instruction from the data container copy again. In this embodiment, the data stream in the data container copy can be updated, so that the student terminal can obtain the real-time data stream value without repeatedly replying the same data stream to the student terminal. Therefore, the embodiment of the present application does not cause simulation data distortion.

[0097] Furthermore, after the above step S20, "returning the target diagnostic data to the target student terminal", it also includes:

[0098] Step S50, receiving an exit instruction, and when detecting that the data container currently being searched is a copy of the data container, emptying the copy of the data container based on the exit instruction, and exiting after emptying the copy of the data container;

[0099] When the simulation server on the teacher side receives the exit command sent by the student side and detects that the data container currently being queried is a data stream container, it needs to clear the data container copy corresponding to the student side and exit the current vehicle data simulation diagnostic program after clearing the copy to reduce the load.

[0100] It should be noted that in this embodiment, if the simulation server detects that the data container currently being queried is a second data container, i.e., a container storing other diagnostic data outside the data stream, the diagnostic data in the second data container is not cleared, and no processing operation is performed. However, the second data container needs to be cleared when the simulation server is disconnected or the course file is closed.

[0101] Further, after the above step S30, "clearing the data container copy based on the exit instruction, and exiting after clearing the data container copy", it also includes:

[0102] Step S60, after detecting that the target student terminal exits the simulation diagnosis, the simulation diagnosis is performed again, and when the target data stream read instruction sent by the target student terminal is received, the data in the first data container is copied to the data container copy corresponding to the target student terminal, so as to search the diagnostic data corresponding to the target data stream read instruction from the data container copy.

[0103] When the simulation server detects that the student has logged in again and initiated a target data stream reading instruction after exiting the vehicle data simulation diagnosis, the simulation server will copy the data in the data stream container to the data stream container copy corresponding to the student to ensure the integrity of the diagnostic data.

[0104] In this embodiment, before the teacher loads the preset course file, the real-time test end of the teacher collects the vehicle data, and saves the collected measured data to the preset collection file according to the preset sending and receiving instruction format, so that the simulation server can load the course file from the preset collection file. On this basis, after the teacher completes the real-time data collection for the vehicle data, when performing the vehicle data simulation diagnosis, the simulation server will load the preset course file, and then the simulation server extracts the valid vehicle diagnostic data in the sending instruction in the course file as the key value, and according to the function identifier of the sending instruction, the key value is stored in the corresponding data container in sequence, so that the student end can query the corresponding data container to obtain the target diagnostic data. When the simulation server determines that the function type executed by the student end is the read data stream function, it will determine the data container copy mapped by the first data container corresponding to the student end according to the target diagnostic instruction sent by the student end, that is, the data stream container copy, and query the data stream container copy to obtain the target diagnostic data, and then return the target diagnostic data to the corresponding student end, and delete the target diagnostic data from the data stream container copy. When the simulation server determines that the function type executed by the student terminal is a function other than the data stream reading function, such as the fault code reading function, it will query the second data container, that is, the container for storing other diagnostic data other than the data stream, according to the simulation diagnostic instruction sent by the student terminal, and obtain the target diagnostic data, and then return the target diagnostic data to the corresponding student terminal. After receiving the target data stream reading instruction sent by the student terminal, and searching for the data container copy mapped by the first data container according to the target data stream reading instruction, if the diagnostic data corresponding to the target data stream reading instruction is not found in the data container copy (the target student terminal has previously queried the diagnostic data corresponding to the target data stream reading instruction and has deleted the diagnostic data), in this case, the simulation server automatically copies the data stream corresponding to the target data stream reading instruction in the first data container to the data container copy, so that the target student terminal can obtain the data stream corresponding to the target data stream reading instruction from the data container copy again. When the teacher's simulation server receives the exit command sent by the student and detects that the data container currently being queried is a data stream container, it needs to clear the data container copy corresponding to the student and exit the current vehicle data simulation diagnostic program after clearing the copy to reduce the load. When the simulation server detects that the student logs in again and initiates the target data stream read command after exiting the vehicle data simulation diagnosis, the simulation server will copy the data in the data stream container to the data stream container copy corresponding to the student to ensure the integrity of the diagnostic data.

[0105] In the present invention, the simulation server queries the data container corresponding to the student end according to the function execution instruction and the target diagnosis instruction of the student end, and clears the data stream container after the query is completed. In addition, when the student end is detected to have exited, the data stream container and the container storing the diagnostic data outside the data stream are directly emptied, and when the student end initiates the execution of the data stream reading function again, the simulation server again copies the data in the data stream container to the data stream container copy corresponding to the student end. Therefore, while reducing the load of the simulation server, the present invention can cope with multiple student end data stream function simulations, and is not limited by the order of executing functions on the student end, which not only ensures the accuracy of the simulation diagnosis, but also improves the efficiency of the simulation diagnosis.

[0106] Based on the first and second embodiments of the vehicle data simulation diagnosis method of the present invention, a third embodiment of the vehicle data simulation diagnosis method of the present invention is proposed. Figure 2 , Figure 2 FIG. 2 is a schematic diagram of a second flow chart of a third embodiment of a simulation diagnosis method for vehicle data of the present invention.

[0107] In this embodiment, the simulation diagnosis method of vehicle data is applied to the student side, such as Figure 2 As shown, the simulation diagnosis method of vehicle data also includes:

[0108] Step S70, triggering a function execution instruction and a target diagnosis instruction, and sending the function execution instruction and the target diagnosis instruction to the teacher terminal;

[0109] Step S80, receiving the target diagnosis data returned by the teacher end based on the function execution instruction and the target diagnosis instruction.

[0110] When the student end needs to perform a simulated diagnosis of vehicle data, it will determine the type of function to be executed and the diagnostic data to be obtained after logging in, and execute instructions and target diagnostic instructions according to the trigger function, and send the function execution instructions and the target diagnostic instructions to the simulation server end at the same time. The simulation server determines the type of function executed by the student end according to the function execution instruction, and queries the data container corresponding to the function type according to the target diagnostic instruction to obtain the target diagnostic data, and then returns the target diagnostic data to the corresponding student end. After receiving the target diagnostic data, the student end can further determine whether it is necessary to end the simulated diagnosis of vehicle data.

[0111] In this embodiment, the student end can send vehicle data function execution instructions and target diagnosis instructions to the teacher end, and the teacher end collects vehicle data through a real-time test program, and saves the collected measured data to a preset collection file according to a preset sending and receiving instruction format. The diagnostic data of each function is identified by a preset start\end instruction for the teacher end's simulation server to identify, so that the teacher end's simulation server can load the course file from the preset collection file for the student end to perform vehicle data simulation diagnosis. On this basis, the present invention can handle multiple student end data flow function simulations, and is not restricted by the order of executing functions on the student end, thereby improving the efficiency of simulation diagnosis.

[0112] In addition, if Figure 3 As shown, Figure 3 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.

[0113] It should be noted that the terminal device in the embodiment of the present invention may be a terminal device for implementing vehicle data simulation diagnosis, and the terminal device may specifically be a teacher-end device, a student-end device, and the like.

[0114] like Figure 3 As shown, the device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage system independent of the aforementioned processor 1001.

[0115] Those skilled in the art will understand that Figure 3 The device structure shown in the figure does not constitute a limitation of the device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0116] like Figure 3 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a simulation diagnostic program for vehicle data. The operating system is a program that manages and controls the hardware and software resources of the device, and supports the operation of the simulation diagnostic program for vehicle data and other software or programs. Figure 1In the device shown, the user interface 1003 is mainly used for data communication with the student terminal; the network interface 1004 is mainly used for establishing a communication connection with the server; and the processor 1001 can be used to call the simulation diagnosis program of the vehicle data stored in the memory 1005 and perform the following operations:

[0117] Receiving a function execution instruction and a target diagnosis instruction sent by a target student terminal, and determining the type of function executed by the target student terminal according to the function execution instruction;

[0118] The target data container is searched according to the function type, and the target diagnostic data is obtained from the target data container according to the target diagnostic instruction, and the target diagnostic data is returned to the target student terminal.

[0119] Furthermore, before receiving the function execution instruction and the target diagnosis instruction sent by the target student terminal, the processor 1001 can also be used to call the simulation diagnosis program of the vehicle data stored in the memory 1005, and perform the following operations:

[0120] Loading a preset course file and determining a sending instruction in the course file;

[0121] The valid vehicle diagnostic data in the sending instruction is extracted and stored in a corresponding data container as a key value.

[0122] Further, the function type includes: a read data stream function, the target diagnostic instruction includes: a target data stream read instruction, and the data container includes: a first data container;

[0123] The processor 1001 may also be used to call a simulation diagnostic program of vehicle data stored in the memory 1005, and perform the following operations:

[0124] The data stream reading function is executed at the target student terminal. When the target diagnostic instruction is the target data stream reading instruction, the data container copy mapped by the first data container is searched according to the target data stream reading instruction. After the search is successful, the target data stream corresponding to the target data stream reading instruction is obtained and sent to the target student terminal;

[0125] The target diagnostic data is cleared from the data container copy, wherein the data container copy corresponds to the student terminal.

[0126] Furthermore, the data container includes: a second data container, the processor 1001 can also be used to call the simulation diagnosis program of the vehicle data stored in the memory 1005, and perform the following operations:

[0127] When the target student terminal executes a function other than the data stream reading function, the second data container is searched according to the target diagnostic instruction, and the diagnostic data corresponding to the target diagnostic instruction is obtained after the search is successful.

[0128] Furthermore, the processor 1001 may also be used to call a simulation diagnostic program of vehicle data stored in the memory 1005, and perform the following operations:

[0129] When searching for the data container copy mapped to the first data container according to the target data stream read instruction, if the target data stream matching the target data stream read instruction is not obtained from the data container copy, copying the data stream corresponding to the target data stream read instruction in the first data container to the data container copy;

[0130] A data stream corresponding to the target data stream read instruction is obtained from the data container copy to return the data stream to the target student terminal.

[0131] Further, after the step of returning the target diagnostic data to the target student terminal, the processor 1001 may also be used to call a simulation diagnostic program of vehicle data stored in the memory 1005, and further perform the following operations:

[0132] An exit instruction is received, and when it is detected that the data container currently being searched is the data container copy, the data container copy is emptied based on the exit instruction, and the system exits after emptying the data container copy.

[0133] Further, after the step of directly clearing the data container copy based on the exit instruction and directly exiting after clearing the data container copy, the processor 1001 may also be used to call a simulation diagnosis program of vehicle data stored in the memory 1005, and further perform the following operations:

[0134] After detecting that the target student terminal exits the simulation diagnosis, the simulation diagnosis is performed again, and when the target data stream read instruction sent by the target student terminal is received, the data in the first data container is copied to the data container copy corresponding to the target student terminal, so as to search the diagnostic data corresponding to the target data stream read instruction from the data container copy.

[0135] Furthermore, the processor 1001 may also be used to call a simulation diagnostic program of vehicle data stored in the memory 1005, and perform the following operations:

[0136] Triggering a function execution instruction and a target diagnosis instruction, and sending the function execution instruction and the target diagnosis instruction to a teacher terminal;

[0137] Receive the target diagnosis data returned by the teacher end based on the function execution instruction and the target diagnosis instruction.

[0138] In addition, the embodiment of the present invention also provides a simulation diagnosis system for vehicle data, such as Figure 4 As shown, the vehicle data simulation diagnosis system of the present invention comprises:

[0139] The judgment module 10 is used to receive the function execution instruction and the target diagnosis instruction sent by the target student terminal, and judge the type of function executed by the target student terminal according to the function execution instruction;

[0140] The return module 20 is used to search for a target data container according to the function type, obtain target diagnostic data from the target data container according to the target diagnostic instruction, and return the target diagnostic data to the target student terminal.

[0141] Furthermore, the vehicle data simulation diagnosis system further includes:

[0142] A sending instruction determination module, used for loading a preset course file and determining the sending instruction in the course file;

[0143] The storage module is used to extract the valid vehicle diagnostic data in the sending instruction and store it in the corresponding data container as a key value.

[0144] Further, the function type includes: a read data stream function, the target diagnostic instruction includes: a target data stream read instruction, and the data container includes: a first data container;

[0145] The return module 20 includes:

[0146] a sending unit, configured to execute the data stream reading function at the target student terminal, and when the target diagnostic instruction is the target data stream reading instruction, search for a data container copy mapped by the first data container according to the target data stream reading instruction, and obtain the target data stream corresponding to the target data stream reading instruction after the search is successful and send it to the target student terminal;

[0147] A clearing unit is used to clear the target diagnostic data from the data container copy, wherein the data container copy corresponds to the student terminal.

[0148] Further, the data container includes: a second data container, and the return module 20 further includes:

[0149] A search unit is used to search the second data container according to the target diagnostic instruction when the target student terminal executes a function other than the data stream reading function, and obtain the diagnostic data corresponding to the target diagnostic instruction after the search is successful.

[0150] Furthermore, the returning module 20 further includes:

[0151] a copy unit, configured to, when searching for a data container copy mapped to the first data container according to the target data stream read instruction, copy the data stream corresponding to the target data stream read instruction in the first data container to the data container copy if a target data stream matching the target data stream read instruction is not obtained from the data container copy;

[0152] The returning unit is used to obtain the data stream corresponding to the target data stream reading instruction from the data container copy, so as to return the data stream to the target student terminal.

[0153] Furthermore, the vehicle data simulation diagnosis system further includes:

[0154] The exit module is used to receive an exit instruction, and when detecting that the currently searched data container is the data container copy, empty the data container copy based on the exit instruction, and exit after emptying the data container copy.

[0155] Furthermore, the vehicle data simulation diagnosis system further includes:

[0156] The copy module is used to perform simulation diagnosis again after detecting that the target student terminal exits simulation diagnosis, and when receiving the target data stream reading instruction sent by the target student terminal, copy the data in the first data container to the data container copy corresponding to the target student terminal, so as to search the diagnostic data corresponding to the target data stream reading instruction from the data container copy.

[0157] Furthermore, the vehicle data simulation diagnosis system, such as Figure 5 As shown, it also includes:

[0158] An instruction sending module 30, used for triggering a function execution instruction and a target diagnosis instruction, and sending the function execution instruction and the target diagnosis instruction to a teacher terminal;

[0159] The data receiving module 40 is used to receive the target diagnosis data returned by the teacher terminal based on the function execution instruction and the target diagnosis instruction.

[0160] The specific implementation of the vehicle data simulation diagnosis system of the present invention is basically the same as the various embodiments of the vehicle data simulation diagnosis method described above, and will not be described in detail here.

[0161] In addition, an embodiment of the present invention further proposes a computer-readable storage medium, on which a simulation diagnostic program for vehicle data is stored. When the simulation diagnostic program for vehicle data is executed by a processor, the steps of the simulation diagnostic method for vehicle data as described above are implemented.

[0162] The various embodiments of the vehicle data simulation diagnosis system and the computer-readable storage medium of the present invention may all refer to the various embodiments of the vehicle data simulation diagnosis method of the present invention, and will not be described in detail here.

[0163] In addition, an embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps of the simulation diagnosis method for vehicle data as described in any embodiment of the simulation diagnosis method for vehicle data above.

[0164] The specific embodiments of the computer program product of the present invention are substantially the same as the embodiments of the above-mentioned vehicle data simulation diagnosis method, and are not described in detail herein.

[0165] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0166] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0167] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM / RAM, a disk, an optical disk), including a number of instructions for enabling a terminal device (which can be a teacher-end device and a student-end device, etc.) to execute the methods described in each embodiment of the present invention.

[0168] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A simulation diagnosis method for vehicle data, characterized in that: The vehicle data simulation diagnosis method is applied to the teacher side, and the vehicle data simulation diagnosis method includes: Receiving a function execution instruction and a target diagnosis instruction sent by a target student terminal, and determining the type of function executed by the target student terminal according to the function execution instruction; Searching for a target data container according to the function type, obtaining target diagnostic data from the target data container according to the target diagnostic instruction, and returning the target diagnostic data to the target student terminal; The function type includes: a read data stream function, the target diagnostic instruction includes: a target data stream read instruction, and the data container includes: a first data container; The step of searching the target data container according to the function type and obtaining the target diagnostic data from the target data container according to the target diagnostic instruction includes: The data stream reading function is executed at the target student terminal. When the target diagnostic instruction is the target data stream reading instruction, the data container copy mapped by the first data container is searched according to the target data stream reading instruction. After the search is successful, the target data stream corresponding to the target data stream reading instruction is obtained and sent to the target student terminal; The target diagnostic data is cleared from the data container copy, wherein the data container copy corresponds to the student terminal.

2. The vehicle data simulation diagnosis method according to claim 1, characterized in that: Before the step of receiving the function execution instruction and the target diagnosis instruction sent by the target student terminal, the step further includes: Loading a preset course file and determining the sending instruction in the course file; The valid vehicle diagnostic data in the sending instruction is extracted and stored in a corresponding data container as a key value.

3. The vehicle data simulation diagnosis method according to claim 1, characterized in that: The data container includes: a second data container, and the step of searching for a target data container according to the function type and obtaining target diagnostic data from the target data container according to the target diagnostic instruction also includes: When the target student terminal executes a function other than the data stream reading function, the second data container is searched according to the target diagnostic instruction, and the diagnostic data corresponding to the target diagnostic instruction is obtained after the search is successful.

4. The vehicle data simulation diagnosis method according to claim 3, characterized in that: The step of searching the target data container according to the function type and obtaining the target diagnostic data from the target data container according to the target diagnostic instruction further includes: When searching for the data container copy mapped to the first data container according to the target data stream read instruction, if the target data stream matching the target data stream read instruction is not obtained from the data container copy, copying the data stream corresponding to the target data stream read instruction in the first data container to the data container copy; A data stream corresponding to the target data stream read instruction is obtained from the data container copy to return the data stream to the target student terminal.

5. The vehicle data simulation diagnosis method according to claim 1, characterized in that: After the step of returning the target diagnostic data to the target student terminal, the method further includes: An exit instruction is received, and when it is detected that the data container currently being searched is the data container copy, the data container copy is emptied based on the exit instruction, and the system exits after emptying the data container copy.

6. The vehicle data simulation diagnosis method according to claim 5, characterized in that: After the step of directly emptying the data container copy based on the exit instruction and directly exiting after emptying the data container copy, the method further includes: After detecting that the target student terminal exits the simulation diagnosis, the simulation diagnosis is performed again, and when the target data stream read instruction sent by the target student terminal is received, the data in the first data container is copied to the data container copy corresponding to the target student terminal, so as to search the diagnostic data corresponding to the target data stream read instruction from the data container copy.

7. A simulation diagnosis method for vehicle data, characterized in that: The vehicle data simulation diagnosis method is applied to the student end, and the vehicle data simulation diagnosis method includes: Triggering a function execution instruction and a target diagnosis instruction, and sending the function execution instruction and the target diagnosis instruction to a teacher terminal; Receive the target diagnostic data returned by the teacher end based on the function execution instruction and the target diagnostic instruction, wherein, when the target diagnostic instruction is a target data stream read instruction, the target diagnostic data is a copy of the data container mapped by the teacher end searching for the first data container according to the target data stream read instruction, and obtaining the target data stream corresponding to the target data stream read instruction after the search is successful.

8. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a simulation diagnostic program for vehicle data stored in the memory and executable on the processor. When the simulation diagnostic program for vehicle data is executed by the processor, the steps of the simulation diagnostic method for vehicle data as described in any one of claims 1 to 6 or claim 7 are implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a simulation diagnosis program for vehicle data, and when the simulation diagnosis program for vehicle data is executed by a processor, the steps of the simulation diagnosis method for vehicle data as described in any one of claims 1 to 6 or claim 7 are implemented.

Citation Information

Patent Citations

  • Training method and system based on automobile diagnosis

    CN106952523A

  • Automobile diagnostic data query method and device

    CN109102588A