Self-analysis method and system based on CAN message stored in T-BOX

By sending test data to T-BOX that simulates the status of the vehicle and using its built-in analysis mechanism, the problem of not being able to parse the CAN messages stored in T-BOX is solved, and the accurate analysis and effective utilization of the data is achieved.

CN119946166APending Publication Date: 2025-05-06XIAMEN MEIYABAIKE INFORMATION SECURITY RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411941984.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

Without an internal communication protocol, the CAN message stored in T-BOX cannot be parsed, resulting in the inability to obtain vehicle speed, position and other data.

Method used

The CAN analyzer sends test data that simulates the vehicle status to T-BOX, triggering the built-in analysis mechanism of T-BOX, determining the correspondence between the vehicle status corresponding to the test data and the stored message data, thereby parsing the message data stored by T-BOX.

Benefits of technology

It realizes effective parsing of CAN messages stored in T-BOX, improves the accuracy and completeness of the data, and avoids the data being regarded as "dead data".

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119946166A_ABST
    Figure CN119946166A_ABST
Patent Text Reader

Abstract

The invention provides a self-analysis method based on a CAN message stored in a T-BOX, which belongs to the technical field of Internet of Vehicles, and comprises the following steps: a CAN analyzer sends test data for simulating at least one vehicle state to the T-BOX; the T-BOX analyzes the test data to obtain corresponding vehicle state information, encapsulates the vehicle state information data into message data in a specified format and stores the message data locally; the message data are extracted from the T-BOX, the message data are analyzed according to the specified format, the message data are compared with the test data, the corresponding relation between the vehicle state corresponding to the test data and the data of the vehicle state corresponding to the message data is determined, and therefore the meaning of the message data stored in the T-BOX is analyzed. According to the method provided by the invention, the CAN message in the T-BOX is effectively analyzed, and the accuracy and integrity of the data are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of vehicle networking, and relates to a self-analysis method and system based on CAN messages stored in a T-BOX, and particularly focuses on the intelligent analysis and conversion technology of T-BOX stored data. Background Art

[0002] The T-BOX (Telematics Box) device is a key component in the Internet of Vehicles system, used for data exchange between vehicles and remote platforms. T-BOX collects vehicle operating status information through the CAN (Controller Area Network) bus, and formats the data in accordance with the GB / T 32960 standard and sends it to the remote platform through a wireless network. In the process of parsing T-BOX data, some formats of data cannot be parsed for the specific meaning of the data due to the lack of corresponding protocols, which makes it difficult to obtain evidence. Therefore, through the parsing function of T-BOX itself, the data with CAN message format is resent to T-BOX for parsing. Through T-BOX data extraction technology, the image or file of T-BOX is extracted. During the parsing process, it is found that some T-BOX manufacturers store data in CAN message format. When encountering these messages, in the absence of internal communication protocols, the corresponding data, such as vehicle speed, location, etc., cannot be parsed. Summary of the invention

[0003] Aiming at the problem that data cannot be parsed without an internal communication protocol, the present invention proposes a self-parsing method and system based on CAN messages stored in a T-BOX.

[0004] The technical solution of the present invention is:

[0005] According to a first aspect of the present invention, a self-analysis method based on CAN messages stored in a T-BOX is proposed, which comprises the following steps:

[0006] S1, the CAN analyzer sends test data simulating at least one vehicle state to the T-BOX;

[0007] S2, T-BOX parses the test data to obtain corresponding vehicle status information, encapsulates the vehicle status information data into message data in a specified format and stores the message data locally;

[0008] S3, extracting the message data from the T-BOX, parsing the message data according to the specified format, comparing the message data with the test data, determining the corresponding relationship between the vehicle state corresponding to the test data and the vehicle state corresponding to the message data, thereby parsing the meaning of the message data stored in the T-BOX.

[0009] In one embodiment, the method further comprises: the CAN analyzer sends test data simulating other vehicle states to the T-BOX, and executes steps S1-S3 until the meaning of the message data corresponding to all vehicle states is parsed.

[0010] In one embodiment, the message data in the specified format is data that complies with the GB / T 32960 standard format.

[0011] In one embodiment, in S1, the CAN analyzer sends test data simulating at least one vehicle state to the T-BOX; the specific method is:

[0012] The test data is encapsulated into a CAN message, and a CANID, a channel and a baud rate of the CAN message are determined, wherein the CANID of the CAN message corresponds to a specific vehicle state.

[0013] In one embodiment, S2, T-BOX parses the test data to obtain corresponding vehicle status data, encapsulates the vehicle status data into message data in a specified format and stores the message data locally; the specific method is:

[0014] T-BOX encapsulates the CAN message data corresponding to each CANID into message data in accordance with the GB / T 32960 standard format and stores the message data locally.

[0015] In one embodiment, S3, extracting the message data from the T-BOX, parsing the message data according to the specified format, comparing the message data with the test data, determining the corresponding relationship between the vehicle state corresponding to the test data and the vehicle state corresponding to the message data, thereby parsing the meaning of the message data stored in the T-BOX; the specific comparison method is:

[0016] The message data conforming to the GB / T 32960 standard format is extracted from the T-BOX, restored to a CAN message, and the message data and test data corresponding to the CANID are found. The non-default value data in the CAN message corresponding to the message data is matched with the data representing the vehicle status in the CAN message corresponding to the test data. The vehicle status information in the test data corresponding to the CANID is the meaning of the message data stored in the T-BOX.

[0017] In one embodiment, S3, the comparison method further includes: comparing whether the data bits of the CAN message corresponding to the test data and the CAN message corresponding to the message data are the same, and if they are different, recording the number of different data bits.

[0018] In one embodiment, before step S1 , a CAN analyzer is connected to a CAN interface of the T-BOX, and the T-BOX is in an offline state.

[0019] According to a second aspect of the present invention, a computer-readable storage medium is provided, on which one or more computer programs are stored. When the one or more computer programs are executed by a computer processor, the above method is implemented.

[0020] According to a third aspect of the present invention, a self-analysis system based on CAN messages stored in a T-BOX is proposed, which comprises: a CAN analyzer, a T-BOX; wherein:

[0021] The CAN analyzer sends test data simulating at least one vehicle state to the T-BOX;

[0022] T-BOX parses the test data to obtain corresponding vehicle status information, encapsulates the vehicle status information data into message data in a specified format and stores the message data locally;

[0023] The CAN analyzer extracts the message data from the T-BOX, parses the message data according to the specified format, compares the message data with the test data, determines the corresponding relationship between the vehicle state corresponding to the test data and the vehicle state corresponding to the message data, and thus parses the meaning of the message data stored in the T-BOX.

[0024] Compared with the prior art, the present invention has the advantages of simulating the sending and receiving process of CAN data and utilizing the built-in parsing capability and data retransmission function of T-BOX to achieve effective parsing of CAN messages in T-BOX and improve the accuracy and integrity of data. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a flow chart of a CAN data analysis method based on a self-analysis method of CAN messages stored in a T-BOX of the present invention;

[0026] Figure 2 It is a diagram of the conversion process of data analysis in the self-analysis method of the present invention based on CAN messages stored in the T-BOX.

[0027] Figure 3 It is a CAN data analysis system architecture diagram of the self-analysis method of the present invention based on CAN messages stored in T-BOX;

[0028] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application. DETAILED DESCRIPTION

[0029] The present invention proposes a self-analysis method and system based on CAN messages stored in a T-BOX. The following describes the implementation of the method of the present invention in one embodiment.

[0030] like Figure 1 The steps of the self-analysis method based on the CAN message stored in the T-BOX include:

[0031] 1. Confirmation of networking status and data format: First, confirm that T-BOX can generate data format that complies with GB / T32960 standard and store CAN message data when it is not connected to the network, so as to prepare for subsequent data analysis.

[0032] 2. Professional equipment connection and T-BOX environment preparation: Use a professional CAN analyzer to connect to the CAN interface and power supply of the T-BOX, and disconnect the T-BOX network through corresponding AT commands or other methods to lay the foundation for the data simulation and analysis environment.

[0033] 3. Data simulation and activation analysis: disconnect the TBOX network through AT commands or corresponding means to meet the prerequisite for data resending, and then use the analyzer to send simulated data to the T-BOX to stimulate the built-in analysis mechanism of the device and create trigger conditions for the analysis of stored data.

[0034] 4. Offline data analysis and storage: When T-BOX enters offline state, it ensures that the stored data is analyzed inside the device and stored in the GB / T 32960 standard format to prepare for subsequent data extraction.

[0035] 5. Data extraction and comparison verification: Use T-BOX data extraction technology to obtain the parsed storage data from the T-BOX, compare it with the simulated data, and confirm the specific meaning and accuracy of the stored data.

[0036] 6. Multiple rounds of verification to ensure data accuracy: Through multiple rounds of data simulation and comparison verification, the storage data and data accuracy corresponding to all GB / T32960 standard data are accurately determined to achieve comprehensive data analysis.

[0037] 7. Repeat steps 3-6 to analyze the T-BOX data content in batches to ensure data accuracy.

[0038] The implementation of the method of the present invention in another embodiment is as follows:

[0039] 1. According to the pin definition, connect the analyzer and TBOX's CAN1, CAN2, power supply and ground to simulate the vehicle sending data.

[0040] 2. Connect to the TBOX serial port, turn on the device flight mode through AT commands, or disconnect the T-BOX network in other ways to make it offline.

[0041] 3. Determine the CANID, channel and baud rate of the CAN message, set the corresponding attributes through the analyzer, and send it to the T-BOX.

[0042] 4. T-BOX receives the data and parses different CANID data into specific vehicle data, such as vehicle speed, longitude and latitude, etc. according to the internal protocol, and then encapsulates it into 32960 message data and stores it locally for the next transmission.

[0043] 5. Through T-BOX data extraction technology, the data stored locally is extracted, and by comparing the non-default data with the simulated CAN data, the specific meaning of the CANID where the input data is located and the accuracy of the data bits are confirmed.

[0044] 6. Then input other values ​​for the parsed CANID and precision and resend them to T-BOX. Repeat steps 3-5 to confirm whether the precision and meaning are correct.

[0045] 7. Repeat the process 3-6 to parse all the data items in the 32960 message, and obtain the meaning and accuracy of all CAN messages. Complete the parsing of all T-BOX data messages based on 32960 messages. The specific conversion process is as follows Figure 2 .

[0046] The self-analysis method and system based on CAN messages stored in T-BOX of the present application have the following technical effects:

[0047] CAN messages can be effectively parsed; by sending test data simulating the vehicle status to T-BOX through the CAN analyzer, the built-in parsing mechanism of T-BOX is triggered, so that CAN messages that could not be parsed in the past due to the lack of internal communication protocols can be parsed. For example, in practical applications, for data stored in the CAN message format, such as vehicle speed, location and other information, its specific meaning could not be understood in the past, but after adopting this method, these data can be accurately parsed, so that the data stored in T-BOX can be effectively used and is no longer "dead data".

[0048] It can improve data accuracy; during the analysis process, multiple rounds of data verification can be performed by simulating the transmission of different vehicle status data, T-BOX analysis, data extraction and comparison verification. For example, in multiple rounds of verification, the running status of the simulated vehicle is constantly changed, such as acceleration, deceleration, constant speed driving, idling, etc., and then the data stored after T-BOX analysis is compared with the simulated data sent to ensure the accuracy of each data item. If deviations are found in the data, the analysis method can be adjusted and optimized in time, thereby improving the accuracy of the data and providing a reliable basis for subsequent analysis and decision-making based on these data.

[0049] The data integrity can be ensured; this method analyzes the T-BOX data content in batches by repeating the steps of data simulation and activation analysis, offline data analysis and storage, data extraction and comparison verification, etc., and can fully cover the CAN message data stored in the T-BOX. Since the T-BOX may store a large number of CAN messages of different types and time points, this method of batch analysis can avoid missing important data and ensure that all relevant data can be analyzed and understood, thereby ensuring the integrity of the data. This is of great significance for fully grasping the vehicle's operating status history, fault diagnosis, etc.

[0050] The data processing flow can be optimized; the T-BOX's own parsing ability and data retransmission function are utilized to avoid dependence on complex external parsing systems and simplify the data processing flow. Traditional parsing methods may require exporting T-BOX data to external devices or systems for processing, which is cumbersome and error-prone. The present invention directly completes data parsing and conversion inside the T-BOX, improves data processing efficiency, reduces risks in data transmission and processing, and enables data to be converted more quickly from the original CAN message format to a format that complies with the GB / T 32960 standard, facilitating subsequent storage, analysis, and application.

[0051] Provide technical support for Internet of Vehicles data processing; the present invention focuses on the processing of T-BOX storage data in the field of Internet of Vehicles, and provides strong technical support for the comprehensive understanding and intelligent processing of Internet of Vehicles data by realizing effective parsing of CAN messages. In the Internet of Vehicles environment, accurate vehicle data is the basis for realizing functions such as vehicle remote monitoring, intelligent driving assistance, and fault prediction. For example, the remote monitoring platform can obtain accurate data such as vehicle speed and location in real time, and track and manage the vehicle in real time; the intelligent driving assistance system can provide more accurate driving suggestions and safety warnings based on accurate vehicle status data, thereby promoting the development and application of Internet of Vehicles technology.

[0052] Accordingly, Figure 3 The CAN data analysis system architecture diagram of the self-analysis method of the present invention based on the CAN message stored in the T-BOX is shown in FIG. Figure 3 As shown, the present invention also proposes a self-analysis system based on CAN messages stored in a T-BOX, which includes: a CAN analyzer 301 and a T-BOX component 302; wherein the CAN analyzer 301 sends test data simulating at least one vehicle state to the T-BOX;

[0053] The T-BOX component 302 parses the test data to obtain corresponding vehicle status information, encapsulates the vehicle status information data into message data in a specified format and stores the message data locally;

[0054] The CAN analyzer 302 extracts the message data from the T-BOX component 301, parses the message data according to the specified format, compares the message data with the test data, determines the corresponding relationship between the vehicle state corresponding to the test data and the vehicle state corresponding to the message data, and thus parses the meaning of the message data stored in the T-BOX.

[0055] like Figure 4 As shown, the computer system includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage part 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the system 400 are also stored. The CPU 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0056] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.

[0057] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 409, and / or installed from the removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, the above functions defined in the method of the present application are executed. It should be noted that the computer-readable storage medium of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, - but not limited to - a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable storage medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wireline, optical cable, RF, etc., or any suitable combination of the foregoing.

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

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

[0060] The modules involved in the embodiments of the present application may be implemented by software or by hardware.

[0061] As another aspect, the present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or it may exist independently and not be assembled into the electronic device. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed by the electronic device, the electronic device: the CAN analyzer sends test data simulating at least one vehicle state to the T-BOX; the T-BOX parses the test data to obtain the corresponding vehicle state information, encapsulates the vehicle state information data into a message data in a specified format and stores the message data locally; extracts the message data from the T-BOX, parses the message data according to the specified format, compares the message data with the test data, determines the corresponding relationship between the vehicle state corresponding to the test data and the vehicle state data corresponding to the message data, and thus parses the meaning of the message data stored in the T-BOX.

[0062] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. A self-analysis method based on CAN messages stored in T-BOX, characterized in that: It includes the following steps: S1, the CAN analyzer sends test data simulating at least one vehicle state to the T-BOX; S2, T-BOX parses the test data to obtain corresponding vehicle status information, encapsulates the vehicle status information data into message data in a specified format and stores the message data locally; S3, extracting the message data from the T-BOX, parsing the message data according to the specified format, comparing the message data with the test data, determining the corresponding relationship between the vehicle state corresponding to the test data and the vehicle state corresponding to the message data, thereby parsing the meaning of the message data stored in the T-BOX.

2. The method according to claim 1, characterized in that It further includes: the CAN analyzer sends test data simulating other vehicle states to the T-BOX, and executes steps S1-S3 until the meaning of the message data corresponding to all vehicle states is parsed.

3. The method according to claim 1, characterized in that The message data in the specified format is data that complies with the GB / T32960 standard format.

4. The method according to claim 1, characterized in that In S1, the CAN analyzer sends test data simulating at least one vehicle state to the T-BOX; the specific method is: The test data is encapsulated into a CAN message, and a CANID, a channel and a baud rate of the CAN message are determined, wherein the CANID of the CAN message corresponds to a specific vehicle state.

5. The method according to claim 4, characterized in that S2, T-BOX parses the test data to obtain corresponding vehicle status data, encapsulates the vehicle status data into message data in a specified format and stores the message data locally; the specific method is: T-BOX encapsulates the CAN message data corresponding to each CANID into message data in accordance with the GB / T 32960 standard format and stores the message data locally.

6. The method according to claim 5, characterized in that S3, extracting the message data from the T-BOX, parsing the message data according to the specified format, comparing the message data with the test data, determining the corresponding relationship between the vehicle state corresponding to the test data and the vehicle state corresponding to the message data, thereby parsing the meaning of the message data stored in the T-BOX; the specific comparison method is: The message data conforming to the GB / T 32960 standard format is extracted from the T-BOX, restored to a CAN message, and the message data and test data corresponding to the CANID are found. The non-default value data in the CAN message corresponding to the message data is matched with the data representing the vehicle status in the CAN message corresponding to the test data. The vehicle status information in the test data corresponding to the CANID is the meaning of the message data stored in the T-BOX.

7. The method according to claim 6, characterized in that S3, the comparison method further includes: comparing whether the data bits of the CAN message corresponding to the test data and the CAN message corresponding to the message data are the same, and if they are different, recording the number of different data bits.

8. The method according to claim 7, characterized in that Before step S1, a CAN analyzer is connected to the CAN interface of the T-BOX, and the T-BOX is in an offline state.

9. A computer-readable storage medium having one or more computer programs stored thereon, characterized in that: When the one or more computer programs are executed by a computer processor, the method according to any one of claims 1 to 8 is implemented.

10. A self-analysis system based on CAN messages stored in T-BOX, characterized in that: It includes: CAN analyzer, T-BOX; among them, The CAN analyzer sends test data simulating at least one vehicle state to the T-BOX; T-BOX parses the test data to obtain corresponding vehicle status information, encapsulates the vehicle status information data into message data in a specified format and stores the message data locally; The CAN analyzer extracts the message data from the T-BOX, parses the message data according to the specified format, compares the message data with the test data, determines the corresponding relationship between the vehicle state corresponding to the test data and the vehicle state corresponding to the message data, and thus parses the meaning of the message data stored in the T-BOX.