A system, method, device, and medium for identifying vehicle-mounted Ethernet packets.

By combining signal name generation, matrix generation, and message parsing modules, the efficiency and accuracy issues of service data identification in vehicular Ethernet messages are resolved, achieving fast and accurate data identification.

CN116320094BActive Publication Date: 2026-03-10CHONGQING CHANGAN TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-28
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

Existing technologies struggle to quickly and accurately identify service data within vehicular Ethernet packets.

Method used

The signal name generation module converts the service interface parameters of the vehicle Ethernet service list into signal name data, the matrix generation module generates a communication matrix, the message parsing module extracts message parameters, and finally the data generation module generates the target service data.

Benefits of technology

It enables rapid and accurate identification of service data in vehicle Ethernet packets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116320094B_ABST
    Figure CN116320094B_ABST
Patent Text Reader

Abstract

This invention relates to a system, method, device, and medium for identifying vehicular Ethernet packets. It includes a signal name generation module for converting data for each service interface parameter in a vehicular Ethernet service list to generate signal name data for each service interface parameter; a matrix generation module for processing the signal name data and signal attribute data of all signals to generate a communication matrix for all signals; a packet parsing module for extracting parameters from vehicular Ethernet service packets based on each service interface parameter to obtain packet parameters corresponding to each signal; and a data generation module for assigning data values ​​to each signal in the communication matrix based on the packet parameters corresponding to each signal to generate target service data. This invention can quickly and accurately identify service data in Ethernet packets.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of vehicle communication, in particular to a vehicle Ethernet message identification system, method, device and medium. BACKGROUND

[0002] The vehicle Ethernet is a local area network connecting electronic units in a vehicle. The vehicle Ethernet message is data information transmitted in the Ethernet, which includes various service data, for example, service data for opening a window, service data for turning on a vehicle headlight or other vehicle service data. At present, when identifying the vehicle Ethernet message, it is difficult to quickly and accurately identify the service data in the message due to the huge amount of data of the vehicle Ethernet message. SUMMARY

[0003] The purpose of the present application is to provide a vehicle Ethernet message identification system, method, device and medium to solve the problem that it is difficult to quickly and accurately identify the service data in the Ethernet message in the prior art.

[0004] To achieve the above purpose, the technical solution adopted by the present application is as follows:

[0005] A vehicle Ethernet message identification system, comprising:

[0006] A signal name generation module is configured to perform data conversion on each service interface parameter of a vehicle Ethernet service list to generate signal name data of a signal corresponding to each service interface parameter;

[0007] A matrix generation module is configured to perform data processing on signal name data and signal attribute data of all signals to generate a communication matrix of all signals;

[0008] A message analysis module is configured to perform parameter extraction on a vehicle Ethernet service message based on each service interface parameter to obtain message parameters corresponding to each signal; and

[0009] A data generation module is configured to perform data assignment on each signal in the communication matrix based on the message parameters corresponding to each signal to generate target service data.

[0010] Further, the identification system further comprises a service data screening module configured to perform data screening on a vehicle Ethernet service form based on service attributes to generate the vehicle Ethernet service list, wherein the service attributes include service type, service domain and service range.

[0011] Further, the signal data generation module performs data conversion on each service interface parameter of the vehicle Ethernet service list based on a preset data conversion rule, wherein the data conversion rule comprises a normal parameter conversion rule, a structure parameter conversion rule, an array parameter conversion rule, and a structure array parameter conversion rule.

[0012] Further, the matrix generation module performs data correlation processing on signal name data and signal attribute data of all the signals to generate the communication matrix, wherein the signal attribute data comprises signal length data, signal start bit data, and signal identifier.

[0013] Further, the message analysis module extracts valid data corresponding to the parameter identification information of the vehicle Ethernet service list from the serialized data of the vehicle Ethernet service message to generate message parameters corresponding to each signal.

[0014] A vehicle Ethernet message identification method comprises:

[0015] The signal name generation module performs data conversion on each service interface parameter of the vehicle Ethernet service list to generate signal name data of a signal corresponding to each service interface parameter;

[0016] The matrix generation module performs data processing on signal name data and signal attribute data of all the signals to generate a communication matrix of all the signals;

[0017] The message analysis module extracts message parameters corresponding to each signal based on each service interface parameter to obtain message parameters corresponding to each signal;

[0018] The data generation module assigns data to each signal in the communication matrix based on the message parameters corresponding to each signal to generate target service data.

[0019] Further, before the step of converting each service interface parameter of the vehicle Ethernet service list by the signal name generation module to generate signal name data of a signal corresponding to each service interface parameter, the method further comprises:

[0020] The service data filtering module filters the vehicle Ethernet service table based on service attributes to generate the vehicle Ethernet service list, wherein the service attributes comprise service type, service domain, and service range.

[0021] Further, the step of performing data processing on signal name data of all the signals by the matrix generation module to generate a communication matrix of all the signals comprises:

[0022] The matrix generation module performs data association processing on the signal name data and signal attribute data of all the signals to generate the communication matrix. The signal attribute data includes signal length data, signal start bit data, and signal identifier.

[0023] An electronic device, the electronic device comprising:

[0024] One or more processors;

[0025] A storage device for storing one or more programs, which, when executed by one or more processors, enable the electronic device to implement the above-described method for identifying in-vehicle Ethernet packets.

[0026] A computer-readable storage medium having a computer program stored thereon, which, when executed by a computer's processor, causes the computer to perform the aforementioned method for identifying vehicle Ethernet packets.

[0027] The beneficial effects of this invention are: This invention can quickly and accurately identify service data in Ethernet packets. Attached Figure Description

[0028] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:

[0029] Figure 1 This is a block diagram illustrating an in-vehicle Ethernet packet identification system, as shown in an exemplary embodiment of this application.

[0030] Figure 2 This is a flowchart illustrating an exemplary embodiment of the present application of a method for identifying in-vehicle Ethernet packets;

[0031] Figure 3 This is a schematic flowchart illustrating a communication matrix generation method according to an exemplary embodiment of this application;

[0032] Figure 4 This is a flowchart illustrating a method for generating target service data, as shown in an exemplary embodiment of this application.

[0033] Figure 5 This is a schematic diagram of the computer system of the electronic device according to an embodiment of this application. Detailed Implementation

[0034] The embodiments of the present invention will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention and not for limiting the scope of protection of the present invention.

[0035] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.

[0036] First, it's important to clarify that automotive Ethernet can be a local area network connecting the vehicle's electronic units. Data transmission via Ethernet enables various vehicle services, such as opening windows, turning on headlights, activating the audio system, or other services. Automotive Ethernet messages can include various types of data exchanged and transmitted over Ethernet; among these, vehicle service data is essential supporting data for research in vehicle communication.

[0037] In practical processing of vehicular Ethernet packets, the large volume of packet data makes it difficult for manual analysis to accurately and quickly extract service data from the packets. The vehicular Ethernet packet identification system of this invention converts each service interface parameter in the vehicular Ethernet service list into signal name data and further generates a communication matrix for all signals. Then, based on each service interface parameter, the packet parameters corresponding to each signal in the Ethernet service packet can be extracted. Finally, by assigning the packet parameters to each signal in the communication matrix, the target service data can be generated, thereby achieving rapid and accurate identification of service data within the Ethernet packet.

[0038] Please see Figure 1 As shown, Figure 1This is a block diagram illustrating an exemplary embodiment of an in-vehicle Ethernet packet identification system. This system can be applied to in-vehicle Ethernet data identification, and can also be applied to other implementation environments. This embodiment does not limit the implementation environment to which the system is applicable. This exemplary in-vehicle Ethernet packet identification system may include a signal name generation module 110, a matrix generation module 120, a packet parsing module 130, and a data generation module 140. Specifically, the signal name generation module 110 can convert each service interface parameter in the in-vehicle Ethernet service list into signal name data. The matrix generation module 120 can further generate a communication matrix for all signals based on the signal name data and signal attribute data. The packet parsing module 130 can extract the packet parameters corresponding to each signal in the Ethernet service packet based on each service interface parameter. The data generation module 140 can assign the packet parameters to each signal in the communication matrix to generate target service data.

[0039] In one embodiment of the present invention, the signal name generation module 110 can perform data conversion on each service interface parameter of the vehicle Ethernet service list to generate signal name data for the signal corresponding to each service interface parameter. Specifically, the vehicle Ethernet service list may include multiple service interface information. The signal name generation module 110 can read the service interface information in the vehicle Ethernet service list and convert the service interface parameters in each service interface information into signal name data for CAN signals. The conversion process of converting service interface parameters into signal name data for CAN signals can first involve the signal name generation module 110 reading "Service", "HashId", "ServiceInterfaceName", "InputParameterName", "InputParameterDataTypeName", "InputParameterDataType", or other parameter data from the vehicle Ethernet service list. Next, the signal name generation module 110 can read pre-set data structure table information, which may include various data names. Based on the data names in the data structure table and the parameter names read above, the signal name generation module 110 can convert the read service interface parameters into signal name data.

[0040] In one embodiment of the present invention, when the signal data generation module 110 performs data conversion on each service interface parameter of the vehicle Ethernet service list, it may perform data conversion based on preset data conversion rules. These data conversion rules include ordinary parameter conversion rules, structure parameter conversion rules, array parameter conversion rules, and structure array parameter conversion rules. Specifically, when the service interface parameter to be converted is an ordinary type parameter, the signal name data converted based on the data name in the data structure table and the parameter name read above can be represented as "service name" + "_" + "method name" + "_" + "parameter name". When the service interface parameter to be converted is a structure parameter, the signal name data converted based on the data name in the data structure table and the parameter name read above can be represented as "service name" + "_" + "method name" + "structure name" + "_" + "member name". When the service interface parameter to be converted is an array parameter, the signal name data after conversion based on the data name in the data table structure and the parameter name read above can be represented as service name "+ "_" + "method name" + "_" + "parameter name" + "_ number". When the service interface parameter to be converted is a structure array parameter, the signal name data after conversion based on the data name in the data table structure and the parameter name read above can be represented as a combination of service name "+ "_" + "method name" + "structure name" + "_" + "member name" and service name "+ "_" + "method name" + "_" + "parameter name" + "_ number".

[0041] In one embodiment of the present invention, the matrix generation module 120 can process the signal name data and signal attribute data of all signals to generate a communication matrix for all signals. Specifically, the matrix generation module 120 can perform data association processing on the signal name data and signal attribute data of all the signals to generate the communication matrix, wherein the signal attribute data may include signal length data, signal start bit data, and signal identifier. Further, the matrix generation module 120 can calculate the signal length data corresponding to each signal name data, calculate the signal start bit data of each signal using the signal length data, and then generate a corresponding CanId (signal identifier) ​​for each signal. Finally, the matrix generation module 120 can perform association processing on the signal name data, signal length data, signal start bit data, and signal identifier to generate a CAN communication matrix based on the rules of the CAN communication matrix.

[0042] In one embodiment of the present invention, the message parsing module 130 can extract parameters from the vehicle Ethernet service message based on each of the service interface parameters to obtain the message parameters corresponding to each signal. Specifically, the message parsing module 130 can extract valid data corresponding to the parameter identification information of the vehicle Ethernet service list from the serialized data of the vehicle Ethernet service message to generate the message parameters corresponding to each signal. The above-mentioned message parameter extraction process can be specifically described as follows: first, extract the submessageId (sub-message identifier) ​​from the Ethernet service message information from the xxx.pcapng format file, and further extract the serializedData (serialized data) from the submessageId (sub-message identifier), determine whether there is data in the serializedData (serialized data) that is the same as the HashId (parameter identification information), and if there is data that is the same, then extract the valid data after the HashId (parameter identification information) in the serializedData (serialized data) to generate the message parameters.

[0043] In one embodiment of the present invention, the data generation module 140 can assign data values ​​to each signal in the communication matrix based on the message parameters corresponding to each signal to generate target service data. Specifically, the target service data can be an .asc file. The data generation module 140 can extract the signal name data, signal length data, and signal start bit data from the CAN communication matrix into the .asc file, and assign the message parameters to the corresponding positions of each signal to generate the .asc file.

[0044] Please see Figure 1 As shown, in one embodiment of the present invention, the vehicle Ethernet packet identification system may further include a service data filtering module 150. The service data filtering module 150 can filter data from the vehicle Ethernet service form 160 based on service attributes to generate a vehicle Ethernet service list. The service attributes may include service type, service domain, and service scope. Specifically, the vehicle Ethernet service form 160 includes multiple service interface information. Multiple service interface information can be filtered based on service attributes to select the desired vehicle Ethernet service list. Further, the service type in the service attributes can represent the type of each service interface, such as turning on headlights, opening windows, or other service types. The service domain can represent the domain to which each service interface belongs, such as the chassis domain, powertrain domain, or other domains. The service scope can represent the service scope of each service interface, such as within the chassis domain, outside the chassis domain, or other scopes. By setting filtering restrictions for service type, service domain, and service scope, the desired vehicle Ethernet service list can be filtered out. It should be noted that service attributes can also be other attributes, which are not limited here.

[0045] Please see Figure 1 As shown, in one embodiment of the present invention, when the above-mentioned vehicle Ethernet message identification system actually generates the CAN matrix, the user can place the "Vehicle Ethernet Service Form.xlsx" file and the captured vehicle Ethernet service message "xxx.pcapng" file in the same directory structure as the "Ethernet Service Log Parsing Tool.exe" file corresponding to the parsing tool 170, and then run the exe program. Next, the service interface information and data structure table information in the "Vehicle Ethernet Service Form.xlsx" are read into the system. The service data filtering module 150 can filter the "Vehicle Ethernet Service Form.xlsx" to filter out the list of vehicle Ethernet services that need to be converted. Then, the signal name generation module 110 polls and reads the information of each service interface in the vehicle Ethernet service list, and converts the service interface parameters of each service interface into the signal name of the corresponding signal. The matrix generation module 120 can calculate signal length data, signal start position data, and generate signal attribute data such as signal identifiers. After all polling reads are completed, the matrix generation module 120 can associate the signal name data, signal length data, signal start bit data, and signal identifier to generate a communication matrix for all signals. It should be noted that the communication matrix can be analyzed and visualized using a bus analysis tool 190, such as CANoe, improving data analysis efficiency.

[0046] Please see Figure 1 As shown, in one embodiment of the present invention, when the above-mentioned vehicle Ethernet packet recognition system actually generates the target service data of the .asc file, the user can place the "Vehicle Ethernet Service Form.xlsx" file, the captured vehicle Ethernet service packet "xxx.pcapng" file, and the "Ethernet Service Log Parsing Tool.exe" file in the same directory structure, and then run the exe program. The signal information in the communication matrix is ​​read into the system, and then the Ethernet service packet file 180 in the "xxx.pcapng" file is read into the system. The packet parsing module 130 can poll and parse each Ethernet service packet file. If a certain Ethernet service packet file contains data with the same HashId (parameter identification information), the packet parameters corresponding to the signal in each Ethernet service packet information are extracted, and the packet parameters are assigned to the corresponding position of the signal. After all polling and parsing is completed, the target service data of the .asc file is generated. It should be noted that the target service data of the .asc file can be analyzed and visualized based on a bus analysis tool 190, such as the CANoe tool, to improve data analysis efficiency.

[0047] Please see Figure 2As shown, this invention provides a method for identifying vehicle Ethernet packets, which can be applied to the identification of vehicle Ethernet packets to improve identification efficiency and accuracy. The method for identifying vehicle Ethernet packets may include the following steps:

[0048] Step S210: The signal name generation module performs data conversion on each service interface parameter of the vehicle Ethernet service list to generate signal name data for each service interface parameter.

[0049] Step S220: The signal name data and signal attribute data of all the signals are processed by the matrix generation module to generate a communication matrix for all the signals.

[0050] Step S230: The message parsing module extracts parameters from the vehicle Ethernet service message based on the parameters of each service interface to obtain the message parameters corresponding to each signal.

[0051] Step S240: The data generation module assigns data values ​​to each signal in the communication matrix based on the message parameters corresponding to each signal to generate target service data.

[0052] In one embodiment of the present invention, when step S210 is executed, the signal data generation module performs data conversion on each service interface parameter of the vehicle Ethernet service list to generate signal name data corresponding to each service interface parameter. Specifically, the vehicle Ethernet service list may include multiple service interface information. The signal name generation module 110 can read the service interface information in the vehicle Ethernet service list and convert the service interface parameters in each service interface information into signal name data of the CAN signal. The process of converting service interface parameters into signal name data for CAN signals can begin by having the signal name generation module 110 read "Service", "HashId", "ServiceInterfaceName", "InputParameterName", "InputParameterDataTypeName", "InputParameterDataType", or other parameter data from the vehicle Ethernet service list. Next, the signal name generation module 110 can read pre-set data structure table information, which may include various data names. Based on the data names in the data structure table and the parameter names read above, the signal name generation module 110 can convert the read service interface parameters into signal name data.

[0053] It should be further noted that when the signal name generation module 110 performs data conversion on each service interface parameter of the vehicle Ethernet service list, it can do so based on preset data conversion rules. These data conversion rules include ordinary parameter conversion rules, structure parameter conversion rules, array parameter conversion rules, and structure array parameter conversion rules. Specifically, when the service interface parameter to be converted is an ordinary type parameter, the signal name data after conversion based on the data name in the data structure table and the parameter name read above can be represented as "service name" + "_" + "method name" + "_" + "parameter name". When the service interface parameter to be converted is a structure parameter, the data after conversion based on the data name in the data structure table and the parameter name read above can be represented as "service name" + "_" + "method name" + "structure name" + "_" + "member name". When the service interface parameter to be converted is an array parameter, the signal name data after conversion based on the data name in the data table structure and the parameter name read above can be represented as service name "+ "_" + "method name" + "_" + "parameter name" + "_ number". When the service interface parameter to be converted is a structure array parameter, the signal name data after conversion based on the data name in the data table structure and the parameter name read above can be represented as a combination of service name "+ "_" + "method name" + "structure name" + "_" + "member name" and service name "+ "_" + "method name" + "_" + "parameter name" + "_ number".

[0054] In one embodiment of the present invention, before executing step S210, i.e., before the signal data generation module performs data conversion on each service interface parameter of the vehicle Ethernet service list to generate signal name data corresponding to each service interface parameter, the method further includes filtering the vehicle Ethernet service form based on service attributes by a service data filtering module to generate the vehicle Ethernet service list. The service attributes include service type, service domain, and service scope. Specifically, service attributes may include service type, service domain, and service scope. Specifically, the vehicle Ethernet service form includes multiple service interface information, and multiple service interface information can be filtered based on service attributes to select the desired vehicle Ethernet service form. Further, the service type in the service attributes can represent the type of each service interface, such as turning on headlights, opening windows, or other service types. The service domain can represent the domain to which each service interface belongs, such as the chassis domain, powertrain domain, or other domains. The service scope can represent the service scope of each service interface, such as within the chassis domain, outside the chassis domain, or other scopes. By setting filtering criteria such as service type, service domain, and service scope, you can filter out the desired list of in-vehicle Ethernet services.

[0055] In one embodiment of the present invention, when step S220 is executed, the matrix generation module processes the signal name data and signal attribute data of all the signals to generate a communication matrix for all the signals. Specifically, the matrix generation module 120 can perform data association processing on the signal name data and signal attribute data of all the signals to generate the communication matrix. The signal attribute data may include signal length data, signal start bit data, and signal identifier. Further, the matrix generation module 120 can calculate the signal length data corresponding to each signal name data, and calculate the signal start bit data for each signal using the signal length data. Finally, the matrix generation module 120 can perform association processing on the signal name data, signal length data, signal start bit data, and signal identifier to generate a CAN communication matrix based on the rules of the CAN communication matrix.

[0056] Please see Figure 3 As shown, in one embodiment of the present invention, the above-mentioned vehicle Ethernet packet identification system may include the following steps when actually generating the CAN matrix:

[0057] Step S310: The user places the "Vehicle Ethernet Service Form.xlsx" file, the captured vehicle Ethernet service packet "xxx.pcapng" file, and the "Ethernet Service Log Parsing Tool.exe" file corresponding to the parsing tool 170 in the same directory structure, and then runs the exe program. Next, the service interface information and data structure table information from the "Vehicle Ethernet Service Form.xlsx" file are read into the program.

[0058] Step S320: Filter the “Vehicle Ethernet Service Form.xlsx” file through the service data filtering module 150 to filter out the list of vehicle Ethernet services that need to be converted.

[0059] Step S330: The signal name generation module 110 polls and reads the information of each service interface in the vehicle Ethernet service list, and converts the service interface parameters of each service interface into the signal name of the corresponding signal.

[0060] Step S340: The matrix generation module 120 calculates signal length data, signal start position data, and generates signal attribute data such as signal identifier.

[0061] Step S350: After all polling reads are completed, the matrix generation module 120 can associate the signal name data, signal length data, signal start bit data, and signal identifier to generate a communication matrix for all signals.

[0062] In one embodiment of the present invention, when step S230 is executed, the message parsing module extracts parameters from the vehicle Ethernet service message based on each of the service interface parameters to obtain the message parameters corresponding to each signal. It should be noted that the message parsing module 130 can extract valid data corresponding to the parameter identification information of the vehicle Ethernet service list from the serialized data of the vehicle Ethernet service message to generate the message parameters corresponding to each signal. The above-mentioned message parameter extraction process can be specifically described as follows: first, extracting the submessageId (sub-message identifier) ​​from the Ethernet service message information in the xxx.pcapng format file; further, extracting the serializedData (serialized data) from the submessageId (sub-message identifier); determining whether there is data in the serializedData (serialized data) that is the same as the HashId (parameter identification information); if there is the same data, then extracting the valid data after the HashId (parameter identification information) in the serializedData (serialized data) to generate the message parameters.

[0063] In one embodiment of the present invention, when step S240 is executed, data values ​​are assigned to each signal in the communication matrix based on the message parameters corresponding to each signal to generate target service data. Specifically, the target service data can be an .asc file. The data generation module 140 can extract the signal name data, signal length data, and signal start bit data from the CAN communication matrix into an .asc file, and assign the message parameters to the corresponding positions of each signal to generate the .asc file.

[0064] Please see Figure 4 As shown, in one embodiment of the present invention, the above-mentioned vehicle Ethernet packet recognition system may include the following steps when actually generating the target service data of the ASC file:

[0065] Step S410: The user places the "Vehicle Ethernet Service Form.xlsx" file, the captured vehicle Ethernet service message "xxx.pcapng" file, and the "Ethernet Service Log Parsing Tool.exe" file in the same directory structure, then runs the exe program to read the signal information in the communication matrix into its internal structure, and then reads the Ethernet service message file 180 in the "xxx.pcapng" file into its internal structure.

[0066] Step S420: The message parsing module 130 polls and parses each Ethernet service message file. If there is data with the same HashId (parameter identification information) in a certain Ethernet service message file, the message parameter corresponding to the signal in each Ethernet service message information is extracted and the message parameter is assigned to the corresponding position of the signal.

[0067] Step S430: After all polling and parsing is completed, the target service data in the asc file is generated.

[0068] As can be seen, in the above scheme, the service interface parameters in the vehicular Ethernet service list are converted into a communication matrix, and the message parameters corresponding to each signal in the Ethernet service message are extracted based on the service interface parameters. Finally, the message parameters are assigned to each signal in the communication matrix to generate the target service data, thereby achieving fast and accurate identification of service data in the Ethernet message.

[0069] It should be noted that the vehicle Ethernet packet recognition system and the vehicle Ethernet packet recognition method provided in the above embodiments belong to the same concept. The specific operation methods of each module have been described in detail in the embodiments and will not be repeated here. In practical applications, the vehicle Ethernet packet recognition system provided in the above embodiments 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. This is not a limitation here.

[0070] Embodiments of this application also provide an electronic device, including: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, enable the electronic device to implement the vehicle Ethernet packet identification method provided in the above embodiments.

[0071] Figure 5 A schematic diagram of a computer system suitable for implementing the embodiments of this application is shown. It should be noted that... Figure 5 The computer system of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0072] like Figure 5As shown, the computer system includes a Central Processing Unit (CPU) 501, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 502 or loaded from storage portion 508 into Random Access Memory (RAM) 503, such as performing the methods described in the above embodiments. The RAM 503 also stores various programs and data required for system operation. The CPU 501, ROM 502, and RAM 503 are interconnected via a bus 504. An Input / Output (I / O) interface 505 is also connected to the bus 504.

[0073] The following components are connected to I / O interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 507 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to I / O interface 505 as needed. A removable medium 511, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 510 as needed so that computer programs read from it can be installed into storage section 508 as needed.

[0074] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 509, and / or installed from removable medium 511. When the computer program is executed by central processing unit (CPU) 501, it performs various functions defined in the system of this application.

[0075] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.

[0076] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0077] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.

[0078] Another aspect of this application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a computer's processor, causes the computer to perform the vehicle Ethernet packet identification method as described above. This computer-readable storage medium may be included in the electronic device described in the above embodiments, or it may exist independently and not assembled into the electronic device.

[0079] Another aspect of this application provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the vehicle Ethernet packet identification method provided in the various embodiments described above.

[0080] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.

Claims

1. A vehicle-mounted Ethernet packet identification system, characterized in that, The signal name generation module is configured to perform data conversion on each service interface parameter of the vehicle Ethernet service list to generate signal name data of a signal corresponding to each service interface parameter. The matrix generation module is configured to perform data association processing on the signal name data and signal attribute data of all the signals to generate a communication matrix of all the signals. The message analysis module is configured to extract a sub-message identifier of a vehicle Ethernet service message and obtain serialized data in the sub-message identifier based on each service interface parameter, and if the serialized data contains data identical to parameter identifier information, intercept valid data after the parameter identifier information to obtain message parameters corresponding to each signal. The data generation module is configured to assign data to each signal in the communication matrix based on the message parameters corresponding to each signal to generate target service data. The service data screening module is configured to perform data screening on a vehicle Ethernet service form based on service attributes to generate the vehicle Ethernet service list, where the service attributes include a service type, a service domain, and a service range. The signal name generation module performs data conversion on each service interface parameter of the vehicle Ethernet service list based on a preset data conversion rule, where the data conversion rule includes a normal parameter conversion rule, a structure body parameter conversion rule, an array parameter conversion rule, and a structure body array parameter conversion rule.

2. The system for identifying Ethernet messages on board a vehicle according to claim 1, characterized in that, The signal attribute data includes signal length data, signal start bit data, and a signal identifier.

3. The system for identifying Ethernet messages on board a vehicle according to claim 1, characterized in that, The signal name generation module performs data conversion on each service interface parameter of the vehicle Ethernet service list to generate signal name data of a signal corresponding to each service interface parameter.

4. The system for identifying Ethernet messages on board a vehicle according to claim 1, characterized in that, The matrix generation module performs data association processing on the signal name data and signal attribute data of all the signals to generate a communication matrix of all the signals.

5. A method for identifying vehicle-mounted Ethernet messages, characterized in that, The message analysis module extracts a sub-message identifier of a vehicle Ethernet service message and obtains serialized data in the sub-message identifier based on each service interface parameter, and if the serialized data contains data identical to parameter identifier information, intercepts valid data after the parameter identifier information to obtain message parameters corresponding to each signal. The data generation module assigns data to each signal in the communication matrix based on the message parameters corresponding to each signal to generate target service data. The signal name generation module performs data conversion on each service interface parameter of the vehicle Ethernet service list to generate signal name data of a signal corresponding to each service interface parameter. The service data screening module performs data screening on a vehicle Ethernet service form based on service attributes to generate the vehicle Ethernet service list, where the service attributes include a service type, a service domain, and a service range. The signal attribute data includes signal length data, signal start bit data, and a signal identifier.

6. The method of claim 5, wherein, The electronic device includes: one or more processors; 7. The method of claim 5, wherein the step of identifying the Ethernet message is performed by a network interface card (NIC) of the vehicle. ​ 8. An electronic device, comprising: ​ ​ A storage device is configured to store one or more programs, which, when executed by the one or more processors, cause the electronic device to implement the method for identifying a vehicle-mounted Ethernet message according to any one of claims 5 to 7.

9. A computer-readable storage medium, characterized in that, A computer program is stored on a computer readable medium, and when the computer program is executed by a processor of the computer, the computer is caused to perform the method for identifying a vehicle-mounted Ethernet message according to any one of claims 5 to 7.

Citation Information

Patent Citations

  • Method for quickly creating DBC file following CAN bus communication protocol

    CN112799321A

  • Fault diagnosis method, device and system

    CN114710479A

  • Software integration method and device based on AUTOSAR and use method

    CN115167831A