Vehicle-mounted protocol data batch processing method, system and device and storage medium

Through intelligent CAN tools, the on-board protocol data is processed, the CAN protocol packets are generated and sent to the instrument, which solves the complex problem of batch data processing caused by differences in CAN protocols in different projects, improves testing efficiency and reduces costs.

CN119094625APending Publication Date: 2024-12-06WUHAN CLOUD PINE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411051332.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In the instrument system test of two-wheeled vehicles, the CAN protocols of different projects are different, which leads to the traditional method requiring manual calculation and conversion of body data, resulting in complex batch data processing and inefficient testing.

Method used

Through the intelligent CAN tool, use the target project's CAN protocol json configuration file to process on-board protocol data, generate CAN protocol messages, and send them to the corresponding project instruments, realizing automatic conversion of batch data for different projects.

Benefits of technology

It improves testing efficiency, reduces manual calculation steps, reduces material costs, and supports batch automatic conversion and historical message preservation, replacing the traditional CAN analyzer and CANtest ​​tools.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094625A_ABST
    Figure CN119094625A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle-mounted protocol data batch processing method, system and device and a storage medium. The method comprises the steps that original test cases corresponding to all vehicle-mounted protocol data are determined; original test cases corresponding to the vehicle-mounted protocol data are sequentially processed through a CAN protocol json configuration file of the target project based on the intelligent CA N tool, a plurality of CAN protocol messages are obtained, and the CAN protocol json configuration file is generated by a CAN protocol matrix; and sequentially sending the plurality of CAN protocol messages to corresponding project instruments for data display. A CAN analyzer is replaced by the intelligent CAN tool, the original test cases corresponding to the vehicle-mounted protocol data of the different items are sequentially processed through the CAN protocol json configuration files of the different items, the CAN protocol message corresponding to the instrument is obtained, and therefore the purpose that batch data of the different items are automatically converted into the vehicle body data corresponding to the items according to the CAN protocol is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, system, device and storage medium for batch processing of vehicle-mounted protocol data. Background Art

[0002] With the popularization of two-wheeled vehicles, it is often necessary to test whether the body data can be displayed normally on the instrument during the development and testing of the two-wheeled vehicle instrument system. Most of this data is implemented according to the CAN communication protocol document. When testing these body data, different projects have different CAN protocols. The traditional method requires manual conversion according to the project's CAN protocol document, manual calculation of each body data, data input in CANtest, and data transmission to the instrument through the CAN analyzer, resulting in complex batch data processing for different projects and low test efficiency.

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

[0004] The main purpose of the present invention is to provide a method, system, device and storage medium for batch processing of vehicle-mounted protocol data, aiming to solve the technical problem of automatically converting the vehicle body data corresponding to the batch data of different projects.

[0005] To achieve the above object, the present invention provides a method for batch processing of vehicle-mounted protocol data, the method comprising:

[0006] Acquire multiple vehicle-mounted protocol data of the vehicle through the vehicle-mounted sensor, and respectively determine the original test cases corresponding to each vehicle-mounted protocol data;

[0007] Based on the intelligent CAN tool, the original test cases corresponding to each vehicle protocol data are processed in sequence through the CAN protocol json configuration file of the target project to obtain multiple CAN protocol messages, wherein the CAN protocol json configuration file is generated by the CAN protocol matrix;

[0008] Multiple CAN protocol messages are sent to the corresponding project instruments in sequence for data display.

[0009] Optionally, before the step of sequentially processing original test cases corresponding to each vehicle protocol data through the CAN protocol json configuration file of the target project based on the intelligent CAN tool to obtain multiple CAN protocol messages, the step includes:

[0010] Determine the project number of the target project according to the original test case corresponding to each vehicle protocol data;

[0011] The CAN protocol json configuration file of the target project is selected from a preset CAN protocol configuration table according to the project number, and the preset CAN protocol configuration table includes CAN protocol json configuration files of multiple different projects.

[0012] Optionally, the step of sequentially processing original test cases corresponding to each vehicle protocol data through a CAN protocol json configuration file of a target project based on the intelligent CAN tool to obtain multiple CAN protocol messages includes:

[0013] Traverse multiple original test cases in sequence, and use the traversed original test cases as current original test cases;

[0014] Determine the original data ID number corresponding to the current original test case, and determine the protocol ID number corresponding to the CAN protocol of the target project;

[0015] Determine whether the original data ID number is consistent with the protocol ID number;

[0016] If they are consistent, the current original test case is processed through the CAN protocol json configuration file of the target project based on the intelligent CAN tool to obtain the CAN protocol message corresponding to the current original test case;

[0017] After the traversal is completed, multiple CAN protocol messages are obtained.

[0018] Optionally, after the step of determining whether the original data ID number is consistent with the protocol ID number, the method further includes:

[0019] When the original data ID number is inconsistent with the protocol ID number, return to the step of sequentially traversing multiple original test cases and taking the traversed original test case as the current original test case.

[0020] Optionally, the step of sequentially sending a plurality of CAN protocol messages to corresponding project instruments for data display includes:

[0021] Determine the message sending rules according to the CAN protocol json configuration file of the target project;

[0022] According to the message sending rule, multiple CAN protocol messages are sent to corresponding project instruments in sequence for data display.

[0023] In addition, to achieve the above purpose, the present invention also proposes a vehicle-mounted protocol data batch processing system, the vehicle-mounted protocol data batch processing system comprising:

[0024] A determination module, used to obtain multiple vehicle-mounted protocol data of the vehicle through the vehicle-mounted sensor, and respectively determine the original test case corresponding to each vehicle-mounted protocol data;

[0025] A processing module, used for sequentially processing original test cases corresponding to each vehicle protocol data through a CAN protocol json configuration file of a target project based on an intelligent CAN tool to obtain a plurality of CAN protocol messages, wherein the CAN protocol json configuration file is generated by a CAN protocol matrix;

[0026] The sending module is used to send multiple CAN protocol messages in sequence to the corresponding project instruments for data display.

[0027] In addition, to achieve the above-mentioned purpose, the present invention also proposes a vehicle-mounted protocol data batch processing device, which includes: a memory, a processor, and a vehicle-mounted protocol data batch processing program stored in the memory and executable on the processor, and the vehicle-mounted protocol data batch processing program is configured to implement the steps of the vehicle-mounted protocol data batch processing method as described above.

[0028] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a vehicle-mounted protocol data batch processing program is stored. When the vehicle-mounted protocol data batch processing program is executed by a processor, the steps of the vehicle-mounted protocol data batch processing method described above are implemented.

[0029] The present invention first obtains multiple vehicle-mounted protocol data of the vehicle through the vehicle-mounted sensor, and respectively determines the original test cases corresponding to each vehicle-mounted protocol data, and then processes the original test cases corresponding to each vehicle-mounted protocol data in turn through the CAN protocol json configuration file of the target project based on the intelligent CAN tool, and obtains multiple CAN protocol messages. The CAN protocol json configuration file is generated by the CAN protocol matrix, and then sends the multiple CAN protocol messages to the corresponding project instrument in turn for data display. Compared with the prior art, a CAN analyzer and a CANtest ​​software tool are required, and each body data is manually calculated according to the CAN protocol document of the project, and the manually calculated message is input in CANtest, and the data is transmitted to the instrument through the CAN analyzer for data display, resulting in complex batch data processing and low efficiency. The present invention replaces the CAN analyzer with an intelligent CAN tool, and processes the original test cases corresponding to each vehicle-mounted protocol data of different projects in turn through the CAN protocol json configuration files of different projects, and obtains the CAN protocol message corresponding to the instrument, thereby realizing that the batch data of different projects automatically converts the body data corresponding to the project according to the CAN protocol, and directly sends the converted body data to the corresponding project instrument, thereby improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a structural diagram of a vehicle-mounted protocol data batch processing device in a hardware operating environment involved in an embodiment of the present invention;

[0031] Figure 2 It is a flowchart of a first embodiment of a method for batch processing of vehicle-mounted protocol data according to the present invention;

[0032] Figure 3 This is a schematic diagram of the intelligent CAN tool interface of the first embodiment of the vehicle-mounted protocol data batch processing method of the present invention;

[0033] Figure 4 This is a structural block diagram of the first embodiment of the vehicle-mounted protocol data batch processing system of the present invention.

[0034] 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

[0035] 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.

[0036] Reference Figure 1 , Figure 1 The present invention is a schematic diagram of the structure of an on-board protocol data batch processing device in the hardware operating environment involved in an embodiment of the present invention.

[0037] like Figure 1 As shown, the vehicle-mounted protocol data batch processing device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. 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 wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage system independent of the aforementioned processor 1001.

[0038] Those skilled in the art will understand that Figure 1 The structure shown in does not constitute a limitation on the vehicle-mounted protocol data batch processing device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0039] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a vehicle-mounted protocol data batch processing program.

[0040] exist Figure 1 In the vehicle-mounted protocol data batch processing device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the vehicle-mounted protocol data batch processing device of the present invention can be set in the vehicle-mounted protocol data batch processing device, and the vehicle-mounted protocol data batch processing device calls the vehicle-mounted protocol data batch processing program stored in the memory 1005 through the processor 1001, and executes the vehicle-mounted protocol data batch processing method provided by the embodiment of the present invention.

[0041] It should be noted that the two-wheeled vehicles in the prior art include gasoline vehicles and electric vehicles, and two items need to be tested respectively: the speed of KYMT01 and JMM01:

[0042] Traditional testing methods:

[0043] 1. Check the CAN protocol documents of the two projects respectively. CAN protocol document: The communication protocol of various body data defined in this document is used to calculate the body data displayed on the instrument (different projects have different protocols).

[0044] 2. Vehicle speed definition in KYMT01-CAN protocol: Frame ID: 00000120, message period: 10ms, message length: 8Byte, start byte: 1Byte, start bit: 8Bit, signal length: 16Bit.

[0045] 3. Vehicle speed definition in JMMT01-CAN protocol: ID: 00000172, message period: 10ms, message length: 8Byte, start byte: 4Byte, start bit: 3Bit, signal length: 16Bit.

[0046] It should be understood that to display the vehicle speed of 60km / h on KMYT01 and JMMT01 respectively, the traditional calculation method is to manually calculate the execution messages according to the corresponding protocol documents: 01f5 00 00 00 00 00b6 and 00 00 00C8F0 00 00b6; one end of the CAN analyzer is connected to the corresponding CAN interface of the instrument, and the other end is connected to the computer. The CANtest ​​tool is run on the computer, and the port connected to the CAN is selected in the tool. After the speed message is entered in CANtest ​​and executed, the vehicle speed can be displayed on the instrument.

[0047] It should also be noted that when you need to test multiple vehicle speeds one by one, such as 0-199 in sequence, to see if they can be displayed normally on the instrument, you need to manually calculate 200 messages such as 0~199 according to the CAN protocol document, and then manually enter them one by one in CANtest.

[0048] From the above, we can see that this traditional testing method has the following defects:

[0049] 1. Only one message can be calculated manually at a time.

[0050] 2. Each time from calculating one message to point [Send], the whole process takes about 20 seconds.

[0051] 3. There are many projects, and multiple CAN analyzers are needed, which increases the material cost. (One costs about 275 yuan).

[0052] 4. Different projects have different CAN protocols, and messages need to be recalculated during testing.

[0053] 5. Traditional CANtest ​​tool: open source tool, unable to integrate CAN protocols of different projects; does not support saving historical messages, does not support selecting project information (project number) for automatic data protocol conversion, requires manual conversion, personnel CAN communication knowledge training, and CAN protocol knowledge.

[0054] This embodiment integrates the CAN protocols of different projects in advance in the intelligent CAN tool, and automatically converts the data into the vehicle body data (i.e., messages) of the corresponding projects in batches through the intelligent CAN tool. After the batch messages are executed in the tool, the corresponding data can be displayed on the instrument. The historical execution messages can also be saved for reuse next time. It can completely replace the traditional CAN tool.

[0055] The embodiment of the present invention provides a method for batch processing of vehicle-mounted protocol data, referring to Figure 2 , Figure 2 Schematic diagram of the flow chart of the first embodiment of the vehicle protocol data batch processing method of the present invention.

[0056] In this embodiment, the vehicle-mounted protocol data batch processing method includes the following steps:

[0057] Step S10: Acquire multiple vehicle-mounted protocol data of the vehicle through the vehicle-mounted sensor, and respectively determine the original test cases corresponding to each vehicle-mounted protocol data.

[0058] It is easy to understand that the execution subject of this embodiment can be an on-board protocol data batch processing system with functions such as data processing, network communication and program running, or it can be other computer equipment with similar functions, etc., and this embodiment is not limited.

[0059] It should also be understood that the vehicle-mounted protocol data may be test data collected based on vehicle-mounted sensors, and the test data may include vehicle speed, rotation speed, fuel level, water temperature, battery level, various indicator lights, turn signals, and the like.

[0060] Since the collected test data have been processed, in order to ensure the accuracy of protocol conversion, it is necessary to extract the corresponding original test cases from each vehicle protocol data.

[0061] Step S20: Based on the intelligent CAN tool, the original test cases corresponding to each vehicle protocol data are processed in sequence through the CAN protocol json configuration file of the target project to obtain multiple CAN protocol messages, and the CAN protocol json configuration file is generated by the CAN protocol matrix.

[0062] It should be understood that the Smart CAN tool is written in C language. The Smart CAN tool is pre-configured to integrate the CAN protocols of different projects, and the json configuration files of different projects are written according to the CAN protocol matrix of different projects. The Smart CAN tool automatically calculates the original test cases into the CAN messages (i.e. CAN protocol messages) required by the corresponding project through the json configuration file.

[0063] It should also be noted that according to the project CAN protocol, the tool can send messages to the instrument and receive outgoing messages from the instrument. The intelligent CAN tool can be stored in the root directory of the D disk, and the instrument serial port can be connected to the computer. Figure 3 , Figure 3 It is a schematic diagram of the intelligent CAN tool interface of the first embodiment of the vehicle-mounted protocol data batch processing method of the present invention.

[0064] Furthermore, the project number of the target project is determined according to the original test case corresponding to each vehicle-mounted protocol data; the CAN protocol jso n configuration file of the target project is selected from the preset CAN protocol configuration table according to the project number, and the preset CAN protocol configuration table includes CAN protocol json configuration files of multiple different projects.

[0065] It should also be understood that the project number is the number corresponding to the project instrument displayable message that needs to be converted. There is a one-to-one correspondence between the project number and the project's CAN protocol json configuration file. The project's CAN protocol json configuration file can be extracted from the preset CAN protocol configuration table based on the project number.

[0066] The project number can be customized by the user, such as KYMT01.

[0067] Prepare json configuration files for different projects in advance in the smart CAN tool according to the CAN matrix of different projects.

[0068] Furthermore, based on the intelligent CAN tool, the original test cases corresponding to each vehicle protocol data are processed in sequence through the CAN protocol json configuration file of the target project, and the hammer method for obtaining multiple CAN protocol messages is to traverse multiple original test cases in sequence, and use the traversed original test case as the current original test case; determine the original data ID number corresponding to the current original test case, and determine the protocol ID number corresponding to the CAN protocol of the target project; judge whether the original data ID number is consistent with the protocol ID number; if they are consistent, the current original test case is processed through the CAN protocol json configuration file of the target project based on the intelligent CAN tool to obtain the CAN protocol message corresponding to the current original test case; when the original data ID number is inconsistent with the protocol ID number, return to the step of traversing multiple original test cases in sequence, and use the traversed original test case as the current original test case; after the traversal is completed, multiple CAN protocol messages are obtained.

[0069] In the specific implementation, it is necessary to compare the original data ID number with the protocol ID number. If they are inconsistent, continue to the next one until they are consistent. Then stop the comparison operation and process the current original test case through the CAN protocol json configuration file of the target project based on the smart CAN tool.

[0070] In this embodiment, the original data table can also be constructed according to the original test case (i.e., original data) pre-set by the intelligent CAN tool, starting from the data in the row and column of the original data table, and converting the original data one by one into the data message corresponding to the project according to the CAN protocol, until the last one is empty, and then stopping the data conversion.

[0071] It should also be noted that the CAN protocol message is the message corresponding to the data that can be displayed by the project instrument.

[0072] Step S30: sending a plurality of CAN protocol messages to corresponding project instruments in sequence for data display.

[0073] Furthermore, a message sending rule is determined according to the CAN protocol json configuration file of the target project; and multiple CAN protocol messages are sequentially sent to corresponding project instruments for data display according to the message sending rule.

[0074] The message sending rules are set in the CAN protocol json configuration file of the target project. The message sending rules are user-defined settings. The sending interval between each data and the cycle interval of a group of data can be set. After the converted messages are executed, they can be displayed one by one on the project instrument.

[0075] In the specific implementation, when the instrument turn signal button is operated, the instrument sends the message corresponding to the turn signal to the tool. The tool compares the message with the CAN protocol of the project that has been configured in advance. If the comparison is successful, the message will be displayed on the tool in green font. If the comparison is unsuccessful, it will also be displayed on the tool in red font. The tester can clearly confirm whether the message sent by the instrument is correct.

[0076] The intelligent CAN tool can also save a list of executed data and messages. When executing the same test, this list can be quickly reused to improve test efficiency.

[0077] In this embodiment, firstly, a plurality of vehicle-mounted protocol data of the vehicle is obtained through the vehicle-mounted sensor, and the original test cases corresponding to each vehicle-mounted protocol data are determined respectively, and then the original test cases corresponding to each vehicle-mounted protocol data are processed in sequence through the CAN protocol json configuration file of the target project based on the intelligent CAN tool, and a plurality of CAN protocol messages are obtained. The CAN protocol json configuration file is generated by the CAN protocol matrix, and then the plurality of CAN protocol messages are sent to the corresponding project instrument in sequence for data display. Compared with the prior art, a CAN analyzer and a CANtest ​​software tool are required, and each body data is manually calculated according to the CAN protocol document of the project, and the manually calculated message is input in CANtest, and the data is transmitted to the instrument through the CAN analyzer for data display, resulting in complex batch data processing and low efficiency. In this embodiment, the CAN analyzer is replaced by an intelligent CAN tool, and the original test cases corresponding to each vehicle-mounted protocol data of different projects are processed in sequence through the CAN protocol json configuration files of different projects, and the CAN protocol message corresponding to the instrument is obtained, thereby realizing that the batch data of different projects are automatically converted into the body data corresponding to the project according to the CAN protocol, and the converted body data is directly sent to the corresponding project instrument, thereby improving the test efficiency.

[0078] Reference Figure 4 , Figure 4 This is a structural block diagram of the first embodiment of the vehicle-mounted protocol data batch processing system of the present invention.

[0079] like Figure 4 As shown, the vehicle-mounted protocol data batch processing system proposed in an embodiment of the present invention includes:

[0080] The determination module 4001 is used to obtain multiple vehicle-mounted protocol data of the vehicle through the vehicle-mounted sensor, and respectively determine the original test cases corresponding to each vehicle-mounted protocol data.

[0081] It should also be understood that the vehicle-mounted protocol data may be test data collected based on vehicle-mounted sensors, and the test data may include vehicle speed, rotation speed, fuel level, water temperature, battery level, various indicator lights, turn signals, and the like.

[0082] Since the collected test data have been processed, in order to ensure the accuracy of protocol conversion, it is necessary to extract the corresponding original test cases from each vehicle protocol data.

[0083] The processing module 4002 is used to process the original test cases corresponding to each vehicle protocol data in sequence through the CAN protocol json configuration file of the target project based on the intelligent CAN tool to obtain multiple CAN protocol messages. The CAN protocol json configuration file is generated by the CAN protocol matrix.

[0084] It should be understood that the Smart CAN tool is written in C language. The Smart CAN tool is pre-configured to integrate the CAN protocols of different projects, and the json configuration files of different projects are written according to the CAN protocol matrix of different projects. The Smart CAN tool automatically calculates the original test cases into the CAN messages (i.e. CAN protocol messages) required by the corresponding project through the json configuration file.

[0085] It should also be noted that according to the project CAN protocol, the tool can send messages to the instrument and receive outgoing messages from the instrument. The intelligent CAN tool can be stored in the root directory of the D disk, and the instrument serial port can be connected to the computer. Figure 3 , Figure 3 It is a schematic diagram of the intelligent CAN tool interface of the first embodiment of the vehicle-mounted protocol data batch processing method of the present invention.

[0086] Furthermore, the project number of the target project is determined according to the original test case corresponding to each vehicle-mounted protocol data; the CAN protocol jso n configuration file of the target project is selected from the preset CAN protocol configuration table according to the project number, and the preset CAN protocol configuration table includes CAN protocol json configuration files of multiple different projects.

[0087] It should also be understood that the project number is the number corresponding to the project instrument displayable message that needs to be converted. There is a one-to-one correspondence between the project number and the project's CAN protocol json configuration file. The project's CAN protocol json configuration file can be extracted from the preset CAN protocol configuration table based on the project number.

[0088] The project number can be customized by the user, such as KYMT01.

[0089] Prepare json configuration files for different projects in advance in the smart CAN tool according to the CAN matrix of different projects.

[0090] Furthermore, based on the intelligent CAN tool, the original test cases corresponding to each vehicle protocol data are processed in sequence through the CAN protocol json configuration file of the target project, and the hammer method for obtaining multiple CAN protocol messages is to traverse multiple original test cases in sequence, and use the traversed original test case as the current original test case; determine the original data ID number corresponding to the current original test case, and determine the protocol ID number corresponding to the CAN protocol of the target project; judge whether the original data ID number is consistent with the protocol ID number; if they are consistent, the current original test case is processed through the CAN protocol json configuration file of the target project based on the intelligent CAN tool to obtain the CAN protocol message corresponding to the current original test case; when the original data ID number is inconsistent with the protocol ID number, return to the step of traversing multiple original test cases in sequence, and use the traversed original test case as the current original test case; after the traversal is completed, multiple CAN protocol messages are obtained.

[0091] In the specific implementation, it is necessary to compare the original data ID number with the protocol ID number. If they are inconsistent, continue to the next one until they are consistent. Then stop the comparison operation and process the current original test case through the CAN protocol json configuration file of the target project based on the smart CAN tool.

[0092] In this embodiment, the original data table can also be constructed according to the original test case (i.e., original data) pre-set by the intelligent CAN tool, starting from the data in the row and column of the original data table, and converting the original data one by one into the data message corresponding to the project according to the CAN protocol, until the last one is empty, and then stopping the data conversion.

[0093] It should also be noted that the CAN protocol message is the message corresponding to the data that can be displayed by the project instrument.

[0094] The sending module 4003 is used to send multiple CAN protocol messages in sequence to the corresponding project instruments for data display.

[0095] Furthermore, a message sending rule is determined according to the CAN protocol json configuration file of the target project; and multiple CAN protocol messages are sequentially sent to corresponding project instruments for data display according to the message sending rule.

[0096] The message sending rules are set in the CAN protocol json configuration file of the target project. The message sending rules are user-defined settings. The sending interval between each data and the cycle interval of a group of data can be set. After the converted messages are executed, they can be displayed one by one on the project instrument.

[0097] In the specific implementation, when the instrument turn signal button is operated, the instrument sends the message corresponding to the turn signal to the tool. The tool compares the message with the CAN protocol of the project that has been configured in advance. If the comparison is successful, the message will be displayed on the tool in green font. If the comparison is unsuccessful, it will also be displayed on the tool in red font. The tester can clearly confirm whether the message sent by the instrument is correct.

[0098] The intelligent CAN tool can also save a list of executed data and messages. When executing the same test, this list can be quickly reused to improve test efficiency.

[0099] In this embodiment, firstly, a plurality of vehicle-mounted protocol data of the vehicle is obtained through the vehicle-mounted sensor, and the original test cases corresponding to each vehicle-mounted protocol data are determined respectively, and then the original test cases corresponding to each vehicle-mounted protocol data are processed in sequence through the CAN protocol json configuration file of the target project based on the intelligent CAN tool, and a plurality of CAN protocol messages are obtained. The CAN protocol json configuration file is generated by the CAN protocol matrix, and then the plurality of CAN protocol messages are sent to the corresponding project instrument in sequence for data display. Compared with the prior art, a CAN analyzer and a CANtest ​​software tool are required, and each body data is manually calculated according to the CAN protocol document of the project, and the manually calculated message is input in CANtest, and the data is transmitted to the instrument through the CAN analyzer for data display, resulting in complex batch data processing and low efficiency. In this embodiment, the CAN analyzer is replaced by an intelligent CAN tool, and the original test cases corresponding to each vehicle-mounted protocol data of different projects are processed in sequence through the CAN protocol json configuration files of different projects, and the CAN protocol message corresponding to the instrument is obtained, thereby realizing that the batch data of different projects are automatically converted into the body data corresponding to the project according to the CAN protocol, and the converted body data is directly sent to the corresponding project instrument, thereby improving the test efficiency.

[0100] Other embodiments or specific implementations of the vehicle-mounted protocol data batch processing system of the present invention can refer to the above-mentioned method embodiments and will not be described in detail here.

[0101] 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.

[0102] 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.

[0103] 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 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, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0104] 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 method for batch processing of vehicle-mounted protocol data, characterized in that: The vehicle-mounted protocol data batch processing method comprises the following steps: Acquire multiple vehicle-mounted protocol data of the vehicle through the vehicle-mounted sensor, and respectively determine the original test cases corresponding to each vehicle-mounted protocol data; Based on the intelligent CAN tool, the original test cases corresponding to each vehicle protocol data are processed in sequence through the CAN protocol json configuration file of the target project to obtain multiple CAN protocol messages, wherein the CAN protocol json configuration file is generated by the CAN protocol matrix; Multiple CAN protocol messages are sent to the corresponding project instruments in sequence for data display.

2. The method according to claim 1, characterized in that The step of processing the original test cases corresponding to each vehicle protocol data in sequence through the CAN protocol json configuration file of the target project based on the intelligent CAN tool to obtain multiple CAN protocol messages includes: Determine the project number of the target project according to the original test case corresponding to each vehicle protocol data; The CAN protocol json configuration file of the target project is selected from a preset CAN protocol configuration table according to the project number, and the preset CAN protocol configuration table includes CAN protocol json configuration files of multiple different projects.

3. The method according to claim 1 or 2, characterized in that The step of processing the original test cases corresponding to each vehicle protocol data in sequence through the CAN protocol json configuration file of the target project based on the intelligent CAN tool to obtain multiple CAN protocol messages includes: Traverse multiple original test cases in sequence, and use the traversed original test cases as current original test cases; Determine the original data ID number corresponding to the current original test case, and determine the protocol ID number corresponding to the CAN protocol of the target project; Determine whether the original data ID number is consistent with the protocol ID number; If they are consistent, the current original test case is processed through the CAN protocol json configuration file of the target project based on the intelligent CAN tool to obtain the CAN protocol message corresponding to the current original test case; After the traversal is completed, multiple CAN protocol messages are obtained.

4. The method according to claim 3, characterized in that After the step of determining whether the original data ID number is consistent with the protocol ID number, the method further includes: When the original data ID number is inconsistent with the protocol ID number, return to the step of sequentially traversing multiple original test cases and taking the traversed original test case as the current original test case.

5. The method according to claim 4, characterized in that The step of sequentially sending a plurality of CAN protocol messages to corresponding project instruments for data display comprises: Determine the message sending rules according to the CAN protocol json configuration file of the target project; According to the message sending rule, multiple CAN protocol messages are sent to corresponding project instruments in sequence for data display.

6. A vehicle-mounted protocol data batch processing system, characterized in that: The vehicle-mounted protocol data batch processing system comprises: A determination module, used to obtain multiple vehicle-mounted protocol data of the vehicle through the vehicle-mounted sensor, and respectively determine the original test case corresponding to each vehicle-mounted protocol data; A processing module, used for sequentially processing original test cases corresponding to each vehicle protocol data through a CAN protocol json configuration file of a target project based on an intelligent CAN tool to obtain a plurality of CAN protocol messages, wherein the CAN protocol json configuration file is generated by a CAN protocol matrix; The sending module is used to send multiple CAN protocol messages in sequence to the corresponding project instruments for data display.

7. A vehicle-mounted protocol data batch processing device, characterized in that: The device includes: a memory, a processor, and a vehicle protocol data batch processing program stored in the memory and executable on the processor, wherein the vehicle protocol data batch processing program is configured to implement the steps of the vehicle protocol data batch processing method according to any one of claims 1 to 5.

8. A storage medium, characterized in that: The storage medium stores an on-board protocol data batch processing program, and when the on-board protocol data batch processing program is executed by the processor, the steps of the on-board protocol data batch processing method according to any one of claims 1 to 5 are implemented.