Data processing method and system in vehicle fault association process

By using microcontrollers, SRAM and Flash in vehicle fault data processing systems to obtain and filter CAN data in real time, the problem that the existing technology cannot collect and transmit vehicle fault data in real time is solved, and the data is quickly, accurate and economical.

CN119105459AActive Publication Date: 2024-12-10BEIJING FENGZHI RUILIAN TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411277945.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-12-10
Estimated Expiration
2044-09-12

AI Technical Summary

Technical Problem

Existing vehicle failure data processing technology cannot collect and transmit complete data information before and after a vehicle failure in real time and conveniently, and is costly and not real-time, making it difficult to reflect the real situation of the failure.

Method used

Adopt a data processing system, using microcontrollers, plug-in SRAM and plug-in Flash to obtain CAN data in real time, scroll to store and filter fault data according to preset standards, quickly upload second-level data through built-in RAM, plug-in SRAM temporarily stores millisecond-level data, plug-in Flash lasts for a long time Save relevant data, reduce storage and transmission time, and reduce dependence on communication signals.

Benefits of technology

Real-time acquisition and transmission of vehicle failure data is realized, cost is reduced, data processing accuracy and stability is improved, storage pressure on the monitoring platform is reduced, and resources are saved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119105459A_ABST
    Figure CN119105459A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a data processing method and system in a vehicle fault association process. The data processing method is applied to the data processing system and comprises the following steps: acquiring CAN data of a vehicle in real time; based on a first preset standard, first data is determined from the CAN data and stored in a built-in RAM of the system, and a first preset interval is a second level; based on a second preset standard, second data is determined from the CAN data and stored in a plug-in SRAM of the system, and a second preset interval is at a millisecond level; determining a fault level and a fault type according to the CAN data; when the fault level and the fault type meet the requirements of a first preset standard, sending first data; and when the fault level and the fault type meet the requirements of a second preset standard, determining third data from the second data according to the fault type, storing the third data in an external Flash of the system, and sending the third data. The beneficial effect of the invention is that the method can achieve the quick storage and uploading of second-level and millisecond-level fault data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle fault data processing, and in particular, to a data processing method and system in a vehicle fault association process. Background Art

[0002] With the rapid development of the new energy vehicle industry, vehicle safety has become increasingly important and has become one of the primary considerations in the vehicle R&D and design process. Vehicle data information for a period of time before and after a vehicle failure can help automakers and parts companies analyze the real situation before and after the vehicle failure. Therefore, in order to meet the requirements of fast, convenient and accurate collection of relevant data information, it is urgent to develop a data processing method and system for the transmission and data storage of vehicle failure information.

[0003] There are two main types of products on the market. One type is the vehicle terminal (T-Box) based on the GB / T 32960 national standard product, and the other type is the data recorder. T-Box can upload vehicle data in real time, but it is only suitable for uploading some 19 basic vehicle fault data defined by the national standard. Although the national standard allows the upload of custom data, the custom data is completely defined by the T-Box manufacturer's own protocol. If the monitoring platform wants to parse the meaning of the custom data, it needs to first understand the protocol corresponding to the custom data. If the monitoring platform receives custom data from multiple companies with different protocols, it is difficult to parse out valid information. T-Box has few types of fault data, and the data format has been defined, which is not convenient for association and expansion, and the data upload interval is long. Regardless of the type of fault, the data upload interval, and the content of the uploaded data, T-Box cannot reflect the complete situation of the vehicle before and after the fault. The data recorder can record the entire vehicle message in a short interval period and store it in the SD / TF card, and achieve 7 days or more of cyclic coverage according to the storage size of the SD / TF card. This product can completely record vehicle failure conditions, but it is expensive and requires the equipment to be dismantled on site to copy data. It cannot be uploaded to the monitoring platform immediately and cannot be real-time. In addition, the SD / TF card used for storage has the disadvantages of short read and write life, and the gold finger is easily oxidized or shaken, resulting in poor contact. Summary of the invention

[0004] The main purpose of the present invention is to propose a data processing method and system in the process of vehicle fault association, aiming to solve the above-mentioned problems existing in the prior art.

[0005] To achieve the above object, the present invention provides a data processing method in a vehicle fault association process, characterized in that the data processing method is applied to a data processing system, the data processing system includes a single-chip microcomputer with a built-in RAM, an external SRAM, and an external Flash; the data processing method includes:

[0006] Get the vehicle's CAN data in real time;

[0007] Based on a first preset standard, determine first data from the CAN data, and roll-store the first data of a first preset duration in the built-in RAM at a first preset interval, where the first preset interval is in seconds;

[0008] Based on a second preset standard, second data is determined from the CAN data, and the second data of a second preset duration is stored in the external SRAM in a rolling manner at a second preset interval, where the second preset interval is in milliseconds;

[0009] Determine the fault level and fault type according to the CAN data;

[0010] When the fault level and the fault type meet the requirements of the first preset standard, sending the first data;

[0011] When the fault level and the fault type meet the requirement of the second preset standard, third data is determined from the second data according to the fault type, and the third data is sent after being stored in the external Flash.

[0012] In some embodiments, the determining the second data from the CAN data based on the second preset standard includes:

[0013] Based on the second preset standard, determining the type of fault to be concerned;

[0014] Determining, from the CAN data, all CAN data related to the fault type to be concerned as second data;

[0015] Determining third data from the second data according to the fault type includes:

[0016] From the second data, all CAN data related to the fault type are determined as third data.

[0017] In some embodiments, the first data is stored in the built-in RAM in the form of an array;

[0018] The third data is stored in the external Flash in the form of an asc format file.

[0019] In some embodiments, when the fault level and the fault type meet the requirements of the first preset standard, sending the first data includes:

[0020] When the fault level and the fault type meet the requirements of the first preset standard, determining the network signal of the data processing system;

[0021] When the network signal meets a preset condition, sending the first data of the first preset time length before and after the fault occurs;

[0022] When the network signal does not meet the preset condition, the first data of the first preset time period before and after the failure occurs is stored in the external Flash.

[0023] In some embodiments, the first data of the first preset time before and after the occurrence of the fault is sent in a first preset period through a Socket connection of the TCP / IP protocol;

[0024] The third data of the second preset time period before and after the fault occurs is sent in a second preset period through the FTP protocol.

[0025] In some embodiments, the data processing method further includes:

[0026] A second preset standard defined by a user is obtained, where the second preset standard includes the fault type to be paid attention to and the fault level, a CANID associated with the fault type to be paid attention to, a second preset interval, and a second preset duration.

[0027] In addition, to achieve the above-mentioned purpose, the present invention also proposes a data processing system in a vehicle fault association process, characterized in that it includes:

[0028] A single-chip microcomputer, the single-chip microcomputer comprising a CPU and a built-in RAM, the CPU being used to execute the data processing method as described in any of the foregoing embodiments, and the built-in RAM being used to store the first data;

[0029] An external SRAM, connected to the single-chip microcomputer for storing the second data;

[0030] An external Flash, connected to the single-chip microcomputer for storing the third data;

[0031] A communication module is communicatively connected to the single chip microcomputer and is used to send the first data and / or the third data.

[0032] In some embodiments, the external SRAM and the external Flash are connected to the single-chip microcomputer via an SPI bus;

[0033] The capacity of the external SRAM is 8MB.

[0034] In some embodiments, the data processing system further comprises:

[0035] A power module, electrically connected to the single chip computer, for providing power to the data processing system;

[0036] A battery is electrically connected to the power module and the single-chip computer, and is charged by the power module, and is used to continue to provide electrical energy to the data processing system after the power module loses power.

[0037] In some embodiments, the data processing system further comprises:

[0038] A positioning module, which is connected to the single chip microcomputer for providing position information;

[0039] RTC is connected to the microcontroller for providing clock and calendar information.

[0040] The data processing method and system in the vehicle fault association process proposed in this application are externally mounted on the single-chip microcomputer with static random access memory (SRAM) and flash memory (Flash Memory) Flash. The built-in RAM storage space of the single-chip microcomputer is small, but it is directly connected to the single-chip microcomputer CPU, with fast reading and writing speed. The first data of the second level with a small amount of data stored in the built-in RAM can be quickly written and uploaded in real time after the fault occurs, thereby reducing data storage and transmission time, and reducing the load of the single-chip microcomputer CPU in processing second-level vehicle data. The external SRAM storage space is relatively large and has a fast reading and writing speed, but the data cannot be saved after power failure, and it is also impossible to store all the vehicle's CAN data. Therefore, based on the second preset standard, the relevant second data is screened out from the vehicle's CAN data and temporarily stored in the external SRAM. After a fault occurs, the third data related to the fault type is determined from the second data according to the fault type, and the third data is stored in the external Flash before being sent. Through two screenings, on the one hand, real-time storage of millisecond-level vehicle fault data can be achieved, and on the other hand, the upload time can be reduced, the dependence on communication signals can be reduced, the storage space pressure of the monitoring platform can be reduced, and costs can be saved. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0042] The methods, systems and / or programs in the accompanying drawings will be further described according to exemplary embodiments. These exemplary embodiments will be described in detail with reference to the drawings. These exemplary embodiments are non-limiting exemplary embodiments, wherein reference numerals represent similar mechanisms in the various views of the accompanying drawings.

[0043] Figure 1A schematic diagram of the communication between a data processing system and a monitoring platform in a vehicle fault association process involved in some embodiments of the present application;

[0044] Figure 2 This is a structural schematic diagram of a data processing system in a vehicle fault association process involved in some embodiments of the present application;

[0045] Figure 3 This is a flow chart of a data processing method in a vehicle fault association process involved in some embodiments of the present application;

[0046] Figure 4 This is a schematic diagram illustrating the association between vehicle faults and CAN involved in some embodiments of the present application. DETAILED DESCRIPTION

[0047] In order to better understand the above technical scheme, the technical scheme of the present application is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present application and the specific features in the embodiments are detailed descriptions of the technical scheme of the present application, rather than limitations on the technical scheme of the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments can be combined with each other.

[0048] In the following detailed description, numerous specific details are set forth by way of example in order to provide a comprehensive understanding of the relevant guidance. However, it will be apparent to those skilled in the art that the present application may be practiced without these details. In other cases, well-known methods, procedures, systems, compositions and / or circuits have been described at a relatively high level, without detail, in order to avoid unnecessarily obscuring aspects of the present application.

[0049] These and other features, the functions disclosed in the present application, the methods of execution, the functions of the related elements in the structure and the combination of parts and the production economy may become more apparent in consideration of the following description with reference to the accompanying drawings, all of which form a part of this application. However, it is to be understood that the drawings are for illustration and description purposes only and are not intended to limit the scope of this application. It should be understood that these drawings are not drawn to scale. However, it should be clearly understood that the drawings are for illustration and description purposes only and are not intended to limit the scope of this application. It should be known that these drawings are not drawn to scale.

[0050] Flowcharts are used in the present application to illustrate the execution process performed by the system according to the embodiment of the present application. It should be clearly understood that the execution process of the flowchart may not be performed in order. On the contrary, these execution processes may be performed in reverse order or simultaneously. In addition, at least one other execution process may be added to the flowchart. One or more execution processes may be deleted from the flowchart.

[0051] Example

[0052] Figure 1 It is a schematic diagram of the communication between the data processing system 100 and the monitoring platform 200 in the vehicle fault association process in the embodiment of the present application. After the data processing system 100 obtains the fault data, it sends the fault data to the monitoring platform 200 through wireless communication. The user can remotely understand the fault condition of the vehicle from the monitoring platform 200, and the monitoring platform 200 can also send data instructions to the data processing system 100 to control the data processing system 100 to collect fault information that meets the requirements.

[0053] Figure 2 The data processing system 100 in the vehicle fault association process in the embodiment of the present application is a structural diagram. The data processing system 100 includes a single chip microcomputer, an external SRAM, an external Flash, a communication module, a power module, a battery, a positioning module, an RTC, and a CAN chip.

[0054] The single-chip microcomputer includes a CPU and a built-in RAM, and the CPU is used to execute a data processing method in a vehicle fault association process in some embodiments of the present application. Optionally, the single-chip microcomputer can be a 32-bit high-performance master single-chip microcomputer, such as Infineon TC234, etc. The external SRAM, the external Flash and the single-chip microcomputer are connected through the SPI bus communication, the positioning module and the single-chip microcomputer are connected through the USART communication, the RTC and the single-chip microcomputer are connected through the GPIO port, and the CAN chip and the single-chip microcomputer are connected through the CAN line to realize the information interaction and data reading and writing between each component and the single-chip microcomputer. Specifically, the communication module can be a 4G or 5G communication module, which is used to receive and send information for the single-chip microcomputer. The power module is electrically connected to the single-chip microcomputer to provide power for the data processing system 100. The battery is electrically connected to the power module and the single-chip microcomputer, and is usually charged by the power module and ensures sufficient power. It can continue to provide power for the data processing system 100 after the power module loses power to prevent accidental power failure from causing complete loss of data. Optionally, the capacity of the battery is 190mAh to ensure that the data processing system 100 can continue to work for more than 15 minutes after the power module loses power. The positioning module can be a GPS or Beidou positioning module to provide the location information of the vehicle. The RTC can adopt a dual time calibration scheme of the network and GPS to provide an accurate clock. The data processing system 100 uses the clock calendar information (such as year, month, day, hour, minute, and second time) provided by the RTC, combined with the microsecond time provided by the timer inside the single-chip microcomputer, to lock the specific time of each frame of CAN data, thereby ensuring the accuracy of time recording.

[0055] When the data processing system 100 is working, the CAN chip collects CAN data from the vehicle and sends it to the single-chip microcomputer. The single-chip microcomputer parses and packages the CAN data, and at the same time packages the location information of the positioning module and transmits it to the communication module. The communication module then sends the data to the monitoring platform 200.

[0056] Figure 3 is a flow chart of a data processing method in a vehicle fault association process according to some embodiments of the present application, the method is applied to Figure 1 and Figure 2 The data processing system 100 may specifically include the following steps S100-S600.

[0057] S100, obtain the vehicle's CAN data in real time.

[0058] The microcontroller communicates with other components of the vehicle through the CAN chip and CAN line to obtain the CAN data of the vehicle in real time. Each frame of CAN data includes CANID, DLC, frame data, etc. Among them, the information carried by the CAN data includes vehicle information (such as vehicle speed, gear, mileage, etc.), motor information (such as battery voltage, battery temperature, motor speed, motor torque, motor temperature, motor controller temperature, motor controller bus voltage, motor controller bus current, etc.), fault information (such as battery high temperature, battery undervoltage, battery overcurrent, motor overtemperature, etc.) and other information.

[0059] S200, based on a first preset standard, determining first data from the CAN data, and rolling storing the first data of a first preset duration in the built-in RAM at a first preset interval, wherein the first preset interval is in seconds.

[0060] In this embodiment, the first data content, type and length and other form requirements, the first preset interval, the first preset duration and other storage requirements are all determined by the first preset standard. The first preset standard can be a national standard such as GB / T 32960.3-2016 or some departmental, industry standards and other standards. These standards usually define the above content. For example, in GB / T 32960.3-2016, the content of the first data to be uploaded includes vehicle information, drive motor information, fuel cell information, engine information, vehicle position information, extreme value information, alarm information, cell voltage information, cell temperature information, etc. The storage and upload type of the first data is in array form, the first preset duration is 30s, and the first preset interval is 1s, that is, the first data within 30s (first preset duration) before and after the fault occurs needs to be stored at intervals of 1s (first preset interval). Before the fault occurs, the vehicle continuously transmits CAN data to the single-chip microcomputer through the CAN line. Since it is uncertain when the fault occurs, the built-in RAM needs to cache the first data of the first preset duration in advance. The first data is stored in a rolling manner, that is, in a message queue manner, first in first out. After the built-in RAM is full of the first data of the first preset time length, the data to be stored will overwrite the earliest data currently stored in the built-in RAM. For example, when the built-in RAM is full of the first data from the 1st second to the 30th second, the first data to be stored in the 31st second will overwrite the first data of the 1st second. When the first preset interval is at the second level, the amount of first data 30 seconds before and after the fault is approximately at the KB level. Therefore, the storage can be completed through the internal RAM of the single-chip microcomputer.

[0061] S300, based on a second preset standard, determining second data from the CAN data, and rolling storing the second data of a second preset duration in the external SRAM at a second preset interval, where the second preset interval is in milliseconds.

[0062] The second data content, type and length, etc., the second preset interval, and the second preset duration in this embodiment are all determined by the second preset standard. When a fault occurs, the second data within the second preset duration before and after the fault occurs needs to be stored at the second preset interval. Since it is uncertain when the fault will occur, the external SRAM needs to cache the second data of the second preset duration in advance. The second data is stored in the same way as the first data, and is also stored in a rolling manner. After the second data of the second preset duration is fully stored, the newly stored second data will overwrite the earliest stored second data. The second preset duration can be 30s, 40s, 50s, 1min, etc. When the second preset interval is in the millisecond level (such as 1ms), the amount of the second data of the second preset duration is about several MB, which has exceeded the size of the internal RAM of the single-chip computer. Therefore, the second data can be stored by means of the external SRAM, which not only realizes the temporary storage of a large amount of data, but also takes into account the advantage of the low cost of the single-chip computer. Optionally, the capacity of the external SRAM is 8MB, which is convenient for fast reading and writing through the high-speed communication of the SPI bus.

[0063] The second preset standard may be a default setting of the data processing system 100, or may be defined by the user (eg, a data recipient or user such as a car manufacturer or a parts manufacturer).

[0064] As an optional implementation, determining the second data from the CAN data may be to remove CAN data that is not related to the fault, retain CAN data that may be related to the fault, and add a corresponding timestamp as the second data. In this implementation, the second preset standard also includes a CANID associated with the fault type, that is, a mapping relationship between the fault type and the CANID. It can be understood that since each frame of CAN data has its own CANID, the CANID can be used as an identification standard to remove the CAN data corresponding to the CANID that is not related to the fault, retain the CAN data corresponding to the CANID that may be related to the fault, and add a corresponding timestamp as the second data. Figure 4As shown, the CANID of all CAN data that the whole vehicle can generate is the largest set, and the CANID associated with different vehicle faults is only a small set within the largest set. For example, the CANID set associated with motor faults includes part of all CANIDs: 0x18FF1B02, 0x18FF2A02... It should be noted that the types of CANID data mapped to different fault types may be completely different, or they may be partially the same. For example, there is no intersection between the CANID set associated with motor faults and the CANID set associated with battery management faults, and the two are completely different; while the CANID set associated with motor faults and the CANID set associated with gearbox faults have the same CANID: 0x0CFF2302. The mapping relationship in this embodiment can be a default setting, or it can be defined by the user for the specific type and quantity of fault type and mapped CANID.

[0065] It is understandable that when different faults occur, the CAN data that users need to pay attention to when analyzing the fault is also different. When the motor temperature is too high, you only need to pay attention to the relevant CAN data such as vehicle current, vehicle speed, gear, motor speed, motor torque, motor voltage, motor current, etc., while CAN data such as mileage, SOC, DCDC status, battery cell voltage, battery temperature probe, etc. are not the focus of this fault. Therefore, a mapping relationship between the fault type and the relevant CAN data is established in the second preset standard. When a fault occurs, the CAN data with a mapping relationship with the fault is stored, which helps users understand the true situation of the fault, investigate the cause of the fault, and propose solutions.

[0066] It can be understood that among all the CANIDs of the vehicle, some CANIDs have no mapping relationship with all fault types. Therefore, the CAN data corresponding to these CANIDs are removed, and the CAN data corresponding to the CANIDs that have a mapping relationship with the fault type are retained as the second data and stored in the external SRAM, which helps to reduce data storage and transmission time and reduce the CPU load of the microcontroller.

[0067] S400: Determine a fault level and a fault type according to the CAN data.

[0068] In this embodiment, the vehicle controller (such as motor controller MCU, transmission controller TCU, etc.), management system (such as battery management system BMS, etc.), equipment module (such as instrument, etc.), etc. will monitor in real time whether each device is operating normally. When a fault is detected, the controller, management system, equipment module, etc. will generate corresponding fault CAN data and pass it to the single-chip microcomputer through the CAN line and CAN chip. The single-chip microcomputer parses these fault CAN data to obtain the fault level and fault type.

[0069] For example, the CANID of the fault CAN data sent by the vehicle controller VCU is 0x0CFF0A80, ​​and it is packaged according to the Intel format, where the 0th to 1st bytes of the frame data content of the CAN data are the fault code, and the bit0-bit1 of the second byte is the fault level. When the vehicle controller VCU detects a level 3 fault of high coolant inlet temperature, the fault CAN data sent by the vehicle controller VCU contains the CANID of 0x0CFF0A80, ​​and the frame data content is 1B 38 67 00 00 00 64 05, where the fault code 0x381B represents the fault type of high coolant inlet temperature, and the fault level is the lower two bits of 0x67. By bitwise AND calculation 0x67&0x03=3, the fault level is obtained as level 3.

[0070] S500: When the fault level and the fault type meet the requirements of the first preset standard, send the first data.

[0071] In this embodiment, the first preset standard includes the type of data to be uploaded, byte length, fault type, fault level, and upload cycle, etc.

[0072] For ease of understanding, the first preset standard is GB / T 32960.3-2016 for explanation. This standard establishes a three-level fault trigger mechanism, that is, three levels are defined according to the severity of the fault, namely, a first-level minor fault, a second-level moderate fault, and a third-level severe fault. When a third-level fault occurs, the first data is uploaded, and when a first-level fault or a second-level fault occurs, the first data is not uploaded. The data is uploaded in the form of an array, and accordingly, the first data in the built-in RAM is stored in the form of an array. This standard also defines the first preset period as 1-30s, and the data is uploaded in the first preset period during the non-fault period, and the data is uploaded in a period of 1s during the fault period. For example, when the first preset period is 10s, if a fault occurs, the first data of every 1s (first preset interval) within 30s before the fault is sent and uploaded to the monitoring platform 200 in the form of reissued data, and the first data of every 1s in 30s after the fault is uploaded to the monitoring platform 200 in the form of real-time data with a period of 1s. After 30s of the fault, the data transmission period is restored to the first preset period of 10s.

[0073] S600, when the fault level and the fault type meet the requirements of the second preset standard, determine third data from the second data according to the fault type, store the third data in the external Flash, and then send the third data.

[0074] In this embodiment, the second preset standard includes the type of data to be uploaded, byte length, fault type, fault level, and upload cycle, etc.

[0075] It should be noted that the fault type and fault level in the second preset standard may be the same as or different from the fault type and fault level in the first preset standard. For example, the fault level in the second preset standard may be level four, level five, level eight, etc. The user may customize the fault reaching the preset level to trigger the subsequent determination, storage and uploading of the third data.

[0076] In this embodiment, the data type of the first data defined by the first preset standard has nothing to do with the fault type. Therefore, when the fault type and fault level meet the requirements of the first preset standard, it is only necessary to upload all the first data before and after the fault stored in the built-in RAM. The first preset standard only uploads the array data extracted from the CAN data carrying information such as vehicle speed, gear position, motor speed, alarm, fault level, etc., and does not upload the CAN data itself, that is, the first preset standard will not store and upload the CAN data from which the aforementioned information is derived. In contrast, the second preset standard also includes the mapping relationship between the fault type and the relevant CAN data. Therefore, when the fault type and fault level meet the requirements of the second preset standard, it is necessary to determine all CAN data related to the fault type and the corresponding timestamp information from the second data of the external SRAM as the third data, and remove other unnecessary CAN data. The second preset standard uploads all CAN data including CANID, DLC, frame data, etc. Therefore, the information carried by the third data includes but is not limited to the fault type, fault level, etc.

[0077] Since the data will be lost after the external SRAM loses power, therefore, the third data can be stored in Flash for a long time. Even if power is lost or the network is not good, the third data can be read from Flash and uploaded to the monitoring platform 200 after the next power-on and network recovery. Optionally, Flash is an 8GB NAND Flash to provide sufficient storage space and readable and writable life. Specifically, when the third data before and after the failure is determined, the third data is moved from the external SRAM to the external Flash, and after the storage is completed, the third data is sent for upload. The upload period of the third data is the second preset period, and optionally, the second preset period is 1s. After applying the method of this embodiment, the storage space required for the third data is greatly reduced to about 80-90KB, the normal reporting period of the terminal is 10s, and the third data can be uploaded in a 1s period, with 10KB of data uploaded each time, and the uploading of the third data can be completed in about 10 seconds.

[0078] Optionally, the second preset standard limits the uploaded data type to an asc format file, and accordingly, the third data in the external Flash is stored in the form of an asc format file. The asc file contains the complete information of the screened CAN data (such as CANID, DLC, frame data, etc.), and is the embodiment of the most original CAN data on the whole vehicle. The subsequent monitoring platform 200 can complete the real-time analysis of the third data in the asc file through relevant professional software such as CANoe, and observe more abundant real situations before and after the vehicle failure.

[0079] Optionally, the single chip microcomputer sends the first data and / or the third data to the monitoring platform 200 by controlling the communication module.

[0080] The data processing method of this embodiment can upload fault-related data based on two standards at the same time through steps S100-S600: the requirements of the first preset standard are relatively low, and the required information can be extracted from the CAN data of the whole vehicle and then uploaded according to the first data format requirements of the standard. Since the first data does not involve specific CANID data, the data volume is small but it is convenient for real-time uploading; the second preset standard can be freely defined, and more abundant second data and third data related to the vehicle fault can be obtained. At the same time, in conjunction with other means in this data processing method, the data storage and transmission speed is guaranteed.

[0081] Among them, the data processing method of this embodiment uses the built-in RAM of the single-chip microcomputer to store and upload second-level data. The built-in RAM has a fast storage speed, a long service life, and is built into the single-chip microcomputer, so the cost is low; an external SRAM is used to roll and store the second data at the millisecond level. The SRAM has an unlimited number of erase and write times, a long service life, a fast storage speed, and a capacity that can be freely matched, and can repeatedly store a large amount of second data; the external Flash is only used to store the third data when a fault occurs, which reduces the amount of data stored. Under the same storage space conditions, data can be stored for a longer number of days in a cycle, which is convenient for subsequent tracking.

[0082] In addition, after two screenings from CAN data to the second data and then to the third data, the volume of millisecond-level fault data is reduced, the storage speed and sending speed are accelerated, the load on the microcontroller CPU and the monitoring platform 200 server is reduced, and the stability of the system operation is improved.

[0083] The data processing system of this embodiment is constructed by using a single-chip microcomputer, an external SRAM, and an external Flash. The system runs on a bare metal and does not require software such as an operating system, thereby reducing development difficulty and labor costs.

[0084] In some embodiments, the second preset standard also includes a fault type to be concerned about. Based on the second preset standard, determining the second data from the CAN data includes:

[0085] Based on the second preset standard, determining the type of fault to be concerned;

[0086] From the CAN data, all CAN data related to the fault type to be concerned are determined as second data.

[0087] It is understandable that different users may pay attention to different types of faults. For example, a battery supplier may pay more attention to battery-related data rather than transmission-related data. Therefore, users can set the types of faults to be paid attention to in the second preset standard according to their own needs, further reducing the total amount of millisecond-level fault data and improving storage and upload speeds.

[0088] In some embodiments, when the second preset standard is user-defined, the data processing method in the vehicle fault association process further includes before step S100:

[0089] Step S10, obtaining a second preset standard defined by the user, wherein the second preset standard includes the fault type to be paid attention to and the fault level, the CANID associated with the fault type to be paid attention to, a second preset interval and a second preset duration.

[0090] In this embodiment, the user can send the relevant information including the second preset standard by wireless transmission, and the single-chip microcomputer receives the relevant information through the communication module and reads the second preset standard defined by the user. It can be understood that the second preset standard and / or the first preset standard can be stored in the external Flash or in other memories that can be read by the single-chip microcomputer. The user can remotely set the second preset standard by himself, which improves the convenience of use of the data processing system 100.

[0091] In some embodiments, when the fault level and the fault type meet the requirements of the first preset standard, sending the first data includes:

[0092] When the fault level and the fault type meet the requirements of the first preset standard, determining the network signal of the data processing system 100;

[0093] When the network signal meets a preset condition, the first data of the first preset time length before and after the fault occurs is sent at a first preset period;

[0094] When the network signal does not meet the preset condition, the first data of the first preset time period before and after the failure occurs is stored in the external Flash.

[0095] In this embodiment, since the amount of the first data is small and the read and write speed of the external Flash is slower than that of the built-in RAM, the first data in the built-in RAM is sent and uploaded first to improve efficiency. Only when the network signal does not meet the preset conditions, such as when the communication module has no network or the network signal is severely attenuated, resulting in the failure of the first data to be sent and uploaded, will the first data in the built-in RAM be moved and stored in the external Flash to avoid the loss of the first data after the built-in RAM loses power.

[0096] In some embodiments, the first data is sent via a Socket connection of a TCP / IP protocol, and the third data is sent via an FTP protocol.

[0097] In this embodiment, the fault of the vehicle may meet the requirements of the first preset standard and the second preset standard at the same time. It can be understood that when the signal is very good, the first data and the third data may be sent at the same time. Therefore, in order to avoid interference and influence caused by the communication module sending two kinds of data at the same time, the first data and the third data in this embodiment are sent using two different protocols respectively. For example, uploading the national standard data packet through the TCP / IP protocol and uploading the asc file through the FTP protocol not only meets the national standard requirements, but also can transmit fault-related messages.

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

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

[0100] 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 is essentially 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 ROM / RAM, magnetic disk, optical disk) as described above, 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.

[0101] 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 data processing method in a vehicle fault association process, characterized in that: The data processing method is applied to a data processing system, wherein the data processing system includes a single-chip microcomputer with a built-in RAM, an external SRAM, and an external Flash; the data processing method includes: Get the vehicle's CAN data in real time; Based on a first preset standard, determine first data from the CAN data, and roll-store the first data of a first preset duration in the built-in RAM at a first preset interval, where the first preset interval is in seconds; Based on a second preset standard, second data is determined from the CAN data, and the second data of a second preset duration is stored in the external SRAM in a rolling manner at a second preset interval, where the second preset interval is in milliseconds; Determine the fault level and fault type according to the CAN data; When the fault level and the fault type meet the requirements of the first preset standard, sending the first data; When the fault level and the fault type meet the requirement of the second preset standard, third data is determined from the second data according to the fault type, and the third data is sent after being stored in the external Flash.

2. The data processing method in the vehicle fault association process according to claim 1, characterized in that: The determining the second data from the CAN data based on the second preset standard includes: Based on the second preset standard, determining the type of fault to be concerned; Determining, from the CAN data, all CAN data related to the fault type to be concerned as second data; Determining third data from the second data according to the fault type includes: From the second data, all CAN data related to the fault type are determined as third data.

3. The data processing method in the vehicle fault association process according to claim 1, characterized in that: The first data is stored in the built-in RAM in the form of an array; The third data is stored in the external Flash in the form of an asc format file.

4. The data processing method in the vehicle fault association process according to claim 1, characterized in that: When the fault level and the fault type meet the requirements of the first preset standard, sending the first data includes: When the fault level and the fault type meet the requirements of the first preset standard, determining the network signal of the data processing system; When the network signal meets a preset condition, sending the first data of the first preset time length before and after the fault occurs; When the network signal does not meet the preset condition, the first data of the first preset time period before and after the failure occurs is stored in the external Flash.

5. The data processing method in the vehicle fault association process according to claim 4, characterized in that: Sending the first data of the first preset time before and after the occurrence of the fault in a first preset period through a Socket connection of the TCP / IP protocol; The third data of the second preset time period before and after the fault occurs is sent in a second preset period through the FTP protocol.

6. The data processing method in the vehicle fault association process according to claim 1, characterized in that: The data processing method further includes: A second preset standard defined by a user is obtained, where the second preset standard includes the fault type to be paid attention to and the fault level, a CANID associated with the fault type to be paid attention to, a second preset interval, and a second preset duration.

7. A data processing system in a vehicle fault association process, characterized in that: include: A single-chip microcomputer, the single-chip microcomputer comprising a CPU and a built-in RAM, the CPU being used to execute the data processing method according to any one of claims 1 to 6, and the built-in RAM being used to store the first data; An external SRAM, connected to the single-chip microcomputer for storing the second data; An external Flash, connected to the single-chip microcomputer for storing the third data; A communication module is communicatively connected to the single chip microcomputer and is used to send the first data and / or the third data.

8. The data processing system in the vehicle fault association process as claimed in claim 7, characterized in that: The external SRAM and the external Flash are connected to the single-chip microcomputer via an SPI bus; The capacity of the external SRAM is 8MB.

9. The data processing system in the vehicle fault association process according to claim 7, characterized in that: The data processing system further comprises: A power module, electrically connected to the single chip computer, and used to provide power to the data processing system; The battery is electrically connected to the power module and the single-chip computer, and is charged by the power module, and is used to continue to provide power to the data processing system after the power module loses power.

10. The data processing system in the vehicle fault association process according to claim 7, characterized in that: The data processing system further comprises: A positioning module, connected to the single chip microcomputer for providing position information; RTC is connected to the microcontroller for providing clock and calendar information.

Citation Information

Patent Citations

  • Fault data processing method, system and device and computer readable storage medium

    CN114489500A

  • Electric vehicle fault recording method and device, medium and battery management system mainboard

    CN115145759A

  • Vehicle fault processing method and device and storage medium

    CN117608266A

  • Vehicle state scoring method and device, computing equipment and storage medium

    CN118196926A

  • Vehicle fault data storage method and device, equipment and storage medium

    CN118262428A