Vehicle data processing method and vehicle

By generating standardized headers and combining vehicle data, the problem of difficulty in processing different types of vehicle data is solved, unifying data forms and improving processing efficiency.

CN118317003BActive Publication Date: 2024-09-27GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410746621.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-09-27
Estimated Expiration
2044-06-11

AI Technical Summary

Technical Problem

Different types of vehicle data are difficult to process due to their different data formats, and it is difficult to effectively process them with existing technology.

Method used

By obtaining the initial vehicle data of the target vehicle and its data description, a standardized header is generated, the data content is combined with the header, and the data description is used to process different types of vehicle data into a unified form of target vehicle data.

Benefits of technology

It reduces the difficulty of data processing of different types of vehicles, improves processing efficiency, and realizes the unification of data forms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118317003B
    Figure CN118317003B
Patent Text Reader

Abstract

The present application discloses a vehicle data processing method and a vehicle, and belongs to the field of vehicle technology. The vehicle-mounted terminal obtains the initial vehicle data of the target vehicle and the data description of the initial vehicle data, and the data description includes the data identification, data source and data operation attributes of the initial vehicle data. Based on the data description of the initial vehicle data, a packet header corresponding to the initial vehicle data is generated to achieve standardization of the data description. The packet header corresponding to the initial vehicle data and the initial vehicle data are combined to obtain the target vehicle data corresponding to the initial vehicle data. Through the above processing process, different types of vehicle data can be processed into a combination of a packet header and vehicle data using the data description, so as to achieve the unified form of different types of vehicle data, reduce the difficulty of processing different types of vehicle data, and improve the efficiency of processing vehicle data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and more specifically, to a vehicle data processing method and a vehicle in the field of vehicle technology. Background Art

[0002] As vehicle technology develops, the number of vehicle components and functions increases, and accordingly, the vehicle data generated by the vehicle also increases.

[0003] In the related art, since different types of vehicle data have different data formats, for example, vehicle business data and CAN protocol data have different data formats, it is difficult to process different types of vehicle data.

[0004] Therefore, how to process different types of vehicle data is a hot topic of research. Summary of the invention

[0005] The embodiment of the present application provides a vehicle data processing method and a vehicle, which can reduce the difficulty of processing different types of vehicle data. The technical solution is as follows:

[0006] In one aspect, a method for processing vehicle data is provided, the method comprising:

[0007] Acquire initial vehicle data of a target vehicle and a data description of the initial vehicle data, wherein the data description includes a data identifier, a data source, and a data operation attribute of the initial vehicle data, wherein the data operation attribute is used to indicate an operation to be performed;

[0008] Based on the data description of the initial vehicle data, generating a packet header corresponding to the initial vehicle data, the packet header including a plurality of fields, one field corresponding to a part of the data description;

[0009] The packet header corresponding to the initial vehicle data and the data content in the initial vehicle data are combined to obtain the target vehicle data corresponding to the initial vehicle data.

[0010] In a possible implementation manner, the generating a packet header corresponding to the initial vehicle data based on the data description of the initial vehicle data includes:

[0011] Performing binary conversion on the number of characters of the data identifier in the data description to obtain a first field;

[0012] Determine the data identifier as a second field;

[0013] Determining a third field based on the data source in the data description;

[0014] determining a fourth field based on the operation to be performed and a plurality of candidate operations indicated by the data operation attribute;

[0015] The first field, the second field, the third field and the fourth field are combined to obtain a packet header corresponding to the initial vehicle data.

[0016] In a possible implementation manner, the multiple candidate operations respectively correspond to a character in the fourth field, and determining the fourth field based on the operation to be performed indicated by the data operation attribute and the multiple candidate operations includes:

[0017] Comparing the operation to be performed with the plurality of candidate operations;

[0018] For any candidate operation among the multiple candidate operations, when the operation to be executed includes the candidate operation, determining the character corresponding to the candidate operation as the first character; when the operation to be executed does not include the candidate operation, determining the character corresponding to the candidate operation as the second character;

[0019] The characters corresponding to the candidate operations are combined to obtain the fourth field.

[0020] In a possible implementation manner, the data description further includes a data-related type, where the data-related type is used to indicate an operation type of an operation associated with the initial vehicle data, and the method further includes:

[0021] Based on the data-related type, determining a fifth field;

[0022] The first field, the second field, the third field, the fourth field and the fifth field are combined to obtain a packet header corresponding to the initial vehicle data.

[0023] In a possible implementation manner, the method for acquiring the initial vehicle data includes:

[0024] Acquire vehicle protocol data of the target vehicle, determine the vehicle protocol data as the initial vehicle data, the vehicle protocol data is SOME / IP protocol data or CAN protocol data, and the vehicle protocol data includes vehicle component data and vehicle control data;

[0025] Alternatively, obtaining operation data of a vehicle system of the target vehicle, determining the operation data as the initial vehicle data, the operation data being used to reflect the operation status of the vehicle system;

[0026] Alternatively, the business data of the target vehicle is acquired, and the business data is determined as the initial vehicle data.

[0027] In a possible implementation manner, after combining the packet header corresponding to the initial vehicle data with the initial vehicle data to obtain the target vehicle data corresponding to the initial vehicle data, the method further includes:

[0028] In a case where the operation to be performed indicated by the packet header of the target vehicle data includes at least one of a data preprocessing operation and a data storage operation, the data content of the target vehicle data is preprocessed to obtain preprocessed target vehicle data to eliminate errors in the data content, and / or the target vehicle data is stored in a data cache pool.

[0029] In a possible implementation manner, after preprocessing the data content of the target vehicle data to obtain the preprocessed target vehicle data, the method further includes:

[0030] When the operation to be performed indicated by the packet header of the target vehicle data also includes a data processing operation, a first data processing rule corresponding to the preprocessed target vehicle data is determined from multiple data processing rules through a local data processing engine; data processing is performed on the preprocessed target vehicle data based on the first data processing rule to obtain a data processing result, and the data processing rules in the local data processing engine are obtained from the cloud.

[0031] In a possible implementation manner, performing data processing on the pre-processed target vehicle data based on the first data processing rule to obtain a data processing result includes:

[0032] In the case where there are multiple first data processing rules, arbitrating the multiple first data processing rules to obtain a second data processing rule;

[0033] The second data processing rule is executed to process the preprocessed target vehicle data to obtain a data processing result.

[0034] In a possible implementation, when there are multiple first data processing rules, arbitrating the multiple first data processing rules to obtain the second data processing rule includes:

[0035] In the case where there are multiple first data processing rules, a preset arbitration rule is used to merge or delete the multiple first data processing rules to obtain the second data processing rule, and the preset arbitration rule is obtained from the cloud.

[0036] In one aspect, a vehicle data processing device is provided, the device comprising:

[0037] An acquisition module, used for acquiring initial vehicle data of a target vehicle and a data description of the initial vehicle data, wherein the data description includes a data identifier, a data source, and a data operation attribute of the initial vehicle data, wherein the data operation attribute is used for indicating an operation to be performed;

[0038] A generating module, configured to generate a packet header corresponding to the initial vehicle data based on the data description of the initial vehicle data, wherein the packet header includes a plurality of fields, and one field corresponds to a part in the data description;

[0039] The combining module is used to combine the packet header corresponding to the initial vehicle data with the data content in the initial vehicle data to obtain the target vehicle data corresponding to the initial vehicle data.

[0040] In a possible implementation, the generation module is used to perform binary conversion on the number of characters of the data identifier in the data description to obtain a first field; determine the data identifier as the second field; determine the third field based on the data source in the data description; determine the fourth field based on the operation to be performed and multiple candidate operations indicated by the data operation attribute; and combine the first field, the second field, the third field and the fourth field to obtain a packet header corresponding to the initial vehicle data.

[0041] In a possible implementation, the multiple candidate operations respectively correspond to a character in the fourth field, and the generation module is used to compare the operation to be performed with the multiple candidate operations; for any candidate operation among the multiple candidate operations, when the operation to be performed includes the candidate operation, the character corresponding to the candidate operation is determined as the first character; when the operation to be performed does not include the candidate operation, the character corresponding to the candidate operation is determined as the second character; the characters corresponding to each of the candidate operations are combined to obtain the fourth field.

[0042] In a possible implementation, the data description also includes a data-related type, which is used to indicate an operation type of an operation associated with the initial vehicle data. The generation module is also used to determine the fifth field based on the data-related type; and combine the first field, the second field, the third field, the fourth field and the fifth field to obtain a packet header corresponding to the initial vehicle data.

[0043] In one possible implementation, the acquisition module is used to acquire vehicle protocol data of the target vehicle, and determine the vehicle protocol data as the initial vehicle data, wherein the vehicle protocol data is SOME / IP protocol data or CAN protocol data, and the vehicle protocol data includes vehicle component data and vehicle control data; or, to acquire operating data of the vehicle system of the target vehicle, and determine the operating data as the initial vehicle data, wherein the operating data is used to reflect the operating status of the vehicle system; or, to acquire business data of the target vehicle, and determine the business data as the initial vehicle data.

[0044] In a possible implementation, the device further includes:

[0045] A processing module is used to preprocess the data content of the target vehicle data to obtain preprocessed target vehicle data, so as to eliminate errors in the data content, and / or store the target vehicle data in a data cache pool, when the operation to be performed indicated by the packet header of the target vehicle data includes at least one of a data preprocessing operation and a data storage operation.

[0046] In a possible implementation, the processing module is also used to determine, through a local data processing engine, a first data processing rule corresponding to the preprocessed target vehicle data from multiple data processing rules, when the operation to be performed indicated by the packet header of the target vehicle data also includes a data processing operation; perform data processing on the preprocessed target vehicle data based on the first data processing rule to obtain a data processing result, and the data processing rules in the local data processing engine are obtained from the cloud.

[0047] In a possible implementation, the processing module is also used to arbitrate multiple first data processing rules to obtain second data processing rules when there are multiple first data processing rules; and execute the second data processing rules to perform data processing on the preprocessed target vehicle data to obtain a data processing result.

[0048] In a possible implementation, the processing module is used to merge or delete multiple first data processing rules using a preset arbitration rule to obtain the second data processing rule when there are multiple first data processing rules, and the preset arbitration rule is obtained from the cloud.

[0049] On the one hand, a vehicle is provided, comprising one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the program code is loaded and executed by the one or more processors to implement the operations performed by the vehicle data processing method.

[0050] On the one hand, a computer-readable storage medium is provided, in which at least one program code is stored, and the program code is loaded and executed by a processor to implement the operations performed by the vehicle data processing method.

[0051] Through the technical solution provided in the embodiment of the present application, the vehicle-mounted terminal obtains the initial vehicle data of the target vehicle and the data description of the initial vehicle data, and the data description includes the data identification, data source and data operation attributes of the initial vehicle data. Based on the data description of the initial vehicle data, a packet header corresponding to the initial vehicle data is generated to achieve standardization of the data description. The packet header corresponding to the initial vehicle data and the initial vehicle data are combined to obtain the target vehicle data corresponding to the initial vehicle data. Through the above processing process, different types of vehicle data can be processed into a combination of a packet header and vehicle data using the data description, so as to achieve the unified form of different types of vehicle data, reduce the difficulty of processing different types of vehicle data, and improve the efficiency of processing vehicle data. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 is a schematic diagram of an implementation environment of a vehicle data processing method provided in an embodiment of the present application;

[0053] Figure 2 is a flow chart of a vehicle data processing method provided by an embodiment of the present application;

[0054] Figure 3 is a flowchart of another method for processing vehicle data provided by an embodiment of the present application;

[0055] Figure 4 is a flowchart of another method for processing vehicle data provided by an embodiment of the present application;

[0056] Figure 5 is a structural schematic diagram of a vehicle data processing device provided in an embodiment of the present application;

[0057] Figure 6 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] The following will be combined with the accompanying drawings to clearly and thoroughly describe the technical solutions in this application. In the description of the embodiments of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more than two.

[0059] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features reflected. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0060] In order to illustrate the technical solution provided by the embodiments of the present application, the terms involved in the embodiments of the present application are first introduced.

[0061] End-cloud collaboration: End-cloud collaboration is a new computing model that uses the powerful computing power of cloud computing and the real-time responsiveness of terminal devices to achieve efficient collaboration on data processing between the two ends through reasonable resource allocation and task scheduling. In this model, the cloud server is responsible for large-scale data storage and complex computing tasks, while the terminal device is responsible for real-time perception, data collection, and low-latency response processing.

[0062] CAN (Controller Area Network Protocol) is an ISO internationally standardized serial communication protocol that is widely used in automotive electronics and industrial automation. The CAN protocol occupies an important position in industrial control systems due to its efficient data transmission capability, real-time performance, anti-interference performance, and support for distributed control.

[0063] SOME / IP (Scalable service-oriented middleware over IP) protocol: is a communication protocol for automotive electronics, designed to support service-oriented communication mode. It is based on IP network and provides an efficient and flexible way to handle communication within the vehicle and between vehicles.

[0064] Message: It is the basic unit for data transmission in computer networks. It is used to transmit information between different systems or network entities. During the transmission process, the message may be encapsulated into different data units, such as packets, packages, frames, etc., to meet the transmission requirements of different network layers. The main functions of the message include carrying data, identifying the source and destination of data, providing necessary information to ensure that data can be accurately transmitted in the network, and providing integrity verification means after the data transmission is completed.

[0065] Service-Oriented Architecture (SOA): is a software design method that provides services to another application component through an application component. The basic principle of SOA is independence from suppliers, products and technologies. Each service is an independent function module and can be called remotely. In the embodiment of the present application, the online data processing engine in the cloud provides data processing rules to the local data processing engine of the vehicle terminal, which is a SOA design method.

[0066] The implementation environment of the embodiment of the present application is introduced below. Figure 1 The implementation environment of the vehicle data processing method provided in the embodiment of the present application includes a vehicle terminal 101 and a cloud 102 .

[0067] The vehicle terminal 101 is a terminal installed on the vehicle, and is used to collect and process the initial vehicle data of the vehicle. The vehicle terminal 101 is connected to the cloud 102 via a wireless network, and the vehicle terminal 101 can exchange data with the cloud 102.

[0068] The cloud 102 is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, distribution networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The cloud 102 provides background services for the vehicle terminal. In the embodiment of the present application, the cloud 102 and the vehicle terminal 101 form a vehicle data processing system. In some embodiments, the cloud 102 is also called a TSP (Telematics Service Provider, remote service provider) platform.

[0069] After introducing the implementation environment of the embodiment of the present application, the application scenario of the technical solution provided by the embodiment of the present application is introduced below. The technical solution provided by the embodiment of the present application can be applied to various vehicles with vehicle-mounted terminals. For example, the technical solution provided by the embodiment of the present application can be applied to electric vehicles, hybrid vehicles, and fuel vehicles, and the embodiment of the present application does not limit this.

[0070] When the technical solution provided in the embodiment of the present application is applied to an electric vehicle, the on-board terminal obtains the initial vehicle data of the electric vehicle and the data description of the initial vehicle data, and the data description includes the data identifier, data source and data operation attributes of the initial vehicle data. Based on the data description of the initial vehicle data, a packet header corresponding to the initial vehicle data is generated to achieve standardization of the data description. The packet header corresponding to the initial vehicle data and the initial vehicle data are combined to obtain the target vehicle data corresponding to the initial vehicle data. Through the above processing, different types of vehicle data can be processed into a combination of a packet header and vehicle data using the data description, thereby achieving a unified form for different types of vehicle data, reducing the difficulty of processing different types of vehicle data, and improving the efficiency of processing vehicle data.

[0071] It should be noted that the above is explained using the example of the application of the technical solution provided in the embodiment of the present application to an electric vehicle. When the technical solution provided in the embodiment of the present application is applied to other types of vehicles, the implementation process belongs to the same inventive concept as described above and will not be repeated here.

[0072] In addition, the technical solution provided in the embodiments of the present application can be applied to other types of vehicles in addition to the above-mentioned types of vehicles, and the embodiments of the present application are not limited to this.

[0073] After introducing the implementation environment and application scenarios of the embodiments of the present application, the technical solutions provided by the embodiments of the present application are introduced below. Figure 2 Taking the execution subject as a vehicle-mounted terminal as an example, the method includes the following steps.

[0074] 201. The vehicle-mounted terminal obtains initial vehicle data of a target vehicle and a data description of the initial vehicle data, wherein the data description includes a data identifier, a data source, and a data operation attribute of the initial vehicle data, wherein the data operation attribute is used to indicate an operation to be performed.

[0075] Among them, the initial vehicle data is the vehicle data to be processed, and the initial vehicle data can be various types of vehicle data, for example, the initial vehicle data is vehicle protocol data, vehicle system operation data or business data, etc. The vehicle protocol data includes vehicle component data and vehicle control data. The vehicle component data is used to describe the data related to the vehicle components in the target vehicle, for example, the status data of the air conditioner and the window in the target vehicle belongs to the vehicle component data. The vehicle control data is the data used to control the vehicle components of the target vehicle, for example, the data for adjusting the air conditioner in the target vehicle and the control data for closing the window belong to the vehicle control data; the operation data of the vehicle system is used to reflect the operation status of the vehicle system, for example, the resource occupancy rate of the vehicle system belongs to the operation data; the business data is the data generated by the application running on the vehicle system, for example, navigation data, entertainment data and voice data are all business data. The data description is the description information related to the data content. The data source is related to the type of the above data content, and is used to indicate which SDK (Software Development Kit) is connected to process the data content; the data operation attribute is used to indicate which operations need to be performed on the data content, for example, the operations include acquisition operations, upload operations, data storage operations, data preprocessing operations, and data processing operations. In some embodiments, the initial vehicle data includes data content and non-data content. The data content is the above-mentioned vehicle component data, vehicle control data, vehicle system operation data or business data, and the non-data content is content related to the data type.

[0076] 202. The vehicle-mounted terminal generates a packet header corresponding to the initial vehicle data based on the data description of the initial vehicle data, where the packet header includes multiple fields, and one field corresponds to a part in the data description.

[0077] Among them, the packet header can be regarded as a structured data description, and the packet header is usually located before the data content and is used to describe the data content. A part in the data description is also one of the above-mentioned data identification, data source, and data operation attributes. In an embodiment of the present application, multiple fields of the packet header are arranged in a preset order. For example, the packet header includes four fields, the first two fields correspond to the data identification, the third field corresponds to the data source, and the fourth field corresponds to the data operation attribute, so as to ensure that the arrangement order of the fields in different packet headers is consistent, which is helpful for subsequent unified data processing. Of course, the correspondence between the fields in the above-mentioned packet header and the various parts in the data description is only an example. In other possible implementations, it can also be other corresponding relationships, and the embodiment of the present application does not limit this.

[0078] 203. The vehicle-mounted terminal combines the packet header corresponding to the initial vehicle data with the data content in the initial vehicle data to obtain the target vehicle data corresponding to the initial vehicle data.

[0079] The combination of the packet header and the data content realizes the reorganization of the initial vehicle data, so that different types of vehicle data can be reorganized into target vehicle data in a unified form.

[0080] Through the technical solution provided in the embodiment of the present application, the vehicle-mounted terminal obtains the initial vehicle data of the target vehicle and the data description of the initial vehicle data, and the data description includes the data identification, data source and data operation attributes of the initial vehicle data. Based on the data description of the initial vehicle data, a packet header corresponding to the initial vehicle data is generated to achieve standardization of the data description. The packet header corresponding to the initial vehicle data and the initial vehicle data are combined to obtain the target vehicle data corresponding to the initial vehicle data. Through the above processing process, different types of vehicle data can be processed into a combination of a packet header and vehicle data using the data description, so as to achieve the unified form of different types of vehicle data, reduce the difficulty of processing different types of vehicle data, and improve the efficiency of processing vehicle data.

[0081] It should be noted that the above steps 201-203 are a simple description of the method for processing vehicle data provided in the embodiment of the present application. The following will provide a more detailed description of the method for processing vehicle data provided in the embodiment of the present application in combination with some examples. Figure 3 Taking the execution subject as a vehicle-mounted terminal as an example, the method includes the following steps.

[0082] 301. The vehicle-mounted terminal obtains initial vehicle data of a target vehicle and a data description of the initial vehicle data, where the data description includes a data identifier, a data source, and a data operation attribute of the initial vehicle data, where the data operation attribute is used to indicate an operation to be performed.

[0083] Among them, the initial vehicle data is the vehicle data to be processed, and the initial vehicle data can be various types of vehicle data, for example, the initial vehicle data is vehicle protocol data, operation data of the vehicle system or business data, etc. In some embodiments, the vehicle protocol data is SOME / IP protocol data or CAN protocol data, and SOME / IP protocol data is regarded as SOA-related data. SOME / IP protocol data is obtained after protocol transformation of CAN protocol data, so that CAN protocol data can adapt to SOA architecture. Vehicle protocol data includes vehicle component data and vehicle control data. Vehicle component data is used to describe data related to vehicle components in the target vehicle, for example, the status data of the air conditioner and the windows in the target vehicle belong to vehicle component data. Vehicle control data is data used to control the vehicle components of the target vehicle, for example, the data for adjusting the air conditioner in the target vehicle and the control data for closing the windows belong to vehicle control data. The corresponding CAN protocol data is the original vehicle component data or vehicle control data in the target vehicle. The operation data of the vehicle system is used to reflect the operation status of the vehicle system. Usually, the data related to the performance and stability of the vehicle system during operation is also called performance stability related data. These data are used to identify the operation status of the vehicle system and provide data support for subsequent vehicle data processing. For example, the resource occupancy rate of the vehicle system belongs to the operation data. Business data is the data generated by the application running on the vehicle system, such as navigation data, entertainment data and voice data are all business data. Data description is the description information related to the data content. The data source is related to the type of the above data content, which is used to indicate which SDK is connected to process the data content. The data operation attribute is used to indicate which operations need to be performed on the data content, such as operations including acquisition operations, upload operations, data storage operations, data preprocessing operations and data processing operations. In some embodiments, the initial vehicle data includes data content and non-data content. The data content is the above-mentioned vehicle component data, vehicle control data, operation data or business data of the vehicle system, and the non-data content is content related to the data type, such as auxiliary data or template data associated with the data type.

[0084] It should be noted that, in the process of the vehicle-mounted terminal actually acquiring the initial vehicle data, multiple initial vehicle data of different types may be acquired at the same time, and the multiple initial vehicle data will be subsequently processed. The method of acquiring multiple initial vehicle data and the method of acquiring one initial vehicle data belong to the same inventive concept. For the sake of convenience, the embodiment of the present application takes the vehicle-mounted terminal acquiring one initial vehicle data and subsequently processing the one initial vehicle data as an example for explanation.

[0085] In order to illustrate the above step 301, the method in which the vehicle-mounted terminal obtains the initial vehicle data is first described below.

[0086] In a possible implementation, the vehicle terminal obtains the vehicle protocol data of the target vehicle, and determines the vehicle protocol data as the initial vehicle data, the vehicle protocol data is SOME / IP protocol data or CAN protocol data, and the vehicle protocol data includes vehicle component data and vehicle control data. Alternatively, the vehicle terminal obtains the operating data of the vehicle system of the target vehicle, and determines the operating data as the initial vehicle data, and the operating data is used to reflect the operating status of the vehicle system. Alternatively, the vehicle terminal obtains the business data of the target vehicle, and determines the business data as the initial vehicle data.

[0087] Among them, the vehicle terminal has multiple data acquisition interfaces, one data acquisition interface is used to acquire a type of vehicle data. Taking the vehicle data as an example, the vehicle data has vehicle protocol data, vehicle system operation data and business data, the vehicle protocol data includes SOME / IP protocol data and CAN protocol data, and the business data includes navigation data, entertainment data and voice data. The vehicle terminal has a SOME / IP protocol data acquisition interface, a CAN protocol data acquisition interface, an operation data acquisition interface, a navigation data acquisition interface, an entertainment data acquisition interface and a voice data acquisition interface. In particular, for SOME / IP protocol data, the vehicle terminal directly connects to the access of SOME / IP protocol data to reduce the flow of SOME / IP protocol data during transmission. At the same time, a single SOME / IP protocol data interface is used to acquire SOME / IP protocol data to prevent the redundancy of SOME / IP protocol data caused by multiple interfaces. For CAN protocol data, the method of acquiring CAN protocol data through the Android system's Carservice in the related technology is not adopted, but the signal collection method is used to acquire CAN protocol data through the CAN protocol data interface to prevent the emergence of mesh dependency.

[0088] For example, see Figure 4, the vehicle-mounted terminal obtains SOME / IP protocol data through the SOME / IP protocol data acquisition agent service using the SOME / IP protocol data acquisition interface, and determines the SOME / IP protocol data as the initial vehicle data. Alternatively, the vehicle-mounted terminal obtains CAN protocol data through the CAN protocol data acquisition agent service using the CAN protocol data acquisition interface, and determines the CAN protocol data as the initial vehicle data. Alternatively, the vehicle-mounted terminal obtains operation data through the operation data acquisition agent service using the operation data acquisition interface, and determines the operation data as the initial vehicle data. Alternatively, the vehicle-mounted terminal obtains navigation data through the navigation data acquisition agent service using the navigation data acquisition interface, and determines the navigation data as the initial vehicle data. Alternatively, the vehicle-mounted terminal obtains entertainment data through the entertainment data acquisition agent service using the entertainment data acquisition interface, and determines the entertainment data as the initial vehicle data. Alternatively, the vehicle-mounted terminal obtains voice data through the voice data acquisition agent service using the voice data acquisition interface, and determines the voice data as the initial vehicle data.

[0089] Among them, the corresponding vehicle data is obtained through the proxy services corresponding to various types of vehicle data, so as to realize the classified collection of vehicle data, which is not easy to be confused and has high efficiency. In some embodiments, the type of vehicle data obtained by the vehicle terminal is configured by the data rule management service in the cloud, that is, the cloud sends the type of vehicle data to be obtained to the vehicle terminal through the data rule management service, and the vehicle terminal configures the corresponding proxy service and activates the corresponding data acquisition interface based on the type of vehicle data. The type of vehicle data to be obtained is also the possible type of the initial vehicle data.

[0090] After introducing the method in which the vehicle-mounted terminal obtains the initial vehicle data, the method in which the vehicle-mounted terminal obtains the data description of the initial vehicle data is described below.

[0091] In a possible implementation, the vehicle terminal obtains the data identifier of the initial vehicle data. The vehicle terminal determines the data source of the vehicle data based on the proxy service or data acquisition interface used when obtaining the initial vehicle data. The vehicle terminal obtains the data operation attribute of the initial vehicle data based on the data identifier of the initial vehicle data.

[0092] Among them, the initial vehicle data from different data sources usually have different types, so the data source of the initial vehicle data can also distinguish different types of initial vehicle data. The data operation attributes of the initial vehicle data are assigned to the initial vehicle data by the technician according to the needs. For example, the technician needs to upload the data content of a certain type or a certain initial vehicle data obtained by the terminal to the server for the server to analyze and process the initial vehicle data, then the operation that needs to be performed on the data content will be configured as a collection operation and an upload operation. After the configuration is completed, the vehicle terminal can find the collection operation and upload operation to be executed according to the data identifier of the initial vehicle data, thereby obtaining the data operation attributes of the initial vehicle data. Alternatively, the data operation attributes of the initial vehicle data are automatically triggered by the operation performed by the user. For example, if the user turns on the voice recognition function, the vehicle terminal will configure the collection operation, data preprocessing operation and data processing operation for the collected voice data to realize voice recognition of the voice data.

[0093] For example, the vehicle-mounted terminal obtains the data identifier of the initial vehicle data. When the proxy service used to obtain the initial vehicle data is the SOME / IP protocol data acquisition proxy service, or the data acquisition interface is the SOME / IP protocol data acquisition interface, the vehicle-mounted terminal determines the data source of the initial vehicle data as SOME / IP; when the proxy service used to obtain the initial vehicle data is the CAN protocol data acquisition proxy service, or the data acquisition interface is the CAN protocol data acquisition interface, the vehicle-mounted terminal determines the data source of the initial vehicle data as CAN; when the proxy service used to obtain the initial vehicle data is the operation data acquisition proxy service, or the data acquisition interface is the operation data acquisition interface, the vehicle-mounted terminal determines the data source of the initial vehicle data as performance stability monitoring; when the proxy service used to obtain the initial vehicle data is the navigation data acquisition proxy service , or when the data acquisition interface is a navigation data acquisition interface, the vehicle terminal determines the data source of the initial vehicle data as navigation-related services; when the proxy service used to acquire the initial vehicle data is an entertainment data acquisition proxy service, or when the data acquisition interface is an entertainment data acquisition interface, the vehicle terminal determines the data source of the initial vehicle data as entertainment-related services; when the proxy service used to acquire the initial vehicle data is a voice data acquisition proxy service, or when the data acquisition interface is a voice data acquisition interface, the vehicle terminal determines the data source of the initial vehicle data as voice-related services; when the proxy service used to acquire the initial vehicle data is a cloud-side data acquisition proxy service, or when the data acquisition interface is a cloud-side data acquisition interface, the vehicle terminal determines the data source of the initial vehicle data as cloud-side related services. The vehicle terminal performs a query based on the data identifier of the initial vehicle data to obtain the data operation attributes of the initial vehicle data.

[0094] In some embodiments, see Figure 4 , the initial vehicle data and the data description of the initial vehicle data are acquired by the vehicle terminal through the data acquisition unit.

[0095] 302. The vehicle-mounted terminal generates a packet header corresponding to the initial vehicle data based on the data description of the initial vehicle data, where the packet header includes multiple fields, and one field corresponds to a part in the data description.

[0096] Among them, the packet header can be regarded as a structured data description, and the packet header is usually located before the data content and is used to describe the data content. A part in the data description is also one of the above-mentioned data identification, data source, and data operation attributes. In an embodiment of the present application, multiple fields of the packet header are arranged in a preset order. For example, the packet header includes four fields, the first two fields correspond to the data identification, the third field corresponds to the data source, and the fourth field corresponds to the data operation attribute, so as to ensure that the arrangement order of the fields in different packet headers is consistent, which is helpful for subsequent unified data processing. Of course, the correspondence between the fields in the above-mentioned packet header and the various parts in the data description is only an example. In other possible implementations, it can also be other corresponding relationships, and the embodiment of the present application does not limit this.

[0097] In a possible implementation, the vehicle terminal performs binary conversion on the character number conversion of the data identifier in the data description to obtain the first field. The vehicle terminal determines the data identifier as the second field. The vehicle terminal determines the third field based on the data source in the data description. The vehicle terminal determines the fourth field based on the operation to be performed and multiple candidate operations indicated by the data operation attribute. The vehicle terminal combines the first field, the second field, the third field and the fourth field to obtain the packet header corresponding to the initial vehicle data.

[0098] Among them, binary conversion of the number of characters refers to converting the decimal number of characters into the binary number of characters to meet the requirements of the vehicle terminal for the data format. The data identifier is a binary field, and the data identifier can be directly used as the second field. Since the length of the data identifier of different initial vehicle data may be different, the length of the second field may also be different, and the length of the obtained header is not fixed. In other words, the header in the embodiment of the present application is a header of variable length. The third field and the fourth field are both binary fields. The third field is a binary representation of the data source, and the fourth field is a binary representation of the operation to be performed. Multiple candidate operations are executable operations. In some embodiments, multiple candidate operations include acquisition operations, upload operations, data storage operations, data preprocessing operations, and data processing operations.

[0099] Under this implementation, the data description is converted into a first field, a second field, a third field, and a fourth field respectively, so that the text in the data description is converted into a binary field, thereby compressing the data description and ensuring that the packet header carries complete information of the data description while reducing the amount of data.

[0100] In order to explain the above implementation more clearly, the above implementation will be explained in several parts below.

[0101] In the first part, the vehicle-mounted terminal performs binary conversion on the number of characters of the data identifier in the data description to obtain the first field.

[0102] In a possible implementation manner, the vehicle-mounted terminal inputs the number of characters of the data identifier in the data description into a binary conversion unit, and the binary conversion unit performs binary conversion on the number of characters to obtain the first field.

[0103] The binary conversion unit is configured with a decimal-to-binary conversion rule, and the binary conversion can be achieved by using the binary conversion unit.

[0104] In some embodiments, the number of characters in the first field is a first preset number, that is, the length of the first field is fixed. The first preset number is set by technical personnel according to actual conditions, and the embodiments of the present application do not limit this.

[0105] For example, when the first preset number is 5, if the first field is 00001, it means that the length of the data identifier is 1, and the 1 bit after the first field in the packet header is the second field; if the first field is 11111, it means that the length of the data identifier is 31, and the 31 bits after the first field in the packet header are the second field. The 31-bit second field can represent at most 2 31 -1=2147483647 (more than 2.1 billion) data identifiers, which are sufficient for use and the data volume is small enough.

[0106] The second part: the vehicle-mounted terminal identifies the data as the second field.

[0107] In a possible implementation, the vehicle-mounted terminal directly uses the data identifier as the second field without performing other processing.

[0108] Part three: The vehicle-mounted terminal determines the third field based on the data source in the data description.

[0109] In a possible implementation manner, the vehicle-mounted terminal determines a binary field corresponding to a data source, and determines the binary field corresponding to the data source as the third field.

[0110] Among them, the number of characters in the third field is a second preset number, that is, the length of the third field is fixed. The second preset number is set by technical personnel according to actual conditions, and the embodiment of the present application does not limit this.

[0111] For example, taking the second preset number of 6 as an example, when the data source of the initial vehicle data is SOME / IP, the on-board terminal determines that the corresponding binary field is 000000, and the third field is 000000; when the data source of the initial vehicle data is CAN, the on-board terminal determines that the corresponding binary field is 000001, and the third field is 000001; when the data source of the initial vehicle data is energy stability monitoring, the on-board terminal determines that the corresponding binary field is 000010, and the third field is 000010; when the data source of the initial vehicle data is navigation-related services , the on-board terminal determines that the corresponding binary field is 000011, and the third field is 000011; when the data source of the initial vehicle data is entertainment-related services, the on-board terminal determines that the corresponding binary field is 000100, and the third field is 000100; when the data source of the initial vehicle data is voice-related services, the on-board terminal determines that the corresponding binary field is 000101, and the third field is 000101; when the data source of the initial vehicle data is cloud-side related services, the on-board terminal determines that the corresponding binary field is 100000, and the third field is 100000.

[0112] Part 4: The vehicle-mounted terminal determines a fourth field based on the operation to be performed indicated by the data operation attribute and multiple candidate operations.

[0113] In a possible implementation, the multiple candidate operations correspond to a character in the fourth field respectively, and the vehicle terminal compares the operation to be performed with the multiple candidate operations. For any candidate operation among the multiple candidate operations, if the operation to be performed includes the candidate operation, the vehicle terminal determines the character corresponding to the candidate operation as the first character. If the operation to be performed does not include the candidate operation, the vehicle terminal determines the character corresponding to the candidate operation as the second character. The vehicle terminal combines the characters corresponding to each of the candidate operations to obtain the fourth field.

[0114] Wherein, the fourth field is a binary field, and accordingly, the first character is 1, indicating that the operations to be executed include the candidate operations corresponding to the field; the second character is 0, indicating that the operations to be executed do not include the candidate operations corresponding to the field. In some embodiments, the multiple candidate operations include acquisition operations, upload operations, data storage operations, data preprocessing operations, data processing operations, and data execution operations. The acquisition operation corresponds to the first character in the fourth field, the upload operation corresponds to the second character in the fourth field, the data storage operation corresponds to the third character in the fourth field, the data preprocessing operation corresponds to the fourth character in the fourth field, the data processing operation corresponds to the fifth character in the fourth field, and the data execution operation corresponds to the sixth character in the fourth field. The number of characters in the fourth field is the third preset number, that is, the length of the fourth field is fixed, and the third preset number is the same as the number of candidate operations.

[0115] For example, if the operations to be processed include acquisition operations and upload operations, the fourth field is 110000. Conversely, if the fourth field is 111100, it means that the operations to be executed include acquisition operations, upload operations, data storage operations, and data preprocessing operations, but do not include data processing operations and data execution operations.

[0116] The fifth part: the vehicle-mounted terminal combines the first field, the second field, the third field and the fourth field to obtain a packet header corresponding to the initial vehicle data.

[0117] In a possible implementation, the vehicle terminal concatenates the first field, the second field, the third field, and the fourth field in a preset order to obtain a packet header corresponding to the initial vehicle data.

[0118] Among them, the preset order is set by the technician according to the actual situation, and the embodiment of the present application does not limit this. In the embodiment of the present application, the packet header is obtained by sequentially splicing the first field, the second field, the third field, and the fourth field as an example for explanation. When the first field includes 5 characters, the second field includes 6 characters, the third field includes 6 characters, and the fourth field includes 6 characters, the 1st to 5th bits of the packet header represent the number of characters of the data identifier, the 6th to 11th bits represent the data identifier, the 12th to 17th bits represent the data source, and the 18th to 22nd bits represent the operation to be performed.

[0119] In addition, the data source of the initial vehicle data can reflect the type of the initial vehicle data. Different types of initial vehicle data will be processed by different SDKs later. The data source error of the initial vehicle data may affect the normal processing of the initial vehicle data. Therefore, for the third field corresponding to the data source, it should not be able to be modified at will. In the embodiment of the present application, the modification of the third field needs to be completed by the vehicle terminal and the cloud in cooperation. For example, in response to the modification request for the third field in the packet header, the vehicle terminal sends the modification request and the data content corresponding to the packet header to the cloud. The modification request includes a modification field, and the modification field is a field that replaces the third field in the packet header. The cloud obtains the modification request and obtains the modification field and the data content from the modification request. The cloud verifies the modification field based on the data content to determine whether the modification field matches the data content. In the case where the modification field matches the data field, the cloud sends a modification confirmation message to the vehicle terminal so that the vehicle terminal uses the modification field to replace the third field in the packet header. In the case where the modification field does not match the data field, the cloud sends a modification rejection message to the vehicle terminal, so that the vehicle terminal refuses to use the modification field to replace the third field in the packet header.

[0120] Based on the above implementation, the vehicle terminal can also perform the following steps.

[0121] In a possible implementation, the data description further includes a data-related type, the data-related type is used to indicate an operation type of an operation associated with the initial vehicle data, and the vehicle-mounted terminal determines the fifth field based on the data-related type. The vehicle-mounted terminal combines the first field, the second field, the third field, the fourth field, and the fifth field to obtain a packet header corresponding to the initial vehicle data.

[0122] The operation types include data collection related, data preprocessing related, data processing related, arbitration related, execution related, and storage related, etc. In the embodiment of the present application, the first field, the second field, the third field, and the fourth field are usually unchanged, while the fifth field will change with the processing of the vehicle data. For example, after the vehicle data is collected, the fifth field will become a binary field corresponding to the data collection related; after the vehicle data is preprocessed, the fifth field will become a binary field corresponding to the data preprocessing related, and so on.

[0123] For example, the binary field corresponding to data acquisition is 001, the binary field corresponding to data preprocessing is 010, the binary field corresponding to data processing is 011, the binary field corresponding to arbitration is 100, the binary field corresponding to execution is 101, and the binary field corresponding to storage is 110.

[0124] After obtaining the fifth field, the vehicle terminal concatenates the first field, the second field, the third field, the fourth field and the fifth field in a preset order to obtain a packet header corresponding to the initial vehicle data.

[0125] The preset order is set by the technician according to the actual situation, and the embodiment of the present application does not limit this. In the embodiment of the present application, the packet header is obtained by sequentially splicing the fifth field, the first field, the second field, the third field, and the fourth field as an example for explanation, that is, when the fifth field exists, the fifth field is the first field of the packet header.

[0126] 303. The vehicle-mounted terminal combines the packet header corresponding to the initial vehicle data with the data content in the initial vehicle data to obtain the target vehicle data corresponding to the initial vehicle data.

[0127] The combination of the packet header and the data content realizes the reorganization of the initial vehicle data, so that different types of vehicle data can be reorganized into target vehicle data in a unified form.

[0128] In a possible implementation, the vehicle terminal identifies the data content of the initial vehicle data to obtain the data content of the initial vehicle data, and concatenates the packet header corresponding to the initial vehicle data with the data content of the initial vehicle data to obtain the target vehicle data.

[0129] For example, the vehicle terminal inputs the initial vehicle data into a data content recognition model, performs data content recognition on the initial vehicle data through the data content recognition model, and obtains the data content in the initial vehicle data. The vehicle terminal concatenates the packet header corresponding to the initial vehicle data with the data content in the initial vehicle data to obtain the target vehicle data.

[0130] The data content recognition model is a binary classification model used to distinguish data content from non-data content in vehicle data. The content recognition model is obtained by supervised training using multiple sample vehicle data and annotations corresponding to each sample vehicle data, where the annotations are used to indicate the data content and non-data content in the corresponding sample vehicle data.

[0131] For example, the vehicle terminal inputs the initial vehicle data into a data content recognition model, and classifies the multiple sub-data of the initial vehicle data through the data content recognition model to obtain the content type of each sub-data, which includes data content and non-data content. The sub-data is part of the data in the initial vehicle data. The vehicle terminal aggregates the sub-data with the content type of data content among the multiple sub-data to obtain the data content in the initial vehicle data. The vehicle terminal splices the packet header corresponding to the initial vehicle data and the data content in the initial vehicle data to obtain the target vehicle data.

[0132] In some embodiments, the data content recognition model is obtained through cloud training. After the data content recognition model is obtained through cloud training, the data content recognition model is sent to the vehicle-mounted terminal so that the vehicle-mounted terminal can deploy the data content recognition model locally, so that the vehicle-mounted terminal can realize data content recognition locally with higher efficiency.

[0133] Optionally, after step 303, the vehicle-mounted terminal can also execute the following steps 304-306, or execute the following step 307, which is not limited in this embodiment of the present application.

[0134] 304. When the operation to be performed indicated by the packet header of the target vehicle data includes a data preprocessing operation, the vehicle-mounted terminal preprocesses the data content of the target vehicle data to obtain preprocessed target vehicle data to eliminate errors in the data content.

[0135] Among them, the preprocessing methods include data cleaning and data conversion. Data cleaning includes missing value processing, outlier filtering, etc.; data conversion includes logarithmic transformation, normalization, principal component analysis, and data standardization, etc. Take the data content of the target vehicle data as an example to illustrate outlier filtering. The data content contains three speeds collected at adjacent moments. The speed collected at the first moment is 20km / h, the speed collected at the second moment is 80km / h, and the speed collected at the third moment is 20km / h. Then the speed collected at the second moment is an outlier and will be filtered.

[0136] In one possible implementation, see Figure 4 In the case where the operation to be performed indicated by the packet header of the target vehicle data includes a data preprocessing operation, the vehicle-mounted terminal performs data cleaning and data conversion on the data content of the target vehicle data through the preprocessing unit to obtain the preprocessed target vehicle data.

[0137] The preprocessing unit stores a plurality of data preprocessing rules, and the preprocessing unit preprocesses the data content of the target vehicle data through the plurality of data preprocessing rules. The plurality of data preprocessing rules are sent from the cloud to the vehicle terminal, and the vehicle terminal uses the acquired plurality of data preprocessing rules to update the data preprocessing rules stored in the preprocessing unit.

[0138] 305. When the operation to be performed indicated by the packet header of the target vehicle data also includes a data processing operation, the vehicle-mounted terminal determines the first data processing rule corresponding to the pre-processed target vehicle data from multiple data processing rules through a local data processing engine, and the data processing rules in the local data processing engine are obtained from the cloud.

[0139] Among them, the local data processing engine refers to an engine deployed on the vehicle terminal for data processing. Correspondingly, a cloud data processing engine is deployed on the cloud, and the cloud data processing engine and the local data processing engine share the same data processing rule base, which includes multiple data processing rules. In the case where the local data processing engine on the vehicle terminal needs to be updated, the data processing rule base of the cloud data processing engine can be directly updated on the cloud. In some embodiments, the cloud data processing engine and the local data processing engine are both written in Java language, and the local data processing engine has the ability of hot loading, that is, to achieve the update of the data processing rule base without restarting. For example, the cloud data processing engine and the local data processing engine both use Class files to load the same data processing rule base, and the local data processing engine can automatically detect changes in the Class files, thereby using the changed Class files to update the data processing rule base, and realize the unification of the data processing rule bases of the cloud data processing engine and the local data processing engine. In some embodiments, the data processing rules in the data processing rule base include data processing rules written by technicians, shared by others, or trained by models.

[0140] 306. The vehicle-mounted terminal processes the preprocessed target vehicle data based on the first data processing rule to obtain a data processing result.

[0141] In a possible implementation, when there are multiple first data processing rules, the vehicle terminal arbitrates the multiple first data processing rules to obtain a second data processing rule. The vehicle terminal executes the second data processing rule to process the preprocessed target vehicle data to obtain a data processing result.

[0142] For example, when there are multiple first data processing rules, the vehicle terminal uses a preset arbitration rule to merge or delete multiple first data processing rules to obtain the second data processing rule, and the preset arbitration rule is obtained from the cloud. The vehicle terminal executes the second data processing rule to process the preprocessed target vehicle data to obtain a data processing result.

[0143] For example, see Figure 4 When there are multiple first data processing rules, the vehicle terminal uses the arbitration unit to merge or delete the actions corresponding to the multiple first data processing rules to obtain the action or action set corresponding to the second data processing rule. The vehicle terminal uses the execution unit to execute the action or action set corresponding to the second data processing rule on the preprocessed target vehicle data to obtain the data processing result.

[0144] 307. When the operation to be performed indicated by the packet header of the target vehicle data includes a data storage operation, the vehicle-mounted terminal stores the target vehicle data in a data cache pool.

[0145] In one possible implementation, see Figure 4 In a case where the operation to be performed indicated by the packet header of the target vehicle data includes a data storage operation, the vehicle-mounted terminal stores the target vehicle data in a data cache pool through a cache unit.

[0146] In some embodiments, see Figure 4 ,The cloud is also configured with a data buffer lake, which can store the vehicle data obtained from the ,data buffer pools of different vehicle terminals in the data buffer lake for subsequent ,calls.

[0147] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0148] Through the technical solution provided in the embodiment of the present application, the vehicle-mounted terminal obtains the initial vehicle data of the target vehicle and the data description of the initial vehicle data, and the data description includes the data identification, data source and data operation attributes of the initial vehicle data. Based on the data description of the initial vehicle data, a packet header corresponding to the initial vehicle data is generated to achieve standardization of the data description. The packet header corresponding to the initial vehicle data and the initial vehicle data are combined to obtain the target vehicle data corresponding to the initial vehicle data. Through the above processing process, different types of vehicle data can be processed into a combination of a packet header and vehicle data using the data description, so as to achieve the unified form of different types of vehicle data, reduce the difficulty of processing different types of vehicle data, and improve the efficiency of processing vehicle data.

[0149] Figure 5 is a schematic diagram of the structure of a vehicle data processing device provided in an embodiment of the present application, see Figure 5 The device includes: an acquisition module 501, a generation module 502 and a combination module 503.

[0150] The acquisition module 501 is used to acquire the initial vehicle data of the target vehicle and the data description of the initial vehicle data, wherein the data description includes the data identification, data source and data operation attributes of the initial vehicle data, and the data operation attributes are used to indicate the operation to be performed.

[0151] The generating module 502 is used to generate a packet header corresponding to the initial vehicle data based on the data description of the initial vehicle data, where the packet header includes a plurality of fields, and one field corresponds to a part in the data description.

[0152] The combining module 503 is used to combine the packet header corresponding to the initial vehicle data with the data content in the initial vehicle data to obtain the target vehicle data corresponding to the initial vehicle data.

[0153] In a possible implementation, the generating module 502 is used to perform binary conversion on the character number conversion of the data identifier in the data description to obtain a first field. The data identifier is determined as a second field. A third field is determined based on the data source in the data description. A fourth field is determined based on the operation to be performed and multiple candidate operations indicated by the data operation attribute. The first field, the second field, the third field, and the fourth field are combined to obtain a packet header corresponding to the initial vehicle data.

[0154] In a possible implementation, the multiple candidate operations correspond to a character in the fourth field respectively, and the generation module 502 is used to compare the operation to be performed with the multiple candidate operations. For any candidate operation among the multiple candidate operations, when the operation to be performed includes the candidate operation, the character corresponding to the candidate operation is determined as the first character. When the operation to be performed does not include the candidate operation, the character corresponding to the candidate operation is determined as the second character. The characters corresponding to each of the candidate operations are combined to obtain the fourth field.

[0155] In a possible implementation, the data description further includes a data-related type, and the data-related type is used to indicate an operation type of an operation associated with the initial vehicle data. The generation module 502 is further used to determine a fifth field based on the data-related type. The first field, the second field, the third field, the fourth field, and the fifth field are combined to obtain a packet header corresponding to the initial vehicle data.

[0156] In a possible implementation, the acquisition module 501 is used to acquire the vehicle protocol data of the target vehicle, and determine the vehicle protocol data as the initial vehicle data. The vehicle protocol data is SOME / IP protocol data or CAN protocol data, and the vehicle protocol data includes vehicle component data and vehicle control data. Alternatively, the operation data of the vehicle system of the target vehicle is acquired, and the operation data is determined as the initial vehicle data, and the operation data is used to reflect the operation status of the vehicle system. Alternatively, the business data of the target vehicle is acquired, and the business data is determined as the initial vehicle data.

[0157] In a possible implementation, the device further includes:

[0158] A processing module is used to preprocess the data content of the target vehicle data to obtain preprocessed target vehicle data when the operation to be performed indicated by the packet header of the target vehicle data includes at least one of a data preprocessing operation and a data storage operation, so as to eliminate errors in the data content, and / or store the target vehicle data in a data cache pool.

[0159] In a possible implementation, the processing module is further configured to determine, through a local data processing engine, a first data processing rule corresponding to the preprocessed target vehicle data from a plurality of data processing rules, when the operation to be performed indicated by the packet header of the target vehicle data also includes a data processing operation. The preprocessed target vehicle data is subjected to data processing based on the first data processing rule to obtain a data processing result, and the data processing rule in the local data processing engine is obtained from the cloud.

[0160] In a possible implementation, the processing module is further configured to arbitrate a plurality of first data processing rules to obtain a second data processing rule when there are a plurality of first data processing rules, and execute the second data processing rule to process the preprocessed target vehicle data to obtain a data processing result.

[0161] In a possible implementation, the processing module is used to merge or delete multiple first data processing rules using a preset arbitration rule to obtain the second data processing rule when there are multiple first data processing rules, and the preset arbitration rule is obtained from the cloud.

[0162] It should be noted that: the vehicle data processing device provided in the above embodiment only uses the division of the above functional modules as an example when processing vehicle data. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the vehicle data processing device provided in the above embodiment and the vehicle data processing method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0163] Through the technical solution provided in the embodiment of the present application, the vehicle-mounted terminal obtains the initial vehicle data of the target vehicle and the data description of the initial vehicle data, and the data description includes the data identification, data source and data operation attributes of the initial vehicle data. Based on the data description of the initial vehicle data, a packet header corresponding to the initial vehicle data is generated to achieve standardization of the data description. The packet header corresponding to the initial vehicle data and the initial vehicle data are combined to obtain the target vehicle data corresponding to the initial vehicle data. Through the above processing process, different types of vehicle data can be processed into a combination of a packet header and vehicle data using the data description, so as to achieve the unified form of different types of vehicle data, reduce the difficulty of processing different types of vehicle data, and improve the efficiency of processing vehicle data.

[0164] The embodiment of the present application also provides a vehicle, Figure 6 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application.

[0165] Typically, the vehicle 600 includes: one or more processors 601 and one or more memories 602 .

[0166] The processor 601 may include one or more processing cores, such as a 4-core processor, a 6-core processor, etc. The processor 601 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 601 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0167] The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 602 is used to store at least one computer program, which is used to be executed by the processor 601 to implement the vehicle data processing method provided in the method embodiment of the present application.

[0168] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation on the vehicle 600, and the vehicle 600 may include more or less components than those shown in the figure, or combine certain components, or adopt a different arrangement of components.

[0169] In addition, the device provided in the embodiments of the present application may specifically be a chip, a component or a module, and the chip may include a connected processor and a memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a method for processing vehicle data provided in the above embodiments.

[0170] This embodiment also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a method for processing vehicle data provided in the above embodiment.

[0171] This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement a method for processing vehicle data provided in the above embodiment.

[0172] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0173] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0174] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0175] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for processing vehicle data, It is characterized in that The method comprises: Acquire initial vehicle data of a target vehicle and a data description of the initial vehicle data, wherein the data description includes a data identifier, a data source, and a data operation attribute of the initial vehicle data, wherein the data operation attribute is used to indicate an operation to be performed; Performing binary conversion on the character number conversion of the data identifier in the data description to obtain a first field; determining the data identifier as a second field; determining a third field based on the data source in the data description; determining a fourth field based on the operation to be performed and multiple candidate operations indicated by the data operation attribute; combining the first field, the second field, the third field and the fourth field to obtain a packet header corresponding to the initial vehicle data; The packet header corresponding to the initial vehicle data and the data content in the initial vehicle data are combined to obtain the target vehicle data corresponding to the initial vehicle data.

2. The method according to claim 1, It is characterized in that The multiple candidate operations respectively correspond to a character in the fourth field, and the determining the fourth field based on the operation to be performed indicated by the data operation attribute and the multiple candidate operations includes: Comparing the operation to be performed with the plurality of candidate operations; For any candidate operation among the multiple candidate operations, when the operation to be performed includes the candidate operation, determining the character corresponding to the candidate operation as the first character; when the operation to be performed does not include the candidate operation, determining the character corresponding to the candidate operation as the second character; The characters corresponding to the candidate operations are combined to obtain the fourth field.

3. The method according to claim 1, It is characterized in that The data description further includes a data-related type, where the data-related type is used to indicate an operation type of an operation associated with the initial vehicle data, and the method further includes: Based on the data-related type, determining a fifth field; The first field, the second field, the third field, the fourth field and the fifth field are combined to obtain a packet header corresponding to the initial vehicle data.

4. The method according to claim 1, It is characterized in that The method for obtaining the initial vehicle data comprises: Acquire vehicle protocol data of the target vehicle, determine the vehicle protocol data as the initial vehicle data, the vehicle protocol data is SOME / IP protocol data or CAN protocol data, and the vehicle protocol data includes vehicle component data and vehicle control data; Alternatively, obtaining operation data of a vehicle system of the target vehicle, determining the operation data as the initial vehicle data, the operation data being used to reflect the operation status of the vehicle system; Alternatively, the business data of the target vehicle is acquired, and the business data is determined as the initial vehicle data.

5. The method according to claim 1, It is characterized in that After combining the packet header corresponding to the initial vehicle data with the initial vehicle data to obtain the target vehicle data corresponding to the initial vehicle data, the method further includes: In a case where the operation to be performed indicated by the packet header of the target vehicle data includes at least one of a data preprocessing operation and a data storage operation, the data content of the target vehicle data is preprocessed to obtain preprocessed target vehicle data to eliminate errors in the data content, and / or the target vehicle data is stored in a data cache pool.

6. The method according to claim 5, It is characterized in that After preprocessing the data content of the target vehicle data to obtain the preprocessed target vehicle data, the method further includes: When the operation to be performed indicated by the packet header of the target vehicle data also includes a data processing operation, a first data processing rule corresponding to the preprocessed target vehicle data is determined from multiple data processing rules through a local data processing engine; data processing is performed on the preprocessed target vehicle data based on the first data processing rule to obtain a data processing result, and the data processing rules in the local data processing engine are obtained from the cloud.

7. The method according to claim 6, It is characterized in that The performing data processing on the pre-processed target vehicle data based on the first data processing rule to obtain a data processing result includes: In the case where there are multiple first data processing rules, arbitrating the multiple first data processing rules to obtain a second data processing rule; The second data processing rule is executed to process the preprocessed target vehicle data to obtain a data processing result.

8. The method according to claim 7, It is characterized in that When there are multiple first data processing rules, arbitrating the multiple first data processing rules to obtain a second data processing rule includes: In the case where there are multiple first data processing rules, a preset arbitration rule is used to merge or delete the multiple first data processing rules to obtain the second data processing rule, and the preset arbitration rule is obtained from the cloud.

9. A vehicle, It is characterized in that The vehicle comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory, so that the vehicle executes the vehicle data processing method as described in any one of claims 1 to 8.