CAN data processing method and system, vehicle and storage medium

By generating and updating personalized acquisition templates at the vehicle terminal, the problem that the existing technology cannot meet the user's personalized data acquisition needs is solved, and flexible data acquisition and reporting is achieved, ensuring data quality and update accuracy.

CN118939290APending Publication Date: 2024-11-12CHONGQING CHANGAN AUTOMOBILE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410943118.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The prior art cannot effectively support users' personalized vehicle data acquisition needs, and cannot flexibly adjust the data acquisition frequency and reporting method according to different users or application scenarios.

Method used

By generating and updating a new acquisition template based on user needs at the vehicle terminal, including the acquisition mode type and corresponding acquisition parameters and data reporting methods, personalized data acquisition and reporting are achieved.

Benefits of technology

Support users' personalized data collection needs, avoid version confusion, ensure the accuracy and effectiveness of update operations, meet different types of data collection and reporting needs, and improve data quality control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939290A_ABST
    Figure CN118939290A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data collection, in particular to a CAN data processing method and system, a vehicle and a storage medium, and the method comprises the steps that when a new collection template issued by a cloud platform is received and it is confirmed that a target vehicle terminal supports template updating, the target vehicle terminal updates a current collection template into a new collection template, and the new collection template is stored in the cloud platform; the new acquisition template comprises an acquisition mode type, an acquisition parameter and a data reporting mode; performing CAN data acquisition based on the acquisition mode type and the acquisition parameters to obtain initial CAN data, and processing the initial CAN data to obtain target CAN data; and the target vehicle terminal reports the target CAN data to the cloud platform according to the data reporting mode, and the new acquisition template is generated based on demand information of a user of the cloud platform. According to the embodiment of the invention, the new acquisition template is generated according to the user demand, and data acquisition is performed based on the new acquisition mode, so that the personalized data acquisition demand of a vehicle manufacturer is effectively met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data acquisition, and in particular to a CAN data processing method, system, vehicle and storage medium. Background Art

[0002] In the existing vehicle data collection and uploading technology, the vehicle terminal usually collects CAN data according to a preset collection template and uploads the collected data to the cloud platform in a unified manner.

[0003] However, with the rapid development of the automotive industry and the improvement of its intelligence level, users' demands for the collection and uploading of vehicle data are becoming increasingly diversified. Different users or application scenarios may need to pay attention to different vehicle data indicators, or have different requirements for data collection frequency, reporting methods, etc. Existing technologies cannot well support the personalized data collection needs of vehicle manufacturers.

[0004] Therefore, the prior art still needs to be improved and enhanced. Summary of the invention

[0005] The present application provides a CAN data processing method, system, vehicle and storage medium to solve the problem that related technologies cannot better support users' personalized data collection needs.

[0006] To achieve the above objectives, this application adopts the following technical solutions:

[0007] The first aspect of the present application provides a CAN data processing method, including:

[0008] When receiving a new collection template sent by the cloud platform and confirming that the target vehicle terminal supports template update, the target vehicle terminal updates the current collection template to a new collection template, wherein the new collection template includes a collection mode type, collection parameters corresponding to the collection mode type, and a data reporting method;

[0009] The target vehicle terminal performs CAN data collection based on the collection mode type and the corresponding collection parameters to obtain initial CAN data, and processes the initial CAN data to obtain target CAN data;

[0010] The target vehicle terminal reports the target CAN data to the cloud platform according to the data reporting method corresponding to the acquisition mode type;

[0011] The new collection template is generated based on the demand information of the cloud platform users.

[0012] According to the above technical means, in the embodiment of the present application, by adopting a new collection module generated based on user demand information to perform data collection and reporting, it can effectively support the user's personalized data collection needs.

[0013] Optionally, in one embodiment of the present application, the method for confirming that the target vehicle terminal supports template update includes:

[0014] The target vehicle terminal compares the version number of the new acquisition template with the version number of the current acquisition template;

[0015] If the version number of the new acquisition template is not equal to the version number of the current acquisition template, it is confirmed that the target vehicle terminal supports template update.

[0016] According to the above technical means, the embodiment of the present application performs version control by means of version numbers, which effectively avoids version confusion and ensures the accuracy and effectiveness of update operations.

[0017] Optionally, in an embodiment of the present application, the acquisition mode type includes one or more of a periodic data acquisition mode, a change data acquisition mode, an event acquisition mode and a historical data acquisition mode.

[0018] According to the above technical means, the embodiments of the present application can effectively support the user's personalized data collection needs by including different types of collection modes.

[0019] Optionally, in one embodiment of the present application, the target vehicle terminal performs CAN data acquisition based on the acquisition mode type and the acquisition parameters corresponding thereto to obtain initial CAN data, and processes the initial CAN data to obtain target CAN data, including:

[0020] If the acquisition mode type is a periodic data acquisition mode, the target vehicle terminal performs CAN data acquisition based on a first acquisition parameter corresponding to the periodic data acquisition mode to obtain first initial CAN data;

[0021] Parsing and cleaning the first initial CAN data to obtain first target CAN data;

[0022] The first acquisition parameters include a first acquisition time, a first acquisition frequency and an identifier of a signal to be acquired.

[0023] According to the above technical means, the embodiment of the present application can effectively meet the user's periodic data collection needs by collecting CAN data according to the first collection parameter.

[0024] Optionally, in one embodiment of the present application, the target vehicle terminal performs CAN data acquisition based on the acquisition mode type and the acquisition parameters corresponding thereto to obtain initial CAN data, processes the initial CAN data to obtain target CAN data, and further includes:

[0025] If the acquisition mode type is a change data acquisition mode, the target vehicle terminal performs CAN data acquisition based on a second acquisition parameter corresponding to the change data acquisition mode to obtain second initial CAN data;

[0026] Parsing and cleaning the second initial CAN data to obtain second target CAN data;

[0027] The second acquisition parameter includes a first acquisition trigger condition.

[0028] According to the above technical means, the embodiment of the present application can effectively meet the user's changing data collection needs by collecting CAN data according to the second collection parameter.

[0029] Optionally, in one embodiment of the present application, the target vehicle terminal performs CAN data acquisition based on the acquisition mode type and the acquisition parameters corresponding thereto to obtain initial CAN data, processes the initial CAN data to obtain target CAN data, and further includes:

[0030] If the acquisition mode type is an event acquisition mode, the target vehicle terminal performs CAN data acquisition based on a third acquisition parameter corresponding to the event acquisition mode to obtain third initial CAN data;

[0031] Parsing and cleaning the third initial CAN data to obtain third target CAN data;

[0032] The third acquisition parameter includes a second acquisition trigger condition, a first acquisition time interval and a third acquisition frequency.

[0033] According to the above technical means, the embodiment of the present application can effectively meet the user's event collection needs by collecting CAN data according to the third collection parameter.

[0034] Optionally, in one embodiment of the present application, the target vehicle terminal performs CAN data acquisition based on the acquisition mode type and the acquisition parameters corresponding thereto to obtain initial CAN data, processes the initial CAN data to obtain target CAN data, and further includes:

[0035] If the acquisition mode type is a historical data acquisition mode, the target vehicle terminal performs CAN data acquisition based on a fourth acquisition parameter corresponding to the historical data acquisition mode to obtain fourth initial CAN data;

[0036] Parsing and cleaning the fourth initial CAN data to obtain fourth target CAN data;

[0037] The fourth acquisition parameter includes a fourth acquisition frequency and a second acquisition time interval.

[0038] According to the above technical means, the embodiment of the present application can effectively meet the user's historical data collection needs by collecting CAN data according to the fourth collection parameter.

[0039] Optionally, in one embodiment of the present application, the target vehicle terminal reports the target CAN data to the cloud platform according to the data reporting method corresponding to the acquisition mode type, including:

[0040] If the acquisition mode type is a periodic data acquisition mode, the target vehicle terminal reports the first target CAN data to the cloud platform in real time according to the first data reporting method corresponding to the acquisition mode type;

[0041] If the acquisition mode type is a change data acquisition mode, the target vehicle terminal reports the second target CAN data to the cloud platform in real time according to a second data reporting method corresponding to the change data acquisition mode;

[0042] If the collection mode type is an event collection mode, the target vehicle terminal reports the third target CAN data to the cloud platform in real time according to the third data reporting method corresponding to the event collection mode;

[0043] If the collection mode type is a historical data collection mode, the target vehicle terminal reports the fourth target CAN data to the cloud platform in response to a data pull instruction issued by the cloud according to a fourth data reporting method corresponding to the historical data collection mode.

[0044] According to the above-mentioned technical means, the embodiment of the present application reports the target CAN data according to the reporting method corresponding to different acquisition model types, which can effectively meet the different data reporting needs of users.

[0045] Optionally, in one embodiment of the present application, after the target vehicle terminal reports the target CAN data to the cloud platform according to the data reporting method corresponding to the acquisition mode type, the method further includes:

[0046] The cloud platform parses the target CAN data to obtain CAN parsed data;

[0047] Performing data quality analysis on the CAN parsed data to obtain a data quality analysis result;

[0048] If the data quality analysis result is qualified, the target CAN data is stored, and the cloud platform user is notified to extract the target CAN data;

[0049] If the data quality analysis result is unqualified, an alarm notification is sent to the cloud platform user.

[0050] According to the above technical means, the embodiments of the present application can timely discover and handle problems and effectively control data quality by performing different processing on data of different data quality analysis results.

[0051] Optionally, in one embodiment of the present application, performing data quality analysis on the CAN parsed data to obtain a data quality analysis result includes:

[0052] The target CAN data is respectively subjected to data integrity calculation, data validity calculation and cloud upload timeliness calculation to obtain data integrity rate, data efficiency rate and cloud upload timeliness rate;

[0053] Compare the data integrity rate, the data efficiency rate and the cloud upload timeliness rate with preset thresholds respectively;

[0054] If the data integrity rate, the data efficiency rate and the cloud upload timeliness rate are all greater than the preset thresholds, the data quality analysis result is confirmed to be qualified;

[0055] If any one of the data integrity rate, the data efficiency rate and the cloud upload timeliness rate is less than the preset threshold, the data quality analysis result is confirmed to be unqualified.

[0056] According to the above technical means, the embodiment of the present application can effectively ensure data quality by analyzing data in multiple dimensions.

[0057] A second aspect of the present application provides a CAN data processing system, including:

[0058] The template update module is used for, when receiving a new collection template sent by the cloud platform and confirming that the target vehicle terminal supports template update, the target vehicle terminal updates the current collection template to a new collection template, wherein the new collection template includes a collection mode type, collection parameters corresponding to the collection mode type, and a data reporting method;

[0059] A data generation module, used for the target vehicle terminal to collect CAN data based on the collection mode type and the corresponding collection parameters to obtain initial CAN data, and process the initial CAN data to obtain target CAN data;

[0060] The data reporting module is used for the target vehicle terminal to report the target CAN data to the cloud platform according to the data reporting method corresponding to the acquisition mode type.

[0061] Optionally, the template updating module includes:

[0062] A version comparison unit, used for the target vehicle terminal to compare the version number of the new acquisition template with the version number of the current acquisition template;

[0063] The update confirmation unit is used to confirm that the target vehicle terminal supports template update if the version number of the new collection template is not equal to the version number of the current collection template.

[0064] Optionally, the data generation module includes:

[0065] A first initial CAN data generating unit, configured to, if the acquisition mode type is a periodic data acquisition mode, cause the target vehicle terminal to perform CAN data acquisition based on a first acquisition parameter corresponding to the periodic data acquisition mode to obtain first initial CAN data, wherein the first acquisition parameter includes a first acquisition time, a first acquisition frequency, and an identifier of a signal to be acquired;

[0066] The first target CAN data generating unit is used to parse and clean the first initial CAN data to obtain first target CAN data.

[0067] Optionally, the data generation module further includes:

[0068] A second initial CAN data generating unit, configured to, if the acquisition mode type is a change data acquisition mode, cause the target vehicle terminal to perform CAN data acquisition based on a second acquisition parameter corresponding to the change data acquisition mode to obtain second initial CAN data, wherein the second acquisition parameter includes a first acquisition trigger condition;

[0069] The second target CAN data generating unit is used to parse and clean the second initial CAN data to obtain second target CAN data.

[0070] Optionally, the data generation module further includes:

[0071] A third initial CAN data generating unit is used for, if the acquisition mode type is an event acquisition mode, the target vehicle terminal performs CAN data acquisition based on a third acquisition parameter corresponding to the event acquisition mode to obtain third initial CAN data, wherein the third acquisition parameter includes a second acquisition trigger condition, a first acquisition time interval and a third acquisition frequency;

[0072] The third target CAN data generating unit is used to parse and clean the third initial CAN data to obtain third target CAN data.

[0073] Optionally, the data reporting module includes:

[0074] A first reporting unit, configured to, if the acquisition mode type is a periodic data acquisition mode, cause the target vehicle terminal to report the first target CAN data to a cloud platform in real time according to a first data reporting method corresponding to the acquisition mode type;

[0075] A second reporting unit, configured to, if the acquisition mode type is a change data acquisition mode, cause the target vehicle terminal to report the second target CAN data to the cloud platform in real time according to a second data reporting method corresponding to the change data acquisition mode;

[0076] A third reporting unit, configured to, if the acquisition mode type is an event acquisition mode, cause the target vehicle terminal to report the third target CAN data to the cloud platform in real time according to a third data reporting method corresponding to the event acquisition mode;

[0077] The fourth reporting unit is used to report the fourth target CAN data to the cloud platform in response to the data pull instruction issued by the cloud, according to the fourth data reporting method corresponding to the historical data collection mode if the collection mode type is the historical data collection mode.

[0078] Optionally, the CAN data processing system further includes:

[0079] A parsing unit, used for the cloud platform to parse the target CAN data to obtain CAN parsed data;

[0080] An analysis unit, used for performing data quality analysis on the CAN parsed data to obtain a data quality analysis result;

[0081] A first judgment unit is used to store the target CAN data if the data quality analysis result is qualified, and notify the cloud platform user to extract the target CAN data;

[0082] The second judgment unit is used to send an alarm notification to the cloud platform user if the data quality analysis result is unqualified.

[0083] Optionally, the analysis unit comprises:

[0084] A first calculation unit is used to perform data integrity calculation, data validity calculation and cloud upload timeliness calculation on the target CAN data, and obtain a data integrity rate, a data validity rate and a cloud upload timeliness rate;

[0085] A comparison unit, used to compare the data integrity rate, the data efficiency rate and the cloud upload timeliness rate with preset thresholds respectively;

[0086] A third judgment unit is used to confirm that the data quality analysis result is qualified if the data integrity rate, the data efficiency rate and the cloud upload timeliness rate are all greater than the preset threshold value;

[0087] The fourth judgment unit is used to confirm that the data quality analysis result is unqualified if any one of the data integrity rate, the data efficiency and the cloud-up timeliness rate is less than the preset threshold.

[0088] A third aspect of the present application provides a vehicle, comprising a memory, a processor, and a CAN data processing program stored in the memory and executable on the processor, wherein when the processor executes the CAN data processing program, the steps of the CAN data processing method as described above are implemented.

[0089] A fourth aspect of the present application provides a computer-readable storage medium, on which a CAN data processing program is stored. When the CAN data processing program is executed by a processor, the steps of the CAN data processing method as described above are implemented.

[0090] Beneficial effects of this application:

[0091] (1) This application can effectively support users' personalized data collection needs by using a new collection module generated based on user demand information to collect and report data.

[0092] (2) This application uses version numbering to perform version control, which effectively avoids version confusion and ensures the accuracy and effectiveness of update operations.

[0093] (3) This application can effectively support users' personalized data collection needs by including different types of collection modes.

[0094] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0095] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0096] Figure 1 A flowchart of a CAN data processing method provided in an embodiment of the present application;

[0097] Figure 2 A schematic diagram of a strategy for updating a collection template provided in an embodiment of the present application;

[0098] Figure 3 CAN data screening flow chart provided for the embodiment of the present application;

[0099] Figure 4 A schematic diagram of data storage provided in an embodiment of the present application;

[0100] Figure 5 A data collection flow chart provided for an embodiment of the present application;

[0101] Figure 6 A schematic diagram of the structure of a CAN data processing system provided in an embodiment of the present application;

[0102] Figure 7 A block diagram of the internal structure of a vehicle according to an embodiment of the present application. DETAILED DESCRIPTION

[0103] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0104] The following describes the CAN data processing method, system, vehicle and storage medium of the embodiment of the present application with reference to the accompanying drawings. In view of the problem that the vehicle mentioned in the above background technology cannot well support the personalized data collection needs of users, the present application provides a CAN data processing method, system, vehicle and storage medium. In the method, when a new collection template issued by the cloud platform is received and it is confirmed that the target vehicle terminal supports the template update, the target vehicle terminal updates the current collection template to a new collection template, and the new collection template includes a collection mode type, a collection parameter corresponding to the collection mode type, and a data reporting method; the target vehicle terminal performs CAN data collection based on the collection mode type and the collection parameters corresponding thereto to obtain initial CAN data, parses and cleans the initial CAN data, and obtains target CAN data; the target vehicle terminal reports the target CAN data to the cloud platform according to the data reporting method corresponding to the collection mode type, and the new collection template is generated based on the demand information of the cloud platform user. The embodiment of the present application effectively meets the personalized data collection needs of vehicle manufacturers by generating a new collection template according to user needs and collecting data based on the new collection mode.

[0105] Specifically, Figure 1 A flowchart of the CAN data processing method provided in an embodiment of the present application.

[0106] like Figure 1 As shown, the CAN data processing method includes the following steps:

[0107] In step S101, when a new acquisition template sent by the cloud platform is received and it is confirmed that the target vehicle terminal supports template update, the target vehicle terminal updates the current acquisition template to a new acquisition template, wherein the new acquisition template includes an acquisition mode type, acquisition parameters corresponding to the acquisition mode type, and a data reporting method.

[0108] Specifically, a new acquisition template is generated based on the demand information of the cloud platform user and sent to the target vehicle terminal. After receiving the target vehicle terminal, it determines whether the template update is currently supported. If the template update is supported, the current acquisition template is updated to the new acquisition template.

[0109] The embodiment of the present application can effectively support the user's personalized data collection needs by using a new collection module generated based on user demand information to collect and report data.

[0110] In an embodiment of the present application, the method for confirming that the target vehicle terminal supports template update includes:

[0111] The target vehicle terminal compares the version number of the new acquisition template with the version number of the current acquisition template;

[0112] If the version number of the new acquisition template is not equal to the version number of the current acquisition template, it is confirmed that the target vehicle terminal supports template update.

[0113] Specifically, the strategy diagram of updating the acquisition template of the present invention is as follows: Figure 2 As shown. When the data collection management background of the cloud platform receives different data cloud requirements, it is configured and the collection template is issued. The on-board terminal performs version control based on the version number. If the version number of the new collection template is equal to the version number of the current collection template, it is confirmed that the target vehicle terminal does not support template updates, and the comparison results are fed back to the cloud platform. If the version number of the new collection template is not equal to the version number of the current collection template, it is confirmed that the target vehicle terminal supports template updates. When the template is updated subsequently, if the upgrade fails, the target vehicle terminal automatically rolls back the collection template to the current collection module. The failed result is returned to the cloud for analysis, and the collection template is regenerated. If the upgrade is successful, the collection and upload are performed according to the new collection template.

[0114] The embodiment of the present application performs version control by means of version numbers, which effectively avoids version confusion and ensures the accuracy and effectiveness of update operations.

[0115] In an embodiment of the present application, the acquisition mode type includes one or more of a periodic data acquisition mode, a change data acquisition mode, an event acquisition mode and a historical data acquisition mode.

[0116] According to the above technical means, the embodiments of the present application can effectively support the user's personalized data collection needs by including different types of collection modes.

[0117] In step S102, the target vehicle terminal performs CAN data collection based on the collection mode type and the corresponding collection parameters to obtain initial CAN data, and processes the initial CAN data to obtain target CAN data;

[0118] Specifically, Figure 3 As shown in the figure, the target vehicle terminal first collects data based on the collection model type and collection parameters, and then parses the collected data. When the parsing is successful, the adaptation collection range is confirmed. If the data belongs to the adaptation collection range, quality screening is performed, and the data that meets the quality screening is subsequently uploaded to the cloud platform. In this process, data that fails to be parsed is discarded, data that does not belong to the adaptation collection range is also discarded, and data that fails the quality screening is also discarded. Data cleaning is performed by performing adaptation collection range screening and quality screening. During the parsing process, the DBC file is used to parse the CAN data.

[0119] The embodiment of the present application can effectively improve the quality of data and reduce the pressure of data processing on the cloud platform by parsing and cleaning the data at the target vehicle terminal.

[0120] In an embodiment of the present application, the target vehicle terminal performs CAN data acquisition based on the acquisition mode type and the acquisition parameters corresponding thereto to obtain initial CAN data, and processes the initial CAN data to obtain target CAN data, including:

[0121] If the acquisition mode type is a periodic data acquisition mode, the target vehicle terminal performs CAN data acquisition based on a first acquisition parameter corresponding to the periodic data acquisition mode to obtain first initial CAN data;

[0122] Parsing and cleaning the first initial CAN data to obtain first target CAN data;

[0123] The first acquisition parameters include a first acquisition time, a first acquisition frequency and an identifier of a signal to be acquired.

[0124] Specifically, when the acquisition mode type is the periodic data acquisition mode, the CAN data is acquired according to the first acquisition parameter.

[0125] The embodiment of the present application can effectively meet the user's periodic data collection needs by collecting CAN data according to the first collection parameter.

[0126] In an embodiment of the present application, the target vehicle terminal performs CAN data acquisition based on the acquisition mode type and the acquisition parameters corresponding thereto to obtain initial CAN data, processes the initial CAN data to obtain target CAN data, and further includes:

[0127] If the acquisition mode type is a change data acquisition mode, the target vehicle terminal performs CAN data acquisition based on a second acquisition parameter corresponding to the change data acquisition mode to obtain second initial CAN data;

[0128] Parsing and cleaning the second initial CAN data to obtain second target CAN data;

[0129] The second acquisition parameter includes a second signal identifier to be acquired and a first acquisition trigger condition.

[0130] Specifically, when the acquisition mode type is the change data acquisition mode, the CAN data is acquired according to the second acquisition parameter. The first acquisition trigger condition here is used to monitor the change of the signal. When the change of the signal meets the first acquisition trigger condition, the CAN signal is acquired. This mode is mainly used for CAN signals with low-frequency changes.

[0131] The embodiment of the present application can effectively meet the user's changing data collection needs by collecting CAN data according to the second collection parameter.

[0132] In an embodiment of the present application, the target vehicle terminal performs CAN data acquisition based on the acquisition mode type and the acquisition parameters corresponding thereto to obtain initial CAN data, processes the initial CAN data to obtain target CAN data, and further includes:

[0133] If the acquisition mode type is an event acquisition mode, the target vehicle terminal performs CAN data acquisition based on a third acquisition parameter corresponding to the event acquisition mode to obtain third initial CAN data;

[0134] Parsing and cleaning the third initial CAN data to obtain third target CAN data;

[0135] The third acquisition parameter includes a third signal identifier to be acquired, a second acquisition trigger condition, a first acquisition time interval and a third acquisition frequency.

[0136] Specifically, when the acquisition mode type is the event acquisition mode, the CAN data is collected according to the third acquisition parameter. The first acquisition time interval includes the data of the event itself and the associated data of N seconds before and after. For example, when a door opening signal is detected, the CAN data of 10 seconds before and after the opening signal is collected.

[0137] The embodiment of the present application can effectively meet the user's event collection needs by collecting CAN data according to the third collection parameter.

[0138] In an embodiment of the present application, the target vehicle terminal performs CAN data acquisition based on the acquisition mode type and the acquisition parameters corresponding thereto to obtain initial CAN data, processes the initial CAN data to obtain target CAN data, and further includes:

[0139] If the acquisition mode type is a historical data acquisition mode, the target vehicle terminal performs CAN data acquisition based on a fourth acquisition parameter corresponding to the historical data acquisition mode to obtain fourth initial CAN data;

[0140] Parsing and cleaning the fourth initial CAN data to obtain fourth target CAN data;

[0141] The fourth acquisition parameter includes a fourth acquisition frequency and a second acquisition time interval.

[0142] Specifically, when the collection mode type is the historical data collection mode, the CAN data is collected according to the fourth collection parameter. For example, the CAN signals of vehicle failures in the past week are collected at a frequency of 5 minutes / time, and the collected CAN signals of vehicle failures are stored locally. Later, when the cloud platform issues a data pull instruction, the CAN signals of vehicle failures are uploaded to the cloud platform.

[0143] The embodiment of the present application can effectively meet the user's historical data collection needs by collecting CAN data according to the fourth collection parameter.

[0144] In step S103, the target vehicle terminal reports the target CAN data to the cloud platform according to the data reporting method corresponding to the acquisition mode type.

[0145] Specifically, the target vehicle finally reports data according to different data reporting methods.

[0146] The embodiment of the present application reports data according to different data reporting methods through the target vehicle terminal, which can effectively meet the user's personalized data reporting needs.

[0147] In an embodiment of the present application, the target vehicle terminal reports the target CAN data to the cloud platform according to the data reporting method corresponding to the acquisition mode type, including:

[0148] If the acquisition mode type is a periodic data acquisition mode, the target vehicle terminal reports the first target CAN data to the cloud platform in real time according to the first data reporting method corresponding to the acquisition mode type;

[0149] If the acquisition mode type is a change data acquisition mode, the target vehicle terminal reports the second target CAN data to the cloud platform in real time according to a second data reporting method corresponding to the change data acquisition mode;

[0150] If the collection mode type is an event collection mode, the target vehicle terminal reports the third target CAN data to the cloud platform in real time according to the third data reporting method corresponding to the event collection mode;

[0151] If the collection mode type is a historical data collection mode, the target vehicle terminal reports the fourth target CAN data to the cloud platform in response to a data pull instruction issued by the cloud according to a fourth data reporting method corresponding to the historical data collection mode.

[0152] Specifically, along with the new energy revolution and intelligent wave of the automobile industry, the Internet of Vehicles platform has entered a stage of rapid development. The automobile industry has gradually shifted from the era of hardware / service competition to the era of data competition. In recent years, the intelligent and networked functions of vehicles have become more and more abundant, and the level has become higher and higher, which requires the collection of massive data to support the realization of functions and better serve users. This change in the industry has led to an increase in the demand for data in automobiles year by year. At this stage, data clouding is applied to more scenarios, and the demand for data clouding has shown explosive growth. Against this background, the current data clouding work can provide strong support for the intelligent networking of vehicles. In the present invention, for the periodic data collection mode, the change data collection mode and the event collection mode, a real-time autonomous reporting method is adopted, while the historical data collection mode adopts a method of reporting according to instructions. When the cloud receives the data reported by the periodic data collection mode, the change data collection mode and the event collection mode, the data is directly parsed. When the cloud platform receives the historical data upload, it needs to be decompressed before parsing.

[0153] The embodiment of the present application reports the target CAN data according to the reporting method corresponding to different acquisition model types, which can effectively meet the different data reporting requirements of vehicle manufacturers.

[0154] In an embodiment of the present application, after the target vehicle terminal reports the target CAN data to the cloud platform according to the data reporting method corresponding to the acquisition mode type, it also includes:

[0155] The cloud platform parses the target CAN data to obtain CAN parsed data;

[0156] Performing data quality analysis on the CAN parsed data to obtain a data quality analysis result;

[0157] If the data quality analysis result is qualified, the target CAN data is stored, and the cloud platform user is notified to extract the target CAN data;

[0158] If the data quality analysis result is unqualified, an alarm notification is sent to the cloud platform user.

[0159] Specifically, the data storage diagram is as follows Figure 4As shown. The present invention performs quality analysis after parsing the data, obtains different quality analysis results, and performs different processing based on different quality analysis results. When storing the target CAN data, first obtain the importance level set by the cloud platform user for this collection task, and classify and store the target CAN data with different time limits based on the importance level. If the importance level is high, it is stored on the cloud platform for 18 months; if the importance level is medium, it is stored on the cloud platform for 9 months; if the importance level is low, it is stored on the cloud platform for 6 months. When the storage period is reached, the data is destroyed. For data with collection types of periodic data collection mode, change data collection mode and event collection mode, it is regarded as real-time data. At this time, during the parsing process, it is necessary to parse the signal name, signal CANID, signal length, signal start bit, timestamp and timestamp of the server currently storing the data. For CAN data with collection type of historical data collection mode, it is regarded as historical data, and it is decompressed before parsing. During the parsing process, it is necessary to parse the signal name, signal CANID, signal length, signal start bit and timestamp.

[0160] The embodiment of the present application can timely discover and handle problems and effectively control data quality by performing different processing on data of different data quality analysis results. Storage according to different importance levels can flexibly utilize cloud space and avoid waste of space resources.

[0161] In the embodiment of the present application, the data quality analysis is performed on the CAN parsed data to obtain the data quality analysis result, including:

[0162] The target CAN data is respectively subjected to data integrity calculation, data validity calculation and cloud upload timeliness calculation to obtain data integrity rate, data efficiency rate and cloud upload timeliness rate;

[0163] Compare the data integrity rate, the data efficiency rate and the cloud upload timeliness rate with preset thresholds respectively;

[0164] If the data integrity rate, the data efficiency rate and the cloud upload timeliness rate are all greater than the preset thresholds, the data quality analysis result is confirmed to be qualified;

[0165] If any one of the data integrity rate, the data efficiency rate and the cloud upload timeliness rate is less than the preset threshold, the data quality analysis result is confirmed to be unqualified.

[0166] Specifically, the data completeness rate is obtained by dividing the number of data items actually collected by the number of data items that need to be collected. The data efficiency is obtained by dividing the total number of signals actually collected that meet the enumeration value by the total number of signals actually collected. The cloud timeliness rate is obtained by dividing the number of data items where the node receives the signal time minus the signal sending time less than 60 seconds by the total number of data items. The preset thresholds for the three are all 98%.

[0167] The embodiments of the present application can effectively ensure data quality by analyzing data in multiple dimensions.

[0168] In summary, the data collection flow chart of the present invention is as follows: Figure 5 As shown. The present invention collects and manages different data cloud-uploading requirements in the data collection management background of the cloud platform, sets the requirements with high data correlation, matches the appropriate collection mode, generates different collection templates and sends them to the target vehicle terminal. After receiving the collection template, the vehicle terminal updates the template, collects and uploads data according to the latest version, including historical data upload mode and real-time data upload mode. Real-time data upload is for periodic data collection mode, event collection mode and change data collection mode. The cloud platform receives the CAN data transmitted by the vehicle terminal, parses it according to the data type, analyzes the data quality according to indicators, and finally classifies and stores the data according to its importance so that the demander can extract the data. The vehicle terminal has the ability to screen and clean data, which can effectively reduce the computing consumption and storage space of the cloud platform. It supports flexible and diverse data collection methods, effectively avoids abnormal data upload, and accurately realizes different data cloud-uploading requirements.

[0169] like Figure 6 As shown, the CAN data processing system 10 includes:

[0170] The template updating module 100 is used for, when receiving a new collection template sent by the cloud platform and confirming that the target vehicle terminal supports template updating, the target vehicle terminal updates the current collection template to a new collection template, wherein the new collection template includes a collection mode type, collection parameters corresponding to the collection mode type, and a data reporting method;

[0171] A data generation module 200 is used for the target vehicle terminal to collect CAN data based on the collection mode type and the corresponding collection parameters to obtain initial CAN data, and to process the initial CAN data to obtain target CAN data;

[0172] The data reporting module 300 is used for the target vehicle terminal to report the target CAN data to the cloud platform according to the data reporting method corresponding to the acquisition mode type.

[0173] Optionally, the template updating module includes:

[0174] A version comparison unit, used for the target vehicle terminal to compare the version number of the new acquisition template with the version number of the current acquisition template;

[0175] The update confirmation unit is used to confirm that the target vehicle terminal supports template update if the version number of the new collection template is not equal to the version number of the collection template.

[0176] Optionally, the data generation module includes:

[0177] A first initial CAN data generating unit, configured to, if the acquisition mode type is a periodic data acquisition mode, cause the target vehicle terminal to perform CAN data acquisition based on a first acquisition parameter corresponding to the periodic data acquisition mode to obtain first initial CAN data, wherein the first acquisition parameter includes a first acquisition time, a first acquisition frequency, and an identifier of a signal to be acquired;

[0178] The first target CAN data generating unit is used to parse and clean the first initial CAN data to obtain first target CAN data.

[0179] Optionally, the data generation module further includes:

[0180] A second initial CAN data generating unit, configured to, if the acquisition mode type is a change data acquisition mode, cause the target vehicle terminal to perform CAN data acquisition based on a second acquisition parameter corresponding to the change data acquisition mode to obtain second initial CAN data, wherein the second acquisition parameter includes a first acquisition trigger condition;

[0181] The second target CAN data generating unit is used to parse and clean the second initial CAN data to obtain second target CAN data.

[0182] Optionally, the data generation module further includes:

[0183] A third initial CAN data generating unit is used for, if the acquisition mode type is an event acquisition mode, the target vehicle terminal performs CAN data acquisition based on a third acquisition parameter corresponding to the event acquisition mode to obtain third initial CAN data, wherein the third acquisition parameter includes a second acquisition trigger condition, a first acquisition time interval and a third acquisition frequency;

[0184] The third target CAN data generating unit is used to parse and clean the third initial CAN data to obtain third target CAN data.

[0185] Optionally, the data reporting module includes:

[0186] A first reporting unit, configured to, if the acquisition mode type is a periodic data acquisition mode, cause the target vehicle terminal to report the first target CAN data to a cloud platform in real time according to a first data reporting method corresponding to the acquisition mode type;

[0187] A second reporting unit, configured to, if the acquisition mode type is a change data acquisition mode, cause the target vehicle terminal to report the second target CAN data to the cloud platform in real time according to a second data reporting method corresponding to the change data acquisition mode;

[0188] A third reporting unit, configured to, if the acquisition mode type is an event acquisition mode, cause the target vehicle terminal to report the third target CAN data to the cloud platform in real time according to a third data reporting method corresponding to the event acquisition mode;

[0189] The fourth reporting unit is used to report the fourth target CAN data to the cloud platform in response to the data pull instruction issued by the cloud, according to the fourth data reporting method corresponding to the historical data collection mode if the collection mode type is the historical data collection mode.

[0190] Optionally, the CAN data processing system further includes:

[0191] A parsing unit, used for the cloud platform to parse the target CAN data to obtain CAN parsed data;

[0192] An analysis unit, used for performing data quality analysis on the CAN parsed data to obtain a data quality analysis result;

[0193] A first judgment unit is used to store the target CAN data if the data quality analysis result is qualified, and notify the cloud platform user to extract the target CAN data;

[0194] The second judgment unit is used to send an alarm notification to the cloud platform user if the data quality analysis result is unqualified.

[0195] Optionally, the analysis unit comprises:

[0196] A first calculation unit is used to perform data integrity calculation, data validity calculation and cloud upload timeliness calculation on the target CAN data, and obtain a data integrity rate, a data validity rate and a cloud upload timeliness rate;

[0197] A comparison unit, used to compare the data integrity rate, the data efficiency rate and the cloud upload timeliness rate with preset thresholds respectively;

[0198] A third judgment unit is used to confirm that the data quality analysis result is qualified if the data integrity rate, the data efficiency rate and the cloud upload timeliness rate are all greater than the preset threshold value;

[0199] The fourth judgment unit is used to confirm that the data quality analysis result is unqualified if any one of the data integrity rate, the data efficiency and the cloud-up timeliness rate is less than the preset threshold.

[0200] Figure 7 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:

[0201] A memory 501 , a processor 502 , and a computer program stored in the memory 501 and executable on the processor 502 .

[0202] When the processor 502 executes the program, the CAN data processing method provided in the above embodiment is implemented.

[0203] Furthermore, the terminal further includes:

[0204] The communication interface 503 is used for communication between the memory 501 and the processor 502 .

[0205] The memory 501 is used to store computer programs that can be executed on the processor 502 .

[0206] The memory 501 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0207] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0208] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.

[0209] The processor 502 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0210] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above CAN data processing method is implemented.

[0211] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0212] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0213] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes additional implementations, in which the order shown or discussed may not be followed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0214] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can read instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary and then storing it in a computer memory.

[0215] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0216] A person skilled in the art may understand that all or part of the steps in the above-mentioned embodiment method may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0217] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0218] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A CAN data processing method, characterized in that: The following steps are involved: When receiving a new collection template sent by the cloud platform and confirming that the target vehicle terminal supports template update, the target vehicle terminal updates the current collection template to a new collection template, wherein the new collection template includes a collection mode type, collection parameters corresponding to the collection mode type, and a data reporting method; The target vehicle terminal performs CAN data collection based on the collection mode type and the corresponding collection parameters to obtain initial CAN data, and processes the initial CAN data to obtain target CAN data; The target vehicle terminal reports the target CAN data to the cloud platform according to the data reporting method corresponding to the acquisition mode type; The new collection template is generated based on the demand information of the cloud platform users.

2. The CAN data processing method according to claim 1, characterized in that: The method for confirming that the target vehicle terminal supports template update includes: The target vehicle terminal compares the version number of the new acquisition template with the version number of the current acquisition template; If the version number of the new acquisition template is not equal to the version number of the current acquisition template, it is confirmed that the target vehicle terminal supports template update.

3. The CAN data processing method according to claim 1, characterized in that: The acquisition mode types include one or more of a periodic data acquisition mode, a change data acquisition mode, an event acquisition mode and a historical data acquisition mode.

4. The CAN data processing method according to claim 3, characterized in that: The target vehicle terminal performs CAN data acquisition based on the acquisition mode type and the acquisition parameters corresponding thereto to obtain initial CAN data, and processes the initial CAN data to obtain target CAN data, including: If the acquisition mode type is a periodic data acquisition mode, the target vehicle terminal performs CAN data acquisition based on a first acquisition parameter corresponding to the periodic data acquisition mode to obtain first initial CAN data; Parsing and cleaning the first initial CAN data to obtain first target CAN data; The first acquisition parameters include a first acquisition time, a first acquisition frequency and an identifier of a signal to be acquired.

5. The CAN data processing method according to claim 4, characterized in that: The target vehicle terminal performs CAN data acquisition based on the acquisition mode type and the acquisition parameters corresponding thereto to obtain initial CAN data, processes the initial CAN data to obtain target CAN data, and further includes: If the acquisition mode type is a change data acquisition mode, the target vehicle terminal performs CAN data acquisition based on a second acquisition parameter corresponding to the change data acquisition mode to obtain second initial CAN data; Parsing and cleaning the second initial CAN data to obtain second target CAN data; The second acquisition parameter includes a first acquisition trigger condition.

6. The CAN data processing method according to claim 5, characterized in that: The target vehicle terminal performs CAN data acquisition based on the acquisition mode type and the acquisition parameters corresponding thereto to obtain initial CAN data, processes the initial CAN data to obtain target CAN data, and further includes: If the acquisition mode type is an event acquisition mode, the target vehicle terminal performs CAN data acquisition based on a third acquisition parameter corresponding to the event acquisition mode to obtain third initial CAN data; Parsing and cleaning the third initial CAN data to obtain third target CAN data; The third acquisition parameter includes a second acquisition trigger condition, a first acquisition time interval and a third acquisition frequency.

7. The CAN data processing method according to claim 6, characterized in that: The target vehicle terminal performs CAN data acquisition based on the acquisition mode type and the acquisition parameters corresponding thereto to obtain initial CAN data, processes the initial CAN data to obtain target CAN data, and further includes: If the acquisition mode type is a historical data acquisition mode, the target vehicle terminal performs CAN data acquisition based on a fourth acquisition parameter corresponding to the historical data acquisition mode to obtain fourth initial CAN data; Parsing and cleaning the fourth initial CAN data to obtain fourth target CAN data; The fourth acquisition parameter includes a fourth acquisition frequency and a second acquisition time interval.

8. The CAN data processing method according to claim 7, characterized in that: The target vehicle terminal reports the target CAN data to the cloud platform according to the data reporting method corresponding to the acquisition mode type, including: If the acquisition mode type is a periodic data acquisition mode, the target vehicle terminal reports the first target CAN data to the cloud platform in real time according to the first data reporting method corresponding to the acquisition mode type; If the acquisition mode type is a change data acquisition mode, the target vehicle terminal reports the second target CAN data to the cloud platform in real time according to a second data reporting method corresponding to the change data acquisition mode; If the collection mode type is an event collection mode, the target vehicle terminal reports the third target CAN data to the cloud platform in real time according to the third data reporting method corresponding to the event collection mode; If the collection mode type is a historical data collection mode, the target vehicle terminal reports the fourth target CAN data to the cloud platform in response to a data pull instruction issued by the cloud according to a fourth data reporting method corresponding to the historical data collection mode.

9. The CAN data processing method according to claim 1, characterized in that: After the target vehicle terminal reports the target CAN data to the cloud platform according to the data reporting method corresponding to the acquisition mode type, the method further includes: The cloud platform parses the target CAN data to obtain CAN parsed data; Performing data quality analysis on the CAN parsed data to obtain a data quality analysis result; If the data quality analysis result is qualified, the target CAN data is stored, and the cloud platform user is notified to extract the target CAN data; If the data quality analysis result is unqualified, an alarm notification is sent to the cloud platform user.

10. The CAN data processing method according to claim 9, characterized in that: The performing of data quality analysis on the CAN parsed data to obtain a data quality analysis result includes: The target CAN data is respectively subjected to data integrity calculation, data validity calculation and cloud upload timeliness calculation to obtain data integrity rate, data efficiency rate and cloud upload timeliness rate; Compare the data integrity rate, the data efficiency rate and the cloud upload timeliness rate with preset thresholds respectively; If the data integrity rate, the data efficiency rate and the cloud upload timeliness rate are all greater than the preset thresholds, the data quality analysis result is confirmed to be qualified; If any one of the data integrity rate, the data efficiency rate and the cloud upload timeliness rate is less than the preset threshold, the data quality analysis result is confirmed to be unqualified.

11. A CAN data processing system, characterized in that: include: The template update module is used for, when receiving a new collection template sent by the cloud platform and confirming that the target vehicle terminal supports template update, the target vehicle terminal updates the current collection template to a new collection template, wherein the new collection template includes a collection mode type, collection parameters corresponding to the collection mode type, and a data reporting method; A data generation module, used for the target vehicle terminal to collect CAN data based on the collection mode type and the corresponding collection parameters to obtain initial CAN data, and process the initial CAN data to obtain target CAN data; The data reporting module is used for the target vehicle terminal to report the target CAN data to the cloud platform according to the data reporting method corresponding to the acquisition mode type.

12. A vehicle, characterized in that: The vehicle includes a memory, a processor, and a CAN data processing program stored in the memory and executable on the processor. When the CAN data processing program is executed by the processor, the steps of the CAN data processing method according to any one of claims 1 to 10 are implemented.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a CAN data processing program, and when the CAN data processing program is executed by the processor, the steps of the CAN data processing method according to any one of claims 1 to 10 are implemented.

Citation Information

Cited By

  • Vehicle visual sentry optimization method and device, storage medium and program product

    CN121354064A