Data processing method and device, vehicle and computer readable storage medium

By screening and compressing the entire vehicle CAN data in the vehicle and uploading it to the cloud on the on-board communication terminal, the data loss problem caused by high data transmission costs and unstable network in the prior art is solved, and efficient and reliable data transmission and Fault analysis.

CN119299447APending Publication Date: 2025-01-10AVITA NEW ENERGY VEHICLE TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411403955.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

The existing vehicle CAN data processing solution occupies a large network bandwidth and consumes more traffic, increasing data transmission costs, and is time-consuming and labor-intensive when locating vehicle abnormalities or analyzing vehicle failures, especially in poor or unstable network signals. This causes data upload failure or loss, hindering analysis progress.

Method used

After obtaining the data of the controller's LAN CAN channel in the vehicle, filter and compress the data to be uploaded according to the pre-acquisitioned configuration files, generate smaller files, reduce the size of network data packets, and upload them to the cloud through the on-board communication terminal.

Benefits of technology

It reduces data transmission costs and traffic, improves data transmission efficiency, reduces the time-consuming of vehicle failure analysis, and ensures data integrity and reliability in network instability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299447A_ABST
    Figure CN119299447A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of vehicles, and discloses a data processing method and device, a vehicle and a computer readable storage medium, and the method comprises the steps: obtaining first CAN data corresponding to at least one CAN channel, processing the at least one piece of first CAN data according to a pre-obtained configuration file, obtaining a target file, and storing the target file in a server; the configuration file records an identifier of at least one to-be-collected CAN and a compression mode of data corresponding to the at least one to-be-collected CAN, and then the target file is uploaded to the cloud. By applying the technical scheme of the invention, the size of the network data packet can be reduced, the data transmission flow is saved, and the data transmission cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of vehicle technology, and specifically to a data processing method, device, vehicle, and computer-readable storage medium. Background Art

[0002] The vehicle's Controller Area Network (CAN) data plays a vital role in locating vehicle abnormalities, analyzing vehicle failure causes and other data services.

[0003] The existing vehicle CAN data processing solution receives the CAN frame Ethernet message sent by the gateway (GW) through the vehicle communication terminal (Telematics BOX, T-BOX), and then the T-BOX reports the received Ethernet message directly to the cloud.

[0004] The above implementation occupies a large network bandwidth, consumes a lot of traffic, and increases data transmission costs. Summary of the invention

[0005] In view of the above problems, embodiments of the present invention provide a data processing method, device, vehicle and computer-readable storage medium, which are used to solve technical problems such as high data transmission costs in the prior art.

[0006] According to one aspect of an embodiment of the present invention, there is provided a data processing method, which is applied to a vehicle, and the method includes:

[0007] Acquire first CAN data corresponding to at least one controller area network CAN channel respectively;

[0008] According to a configuration file obtained in advance, the at least one first CAN data is processed to obtain a target file, wherein the configuration file records: an identifier of at least one CAN to be collected and a compression method of the at least one CAN corresponding data to be collected;

[0009] The target file is uploaded to the cloud.

[0010] In one or more embodiments, the method further comprises:

[0011] Obtaining update information sent by the cloud, where the update information is used to update the configuration file;

[0012] The configuration file is updated according to the update information.

[0013] In one or more embodiments, the configuration file further records: a data upload switch; the method further comprises:

[0014] When the data upload switch is turned on, uploading the target file to the cloud;

[0015] When the data upload switch is in the off state, uploading the target file to the cloud is prohibited.

[0016] In one or more embodiments, obtaining first CAN data corresponding to at least one controller area network CAN channel includes:

[0017] The gateway GW in the vehicle collects third CAN data respectively corresponding to the at least one controller area network CAN channel;

[0018] The GW performs bus mirroring processing on all third CAN data, generates Ethernet messages, and sends them to the vehicle-mounted communication terminal T-BOX of the vehicle;

[0019] The T-BOX parses the Ethernet message to obtain the at least one first CAN data.

[0020] According to another aspect of an embodiment of the present invention, there is provided a data processing device, which is applied to a vehicle, and the device includes:

[0021] An acquisition module, used for acquiring first CAN data respectively corresponding to at least one controller area network CAN channel;

[0022] A processing module, used to process the at least one first CAN data according to a configuration file obtained in advance to obtain a target file, wherein the configuration file records: an identifier of at least one CAN to be collected and a compression method of the at least one CAN corresponding data to be collected;

[0023] The sending module is used to upload the target file to the cloud.

[0024] In one or more embodiments, the processing module is further configured to:

[0025] Obtaining update information sent by the cloud, where the update information is used to update the configuration file;

[0026] The configuration file is updated according to the update information.

[0027] In one or more embodiments, the configuration file further records: a data upload switch; and the processing module is further used to:

[0028] When the data upload switch is turned on, uploading the target file to the cloud;

[0029] When the data upload switch is in the off state, uploading the target file to the cloud is prohibited.

[0030] In one or more embodiments, the acquisition module is specifically used to:

[0031] The gateway GW in the vehicle collects third CAN data respectively corresponding to the at least one controller area network CAN channel;

[0032] The GW performs bus mirroring processing on all third CAN data, generates Ethernet messages, and sends them to the vehicle-mounted communication terminal T-BOX of the vehicle;

[0033] The T-BOX parses the Ethernet message to obtain the at least one first CAN data.

[0034] According to another aspect of the embodiment of the present invention, a vehicle is provided, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus;

[0035] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the operation of the data processing method described in the above aspect.

[0036] 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, wherein the executable instruction enables a data processing device / vehicle to perform operations such as the above-mentioned vehicle fault processing method.

[0037] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the operation of the above-mentioned data processing method is implemented.

[0038] The embodiment of the present invention uses a data processing method, an apparatus, a vehicle and a computer-readable storage medium. After the vehicle obtains the data corresponding to each CAN channel, it first filters out the data of the CAN channel that needs to be collected to avoid the occupation of network bandwidth and traffic consumption caused by uploading irrelevant data. Furthermore, based on the corresponding compression method, the data to be uploaded is compressed to generate a smaller file, that is, the size of the network data packet is reduced, and the data transmission cost is further reduced.

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

[0040] 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:

[0041] Figure 1 A schematic diagram showing the principle of the data processing method provided by the present invention is shown;

[0042] Figure 2 A flow chart showing a first embodiment of a data processing method provided by the present invention;

[0043] Figure 3 A flow chart showing a second embodiment of the data processing method provided by the present invention;

[0044] Figure 4 A flowchart of a third embodiment of the data processing method provided by the present invention is shown;

[0045] Figure 5 A flowchart of a fourth embodiment of the data processing method provided by the present invention is shown;

[0046] Figure 6 A flowchart of a fifth embodiment of the data processing method provided by the present invention is shown;

[0047] Figure 7 A schematic diagram showing the structure of an embodiment of a data processing device of the present invention is shown;

[0048] Figure 8 A schematic structural diagram of an embodiment of a vehicle of the present invention is shown. DETAILED DESCRIPTION

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

[0050] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0051] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments provided herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the embodiments provided below are partial embodiments for implementing the present invention, rather than providing all embodiments for implementing the present invention. In the absence of conflict, the technical solutions recorded in the embodiments of the present invention can be implemented in any combination.

[0052] It should be noted that, in the embodiments of the present invention, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the elements explicitly recorded, but also includes other elements not explicitly listed, or also includes elements inherent to the implementation of the method or apparatus. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other related elements (such as steps in a method or modules in an apparatus, such as a module that can be a part of a circuit, a part of a processor, a part of a program or software, etc.) in the method or apparatus including the element.

[0053] For example, the data processing method provided by the embodiment of the present invention includes a series of steps, but the data processing method provided by the embodiment of the present invention is not limited to the steps described in this document. Similarly, the data processing device provided by the embodiment of the present invention includes a series of modules, but the data processing device provided by the embodiment of the present invention is not limited to including the modules explicitly described, and may also include modules required to obtain relevant information or perform processing based on information.

[0054] Before introducing the data processing method, the application background of the present invention is first explained.

[0055] The vehicle controller area network (CAN) data plays a vital role in locating vehicle abnormalities, analyzing vehicle failure causes, and other data services. The existing vehicle CAN data collection solution mainly receives CAN frame Ethernet messages sent by the gateway (GW) through the vehicle communication terminal (Telematics BOX, T-BOX), and then the T-BOX reports the received Ethernet messages directly to the cloud.

[0056] Therefore, there are the following technical problems in uploading CAN data in the prior art:

[0057] 1) T-BOX receives CAN frame Ethernet messages sent by the gateway and reports them directly to the cloud, which takes up a large network bandwidth and consumes a lot of traffic, increasing data transmission costs;

[0058] 2) When it is necessary to locate vehicle abnormalities and analyze the causes of vehicle failures, it is often necessary to provide the vehicle identification number (VIN) and other information to the cloud operation and maintenance manager. The operation and maintenance manager extracts the vehicle CAN data of the relevant time period from the cloud and gives it to the applicant for problem analysis and location. This process is time-consuming and laborious, especially when there are many problems in vehicle development and testing and experimentation before formal mass production;

[0059] 3) When the network signal is poor or unstable, the vehicle-side CAN data upload fails or the data is lost, the corresponding time node data cannot be extracted, which hinders the progress and speed of analyzing and locating the problem.

[0060] Based on the above technical problems, the technical concept of the present invention is as follows: the GW in the vehicle can collect the CAN data corresponding to each CAN channel. If some methods can be used to reduce the amount or volume of uploaded CAN data during the upload stage, the data transmission cost and transmission traffic can be reduced; based on this, the inventors took into account that since not all CAN data need to be uploaded, if all CAN data is obtained by the GW and then filtered according to the pre-configuration, the amount of data can be reduced. If some CAN data can be compressed and does not affect the use of the cloud, the corresponding CAN data can be compressed at this time, so that the above technical problems can be solved.

[0061] Furthermore, T-BOX compresses the CAN data content obtained from the GW into a file in a specific format according to the streaming method. The file can also be exported in batches to a USB flash drive through the central control screen. The exported file supports direct opening of the analysis tool for analysis, which facilitates rapid problem location and analysis.

[0062] The technical solution of the present invention is described in detail below through specific embodiments. The implementation subject of the present invention is a vehicle, which can be a T-BOX, a CDC, etc.

[0063] It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0064] Figure 1 The schematic diagram of the principle of the data processing method provided by the present invention is shown as follows: Figure 1 As shown, the schematic diagram includes: GW, T-BOX, cockpit domain controller (CDC), display unit, and cloud.

[0065] Optionally, the display unit can be a large screen on the vehicle side of the CDC, providing a user interface and realizing human-computer interaction, etc.; the cloud can be a server that provides services for the vehicle, etc., not limited to vehicle manufacturers, vehicle suppliers, etc. (it should be understood that the transmission and processing of information between different devices requires authorization).

[0066] In a possible implementation, the GW collects CAN data from all connected CAN channels, obtains the CAN data of each channel, encapsulates it into Ethernet messages according to the BusMirroring standard protocol, and sends it to the T-BOX; the T-BOX parses the Ethernet message based on the configuration file obtained from the cloud in advance, encapsulates and compresses it based on the configuration file, and uploads it to the cloud; the cloud performs CAN data collection configuration, that is, configuration of the configuration file, and stores the uploaded data.

[0067] Among them, CAN channels may include: telematics CAN bus (T CAN), information CAN bus (I CAN), body CAN bus (B CAN), chassis CAN bus (CH CAN), powertrain CAN bus (PT CAN), and redundant CAN bus (RCAN).

[0068] In addition, T-BOX stores the parsed Ethernet messages after streaming compression. When there is a need to export CAN data files locally in batches, a USB flash drive (i.e., U Disk) can be inserted on the CDC side and a time period can be selected on the export interface provided by the display unit (such as the log export interface of the central control screen). The export file instruction is triggered, and the CAN data export module in the CDC completes the copying of the corresponding data from the T-BOX to the U disk path to complete the export of the CAN data files.

[0069] It should be understood that: Figure 1 It is only a description of the principles of each component and the components and devices, and the detailed implementation is disclosed by the following embodiments:

[0070] Figure 2 FIG. 1 is a flow chart showing a first embodiment of a data processing method provided by the present invention, wherein the method is executed by a vehicle. Figure 2 As shown, the method comprises the following steps:

[0071] Step 21, obtaining first CAN data corresponding to at least one CAN channel;

[0072] In this step, there are different CANs in the vehicle, and there is corresponding CAN data for each CAN. In order to ensure that the cloud can understand the vehicle's operating information, locate vehicle abnormalities, analyze the cause of vehicle failures and other data services, it is necessary to obtain the data of each CAN channel, that is, to obtain the first CAN data corresponding to each CAN channel.

[0073] In a possible implementation, the GW collects data of at least one CAN channel, and then sends the data to the T-BOX. The T-BOX parses and obtains CAN data corresponding to the at least one CAN channel, which is recorded as first CAN data.

[0074] Optionally, all first CAN data are stream compressed to obtain a first American Standard Information Interchange Code (ASCII, ASC) compression format file, and the first ASC compression format file is stored in a preset storage location.

[0075] In this implementation, in order to facilitate the acquisition of CAN data directly from the vehicle end, each first CAN data can be stream compressed, that is, compressed and stored in chronological order, to facilitate subsequent time period-based export and reduce occupied space.

[0076] Furthermore, in subsequent implementations, for ease of viewing, after decompressing the first ASC compressed format file, the decompressed ASC file can be obtained, which supports CANoe to open directly for user use.

[0077] In a possible implementation, after obtaining at least one first CAN data, T-BOX performs streaming compression on all the first CAN data, and then writes the compressed data stream into a file in asc.gz format, recorded as the first ASC compression format file, to ensure that the compressed package is an ASC file after decompression. The first ASC compression format file contains the time information and network segment information of each signal, and then stores it in a preset storage location in the vehicle.

[0078] In addition, in order to maintain the utilization efficiency of the preset storage location, the maximum occupied capacity of the file corresponding to each first CAN data in the first ASC compressed format file can be set to a first preset value, such as 30MB; the maximum occupied capacity of the preset storage location is set to a second preset value, such as 4GB.

[0079] Optionally, step 21 may be implemented as follows:

[0080] Step 1: The GW in the vehicle collects third CAN data corresponding to at least one CAN channel;

[0081] In this implementation, the GW collects CAN data from all connected CAN channels to obtain CAN data corresponding to each CAN channel, which is recorded as third CAN data.

[0082] Step 2: GW performs bus mirroring on all third CAN data, generates Ethernet messages, and sends them to the vehicle's T-BOX;

[0083] In this implementation, bus mirroring can encapsulate different third CAN data into Ethernet messages, that is, it can process multiple communication protocols in a unified network architecture and increase the transmission speed to the T-BOX.

[0084] In a possible implementation, the bus mirroring process may be a standard format process defined by the BusMirroring protocol, that is, all third CAN data are encapsulated according to the standard format defined by the BusMirroring protocol to generate Ethernet messages.

[0085] Afterwards, the GW sends an Ethernet message to the T-BOX in the User Datagram Protocol (UDP) mode.

[0086] Step 3: T-BOX parses the Ethernet message to obtain at least one first CAN data.

[0087] In this implementation, after acquiring the Ethernet message, the T-BOX parses the Ethernet message to obtain CAN data corresponding to different CANs, which are recorded as first CAN data.

[0088] Step 22: Process at least one first CAN data according to the configuration file obtained in advance to obtain a target file;

[0089] The configuration file includes: at least one identifier of the CAN to be collected, at least one compression method of the corresponding data of the CAN to be collected;

[0090] In this step, after acquiring at least one first CAN data, matching, compression processing and other operations are performed on at least one first CAN data according to at least one identifier of the CAN to be collected and the compression method of at least one corresponding CAN data to be collected, and then a target file is generated.

[0091] Among them, the configuration file can be obtained from the cloud in advance and used to pre-process the obtained at least one first CAN data before uploading it to the cloud to reduce the upload volume.

[0092] Optionally, after obtaining the target file, the following steps may be performed: streaming compression is performed on the target file to obtain a second ASC compression format file, and the second ASC compression format file is stored in a preset storage location.

[0093] In this implementation, similar to the above-mentioned at least one first CAN data, the target file is stream compressed to enable the vehicle side to obtain the data uploaded to the cloud.

[0094] Optionally, the configuration file can be obtained by sending it from the cloud and stored in a non-volatile storage area in the vehicle; the configuration file can also be updated based on the cloud, such as:

[0095] Step 1: Get the update information sent by the cloud, which is used to update the configuration file;

[0096] In this implementation, the cloud sends update information for configuration information in the vehicle, and the update information carries the latest configuration file or information about changes to the configuration file.

[0097] Step 2: Update the configuration file according to the updated information.

[0098] In this implementation, after the vehicle's T-BOX receives the update information, the configuration file is updated based on the update information to obtain the updated configuration information, and the updated configuration information is stored in the non-volatile storage area for subsequent configuration when the cloud obtains CAN data.

[0099] Step 23: Upload the target file to the cloud.

[0100] In this step, after T-BOX determines the target file, it uploads the target file to the cloud.

[0101] Optionally, the configuration file also records: upload conditions, which include at least one of the following sub-conditions: uploading at periodic intervals, uploading when the number of data items to be collected in any CAN reaches a threshold number of items, and uploading when the number of bytes corresponding to all CAN data to be collected reaches a byte number threshold.

[0102] That is, when the target file meets any of the sub-conditions, the target file is uploaded to the cloud.

[0103] In this implementation, uploading is performed at periodic intervals, which can be once every 10 seconds; uploading is performed when the number of data items in any CAN to be collected reaches a threshold number of items, such as for the chassis CAN bus, when the number of data items in the chassis CAN bus reaches 200, it is uploaded; uploading is performed when the corresponding number of bytes of all CAN data to be collected reaches a byte number threshold, such as when the generated target file reaches a certain length (such as 65535 bytes).

[0104] Optionally, the configuration file further records: a data upload switch, and step 23 can be implemented as follows: when the data upload switch is turned on, the target file is uploaded to the cloud.

[0105] In this implementation, when it is detected that the data upload switch in the configuration file is turned on, the target file can be uploaded to the cloud;

[0106] This implementation can also be combined with the above-mentioned upload conditions. When the data upload switch is turned on and any sub-condition is detected to be met, the target file is uploaded to the cloud.

[0107] On the contrary, when the data upload switch is in the off state, uploading the target file to the cloud is prohibited.

[0108] In this implementation, when it is detected that the data upload switch in the configuration file is in the off state, it is considered that the target file cannot be uploaded to the cloud; the upload can be performed after the status of the data upload switch in the configuration file is updated.

[0109] The data processing method provided in the embodiment of the present invention is that the vehicle obtains the first CAN data corresponding to at least one controller area network CAN channel, and processes at least one first CAN data according to a pre-acquired configuration file to obtain a target file; wherein the configuration file records: at least one CAN identifier to be collected, at least one compression method for the corresponding CAN data to be collected, and then uploads the target file to the cloud. In this embodiment, after the vehicle obtains the data corresponding to each CAN channel, it first screens the data of the CAN channel to be collected, and compresses it based on the corresponding compression method to generate a smaller file, thereby reducing the size of the network data packet when uploading to the cloud, saving data transmission traffic, and reducing data transmission costs.

[0110] Based on the above embodiments, Figure 3 FIG. 2 is a flow chart showing a second embodiment of a data processing method provided by the present invention, wherein the method is executed by a vehicle. Figure 3 As shown, step 22 may include the following steps:

[0111] Step 31: Determine at least one second CAN data matching the identifier of at least one CAN to be collected from at least one first CAN data;

[0112] In this step, the identifier of the CAN to be uploaded to the cloud, that is, the identifier of the CAN to be collected (English abbreviation: ID), is recorded in the configuration file. Therefore, after parsing at least one first CAN data, based on the identifier of at least one CAN to be collected, the unmatched first CAN data is filtered to obtain at least one second CAN data matching the identifier of at least one CAN to be collected; thereby reducing the amount of data uploaded to the cloud.

[0113] In a possible implementation, the CAN to be collected may be a CAN configured in the cloud that is required to obtain vehicle operation information, locate vehicle abnormal problems, analyze vehicle failure causes, and perform other data services.

[0114] Optionally, the configuration file further records: an encapsulation format, the encapsulation format including: a first preset occupied bit of a timestamp, a second preset occupied bit of an identifier of the CAN to be collected, and a third preset occupied bit of a length of data of the CAN to be collected;

[0115] For example, the first preset occupied bit of the timestamp may be 6 bytes; the second preset occupied bit of the identifier of the CAN to be collected may be 2 bytes; the third preset occupied bit of the data length of the CAN to be collected may be 1 byte, recording the number of bytes occupied by the CAN data to be collected.

[0116] Then, after step 31, there may also be the implementation of: encapsulating the second CAN data according to the encapsulation format to obtain the encapsulated second CAN data.

[0117] In a possible implementation, Table 1 is a schematic diagram of a CAN data encapsulation format (i.e., the schematic diagram shown in sequence number 4 in Table 2 below), as shown in Table 1:

[0118] Table 1

[0119]

[0120] The identification of the chassis CAN bus is H1, and the timestamp is Coordinated Universal Time (UTC).

[0121] In addition, the corresponding vehicle identification number (VIN) and the current uploaded data version number (reference value 0 to 65525) may also be configured for the target file.

[0122] In addition, since the data obtained by the cloud does not come from just one vehicle, relevant identifiers need to be added according to Table 2 before uploading to the cloud.

[0123] In a possible implementation, Table 2 is a schematic diagram of a CAN data encapsulation format, as shown in Table 2:

[0124] Table 2

[0125]

[0126]

[0127] Optionally, the configuration file further records: at least one collection cycle of CAN to be collected;

[0128] Then, step 31 may be implemented as follows: determining at least one second CAN data that matches the identifier of at least one CAN to be collected and is located in the collection cycle of at least one CAN to be collected from at least one first CAN data.

[0129] In this implementation, the data that needs to be uploaded to the cloud is the data collected by T-BOX according to the collection range of the Can ID in the configuration file (that is, the first CAN data that matches the identifier of at least one CAN to be collected), according to the corresponding collection cycle (that is, the first CAN data located in the collection cycle of at least one CAN to be collected), and at least one second CAN data is obtained.

[0130] Step 32: for each second CAN data, compress the second CAN data using the compression method of the corresponding CAN data to be collected corresponding to the second CAN data to obtain compressed second CAN data;

[0131] In this step, in order to reduce the volume of data uploaded to the cloud, the second CAN data may be compressed using the compression method of the CAN data to be collected corresponding to the second CAN data in the configuration file.

[0132] Optionally, the compression method may be a compression format corresponding to compression, or may be whether to compress.

[0133] For example, if the compression mode corresponding to the chassis CAN bus is execution compression, the second CAN data corresponding to the chassis CAN bus is compressed to obtain compressed second CAN data corresponding to the chassis CAN bus.

[0134] If the compression format is empty, the default compression format is performed, such as zlib compression.

[0135] Step 33: Obtain a target file according to each compressed second CAN data.

[0136] In this step, after each second CAN data is compressed, a target file that can be uploaded to the cloud is obtained.

[0137] In the data processing method provided by the embodiment of the present invention, the vehicle determines at least one second CAN data matching the identification of at least one CAN to be collected from at least one first CAN data, and then compresses the second CAN data using the compression method of the corresponding CAN data to be collected corresponding to the second CAN data to obtain compressed second CAN data, and finally obtains the target file based on each compressed second CAN data. In this embodiment, the data of the CAN channel required by the cloud is matched based on the identification of the CAN to be collected in the configuration file, and then the corresponding CAN data is compressed using the compression method recorded in the configuration file to reduce the size of the file sent to the cloud.

[0138] Based on the above embodiments, Figure 4 FIG. 4 is a flow chart showing a third embodiment of a data processing method provided by the present invention, wherein the method is executed by a vehicle. Figure 4 As shown, the method may also include the following steps:

[0139] Step 41: after detecting that an external storage device is connected to the cockpit domain controller, displaying the time period information corresponding to all first CAN data and / or the target file in the user interface;

[0140] In this step, when CAN data needs to be exported, an external storage device can be connected to the CDC. When the CDC detects that an external storage device is connected, the time period information corresponding to the first CAN data and / or the target file is displayed in the user interface.

[0141] Optionally, all the first CAN data may be a first ASC compression format file after streaming compression, and the target file may be a second ASC compression format file after streaming compression.

[0142] Accordingly, the time period information may be based on the timestamp information of the file disclosed during the streaming compression.

[0143] In a possible implementation, the user interface may be a large central control screen of the CDC; and the external storage device may be a USB flash drive.

[0144] Step 42: In response to the user's selection operation on the time period information in the user interface, obtaining a target time period corresponding to the selection operation;

[0145] In this step, the user can select the time period of the data to be exported in the user interface, that is, perform a selection operation on the time period information, and the CDC obtains the time period of the data to be exported, that is, the target time period.

[0146] In a possible implementation, the user interface displays time period information corresponding to the target file, such as from 13:00 to 16:00; the user selects the time period from 14:00 to 14:10 as the target time period.

[0147] Step 43: Determine the file to be exported corresponding to the target time period from all the first CAN data and / or the target files;

[0148] In this step, the CDC sends a CAN data file export request carrying the target time period to the T-BOX via an Ethernet Some / Ip (Scalable service-Oriented MiddlewarE over IP) message; the T-BOX determines the corresponding CAN data file based on the target time period as the file to be exported.

[0149] Optionally, the size of the file to be exported can be returned to CDC, and the size of the file to be exported can be displayed on the central control screen of CDC. If the size of the file to be exported exceeds the storage space of the external storage device, the user can narrow the time range in the user interface; that is, update the target time period, so as to determine the file to be exported again.

[0150] Step 44: In response to the user's authentication operation of the export authority, the export authority is authenticated, and after the authentication is passed, the file to be exported is transferred to the external storage device.

[0151] In this step, in order to ensure the security of vehicle data, the export authority needs to be authenticated, and the export can be performed after the authentication is passed.

[0152] One possible implementation is that CDC starts the Secure File Transfer Protocol Server (SFTP Server), generates an SFTP public-private key pair, and generates an SFTP account password. Then CDC notifies T-BOX to start the SFTP service. T-BOX logs in to SFTP as a client (English: Client), that is, the user performs authentication operations. After successful login (that is, the export permission authentication is completed), the above-determined files to be exported are exported to the external storage device.

[0153] In addition, a possible implementation is that T-BOX transfers the file to the USB disk directory of CDC through SFTP. While T-BOX transfers the file to CDC, it synchronizes the file transfer progress and remaining time information to CDC through Ethernet SomeIp; CDC displays the file transfer progress and remaining time on the central control screen. After the file transfer is completed, T-BOX sends a file transfer completion SomeIp message to CDC, and CDC displays the file transfer completion information on the central control screen, and the export is completed.

[0154] Then, CDC shuts down the SFTP service, and T-BOX shuts down the SFTP service.

[0155] That is, the embodiment of the present invention supports the export of local CAN data files (i.e., the first ASC compressed format file and / or the second ASC compressed format file) to a USB flash drive according to time periods, thereby avoiding the need to extract CAN data through the cloud each time, thereby improving the efficiency of problem location and analysis.

[0156] The data processing method provided by the embodiment of the present invention is that after the vehicle detects that an external storage device is connected to the cockpit domain controller, the vehicle displays the time period information corresponding to all the first CAN data or / and the target file in the user interface; in response to the user's selection operation on the time period information in the user interface, the target time period corresponding to the selection operation is obtained; the file to be exported corresponding to the target time period is determined in all the first CAN data or / and the target file; in response to the user's authentication operation of the export authority, the export authority is authenticated, and after the authentication is passed, the file to be exported is transferred to the external storage device. In this embodiment, the selection of the export file can be performed through the user interface, and it can be exported to the external storage device. The exported file supports the analysis tool to open it directly for analysis, which is convenient for rapid problem location and analysis.

[0157] Based on the above embodiments, the following two exemplary solutions are listed to further introduce the embodiments of the present invention:

[0158] Figure 5 FIG. 4 is a flow chart showing a fourth embodiment of a data processing method provided by the present invention, wherein the method is executed by a vehicle. Figure 5 As shown, the method may include the following steps:

[0159] Exemplary solution 1 (involving data uploading and storage processing):

[0160] Cloud configuration delivery:

[0161] S51, the cloud sends the vehicle CAN data collection configuration file to T-BOX;

[0162] S52, T-BOX parses the configuration file to obtain CAN data collection range (CanID to be collected), cycle, data upload switch (on / off), whether compression is required, trigger upload conditions and other information;

[0163] S53, T-BOX saves the configuration file to the local non-volatile storage area. When the configuration file is updated in the cloud, the latest configuration is saved locally;

[0164] Cycle phase:

[0165] S54, GW is responsible for collecting CAN data from all CAN channels and encapsulating CAN messages into Ethernet messages according to the standard format defined by the BusMirroring (i.e., A) protocol;

[0166] S55, GW sends Ethernet message to T-BOX in UDP mode;

[0167] S56, T-BOX parses the Ethernet message sent by GW;

[0168] S571, T-BOX performs data encapsulation and data compression based on the configuration file (Table 1);

[0169] S58, T-BOX encapsulates according to the cloud protocol (Table 2) and uploads to the cloud;

[0170] S572, stream compress the Ethernet message and save it as a file in asc.gz format.

[0171] Figure 6 FIG. 5 is a flow chart showing a fifth embodiment of a data processing method provided by the present invention, wherein the method is executed by a vehicle. Figure 6 As shown, the method may include the following steps:

[0172] Exemplary solution 2 (involving data export processing):

[0173] S01, insert the USB flash drive into the CDC and set the time period (time period information) of the CAN log file to be exported on the central control screen;

[0174] S02, CDC sends a CAN data file export request carrying time information to T-BOX via Ethernet SomeIp message;

[0175] S03, T-BOX screens CAN data files within a specified time period and returns the size of the screened files to CDC;

[0176] S04, the CDC central control screen displays the data file size. If the data file size exceeds the USB storage space, the user reduces the time range on the screen.

[0177] S05, CDC starts the SFTP Server service;

[0178] S06, CDC generates an SFTP public and private key pair, and generates an SFTP account password;

[0179] S07, CDC notifies T-BOX to start the SFTP service;

[0180] S08, T-BOX performs SFTP login as the client;

[0181] S09, after T-BOX successfully logs in, transfer the file to the CDC USB disk directory via SFTP;

[0182] S10, while T-BOX is transferring files to CDC, it synchronizes the file transfer progress and remaining time information to CDC via Ethernet SomeIp;

[0183] S11, CDC displays the file transfer progress and remaining time on the central control screen;

[0184] S12, after the file transfer is completed, T-BOX sends a file transfer completion SomeIp message to CDC;

[0185] S13, CDC displays the file transfer completion information on the central control screen;

[0186] S14, CDC shuts down the SFTP service;

[0187] S15, T-BOX closes the SFTP service.

[0188] like Figure 5 and Figure 6 The data processing method provided by the illustrated embodiment can achieve the following technical effects:

[0189] Technical effect 1: GW encapsulates the multi-channel CAN data under its jurisdiction into Ethernet messages according to the BusMirroring format and sends them to T-BOX. T-BOX parses the Ethernet message, collects the required CAN ID content according to the configuration file, and encapsulates and compresses the data content and reports it to the cloud, thereby reducing the size of the network data packet and saving data transmission traffic;

[0190] Technical effect 2: T-BOX compresses the parsed CAN data content into a file in a specific format in a streaming manner. The file can be exported in batches to a USB flash drive through the central control screen. The exported file supports direct opening of analysis tools for analysis, which facilitates rapid problem location and analysis.

[0191] The following are device embodiments related to the embodiments of the present invention:

[0192] Figure 7 FIG. 2 shows a schematic diagram of the structure of an embodiment of a data processing device of the present invention. Figure 7 As shown, the device comprises:

[0193] An acquisition module 71 is used to acquire first CAN data corresponding to at least one controller area network CAN channel;

[0194] The processing module 72 is used to process at least one first CAN data according to a configuration file obtained in advance to obtain a target file, wherein the configuration file records: at least one identifier of the CAN to be collected and at least one compression method of the corresponding data of the CAN to be collected;

[0195] The sending module 73 is used to upload the target file to the cloud.

[0196] In one or more embodiments, the processing module 72 is further configured to:

[0197] After detecting that an external storage device is connected to the cockpit domain controller, the time period information corresponding to all first CAN data and / or the target file is displayed in the user interface;

[0198] In response to a user's selection operation on time period information in a user interface, obtaining a target time period corresponding to the selection operation;

[0199] Determine the to-be-exported file corresponding to the target time period from among all the first CAN data and / or the target file;

[0200] In response to the user's authentication operation of the export authority, the export authority is authenticated, and after the authentication is passed, the file to be exported is transmitted to the external storage device.

[0201] In one or more embodiments, the processing module 72 is further configured to:

[0202] Performing stream compression on all first CAN data to obtain a first ASC compression format file; or / and, performing stream compression on the target file to obtain a second ASC compression format file;

[0203] The first ASC compressed format file and / or the second ASC compressed format file are stored in a preset storage location.

[0204] In one or more embodiments, the processing module 72 processes at least one first CAN data according to a pre-acquired configuration file to obtain a target file, specifically for:

[0205] Determining at least one second CAN data matching the identification of at least one CAN to be collected from at least one first CAN data;

[0206] For each second CAN data, compress the second CAN data using a compression method of the corresponding CAN data to be collected corresponding to the second CAN data to obtain compressed second CAN data;

[0207] A target file is obtained according to each compressed second CAN data.

[0208] In one or more embodiments, the configuration file further records: an upload condition, the upload condition including at least one of the following sub-conditions: uploading at periodic intervals, uploading when the number of data items to be collected on any CAN reaches a threshold number of items, and uploading when the number of bytes corresponding to the data items to be collected on all CANs reaches a threshold number of bytes;

[0209] The sending module 73 is specifically used for:

[0210] When the target file meets any of the sub-conditions, upload the target file to the cloud.

[0211] In one or more embodiments, the configuration file further records: an encapsulation format, the encapsulation format including: a first preset occupied bit of a timestamp, a second preset occupied bit of an identifier of the CAN to be collected, and a third preset occupied bit of a data length of the CAN to be collected;

[0212] Before compressing the second CAN data using the compression method for the CAN data to be collected corresponding to the second CAN data, the processing module 72 is further used to:

[0213] The second CAN data is encapsulated according to the encapsulation format to obtain encapsulated second CAN data.

[0214] In one or more embodiments, the configuration file further records: at least one collection cycle of CAN to be collected;

[0215] The processing module 72 determines at least one second CAN data matching the identification of at least one CAN to be collected from the at least one first CAN data, specifically for:

[0216] At least one second CAN data matching the identifier of at least one CAN to be collected and located in a collection cycle of at least one CAN to be collected is determined from at least one first CAN data.

[0217] In one or more embodiments, the processing module 72 is further configured to:

[0218] Get the update information sent by the cloud, which is used to update the configuration file;

[0219] Update the configuration file based on the updated information.

[0220] In one or more embodiments, the configuration file further records: a data upload switch; a processing module 72, further used to:

[0221] When the data upload switch is turned on, upload the target file to the cloud;

[0222] When the data upload switch is off, uploading the target file to the cloud is prohibited.

[0223] In one or more embodiments, the acquisition module 71 is specifically configured to:

[0224] The gateway GW in the vehicle collects third CAN data corresponding to at least one controller area network CAN channel respectively;

[0225] GW performs bus mirroring on all third CAN data, generates Ethernet messages, and sends them to the vehicle's onboard communication terminal T-BOX;

[0226] The T-BOX parses the Ethernet message to obtain at least one first CAN data.

[0227] From the above, it can be seen that the data processing device provided by the embodiment of the present invention can, after obtaining the data corresponding to each CAN channel, first filter the data of the CAN channel that needs to be collected, and compress it based on the corresponding compression method to generate a smaller file, that is, reduce the size of the network data packet, save data transmission traffic, and reduce the data transmission cost; and compress the parsed CAN data content into a specific format file in a streaming manner, which can be exported in batches to an external disk through the central control large screen. The exported file supports analysis tools to open it directly for analysis, which is convenient for rapid problem location and analysis.

[0228] Figure 8 A schematic diagram of the structure of an embodiment of the vehicle of the present invention is shown. Figure 8 As shown, the vehicle may include: a processor 802 , a communications interface 804 , a memory 806 , and a communications bus 808 .

[0229] The processor 802, the communication interface 804, and the memory 806 communicate with each other via a communication bus 808. The communication interface 804 is used to communicate with other devices such as a client or other server network elements. The processor 802 is used to execute a program 810, which can specifically execute the relevant steps in the above method embodiment.

[0230] Specifically, the program 810 may include program code including computer executable instructions.

[0231] The processor 802 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 may be processors of the same type, such as one or more CPUs. They may also be processors of different types, such as one or more CPUs and one or more ASICs.

[0232] The memory 806 is used to store the program 810. The memory 806 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.

[0233] Program 810 can be specifically called by processor 802 to enable the vehicle to operate in the above method embodiment.

[0234] From the above, it can be seen that the vehicle provided by the embodiment of the present invention can, after obtaining the data corresponding to each CAN channel, first filter the data of the CAN channel that needs to be collected, and compress it based on the corresponding compression method to generate a smaller file, that is, reduce the size of the network data packet, save data transmission traffic, and reduce the data transmission cost; and compress the parsed CAN data content into a specific format file in a streaming manner, which can be exported in batches to an external disk through the central control large screen. The exported file supports analysis tools to open it directly for analysis, which is convenient for rapid problem location and analysis.

[0235] 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 data device / vehicle, the device / vehicle executes the data processing method in any of the above method embodiments.

[0236] The executable instructions may specifically be used to enable a data processing device / vehicle to perform the operations in the above method embodiments.

[0237] From the above, it can be seen that the execution instructions in the computer-readable storage medium provided in the embodiment of the present invention can specifically filter the data of the CAN channels that need to be collected after obtaining the data corresponding to each CAN channel, and compress the data based on the corresponding compression method to generate a smaller file, that is, reduce the size of the network data packet, save data transmission traffic, and reduce the data transmission cost; and compress the parsed CAN data content into a specific format file in a streaming manner, which can be exported in batches to an external disk through the central control large screen. The exported file supports analysis tools to open it directly for analysis, which is convenient for rapid problem location and analysis.

[0238] An embodiment of the present invention provides a computer program product, including a computer program, which implements the operations of the above-mentioned data processing method when executed by a processor.

[0239] Its implementation principle and technical effects are shown in the above disclosure.

[0240] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0241] The methods disclosed in the various method embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments.

[0242] The features disclosed in the various product embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new product embodiments.

[0243] The features disclosed in the various method or device embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0244] It should be noted that the computer-readable storage medium may be a ROM, a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM). It may also be various vehicles including one or any combination of the above memories.

[0245] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0246] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0247] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus necessary general hardware nodes, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, vehicle terminal or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0248] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices, apparatuses, and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as a combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0249] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0250] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0251] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A data processing method, characterized in that: Applied to a vehicle, the method comprises: Acquire first CAN data corresponding to at least one controller area network CAN channel respectively; According to a configuration file obtained in advance, the at least one first CAN data is processed to obtain a target file, wherein the configuration file records: an identifier of at least one CAN to be collected and a compression method of the at least one CAN corresponding data to be collected; The target file is uploaded to the cloud.

2. The method according to claim 1, characterized in that The method further comprises: After detecting that an external storage device is connected to the cockpit domain controller, all first CAN data and / or time period information corresponding to the target file are displayed in the user interface; In response to a user's selection operation on the time period information in the user interface, obtaining a target time period corresponding to the selection operation; Determine the file to be exported corresponding to the target time period from all the first CAN data and / or the target file; In response to the authentication operation of the user's export authority, the export authority is authenticated, and after the authentication is passed, the to-be-exported file is transferred to the external storage device.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: Performing stream compression on all first CAN data to obtain a first ASC compression format file; or / and, performing stream compression on the target file to obtain a second ASC compression format file; The first ASC compressed format file and / or the second ASC compressed format file are stored in a preset storage location.

4. The method according to claim 1, characterized in that: The step of processing the at least one first CAN data according to the pre-acquired configuration file to obtain a target file includes: Determining at least one second CAN data matching the identifier of the at least one CAN to be collected from the at least one first CAN data; For each second CAN data, compress the second CAN data using a compression method of the corresponding CAN data to be collected corresponding to the second CAN data to obtain compressed second CAN data; The target file is obtained according to each compressed second CAN data.

5. The method according to claim 1 or 2, characterized in that: The configuration file also records: upload conditions, which include at least one of the following sub-conditions: uploading at periodic intervals, uploading when the number of data to be collected on any CAN reaches a threshold number of data, and uploading when the number of bytes corresponding to all CAN data to be collected reaches a threshold number of bytes; The uploading of the target file to the cloud comprises: When the target file meets any of the sub-conditions, the target file is uploaded to the cloud.

6. The method according to claim 4, characterized in that The configuration file also records: an encapsulation format, the encapsulation format including: a first preset occupied bit of a timestamp, a second preset occupied bit of an identifier of the CAN to be collected, and a third preset occupied bit of a length of data of the CAN to be collected; Before compressing the second CAN data using the compression method of the CAN corresponding data to be collected corresponding to the second CAN data, the method further includes: The second CAN data is encapsulated according to the encapsulation format to obtain encapsulated second CAN data.

7. The method according to claim 4, characterized in that The configuration file also records: the collection period of the at least one CAN to be collected; The step of determining at least one second CAN data matching the identifier of the at least one CAN to be collected from the at least one first CAN data comprises: At least one second CAN data matching the identifier of the at least one CAN to be collected and located in the collection period of the at least one CAN to be collected is determined from the at least one first CAN data.

8. A data processing device, characterized in that: Applied to a vehicle, the device comprises: An acquisition module, used for acquiring first CAN data respectively corresponding to at least one controller area network CAN channel; A processing module, used to process the at least one first CAN data according to a configuration file obtained in advance to obtain a target file, wherein the configuration file records: an identifier of at least one CAN to be collected and a compression method of the at least one CAN corresponding data to be collected; The sending module is used to upload the target file to the cloud.

9. A vehicle, 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 data processing method according to any one of claims 1-7.

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