Vehicle CAN signal data processing method and device and computer readable storage medium

By identifying and matching the categories of vehicle CAN signals, determining the upload cycle, and performing signal processing and sub-signal screening, the problem of low efficiency in vehicle CAN signal output processing is solved, and more efficient signal uploading and processing is achieved.

CN119474972APending Publication Date: 2025-02-18AVATR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411509715.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In the prior art, the vehicle CAN signal output processing efficiency is low, resulting in a long output time of data analysis indicators, high computing resources consumption, and high cost.

Method used

By identifying the category of the vehicle CAN signal, matching the category in the preset signal cycle database, determining the upload cycle, and signal processing and sub-signal screening of each vehicle CAN signal in the vehicle status data to generate the corresponding first signal. Upload cycle to cloud server.

Benefits of technology

It improves the neatness and processing efficiency of CAN signal upload, reduces the amount of data uploaded by signal, avoids data loss or equipment failure, and reduces computing resource consumption and cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119474972A_ABST
    Figure CN119474972A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of vehicle signal processing, and discloses a vehicle CAN signal data processing method and device and a computer readable storage medium, and the method comprises the steps: recognizing the type of a vehicle CAN signal; matching the categories in a preset signal period database, and determining an uploading period of the vehicle CAN signal based on a matching result; wherein the signal period database comprises a plurality of signal period sample data; performing signal processing on each vehicle CAN signal in the vehicle state data to generate a first signal corresponding to each vehicle CAN signal in a respective uploading period; wherein each vehicle CAN signal is correspondingly configured with an uploading period; and uploading the corresponding first signal to a cloud server according to the uploading period corresponding to each signal. By applying the technical scheme of the invention, partition period processing can be carried out based on different vehicle CAN signal categories, and the processing efficiency of the vehicle CAN signals is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of vehicle signal processing, and in particular to a vehicle CAN signal data processing method, device and computer-readable storage medium. Background Art

[0002] CAN bus is a very important communication bus in new energy vehicles. Based on CAN bus, various data such as vehicle speed and mileage during vehicle operation can be recorded for subsequent analysis. When a vehicle is powered on (electric vehicle), 3000+ signals need to be uploaded per second. The total number of existing vehicles of car companies is usually in the tens of thousands, even hundreds of thousands or millions, so the amount of CAN signal data is very large. As time accumulates, PB-level or even EB-level storage is usually required. The corresponding computing resources required for data processing are also large, requiring a lot of cost investment. Due to the huge amount of data, the output time of data analysis indicators is usually relatively long, resulting in the problem of low efficiency of vehicle CAN signal output processing. Summary of the invention

[0003] In view of the above problems, the embodiments of the present invention provide a vehicle CAN signal data processing method, device and computer-readable storage medium, which are used to solve the problem of low efficiency of vehicle CAN signal output processing in the prior art.

[0004] According to one aspect of an embodiment of the present invention, a method for processing vehicle CAN signal data is provided, the method comprising:

[0005] Identify the type of vehicle CAN signal;

[0006] In a preset signal cycle database, the categories are matched, and the upload cycle of the vehicle CAN signal is determined based on the matching result; wherein the signal cycle database includes: a plurality of signal cycle sample data;

[0007] Performing signal processing on each vehicle CAN signal in the vehicle status data to generate a first signal corresponding to each vehicle CAN signal in its respective upload cycle; wherein each vehicle CAN signal is configured with an upload cycle;

[0008] The corresponding first signals are uploaded to the cloud server according to the upload periods corresponding to the signals.

[0009] According to another aspect of an embodiment of the present invention, a vehicle CAN signal data processing device is provided, comprising:

[0010] Signal recognition module, used to identify the type of vehicle CAN signal;

[0011] The signal matching module is used to match the categories in a preset signal cycle database and determine the upload cycle of the vehicle CAN signal based on the matching result; wherein the signal cycle database includes: a number of signal cycle sample data

[0012] A signal processing module, used for performing signal processing on each vehicle CAN signal in the vehicle status data to generate a first signal corresponding to each vehicle CAN signal in its respective upload cycle; wherein each vehicle CAN signal is configured with an upload cycle;

[0013] The signal uploading module is used to upload the corresponding first signal to the cloud server according to the uploading period corresponding to each signal.

[0014] In an optional manner, the signal processing of each vehicle CAN signal in the vehicle status data includes:

[0015] A sub-signal filtering operation is performed according to each vehicle CAN signal of the vehicle status data; wherein a vehicle CAN signal includes a plurality of sub-signals.

[0016] In an optional manner, the sub-signal screening operation includes:

[0017] Obtain the upload period, generation time and data content corresponding to each sub-signal;

[0018] According to the generation time and data content corresponding to each sub-signal, determine and filter out sub-signals that are adjacent in time and have repeated content;

[0019] Among the screened sub-signals, the retained sub-signals are determined according to the upload period and generation time corresponding to each screened sub-signal, and then the screened sub-signals except the retained sub-signals are screened out.

[0020] In an optional manner, determining the retained sub-signal according to the upload period and generation time corresponding to each screened sub-signal includes:

[0021] Selecting a screening sub-signal whose generation time is continuous as a target screening sub-signal;

[0022] Selecting the first target screening sub-signal as the first retained sub-signal;

[0023] The target-removed sub-signal whose generation time difference with the first retained sub-signal is a preset time difference value is used as the second retained sub-signal.

[0024] In an optional manner, the first signal includes at least one sub-signal, so that the cloud server can confirm whether the vehicle is abnormal based on the sub-signal contained in the received first signal; wherein, if the first signal received by the cloud server does not include the sub-signal, a vehicle abnormality warning is issued.

[0025] In an optional manner, the signal cycle sample data includes: signal category samples, and importance samples and cycle sample data corresponding to the signal category samples; matching the categories in a preset signal cycle database, and determining the upload cycle of the vehicle CAN signal based on the matching results, including:

[0026] Based on the category of the vehicle CAN signal, the target signal category sample is matched in the signal cycle database, and the target signal category sample is used as the matching result;

[0027] Retrieve target importance samples and target period sample data corresponding to the matching results;

[0028] Based on the target importance sample and the target period sample data, the upload period of the vehicle CAN signal is determined.

[0029] In an optional manner, the periodic sample data includes: change frequency and demand time; the importance samples include: important, relatively important and general; the uploading cycle of the vehicle CAN signal is determined based on the target importance sample and the target periodic sample data, including:

[0030] Judging the target importance sample;

[0031] If it is important, the upload period is the first preset value;

[0032] If it is more important, the upload period is the minimum value between the change frequency and the required time corresponding to the target period sample data;

[0033] If it is normal, the upload period is the minimum value between the second preset value and the required time corresponding to the target period sample data; wherein, the second preset value is greater than the first preset value.

[0034] According to another aspect of an embodiment of the present invention, a vehicle CAN signal data processing device is provided, comprising:

[0035] Identify the type of vehicle CAN signal;

[0036] In a preset signal cycle database, the categories are matched, and the upload cycle of the vehicle CAN signal is determined based on the matching result; wherein the signal cycle database includes: a plurality of signal cycle sample data;

[0037] Performing signal processing on each vehicle CAN signal in the vehicle status data to generate a first signal corresponding to each vehicle CAN signal in its respective upload cycle; wherein each vehicle CAN signal is configured with an upload cycle;

[0038] The corresponding first signals are uploaded to the cloud server according to the upload periods corresponding to the signals.

[0039] In an optional manner, the signal processing of each vehicle CAN signal in the vehicle status data includes:

[0040] A sub-signal filtering operation is performed according to each vehicle CAN signal of the vehicle status data; wherein a vehicle CAN signal includes a plurality of sub-signals.

[0041] In an optional manner, the sub-signal screening operation includes:

[0042] Obtain the upload period, generation time and data content corresponding to each sub-signal;

[0043] According to the generation time and data content corresponding to each sub-signal, determine and filter out sub-signals that are adjacent in time and have repeated content;

[0044] Among the screened sub-signals, the retained sub-signals are determined according to the upload period and generation time corresponding to each screened sub-signal, and then the screened sub-signals except the retained sub-signals are screened out.

[0045] In an optional manner, determining the retained sub-signal according to the upload period and generation time corresponding to each screened sub-signal includes:

[0046] Selecting a screening sub-signal whose generation time is continuous as a target screening sub-signal;

[0047] Selecting the first target screening sub-signal as the first retained sub-signal;

[0048] The target-removed sub-signal whose generation time difference with the first retained sub-signal is a preset time difference value is used as the second retained sub-signal.

[0049] In an optional manner, the first signal includes at least one sub-signal, so that the cloud server can confirm whether the vehicle is abnormal based on the sub-signal contained in the received first signal; wherein, if the first signal received by the cloud server does not include the sub-signal, a vehicle abnormality warning is issued.

[0050] In an optional manner, the signal cycle sample data includes: signal category samples, and importance samples and cycle sample data corresponding to the signal category samples; matching the categories in a preset signal cycle database, and determining the upload cycle of the vehicle CAN signal based on the matching results, including:

[0051] Based on the category of the vehicle CAN signal, the target signal category sample is matched in the signal cycle database, and the target signal category sample is used as the matching result;

[0052] Retrieve target importance samples and target period sample data corresponding to the matching results;

[0053] Based on the target importance sample and the target period sample data, the upload period of the vehicle CAN signal is determined.

[0054] In an optional manner, the periodic sample data includes: change frequency and demand time; the importance samples include: important, relatively important and general; the uploading cycle of the vehicle CAN signal is determined based on the target importance sample and the target periodic sample data, including:

[0055] Judging the target importance sample;

[0056] If it is important, the upload period is the first preset value;

[0057] If it is more important, the upload period is the minimum value between the change frequency and the required time corresponding to the target period sample data;

[0058] If it is normal, the upload period is the minimum value between the second preset value and the required time corresponding to the target period sample data; wherein the second preset value is greater than the first preset value

[0059] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the storage medium stores at least one executable instruction, and the executable instruction enables a vehicle CAN signal data processing device / apparatus to perform the following operations:

[0060] Identify the type of vehicle CAN signal;

[0061] In a preset signal cycle database, the categories are matched, and the upload cycle of the vehicle CAN signal is determined based on the matching result; wherein the signal cycle database includes: a plurality of signal cycle sample data;

[0062] Performing signal processing on each vehicle CAN signal in the vehicle status data to generate a first signal corresponding to each vehicle CAN signal in its respective upload cycle; wherein each vehicle CAN signal is configured with an upload cycle;

[0063] The corresponding first signals are uploaded to the cloud server according to the upload periods corresponding to the signals.

[0064] In an optional manner, the signal processing of each vehicle CAN signal in the vehicle status data includes:

[0065] A sub-signal filtering operation is performed according to each vehicle CAN signal of the vehicle status data; wherein a vehicle CAN signal includes a plurality of sub-signals.

[0066] In an optional manner, the sub-signal screening operation includes:

[0067] Obtain the upload period, generation time and data content corresponding to each sub-signal;

[0068] According to the generation time and data content corresponding to each sub-signal, determine and filter out sub-signals that are adjacent in time and have repeated content;

[0069] Among the screened sub-signals, the retained sub-signals are determined according to the upload period and generation time corresponding to each screened sub-signal, and then the screened sub-signals except the retained sub-signals are screened out.

[0070] In an optional manner, determining the retained sub-signal according to the upload period and generation time corresponding to each screened sub-signal includes:

[0071] Selecting a screening sub-signal whose generation time is continuous as a target screening sub-signal;

[0072] Selecting the first target screening sub-signal as the first retained sub-signal;

[0073] The target-removed sub-signal whose generation time difference with the first retained sub-signal is a preset time difference value is used as the second retained sub-signal.

[0074] In an optional manner, the first signal includes at least one sub-signal, so that the cloud server can confirm whether the vehicle is abnormal based on the sub-signal contained in the received first signal; wherein, if the first signal received by the cloud server does not include the sub-signal, a vehicle abnormality warning is issued.

[0075] In an optional manner, the signal cycle sample data includes: signal category samples, and importance samples and cycle sample data corresponding to the signal category samples; matching the categories in a preset signal cycle database, and determining the upload cycle of the vehicle CAN signal based on the matching results, including:

[0076] Based on the category of the vehicle CAN signal, the target signal category sample is matched in the signal cycle database, and the target signal category sample is used as the matching result;

[0077] Retrieve target importance samples and target period sample data corresponding to the matching results;

[0078] Based on the target importance sample and the target period sample data, the upload period of the vehicle CAN signal is determined.

[0079] In an optional manner, the periodic sample data includes: change frequency and demand time; the importance samples include: important, relatively important and general; the uploading cycle of the vehicle CAN signal is determined based on the target importance sample and the target periodic sample data, including:

[0080] Judging the target importance sample;

[0081] If it is important, the upload period is the first preset value;

[0082] If it is more important, the upload period is the minimum value between the change frequency and the required time corresponding to the target period sample data;

[0083] If it is normal, the upload period is the minimum value between the second preset value and the required time corresponding to the target period sample data; wherein, the second preset value is greater than the first preset value.

[0084] The embodiment of the present invention processes the signals in the vehicle status data periodically, identifies different categories of vehicle CAN signals, processes the vehicle CAN signals of the same category, and uploads the signals after processing. Compared with the prior art that uploads all CAN signal contents, the present invention can perform partitioned periodic processing on the vehicle CAN signals based on the different categories of the vehicle CAN signals, improves the uniformity of CAN signal uploading, and is conducive to improving the processing efficiency of vehicle CAN signals.

[0085] Furthermore, the embodiment of the present invention can reduce the data volume of signal upload and improve the efficiency of vehicle CAN signal upload by filtering out signals that are adjacent in time and have repeated contents. At the same time, the reserved sub-signals are confirmed, and a sub-signal is reserved each time the signal is uploaded, thereby reducing the data volume of signal upload and avoiding data loss or equipment failure.

[0086] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0087] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

[0088] Figure 1 A schematic flow chart of an embodiment of a vehicle CAN signal data processing method provided by the present invention is shown;

[0089] Figure 2 A result schematic diagram showing an embodiment of a vehicle CAN signal data processing method provided by the present invention;

[0090] Figure 3 A schematic structural diagram of a first embodiment of a vehicle CAN signal data processing device provided by the present invention is shown;

[0091] Figure 4 The schematic diagram shows the structure of an embodiment of a vehicle CAN signal data processing device provided by the present invention. DETAILED DESCRIPTION

[0092] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0093] Figure 1 FIG. 1 is a flow chart showing an embodiment of a method for processing vehicle CAN signal data according to the present invention, wherein the method is executed by a vehicle CAN signal data processing device. Figure 1 As shown, the method comprises the following steps:

[0094] Step 110: Identify the type of the vehicle CAN signal.

[0095] Step 120: Match the categories in a preset signal cycle database, and determine the upload cycle of the vehicle CAN signal based on the matching result; wherein the signal cycle database includes: a plurality of signal cycle sample data.

[0096] Step 130: Process each vehicle CAN signal in the vehicle status data to generate a first signal corresponding to each vehicle CAN signal in its respective upload cycle; wherein each vehicle CAN signal is configured with an upload cycle.

[0097] In an optional manner, the signal processing of each vehicle CAN signal in the vehicle status data includes:

[0098] A sub-signal filtering operation is performed according to each vehicle CAN signal of the vehicle status data; wherein a vehicle CAN signal includes a plurality of sub-signals.

[0099] It can be understood that by filtering out the sub-signals of each vehicle CAN signal, the signal upload volume can be reduced and the system processing efficiency can be improved.

[0100] In an optional manner, the sub-signal screening operation includes:

[0101] Obtain the upload period, generation time and data content corresponding to each sub-signal;

[0102] According to the generation time and data content corresponding to each sub-signal, determine and filter out sub-signals that are adjacent in time and have repeated content;

[0103] Among the screened sub-signals, the retained sub-signals are determined according to the upload period and generation time corresponding to each screened sub-signal, and then the screened sub-signals except the retained sub-signals are screened out.

[0104] It can be understood that by determining the signals that need to be screened out and the signals that need to be retained, while reducing the amount of signal uploads, it is helpful to ensure the integrity of vehicle information records while avoiding the problem of information loss caused by complete deletion of duplicate signals.

[0105] It should be noted that most car companies currently use a higher frequency to collect vehicle status data. For example, in order to record the on / off status of the air conditioner, the status data of the air conditioner is uploaded once per second (1 is on, 0 is off). For example, when the vehicle is powered on for 30 seconds, the air conditioner is turned on and lasts for 20 minutes, and then the air conditioner is turned off for 10 seconds before getting off the vehicle. In this case, the signal recording the status of the air conditioner will upload 30 0s, 1200 1s, and then 10 0s, as shown in Table 1:

[0106] Table 1

[0107] 00..00 11..11 00..00 30 zeros 1200 1 10 zeros

[0108] In this case, three layers of information can be seen from the perspective of the air conditioner's operating status: 1. The air conditioner is always off from 1 to 30 seconds; 2. At the 31st second, the air conditioner changes from off to on, and then from 31 to 1230 seconds the air conditioner is on; 3. At 1231 seconds, the air conditioner changes from on to off, and then from 1231 to 1240 seconds the air conditioner is off. In this case, three layers of information can be seen from the user's perspective of using the vehicle: 1. The user turns on the air conditioner on the 30th day after the vehicle is started; 2. The air conditioner continues to work for 20 minutes; 3. At 1230 seconds, the user turns off the air conditioner. In summary, although the vehicle CAN signal uploads the status data every second, in fact, you only need to pay attention to the start and end nodes of the status change to obtain most of the information of the entire process.

[0109] Based on the analysis of the above situation, when the original upload frequency of the vehicle per second remains unchanged (for example, data is collected once per second), after the data is generated, the vehicle side performs some data processing and only retains the relevant CAN signals at the start and end time points of each state change, and then uploads them to the cloud to reduce the amount of data actually uploaded during data collection, thereby improving the data processing efficiency on the server side.

[0110] In an optional manner, determining the retained sub-signal according to the upload period and generation time corresponding to each screened sub-signal includes:

[0111] Selecting a screening sub-signal whose generation time is continuous as a target screening sub-signal;

[0112] Selecting the first target screening sub-signal as the first retained sub-signal;

[0113] The target-removed sub-signal whose generation time difference with the first retained sub-signal is a preset time difference value is used as the second retained sub-signal.

[0114] It is understandable that the sub-signals to be retained are confirmed in the screened sub-signals, and different signal transmission requirements can be met through the user's setting of the time difference.

[0115] In a specific embodiment, the preset time difference value is: the difference between the generation time of the first retained sub-signal and the end time of the cycle in which it is located + a multiple of the upload cycle value. It can be understood that under the limitation of this preset time difference value, the second retained sub-signal can be: the last target screened sub-signal of the second, third, ..., N signal cycles (according to the number of signal cycles included in the continuous screened sub-signal of the generation time). At this time, the second retained sub-signal is retained in order to transparently transmit the screened sub-signal in each cycle when the target screened sub-signal remains the same for a long time, so as to ensure that a signal can be uploaded in each cycle.

[0116] In an optional manner, the first signal includes at least one sub-signal, so that the cloud server can confirm whether the vehicle is abnormal based on the sub-signal contained in the received first signal; wherein, if the first signal received by the cloud server does not include the sub-signal, a vehicle abnormality warning is issued.

[0117] It can be understood that the technical solution of being able to upload a signal every cycle can distinguish situations where no signal is uploaded due to equipment failure, which is beneficial to improving the security of signal processing.

[0118] Step 140: Upload the corresponding first signal to the cloud server according to the upload period corresponding to each signal.

[0119] It can be understood that the CAN signal upload period is determined by pre-storing data in the database, so that the CAN signal upload period is set accordingly based on the signal type of the CAN signal, thereby obtaining different upload frequencies and implementing different upload periods for devices of different importance, thereby improving the intelligence of signal upload.

[0120] It should be noted that during the vehicle CAN signal upload process, due to the different expected change frequencies of each signal, such as the signal value of the driving mode CAN signal changes once a day on average, and the vehicle gear CAN signal changes once every 10 minutes on average, so when the actual vehicle CAN signal is uploaded, different upload cycles can be configured for different vehicle CAN signals to process the vehicle CAN signal. By setting different upload cycles, it is possible to: 1. Prevent the situation where the upload cycle is too long and the vehicle CAN signal changes quickly. At this time, the vehicle end needs too many signals in the car within the cycle, which brings greater uncertainty; 2. Prevent the situation where the upload cycle is too short and the vehicle CAN signal changes slowly, because one signal is uploaded in each cycle, and more signals are uploaded.

[0121] In a specific embodiment, a neural network can be trained by training the data features of vehicle CAN signals marked with importance samples, and by inputting the data features of vehicle CAN signals marked with importance samples into the neural network to obtain the connection between the importance samples and the data features of vehicle CAN signals, and to obtain an importance recognition model through training; the data features of the vehicle CAN signals are recognized by the importance recognition model, and the importance of the vehicle CAN signals is automatically output, thereby realizing intelligent recognition of vehicle CAN messages.

[0122] In an optional manner, the signal cycle sample data includes: signal category samples, and importance samples and cycle sample data corresponding to the signal category samples; matching the categories in a preset signal cycle database, and determining the upload cycle of the vehicle CAN signal based on the matching results, including:

[0123] Based on the category of the vehicle CAN signal, the target signal category sample is matched in the signal cycle database, and the target signal category sample is used as the matching result;

[0124] Retrieve target importance samples and target period sample data corresponding to the matching results;

[0125] Based on the target importance sample and the target period sample data, the upload period of the vehicle CAN signal is determined.

[0126] It can be understood that the importance samples of the vehicle CAN signal are matched through the database, and then the periodic sample data used is confirmed according to the importance samples, thereby realizing the upload period allocation of the vehicle CAN signal.

[0127] In an optional manner, the periodic sample data includes: change frequency and demand time; the importance samples include: important, relatively important and general; the uploading cycle of the vehicle CAN signal is determined based on the target importance sample and the target periodic sample data, including:

[0128] Judging the target importance sample;

[0129] If it is important, the upload period is the first preset value;

[0130] If it is more important, the upload period is the minimum value between the change frequency and the required time corresponding to the target period sample data;

[0131] If it is normal, the upload period is the minimum value between the second preset value and the required time corresponding to the target period sample data; wherein, the second preset value is greater than the first preset value.

[0132] In a specific embodiment, an upload period is set for each signal. In addition to considering the signal changes, factors such as the importance of the signal and the real-time nature of the signal data usage also need to be considered. For example, fault signals are very important and require high real-time upload. Even if no fault occurs for a long time, the upload frequency of fault data should be high enough.

[0133] There are three types of importance samples: important, relatively important, and general. They need to be labeled manually. For better explanation, the following examples are given:

[0134] Examples of important signal categories include: "circuit problem", "tire failure", "engine failure", "battery failure", "electric vehicle failure", "brake failure", "transmission failure", "collision failure", "airbag deployment" and other important safety components. These signals are usually marked by the "vehicle safety" team.

[0135] The more important signal category samples include: battery "current", "voltage", "power", "soc" and other signals, which are generally used for business processing or data analysis. The more important signal category samples are used to analyze the battery status and can be used for scenarios such as reducing energy consumption and battery maintenance. For example: signals uploaded to analyze the vehicle's "air conditioning", "seat massage", "sound waves" and other functions. Usually, the team responsible for each module proposes the signals that need to be uploaded and the scenarios in which these signals may be applied in the future;

[0136] Except for the above two types of signals, the importance level of other signals is average.

[0137] It should be noted that the change frequency refers to the average frequency of changes in the signal value of the vehicle CAN signal. This data can refer to the data of the models that have been launched on the market, and the average frequency of changes in the signal value of each signal. If there is no such signal uploaded before, it can be manually set based on experience, and then modified based on the actual user's use;

[0138] The demand time refers to how long it takes to use the signal after it is uploaded. For example, the data team has a program to monitor the speed of the test drive. If the test drive exceeds the speed limit, it needs to be uploaded after 5 seconds. Obviously, the signal upload frequency cannot be less than 5, so the signal real-time requirement here is 5 seconds. The real-time requirement of the signal is usually oriented to the actual processing requirements of the signal.

[0139] In a specific embodiment, the method for setting the upload period is shown in Table 2. When the importance sample is "important", the change frequency and the required time are not considered, and the signal needs to be uploaded at a very high frequency, so the period is set to 1 second (i.e., the first preset value described in the present invention) or even lower. When the importance sample level is "more important", the minimum value between the change frequency and the required time is taken as the signal upload period. When the signal importance level is "normal", the change frequency is not considered and only the required time needs to be considered. If there is no required time, the default value of 10 seconds or 20 seconds (i.e., the second preset value described in the present invention) is taken.

[0140] Table 2

[0141] Importance Sample Frequency of change Demand time Upload cycle high Any Any 1 second or less More important x y min(x,y) generally Any y min(10,y)

[0142] Beneficial Effects

[0143] In this embodiment, when the original upload frequency of the vehicle per second remains unchanged, after the data is generated, some data processing is performed on the vehicle side, and only the relevant CAN signals at the start and end time points of each state change are retained, and then uploaded to the cloud to reduce the amount of data actually uploaded during data collection, thereby improving the data processing efficiency of the server side. At the same time, this embodiment identifies the categories of different vehicle CAN signals and sets different upload cycles, thereby reducing the amount of data uploaded while ensuring the accuracy of device status monitoring.

[0144] Figure 2 The result schematic diagram of an embodiment of the vehicle CAN signal data processing method of the present invention is shown, specifically:

[0145] A certain vehicle obtains status signals at a certain frequency. This happens for 20 seconds and the original signal reports 20 signals. Figure 2 As shown in the table on the left, the vehicle still reports status signals once per second. After a full reporting cycle (here 10 seconds is a cycle), the vehicle sorts the signals according to the time they arrive within 10 seconds, deletes the status signals that are the same as the previous second, and only retains the signals with changed status. Figure 2The results in the table on the right are reported to the cloud. In this case, only 6 data are reported, which is 30% of the original number. In actual scenarios, the reporting frequency of most status signals is not low, usually about once per second, and the frequency of signal value changes is very low, such as: front trunk switch status, trunk switch status, air conditioning switch status, etc. The time when the user actively switches or adjusts is very short, which is relatively low compared to the power-on time of the entire vehicle. Therefore, in actual scenarios, under the application of this solution, most status signals can reduce the proportion of cloud data by much higher than the 30% in the above example.

[0146] It should be noted that the light-colored area is a 10-second cycle, and the dark-colored area is the next 10-second cycle of the light-colored area; when the vehicle CAN signal data of a 10-second cycle is reported, the value of the last signal in time order will be retained and transparently transmitted to the next 10-second cycle, such as Figure 2 As shown in the table on the right, after the 10-second signal data in the light-colored area is reported, the last signal value 1 is transparently transmitted. After the 10-second period in the dark-colored area is received, since 1 is reported in the subsequent period, only one 1 is reported in the last second of the 10 seconds. The purpose of this is to prevent some unknown anomalies from occurring within these 10 seconds. When the cloud obtains a 1 reported within 10 seconds, it can be known that the signal data acquisition within these 10 seconds is normal. If the signal is not reported in each cycle in order to minimize the signal reporting under the same status, it is difficult to guarantee whether there are any anomalies in the vehicle reporting, network, transmission and other links during this period, and the fault tolerance is low. Therefore, this solution reports at least one signal data to the cloud in each cycle.

[0147] Beneficial Effects

[0148] This embodiment reduces the amount of data uploaded by signals by identifying and deleting repeated and continuous signals, improves the efficiency of signal upload, and reduces the pressure on the server to process data. At the same time, the signal transmission security is guaranteed by the signal transparent transmission operation.

[0149] Figure 3 FIG. 2 shows a schematic diagram of the structure of an embodiment of a vehicle CAN signal data processing device of the present invention. Figure 3 As shown, the device 300 includes: a signal identification module 310 , a signal matching module 320 , a signal processing module 330 and a signal uploading module 340 .

[0150] Signal recognition module, used to identify the type of vehicle CAN signal;

[0151] The signal matching module is used to match the categories in a preset signal cycle database and determine the upload cycle of the vehicle CAN signal based on the matching result; wherein the signal cycle database includes: a number of signal cycle sample data

[0152] A signal processing module, used for performing signal processing on each vehicle CAN signal in the vehicle status data to generate a first signal corresponding to each vehicle CAN signal in its respective upload cycle; wherein each vehicle CAN signal is configured with an upload cycle;

[0153] The signal uploading module is used to upload the corresponding first signal to the cloud server according to the uploading period corresponding to each signal.

[0154] In an optional manner, the signal processing of each vehicle CAN signal in the vehicle status data includes:

[0155] A sub-signal filtering operation is performed according to each vehicle CAN signal of the vehicle status data; wherein a vehicle CAN signal includes a plurality of sub-signals.

[0156] In an optional manner, the sub-signal screening operation includes:

[0157] Obtain the upload period, generation time and data content corresponding to each sub-signal;

[0158] According to the generation time and data content corresponding to each sub-signal, determine and filter out sub-signals that are adjacent in time and have repeated content;

[0159] Among the screened sub-signals, the retained sub-signals are determined according to the upload period and generation time corresponding to each screened sub-signal, and then the screened sub-signals except the retained sub-signals are screened out.

[0160] In an optional manner, determining the retained sub-signal according to the upload period and generation time corresponding to each screened sub-signal includes:

[0161] Selecting a screening sub-signal whose generation time is continuous as a target screening sub-signal;

[0162] Selecting the first target screening sub-signal as the first retained sub-signal;

[0163] The target-removed sub-signal whose generation time difference with the first retained sub-signal is a preset time difference value is used as the second retained sub-signal.

[0164] In an optional manner, the first signal includes at least one sub-signal, so that the cloud server can confirm whether the vehicle is abnormal based on the sub-signal contained in the received first signal; wherein, if the first signal received by the cloud server does not include the sub-signal, a vehicle abnormality warning is issued.

[0165] In an optional manner, the signal cycle sample data includes: signal category samples, and importance samples and cycle sample data corresponding to the signal category samples; matching the categories in a preset signal cycle database, and determining the upload cycle of the vehicle CAN signal based on the matching results, including:

[0166] Based on the category of the vehicle CAN signal, the target signal category sample is matched in the signal cycle database, and the target signal category sample is used as the matching result;

[0167] Retrieve target importance samples and target period sample data corresponding to the matching results;

[0168] Based on the target importance sample and the target period sample data, the upload period of the vehicle CAN signal is determined.

[0169] In an optional manner, the periodic sample data includes: change frequency and demand time; the importance samples include: important, relatively important and general; the uploading cycle of the vehicle CAN signal is determined based on the target importance sample and the target periodic sample data, including:

[0170] Judging the target importance sample;

[0171] If it is important, the upload period is the first preset value;

[0172] If it is more important, the upload period is the minimum value between the change frequency and the required time corresponding to the target period sample data;

[0173] If it is normal, the upload period is the minimum value between the second preset value and the required time corresponding to the target period sample data; wherein, the second preset value is greater than the first preset value.

[0174] Beneficial Effects

[0175] The embodiment of the present invention processes the signals in the vehicle status data periodically, identifies different categories of vehicle CAN signals, processes the vehicle CAN signals of the same category, and uploads the signals after processing. Compared with the prior art that uploads all CAN signal contents, the present invention can perform partitioned periodic processing on the vehicle CAN signals based on the different categories of the vehicle CAN signals, improves the uniformity of CAN signal uploading, and is conducive to improving the processing efficiency of vehicle CAN signals.

[0176] Furthermore, the embodiment of the present invention can reduce the data volume of signal upload and improve the efficiency of vehicle CAN signal upload by filtering out signals that are adjacent in time and have repeated contents. At the same time, the reserved sub-signals are confirmed, and a sub-signal is reserved each time the signal is uploaded, thereby reducing the data volume of signal upload and avoiding data loss or equipment failure.

[0177] Figure 4 The schematic diagram of the structure of an embodiment of the vehicle CAN signal data processing device of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the vehicle CAN signal data processing device.

[0178] like Figure 4 As shown, the vehicle CAN signal data processing device may include: a processor (processor) 402 , a communications interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .

[0179] The processor 402, the communication interface 404, and the memory 406 communicate with each other via the communication bus 408. The communication interface 404 is used to communicate with other devices such as a client or other server network elements. The processor 402 is used to execute the program 410, which can specifically execute the relevant steps in the above-mentioned embodiment of the vehicle CAN signal data processing method.

[0180] Specifically, the program 410 may include program code including computer executable instructions.

[0181] The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the vehicle CAN signal data processing device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.

[0182] The memory 406 is used to store the program 410. The memory 406 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.

[0183] Program 410 can be specifically called by processor 402 to enable the vehicle CAN signal data processing device to perform the following operations:

[0184] Identify the type of vehicle CAN signal;

[0185] In a preset signal cycle database, the categories are matched, and the upload cycle of the vehicle CAN signal is determined based on the matching result; wherein the signal cycle database includes: a plurality of signal cycle sample data;

[0186] Performing signal processing on each vehicle CAN signal in the vehicle status data to generate a first signal corresponding to each vehicle CAN signal in its respective upload cycle; wherein each vehicle CAN signal is configured with an upload cycle;

[0187] The corresponding first signals are uploaded to the cloud server according to the upload periods corresponding to the signals.

[0188] In an optional manner, the signal processing of each vehicle CAN signal in the vehicle status data includes:

[0189] A sub-signal filtering operation is performed according to each vehicle CAN signal of the vehicle status data; wherein a vehicle CAN signal includes a plurality of sub-signals.

[0190] In an optional manner, the sub-signal screening operation includes:

[0191] Obtain the upload period, generation time and data content corresponding to each sub-signal;

[0192] According to the generation time and data content corresponding to each sub-signal, determine and filter out sub-signals that are adjacent in time and have repeated content;

[0193] Among the screened sub-signals, the retained sub-signals are determined according to the upload period and generation time corresponding to each screened sub-signal, and then the screened sub-signals except the retained sub-signals are screened out.

[0194] In an optional manner, determining the retained sub-signal according to the upload period and generation time corresponding to each screened sub-signal includes:

[0195] Selecting a screening sub-signal whose generation time is continuous as a target screening sub-signal;

[0196] Selecting the first target screening sub-signal as the first retained sub-signal;

[0197] The target-removed sub-signal whose generation time difference with the first retained sub-signal is a preset time difference value is used as the second retained sub-signal.

[0198] In an optional manner, the first signal includes at least one sub-signal, so that the cloud server can confirm whether the vehicle is abnormal based on the sub-signal contained in the received first signal; wherein, if the first signal received by the cloud server does not include the sub-signal, a vehicle abnormality warning is issued.

[0199] In an optional manner, the signal cycle sample data includes: signal category samples, and importance samples and cycle sample data corresponding to the signal category samples; matching the categories in a preset signal cycle database, and determining the upload cycle of the vehicle CAN signal based on the matching results, including:

[0200] Based on the category of the vehicle CAN signal, the target signal category sample is matched in the signal cycle database, and the target signal category sample is used as the matching result;

[0201] Retrieve target importance samples and target period sample data corresponding to the matching results;

[0202] Based on the target importance sample and the target period sample data, the upload period of the vehicle CAN signal is determined.

[0203] In an optional manner, the periodic sample data includes: change frequency and demand time; the importance samples include: important, relatively important and general; the uploading cycle of the vehicle CAN signal is determined based on the target importance sample and the target periodic sample data, including:

[0204] Judging the target importance sample;

[0205] If it is important, the upload period is the first preset value;

[0206] If it is more important, the upload period is the minimum value between the change frequency and the required time corresponding to the target period sample data;

[0207] If it is normal, the upload period is the minimum value between the second preset value and the required time corresponding to the target period sample data; wherein, the second preset value is greater than the first preset value.

[0208] Beneficial Effects

[0209] The embodiment of the present invention processes the signals in the vehicle status data periodically, identifies different categories of vehicle CAN signals, processes the vehicle CAN signals of the same category, and uploads the signals after processing. Compared with the prior art that uploads all CAN signal contents, the present invention can perform partitioned periodic processing on the vehicle CAN signals based on the different categories of the vehicle CAN signals, improves the uniformity of CAN signal uploading, and is conducive to improving the processing efficiency of vehicle CAN signals.

[0210] Furthermore, the embodiment of the present invention can reduce the data volume of signal upload and improve the efficiency of vehicle CAN signal upload by filtering out signals that are adjacent in time and have repeated contents. At the same time, the reserved sub-signals are confirmed, and a sub-signal is reserved each time the signal is uploaded, thereby reducing the data volume of signal upload and avoiding data loss or equipment failure.

[0211] An embodiment of the present invention provides a computer-readable storage medium, which stores at least one executable instruction. When the executable instruction is executed on a vehicle CAN signal data processing device / apparatus, the vehicle CAN signal data processing device / apparatus executes the vehicle CAN signal data processing method in any of the above-mentioned method embodiments.

[0212] The executable instructions can be specifically used to enable the vehicle CAN signal data processing device / apparatus to perform the following operations:

[0213] Identify the type of vehicle CAN signal;

[0214] In a preset signal cycle database, the categories are matched, and the upload cycle of the vehicle CAN signal is determined based on the matching result; wherein the signal cycle database includes: a plurality of signal cycle sample data;

[0215] Performing signal processing on each vehicle CAN signal in the vehicle status data to generate a first signal corresponding to each vehicle CAN signal in its respective upload cycle; wherein each vehicle CAN signal is configured with an upload cycle;

[0216] The corresponding first signals are uploaded to the cloud server according to the upload periods corresponding to the signals.

[0217] In an optional manner, the signal processing of each vehicle CAN signal in the vehicle status data includes:

[0218] A sub-signal filtering operation is performed according to each vehicle CAN signal of the vehicle status data; wherein a vehicle CAN signal includes a plurality of sub-signals.

[0219] In an optional manner, the sub-signal screening operation includes:

[0220] Obtain the upload period, generation time and data content corresponding to each sub-signal;

[0221] According to the generation time and data content corresponding to each sub-signal, determine and filter out sub-signals that are adjacent in time and have repeated content;

[0222] Among the screened sub-signals, the retained sub-signals are determined according to the upload period and generation time corresponding to each screened sub-signal, and then the screened sub-signals except the retained sub-signals are screened out.

[0223] In an optional manner, determining the retained sub-signal according to the upload period and generation time corresponding to each screened sub-signal includes:

[0224] Selecting a screening sub-signal whose generation time is continuous as a target screening sub-signal;

[0225] Selecting the first target screening sub-signal as the first retained sub-signal;

[0226] The target-removed sub-signal whose generation time difference with the first retained sub-signal is a preset time difference value is used as the second retained sub-signal.

[0227] In an optional manner, the first signal includes at least one sub-signal, so that the cloud server can confirm whether the vehicle is abnormal based on the sub-signal contained in the received first signal; wherein, if the first signal received by the cloud server does not include the sub-signal, a vehicle abnormality warning is issued.

[0228] In an optional manner, the signal cycle sample data includes: signal category samples, and importance samples and cycle sample data corresponding to the signal category samples; matching the categories in a preset signal cycle database, and determining the upload cycle of the vehicle CAN signal based on the matching results, including:

[0229] Based on the category of the vehicle CAN signal, the target signal category sample is matched in the signal cycle database, and the target signal category sample is used as the matching result;

[0230] Retrieve target importance samples and target period sample data corresponding to the matching results;

[0231] Based on the target importance sample and the target period sample data, the upload period of the vehicle CAN signal is determined.

[0232] In an optional manner, the periodic sample data includes: change frequency and demand time; the importance samples include: important, relatively important and general; the uploading cycle of the vehicle CAN signal is determined based on the target importance sample and the target periodic sample data, including:

[0233] Judging the target importance sample;

[0234] If it is important, the upload period is the first preset value;

[0235] If it is more important, the upload period is the minimum value between the change frequency and the required time corresponding to the target period sample data;

[0236] If it is normal, the upload period is the minimum value between the second preset value and the required time corresponding to the target period sample data; wherein, the second preset value is greater than the first preset value.

[0237] Beneficial Effects

[0238] The embodiment of the present invention processes the signals in the vehicle status data periodically, identifies different categories of vehicle CAN signals, processes the vehicle CAN signals of the same category, and uploads the signals after processing. Compared with the prior art that uploads all CAN signal contents, the present invention can perform partitioned periodic processing on the vehicle CAN signals based on the different categories of the vehicle CAN signals, improves the uniformity of CAN signal uploading, and is conducive to improving the processing efficiency of vehicle CAN signals.

[0239] Furthermore, the embodiment of the present invention can reduce the data volume of signal upload and improve the efficiency of vehicle CAN signal upload by filtering out signals that are adjacent in time and have repeated contents. At the same time, the reserved sub-signals are confirmed, and a sub-signal is reserved each time the signal is uploaded, thereby reducing the data volume of signal upload and avoiding data loss or equipment failure.

[0240] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system or other device. In addition, the embodiments of the present invention are not directed to any particular programming language.

[0241] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.

[0242] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive.

[0243] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A vehicle CAN signal data processing method, characterized in that: The method comprises: Identify the type of vehicle CAN signal; In a preset signal cycle database, the categories are matched, and the upload cycle of the vehicle CAN signal is determined based on the matching result; wherein the signal cycle database includes: a plurality of signal cycle sample data; Performing signal processing on each vehicle CAN signal in the vehicle status data to generate a first signal corresponding to each vehicle CAN signal in its respective upload cycle; wherein each vehicle CAN signal is configured with an upload cycle; The corresponding first signals are uploaded to the cloud server according to the upload periods corresponding to the signals.

2. The method according to claim 1, characterized in that The signal processing of each vehicle CAN signal in the vehicle status data includes: A sub-signal filtering operation is performed according to each vehicle CAN signal of the vehicle status data; wherein a vehicle CAN signal includes a plurality of sub-signals.

3. The method according to claim 2, characterized in that The sub-signal screening operation includes: Obtain the upload period, generation time and data content corresponding to each sub-signal; According to the generation time and data content corresponding to each sub-signal, determine and filter out sub-signals that are adjacent in time and have repeated content; Among the screened sub-signals, the retained sub-signals are determined according to the upload period and generation time corresponding to each screened sub-signal, and then the screened sub-signals except the retained sub-signals are screened out.

4. The method according to claim 3, characterized in that The step of determining the retained sub-signal according to the upload period and generation time corresponding to each screened sub-signal includes: Selecting a screening sub-signal whose generation time is continuous as a target screening sub-signal; Selecting the first target screening sub-signal as the first retained sub-signal; The target-removed sub-signal whose generation time difference with the first retained sub-signal is a preset time difference value is used as the second retained sub-signal.

5. The method according to claim 4, characterized in that The first signal includes at least one sub-signal, so that the cloud server can confirm whether the vehicle is abnormal based on the sub-signal contained in the received first signal; wherein, if the first signal received by the cloud server does not include the sub-signal, the cloud server issues a vehicle abnormality warning.

6. The method according to claim 1, characterized in that The signal cycle sample data includes: signal category samples, and importance samples and cycle sample data corresponding to the signal category samples; matching the categories in a preset signal cycle database, and determining the upload cycle of the vehicle CAN signal based on the matching results, including: Based on the category of the vehicle CAN signal, the target signal category sample is matched in the signal cycle database, and the target signal category sample is used as the matching result; Retrieve target importance samples and target period sample data corresponding to the matching results; Based on the target importance sample and the target period sample data, the upload period of the vehicle CAN signal is determined.

7. The method according to claim 6, characterized in that The periodic sample data includes: change frequency and demand time; the importance samples include: important, relatively important and general; the uploading cycle of the vehicle CAN signal is determined based on the target importance sample and the target periodic sample data, including: Judging the target importance sample; If it is important, the upload period is the first preset value; If it is more important, the upload period is the minimum value between the change frequency and the required time corresponding to the target period sample data; If it is normal, the upload period is the minimum value between the second preset value and the required time corresponding to the target period sample data; wherein, the second preset value is greater than the first preset value.

8. A vehicle CAN signal data processing device, characterized in that: The device comprises: Signal recognition module, used to identify the type of vehicle CAN signal; The signal matching module is used to match the categories in a preset signal cycle database and determine the upload cycle of the vehicle CAN signal based on the matching result; wherein the signal cycle database includes: a number of signal cycle sample data A signal processing module, used for performing signal processing on each vehicle CAN signal in the vehicle status data to generate a first signal corresponding to each vehicle CAN signal in its respective upload cycle; wherein each vehicle CAN signal is configured with an upload cycle; The signal uploading module is used to upload the corresponding first signal to the cloud server according to the uploading period corresponding to each signal.

9. A vehicle CAN signal data processing device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the operation of the vehicle CAN signal data processing method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The storage medium stores at least one executable instruction. When the executable instruction is executed on the vehicle CAN signal data processing device / apparatus, the vehicle CAN signal data processing device / apparatus performs the operation of the vehicle CAN signal data processing method as described in any one of claims 1 to 7.