Vehicle communication control method, device, equipment and computer readable storage medium
By listening to and intercepting data transmission requests in the in-vehicle communication system and using network card devices to masquerade addresses to obtain data packets, the latency and instability issues caused by modifications in existing technologies are resolved, achieving stable and secure acquisition of in-vehicle communication data.
Patent Information
- Application Number
- CN202510236785.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2045-02-28
AI Technical Summary
Existing in-vehicle communication management solutions require hardware and software modifications to the vehicle modules, resulting in data transmission delays and communication instability, which affects the performance of autonomous driving systems and vehicle-to-everything (V2X) applications.
By listening to and intercepting data transmission requests, using a pre-set network card device for address masquerading, data packets are obtained and sent to the target module, avoiding modification of the in-vehicle modules and achieving unobtrusive data packet acquisition.
This technology enables the acquisition of in-vehicle communication data without affecting the normal communication functions of the in-vehicle modules, ensuring the stability and security of communication and avoiding delays and instability issues caused by modifications.
Smart Images

Figure CN120017697B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicle communication, in particular to a vehicle communication control method, device, equipment and computer readable storage medium. BACKGROUND
[0002] With the advent of the era of vehicle intelligence and information, the data volume and data complexity of in-vehicle communication are increasing day by day. The management needs of in-vehicle communication also increase accordingly.
[0003] In the related art, the in-vehicle communication data is captured by setting intermediate proxy devices such as gateways and middleware in the vehicle network. It needs to modify the software and hardware of the vehicle modules such as electronic control units, and may also cause delay in data transmission, thereby affecting the performance of the automatic driving system, real-time safety response and vehicle networking application.
[0004] Therefore, there is a need for an in-vehicle communication management scheme that does not affect normal in-vehicle communication. SUMMARY
[0005] In view of this, the embodiments of the present application provide a vehicle communication control method, device, equipment and computer readable storage medium, which can solve the problem that the existing in-vehicle communication management affects the normal communication of in-vehicle modules.
[0006] In a first aspect, the embodiments of the present application provide a vehicle communication control method, which comprises:
[0007] listening to and intercepting a data transmission request sent by a first module; the data transmission request is used to request to send a data packet to a second module; the first module and the second module include electronic control units in the vehicle;
[0008] determining a first address of the second module according to the data transmission request;
[0009] replacing the address of a preset first network card device with the first address to obtain a first replaced device;
[0010] receiving the data packet through the first replaced device;
[0011] sending the data packet to the second module.
[0012] Different from the related art, the data packet acquisition needs to modify the first module when analyzing the in-vehicle communication data, which has a high modification cost and may affect the normal communication function of the first module. Through the above scheme, the first address read from the data transmission request is used to address the preset network card device, and the first replaced device is obtained. The intercepted data transmission request is directly sent to the first replaced device, realizing the acquisition of the data packet and sending the data packet to the second module, so as to not affect the normal communication process between the in-vehicle modules. The data packet acquisition process does not need to modify the in-vehicle module and is insensitive to the first module, so it will not affect the normal communication function of the first module, and can ensure the stability and safety of in-vehicle communication.
[0013] In some embodiments, the first network card device is pre-deployed on a communication path between the first module and the second module; the method further comprises:
[0014] listening to the communication path by the first network card device;
[0015] If the data transmission request is intercepted by the first network card device, the data transmission request is intercepted.
[0016] In some embodiments, the method further comprises:
[0017] sending the data packet to a preset second network card device through the first replaced device; the second network card device is in communication connection with the first network card device; the second network card device is pre-deployed on a communication path between the first module and the second module;
[0018] acquiring a second address of the first module;
[0019] replacing the address of the preset second network card device with the second address to obtain a second replaced device;
[0020] sending the data packet to the second module through the second replaced device.
[0021] In some embodiments, the method further comprises:
[0022] analyzing the data packet to obtain an analysis result of the communication condition between the first module and the second module.
[0023] In some embodiments, the method further comprises:
[0024] determining a performance standard corresponding to the communication process between the first module and the second module;
[0025] According to the performance standard, the data packet is analyzed to obtain the analysis result.
[0026] In some embodiments, the method further comprises:
[0027] According to the performance standard, a target performance index and a target data type are determined; wherein, if the target performance index comprises an index representing communication security performance, the target data type comprises a type representing a level of data in a network model corresponding to the vehicle;
[0028] According to the target data type, data extraction is performed on the data packet to obtain to-be-analyzed data;
[0029] According to the target performance index, the to-be-analyzed data is analyzed to obtain the analysis result.
[0030] In some embodiments, the method further comprises:
[0031] According to the type of at least one of the first module, the second module and the data packet, communication scenario information corresponding to the data transmission request is determined;
[0032] According to the communication scenario information, the performance standard is determined.
[0033] In some embodiments, the method further comprises:
[0034] An interface corresponding to the data packet is displayed to a user;
[0035] In response to a data processing instruction input by the user for the data packet; the data processing instruction comprises an instruction selected by the user based on a preset candidate processing instruction; the candidate processing instruction comprises at least one of data replay, data tampering, data interception and data capture;
[0036] According to the data processing instruction, the data packet is processed to obtain the analysis result;
[0037] In some embodiments, the method further comprises:
[0038] The analysis result is returned to the user.
[0039] In a second aspect, the embodiments of the present application further provide a vehicle communication control device, comprising:
[0040] An interception module is configured to listen to and intercept a data transmission request sent by a first module; the data transmission request is used to request to send a data packet to a second module; the first module and the second module comprise an electronic control unit of a vehicle;
[0041] determining a first address of the second module according to the data transmission request;
[0042] replacing a preset address of the first network card device with the first address to obtain a first replaced device;
[0043] receiving the data packet through the first replaced device;
[0044] sending the data packet to the second module.
[0045] In a third aspect, an embodiment of the present application further provides a vehicle communication control device, which comprises a processor and a memory. The memory is configured to store instructions, and the processor is configured to invoke the instructions in the memory, so that the vehicle communication device performs the vehicle communication control method according to the first aspect.
[0046] In a fourth aspect, an embodiment of the present application further provides a computer readable storage medium, which stores computer instructions. When the computer instructions are run on a processor, the processor performs the vehicle communication control method according to the first aspect. BRIEF DESCRIPTION OF DRAWINGS
[0047] Figure 1 A step flowchart of the vehicle communication control method according to an embodiment of the present application.
[0048] Figure 2 A step flowchart of the vehicle communication control method according to another embodiment of the present application.
[0049] Figure 3 A step flowchart of the vehicle communication control method according to another embodiment of the present application.
[0050] Figure 4 A step flowchart of the vehicle communication control method according to another embodiment of the present application.
[0051] Figure 5 A step flowchart of the vehicle communication control method according to another embodiment of the present application.
[0052] Figure 6 A step flowchart of the vehicle communication control method according to another embodiment of the present application.
[0053] Figure 7 A step flowchart of the vehicle communication control method according to another embodiment of the present application.
[0054] Figure 8A structure diagram of a vehicle communication control device according to an embodiment of the present application.
[0055] Figure 9 A structure diagram of a vehicle communication control device according to an embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to more clearly understand the above objectives, features and advantages of the present application, the following will describe the present application in detail with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict, if possible.
[0057] In the following description, a large number of specific details are set forth in order to facilitate a thorough understanding of the present application. The described embodiments are merely some of the embodiments of the present application, but not all the embodiments.
[0058] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
[0059] Further, it should be pointed out that herein, the terms "comprising", "containing" or any other variants thereof are intended to cover non-exclusive containing, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or device. Without more limitations, the element defined by the phrase "comprising a" does not exclude the presence of another identical element in the process, method, article or device including the element.
[0060] In the present application, "at least one" means one or more, and "multiple" means two or more than two. The "and / or" describes the association relationship of the associated objects, which means that there can be three kinds of relationships, for example, A and / or B can represent: A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth" and the like (if any) in the specification and claims of the present application and the drawings are used to distinguish similar objects, and are not used to describe a specific order or sequence.
[0061] In the embodiments of the present application, the word "exemplary" or "for example" is used to mean serving as an example, instance, or illustration. Any embodiment or design presented as "exemplary" or "for example" in the embodiments of the present application is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "for example" is intended to present concepts in a concrete manner. In the embodiments of the present application, the singular forms "a," "an," and "the" include plural referents unless the context clearly dictates otherwise.
[0062] With the advent of the era of vehicle intelligence and information, the application and popularization of automatic driving technology, the interaction data of in-vehicle communication is increasing. The efficiency, quality, safety and other performances of in-vehicle communication will affect the reliability of vehicle operation, and thus affect the driving experience of the vehicle. Therefore, the data of in-vehicle communication can be analyzed to obtain the performance of in-vehicle communication. In order to analyze the data of in-vehicle communication, the data of in-vehicle communication needs to be obtained first.
[0063] In the related art, based on the demand of in-vehicle communication management, the data of in-vehicle communication needs to be obtained, and in the related art, in order to obtain the data of in-vehicle communication, a preset relay device needs to be inserted in the vehicle network to intercept data packets. The relay device can include software and hardware devices such as gateways, middleware, network agents, etc. Specifically, in order to realize the application of the relay device in the vehicle network, a communication connection needs to be established between the in-vehicle module and the relay device, and the external address of the in-vehicle module needs to be modified to the address of the relay device, so that the relay device receives and transmits data for the in-vehicle module, and the in-vehicle module is an ECU (Electronic Control Unit) in the vehicle. The problems thereof at least include: first, the workload of modifying the address of the in-vehicle module is large, which will result in low efficiency of obtaining the in-vehicle communication data. Moreover, unlike the IP (Internet Protocol) address which can be dynamically allocated in other non-vehicle network environment, the communication address of the in-vehicle module is generally fixed and written, and the modification of the communication address of the in-vehicle module may affect the normal communication function of the in-vehicle module, such as may result in the communication function of the in-vehicle module being unavailable. In addition, this uniform proxy scheme of the relay device may cause data delay, interference or system instability. This not only affects the normal work of the in-vehicle device, but also may cause delay of data transmission, and thus affects the performance of the automatic driving system, real-time safety response and vehicle networking application.
[0064] Therefore, how to obtain the in-vehicle communication data without affecting the normal operation of the in-vehicle communication system is a problem to be solved.
[0065] As can be seen from the above, the existing in-vehicle communication data acquisition has a great impact on in-vehicle communication.
[0066] In view of this, the embodiments of the present application provide a vehicle communication control method, device, equipment and computer readable storage medium, which can solve the problem that the acquisition of existing in-vehicle communication data affects the normal communication of in-vehicle modules.
[0067] Please refer to Figure 1 The step flow chart of the vehicle communication control method provided by an embodiment of the present application is shown in the figure. According to different needs, the order of steps in the flow chart can be changed, and some steps can be omitted. The embodiments of the present application are based on a preset electronic device, which has certain data transmission, data processing and data storage capabilities. Specifically, the electronic device can include a mobile phone, a notebook computer, a gateway device, etc., and the embodiments of the present application do not limit this.
[0068] Please refer to Figure 1 The vehicle communication control method can include the following steps:
[0069] Step 101: Listen to and intercept the data transmission request sent by the first module; the data transmission request is used to request to send a data packet to the second module; the first module and the second module include electronic control units in the vehicle.
[0070] Among them, the first module and the second module can be any two different electronic control units in the vehicle, and the first module and the second module can be connected through a preset vehicle-mounted network. The communication protocol adopted by the vehicle-mounted network can include vehicle-mounted Ethernet, CAN, FlexRay, etc., and the present application does not limit this. Preferably, considering the vehicle-mounted Ethernet as an emerging in-vehicle communication technology, it has the advantages of high bandwidth, low delay, etc., and can carry large-scale data interaction, especially suitable for high-precision sensors, automatic driving systems and vehicle-mounted entertainment systems, etc. The scene has higher requirements for data transmission. In addition, the standardization and openness of vehicle-mounted Ethernet also provide greater possibility for the cooperation of the automobile industry chain. Through a unified data transmission platform, not only can the compatibility between various systems in the vehicle be improved, but also the deep cooperation between automobile manufacturers and technology suppliers can be promoted. Therefore, the vehicle-mounted Ethernet communication technology has great potential in meeting the needs of intelligent driving, Internet of Vehicles, and high-bandwidth, low-delay data transmission, etc. It is a better choice for in-vehicle communication in the intelligent era. The vehicle-mounted network security analysis tool in the related art, such as CANOE, AutoSuite, etc., is generally developed for traditional in-vehicle communication technologies such as CAN and FlexRay, and it cannot be directly adapted to the high-speed, high-bandwidth network environment of vehicle-mounted Ethernet. There may be problems such as high modification cost, high communication delay, and unusable module functions after modification. Therefore, the embodiments of the present application preferably adapt to the communication control in the vehicle-mounted Ethernet environment.
[0071] The first module and the second module are connected through data transmission to realize specific functions of the vehicle, such as automatic driving, vehicle entertainment, vehicle networking, and information sharing in the vehicle. In the embodiment of the application, the vehicle network is monitored by the electronic device, and when the data transmission request from the first module to the second module is monitored, the data transmission request is intercepted, that is, the data transmission request is not directly transmitted from the first module to the second module.
[0072] Step 102: determining the first address of the second module according to the data transmission request.
[0073] The first address is used to specifically represent the network address of the second module, and other in-vehicle modules and / or external devices can access the second device through the first address. Specifically, the first address can be an IP address or a MAC (Media Access Control Address) address of the second module. It can be understood that the information of the receiver of the data transmission request is generally specified in the data transmission request. Therefore, the address of the receiver expected by the data transmission request is read from the data transmission request as the first address of the second module.
[0074] Step 103: replacing the address of the preset first network card device with the first address to obtain a first replaced device.
[0075] The preset first network card device includes a device with communication capability, and the first network card device can be used as a network node to access and be accessed by other network addresses. The first network card device is communicatively connected to the electronic device. The address of the first network card device is the network address of the network card device, such as an IP address or a MAC address, and other in-vehicle modules and / or external devices can access the first network card device through the network address of the first network card device.
[0076] The first network card device can be controlled by the electronic device based on the embodiment of the application, and the address of the preset first network card device is replaced with the first address to realize the address camouflage of the first network card device, thereby realizing the deception of the first replaced device to the first module, so that the first module believes that it is directly communicating with the expected communication object (such as the second module), and in fact, the communication process between the first module and the second module will be monitored and manipulated by the first replaced device.
[0077] Since the address of the first replaced device matches the device address to which the data transmission request is expected to be sent, for example, the first address specified in the data transmission request can be 18.117.184.236, and the address of the first network card device can be 18.116.27.25, and the address of the first replaced device is also 18.117.184.236. Therefore, the interception and reception of the data transmission request by the first replaced device are transparent to the first module.
[0078] At the same time, unlike the related art, which requires modification of the configuration of the first module and / or the second module to enable the intermediate network proxy device to uniformly manage the communication functions of the first module and / or the second module, the embodiment of the application modifies the gateway device side without the need for modification of the module configuration rewriting, communication address modification, and other modification work on the first module side in the related art, avoiding the problem of large modification workload and the impact on the normal functions of the vehicle module.
[0079] Step 104: receiving the data packet by the first replaced device.
[0080] Since the address of the first replaced device is the first address specified in the data transmission request, and the data transmission request is intercepted outside the second module, the first replaced device can directly replace the second module to receive the data packet, thereby achieving the capture of the data packet without modification and without affecting the normal functions of the vehicle module.
[0081] Step 105: sending the data packet to the second module.
[0082] Based on the address forgery technology, the data packet for in-vehicle communication performance analysis is captured without affecting the normal communication function between the first module and the second module. Specifically, in order to avoid excessive redundancy of the device, the first replaced device can send the data packet to the second module. It should be noted that in order to avoid excessive coupling of the device, which is not convenient for subsequent maintenance and updating, the electronic device can also be used to obtain the data packet received by the first replaced device, and the electronic device can be used to send the data packet to the second module.
[0083] In order to avoid the analysis of the in-vehicle communication from having a great impact on the communication process itself, thereby affecting the stability and availability of the in-vehicle communication, in some embodiments, a preset network card device is arranged on the communication path between the first module and the second module; wherein the first module and the second module include electronic control units within the vehicle; wherein the preset network card device includes a device with certain communication capabilities and data processing, and the network card device can serve as a network node to access and be accessed by other network addresses, and perform certain processing on the received data. The network card device is in communication connection with the aforementioned electronic device. In order to realize the communication function, the first module and the second module can be respectively provided with network interfaces, and the communication path between the first module and the second module is used to connect the network interface of the first module and the network interface of the second module. That is, the network card device is arranged between the network interface of the first module and the network interface of the second module.
[0084] Optionally, in order to ensure the availability of the communication connection between the network card device and the first module and / or the second module, a network converter can also be arranged between the network card device and the first module and the second module, respectively, so that the acquisition and forwarding of data packets can be realized in a manner different from the network type originally adopted by the first module and the second module. Taking the vehicle Ethernet technology between the first module and the second module as an example, the two ends of the network card device in the embodiment of the application are connected to the network interface of the first module and the network interface of the second module through Ethernet converters. Among them, the first module and the second module can originally adopt gigabit vehicle Ethernet, while the network card device and the first module and the second module can adopt ordinary Ethernet, and the Ethernet converter can include a converter for converting between ordinary Ethernet and gigabit vehicle Ethernet, which is not limited by the application.
[0085] By arranging the network card device on the communication path between the first module and the second module, the direct communication connection between the first module and the second module is isolated, thereby facilitating the capture of communication data (such as the aforementioned data packets) between the first module and the second module through the network card device.
[0086] As shown in Figure 2 The vehicle communication control method includes:
[0087] Step 201: listening to the communication path by a preset first network card device.
[0088] The first network card device is preset to listen to data transmission on a communication path between the first module and the second module. The definition of the first network card device can refer to step 103. Optionally, considering that the frequency and data volume of in-vehicle communication can be large in a vehicle network environment, in order to avoid wasting listening and data processing resources, the target type of data transmitted on the communication path can be listened to according to the management requirements of in-vehicle communication, and other types of data can be ignored.
[0089] Step 202: If the data transmission request sent by the first module is listened to, the data transmission request is intercepted through the first network card device; wherein the data transmission request is used to request to send a data packet to the second module.
[0090] The network card device is arranged between the first module and the second module, and the data transmission request between the first module and the second module passes through the network card device. If the data transmission request is listened to, the data transmission request is intercepted through the network card device, so as to avoid that the data transmission request is directly sent to the second module, and the data packet is captured to analyze the performance of in-vehicle communication. At the same time, since the in-vehicle module side does not need to be modified in the embodiment of the application, the interception and capture action of the network card device is not perceived by the first module and / or the second module, and the influence on the normal function of the vehicle is avoided.
[0091] Step 203: According to the data transmission request, the first address of the second module is determined.
[0092] Step 203 is substantially the same as step 102, and will not be described here.
[0093] Step 204: The address of the first network card device is replaced by the first address to obtain a first replaced device.
[0094] Step 204 is substantially the same as step 103, and will not be described here.
[0095] Step 205: The data packet is received through the first replaced device.
[0096] Step 205 is substantially the same as step 104, and will not be described here.
[0097] Step 206: The data packet is sent to the second module.
[0098] Step 206 is substantially the same as step 105, and will not be described here.
[0099] In some embodiments, considering that there can be a requirement for the identity legitimacy of the second module as a data receiver for the data packet sender, in order to ensure normal transmission of the data packet between the first module and the second module, as shown in Figure 3 The vehicle communication control method includes the following steps.
[0100] Step 301: Listen to and intercept a data transmission request sent by a first module; the data transmission request is used to request to send a data packet to a second module; the first module and the second module include electronic control units in a vehicle.
[0101] Wherein, step 301 is substantially the same as the aforementioned step 101, which will not be repeated here.
[0102] Step 302: Determine a first address of the second module according to the data transmission request.
[0103] Wherein, step 302 is substantially the same as the aforementioned step 102, which will not be repeated here.
[0104] Step 303: Replace the address of a preset first network card device with the first address to obtain a first replaced device.
[0105] Wherein, step 303 is substantially the same as the aforementioned step 103, which will not be repeated here.
[0106] Step 304: Receive the data packet through the first replaced device.
[0107] Wherein, step 304 is substantially the same as the aforementioned step 104, which will not be repeated here.
[0108] Step 305: Send the data packet to a preset second network card device through the first replaced device; the second network card device and the first network card device are communicatively connected; the second network card device is pre-deployed on a communication path between the first module and the second module.
[0109] Wherein, the preset second network card device includes a device with communication capability, and the first network card device can serve as a network node to access and be accessed by other network addresses. The second network card device is communicatively connected with the aforementioned electronic device. In order to avoid abnormal data acquisition process between the first module and the second module when a single network card device fails, the first network card device and the second network card device are communicatively connected, the first network card device is communicatively connected with the first module, and the second network card device is communicatively connected with the second module, so that the first network card device is used to listen to and receive data, and the second network card device is used to send data.
[0110] Step 306: Obtain a second address of the first module.
[0111] Similar to the function of the first address, the second address is used to specifically represent the network address of the first module, and other in-vehicle modules and / or external devices can access the first device through the second address. Considering that when communicating, the sender of the communication request generally carries its own identity information in the communication request, the sender address of the data transmission request can be read to obtain the second address.
[0112] Step 307: Replace the preset address of the second network card device with the second address to obtain a second replaced device.
[0113] Considering that in some communication scenarios, the receiver of the communication request verifies the identity of the sender of the request, such as consistency verification of the identity of the request sender recorded in the data transmission request and the identity of the object actually sending the request, if the two identity information is inconsistent, it may be judged that the request is illegal, and the data transmission request is rejected or other error operation. However, in the scenario where the first module directly communicates with the second module, the above identity inconsistency problem does not occur, but since the second network card device is address spoofed in the embodiment of the application, in order to ensure the normal transmission of the data packet between the first module and the second module, the second address of the sender, i.e. the first module, is used to spoof the address of the second preset network card device when transmitting the data packet to the second module, to obtain a second replaced device.
[0114] Step 308: Send the data packet to the second module through the second replaced device.
[0115] The second replaced device obtained by address spoofing again sends the data packet to the second module, so that the second replaced device can pass the identity consistency verification of the request sender through the second module, and ensure the normal transmission of the data packet between the first module and the second module.
[0116] In some embodiments, in order to ensure the stability and reliability of the vehicle, based on the in-vehicle communication data, the communication between the first module and the second module based on the communication data can be analyzed to ensure the safety and stability of the vehicle, such as Figure 4 As shown in the figure, the vehicle communication control method comprises:
[0117] Step 401: Listen to and intercept a data transmission request sent by a first module; the data transmission request is used to request to send a data packet to a second module; the first module and the second module comprise an electronic control unit in the vehicle.
[0118] Wherein, step 401 is substantially the same as the aforementioned step 101, which will not be repeated here.
[0119] Step 402: determining a first address of the second module according to the data transmission request.
[0120] Wherein, step 402 is substantially the same as the aforementioned step 102, which will not be repeated here.
[0121] Step 403: replacing the preset address of the first network card device with the first address to obtain a first replaced device.
[0122] Wherein, step 403 is substantially the same as the aforementioned step 103, which will not be repeated here.
[0123] Step 404: receiving the data packet through the first replaced device.
[0124] Wherein, step 404 is substantially the same as the aforementioned step 104, which will not be repeated here.
[0125] Step 405: analyzing the data packet to obtain an analysis result of the communication condition between the first module and the second module.
[0126] Wherein, considering that the performance of in-vehicle communication has a great influence on the performance of the vehicle, the analysis result of the communication condition between the first module and the second module can be obtained by analyzing the data packet, so as to facilitate the operation and maintenance management of the vehicle according to the analysis result. Specifically, the analysis result can be used to represent the performance of the communication condition in a preset performance dimension. The preset performance dimension can be determined according to the management requirements of in-vehicle communication. For example, when there is a management requirement for the security of in-vehicle communication, the preset performance dimension can include a feature dimension representing the communication security performance, such as a communication encryption type, a communication encryption complexity, etc. Correspondingly, when there is a management requirement for the quality of in-vehicle communication, the preset performance dimension can include a feature dimension representing the communication quality performance, such as a communication delay, a communication stability, a packet loss rate, etc. When the preset performance dimension includes a feature dimension representing the communication security performance, the data packet can be processed, such as data replay, data tampering, data packet capture, etc., to simulate the test of the communication security between the first module and the second module, and to prompt the accuracy of the analysis result.
[0127] Optionally, considering that the captured data packet may have a large amount of data, the data type that needs to be analyzed can be determined according to the vehicle management requirements, the data packet can be extracted according to the data type, and the performance of the communication process between the first module and the second module in the aforementioned preset performance dimension can be analyzed according to the extracted data.
[0128] Step 406: sending the data packet to the second module.
[0129] The step 406 is substantially the same as the foregoing step 105, and thus will not be described herein.
[0130] In some embodiments, considering that there are certain performance requirements for in-vehicle communication in order to ensure the stability and reliability of the vehicle, in order to more accurately analyze the communication between the first module and the second module, thereby providing a reference for vehicle control and operation and maintenance management, such as Figure 5 As shown in the figure, the vehicle communication control method comprises:
[0131] Step 501: listening to and intercepting a data transmission request sent by a first module; the data transmission request is used to request to send a data packet to a second module; the first module and the second module comprise electronic control units in the vehicle.
[0132] The step 501 is substantially the same as the foregoing step 101, and thus will not be described herein.
[0133] Step 502: determining a first address of the second module according to the data transmission request.
[0134] The step 502 is substantially the same as the foregoing step 102, and thus will not be described herein.
[0135] Step 503: replacing a preset address of a first network card device with the first address to obtain a first replaced device.
[0136] The step 503 is substantially the same as the foregoing step 103, and thus will not be described herein.
[0137] Step 504: receiving the data packet through the first replaced device.
[0138] The step 504 is substantially the same as the foregoing step 104, and thus will not be described herein.
[0139] Step 505: determining a performance standard corresponding to a communication process between the first module and the second module.
[0140] The performance standard is used to represent a performance standard required by the in-vehicle communication process when the vehicle is stable, reliable and safe. Specifically, the performance standard can comprise at least one preset performance characteristic dimension and a performance characteristic standard value corresponding to the performance characteristic dimension. It can be understood that when the performance characteristic value of the communication process between the first module and the second module in the corresponding performance characteristic dimension reaches or meets the performance characteristic standard value corresponding to the performance characteristic dimension, the communication process between the first module and the second module can be determined as the performance standard.
[0141] For example, the preset performance dimension can include a feature dimension representing communication security performance, such as a communication encryption type, a communication encryption complexity, and the like. Optionally, the preset performance dimension can also include a feature dimension representing communication quality performance, such as a communication delay, a communication stability, a packet loss rate, and the like.
[0142] With the development of vehicle-related hardware and software technologies, in-vehicle communication scenarios are increasingly diversified, and different communication scenarios can correspond to different performance standards. Therefore, in some embodiments, the determination process of the performance standard further includes:
[0143] According to the type of at least one of the first module, the second module, and the data packet, the communication scenario information corresponding to the data transmission request is determined, so that the performance standard is determined according to the communication scenario information. Different communication scenarios are used to implement different functions of the vehicle.
[0144] The type of the first module and the second module can include the function of the first module and the second module in the vehicle, such as power system control, vehicle entertainment, and the like. Optionally, the type of the first module and the second module can also be determined according to the domain in which they are located in the vehicle, such as a control domain, a driving domain, and the like. The type of the data packet is used to represent the function of the information contained in the data packet in vehicle control, such as automatic driving, vehicle entertainment, Internet of Vehicles, in-vehicle information sharing, and the like.
[0145] In the embodiments of the present application, the performance standards for in-vehicle communication under a plurality of preset communication scenarios can be calibrated, so that the performance standard corresponding to the matched communication scenario is selected according to the matching result of the currently determined communication scenario information and each preset communication scenario.
[0146] Step 506: Analyzing the data packet according to the performance standard to obtain an analysis result of the communication condition between the first module and the second module.
[0147] Specifically, the data packet is analyzed according to the preset performance dimension included in the performance standard to obtain the performance of the communication condition between the first module and the second module under the preset performance dimension, and then the performance is compared with the performance characteristic standard value corresponding to the preset performance dimension recorded in the performance standard to obtain the analysis result corresponding to the communication condition.
[0148] Step 507: Sending the data packet to the second module.
[0149] Step 507 is substantially the same as the aforementioned step 105, and will not be described here.
[0150] In some embodiments, considering that the analysis manner of in-vehicle communication data in the related art is relatively single, it is difficult to provide strong support for vehicle control and operation and maintenance management, such as Figure 6 As shown in FIG. 6, the vehicle communication control method includes:
[0151] Step 601: listening to and intercepting a data transmission request sent by a first module; the data transmission request is used to request to send a data packet to a second module; the first module and the second module include electronic control units in a vehicle.
[0152] Wherein, step 601 is substantially the same as the aforementioned step 101, which will not be repeated here.
[0153] Step 602: determining a first address of the second module according to the data transmission request.
[0154] Wherein, step 602 is substantially the same as the aforementioned step 102, which will not be repeated here.
[0155] Step 603: replacing a preset address of a first network card device with the first address to obtain a first replaced device.
[0156] Wherein, step 603 is substantially the same as the aforementioned step 103, which will not be repeated here.
[0157] Step 604: receiving the data packet through the first replaced device.
[0158] Wherein, step 604 is substantially the same as the aforementioned step 104, which will not be repeated here.
[0159] Step 605: determining a performance standard corresponding to a communication process between the first module and the second module.
[0160] Wherein, step 605 is substantially the same as the aforementioned step 505, which will not be repeated here.
[0161] Step 606: determining a target performance indicator and a target data type according to the performance standard; wherein, if the target performance indicator includes an indicator representing communication security performance, the target data type includes a type representing a level of data in a network model corresponding to the vehicle.
[0162] The target performance indicator is used to represent a performance indicator value required to be reached by the in-vehicle communication process when the vehicle is stable, reliable and safe. Specifically, the target performance indicator includes a target performance dimension and a performance standard value corresponding to the target performance dimension. For example, the performance standard can be a standard for evaluating the communication quality of in-vehicle communication, and the target performance indicator can include indicators representing communication instructions, such as time delay, packet loss rate, retransmission rate, etc. Correspondingly, considering the complexity of the vehicle-mounted network environment, the communication data, such as the information contained in the data packet, contains more information, and the types of data that can be evaluated by different performance indicators may differ. Therefore, in the embodiments of the present application, in order to improve the efficiency of performance analysis, the target data type of the data that needs to be analyzed is determined according to the performance standard. In particular, considering that in the related art, the gateway device generally obtains relatively low-level communication data, such as the physical layer, the data link layer, and the network layer, which has little reference significance for the control of the vehicle at the business level and the performance level. Specifically, when analyzing the in-vehicle communication security performance, based on the different functions of the data transmitted at each level of the network model of the vehicle-mounted network, if the target performance indicator includes an indicator representing the communication security performance, the target data type includes a type representing the level of the data in the network model corresponding to the vehicle.
[0163] The network model corresponding to the vehicle is used to represent a standardized framework for dividing the vehicle-mounted network communication protocol into multiple different levels. The network model corresponding to the vehicle can include an OSI (Open System Interconnect) seven-layer model, a TCP (Transmission Control Protocol) / IP four-layer model, etc., and the present application does not limit this. Among them, the composition of the OSI seven-layer module includes the following: the application layer: the top layer in the network architecture, providing communication services between the user interface and the application program. The presentation layer: this layer is responsible for the formatting, encryption and compression of data to ensure that the exchange of data between different systems is effective and secure. The session layer: the session layer manages the communication session between application programs, responsible for establishing, maintaining and terminating the session. This layer also provides data synchronization and checkpoint recovery functions to ensure the integrity and continuity of communication. The transport layer: the transport layer provides end-to-end data transmission services for application programs, responsible for data segmentation, transmission control, error recovery and flow control. TCP and UDP (User Datagram Protocol) are mainly used to implement these functions. The network layer: the network layer is responsible for the routing and forwarding of data packets, as well as addressing and congestion control in the network. The data link layer: the data link layer provides point-to-point data transmission services, responsible for converting raw bit streams into data frames, and detecting and correcting errors that occur during transmission. It also controls the way of accessing the physical medium, as well as the transmission and reception of data frames. The physical layer: the physical layer transmits raw bit streams on the physical medium, defining the specifications of the hardware devices connected to the host and the transmission medium. Ensure that the bit stream can be accurately transmitted in the network, such as through Ethernet, optical fiber and radio waves, etc. Correspondingly, the TCP / IP four-layer model includes the application layer, the transport layer, the network layer, and the network interface layer, and the definition and function of each layer can refer to the aforementioned seven-layer model.
[0164] Based on the functions of each level, if the target performance indicator includes an indicator representing the communication security performance, the data to be analyzed can come from the transport layer in the network model of the vehicle. Thus, by analyzing the data transmitted by the transport layer, the analysis result of the communication security performance is obtained.
[0165] Step 607: data extraction is performed on the data packet according to the target data type, and the data to be analyzed is obtained.
[0166] Among them, the data of the target data type in the data packet is extracted to obtain the data to be analyzed.
[0167] Step 608: analyze the data to be analyzed according to the target performance indicator, and obtain the analysis result of the communication between the first module and the second module.
[0168] The performance characteristic value of the to-be-analyzed data is extracted according to the performance dimension specified by the target performance index, and the performance characteristic value is compared with the performance standard value corresponding to the performance dimension specified by the target performance index, to obtain an analysis result. Specifically, if the performance standard value is greater than the performance standard value, it indicates that the communication between the first module and the second module meets the target performance index. It can be understood that when the performance characteristic value is extracted, the to-be-analyzed data can be processed, such as data playback, data testing, data editing, etc., and the embodiments of the present application do not limit this.
[0169] Step 609: sending the data packet to the second module.
[0170] Step 609 is substantially the same as step 105, and will not be repeated here.
[0171] In some embodiments, in order to improve the flexibility and user experience of in-vehicle communication analysis, as shown in FIG. 6, the vehicle communication control method includes: Figure 7
[0172] Step 701: listening to and intercepting a data transmission request sent by a first module; the data transmission request is used to request to send a data packet to a second module; the first module and the second module include electronic control units in a vehicle.
[0173] Step 701 is substantially the same as step 101, and will not be repeated here.
[0174] Step 702: determining a first address of the second module according to the data transmission request.
[0175] Step 702 is substantially the same as step 102, and will not be repeated here.
[0176] Step 703: replacing the address of a preset first network card device with the first address to obtain a first replaced device.
[0177] Step 703 is substantially the same as step 103, and will not be repeated here.
[0178] Step 704: receiving the data packet through the first replaced device.
[0179] Step 704 is substantially the same as step 104, and will not be repeated here.
[0180] Step 705: showing an interface corresponding to the data packet to a user.
[0181] The data packet can be displayed to the user through a preset visual interface. Optionally, the data packet can be analyzed in terms of content, and the analysis result, such as a data packet abstract or a directory, can be displayed to the user. The user can be a person with experience in data analysis and / or network operation, such as an operation and management personnel of the in-vehicle network.
[0182] In step 706, a data processing instruction input by the user is received in response to the data packet; the data processing instruction includes an instruction selected by the user from preset candidate processing instructions; and the candidate processing instructions include at least one of data replay, data tampering, data interception, and data capture.
[0183] The candidate processing instructions can be displayed through the visual interface in step 705. The performance standard of the vehicle can be fixed and mechanical, while the management requirement of the user for the vehicle communication can be dynamically changed, and the analysis of the vehicle communication can have a certain knowledge threshold. Therefore, in the embodiment of the present application, the preset candidate processing instructions are displayed for the user to select individually, so as to improve the flexibility and individuality of the vehicle communication management. The candidate processing instructions can include data replay, data tampering, data interception, and data capture, which are commonly used in communication security analysis, so as to improve the efficiency of the communication process performance analysis.
[0184] In step 707, the data packet is analyzed according to the data processing instruction, and an analysis result of the communication between the first module and the second module is obtained.
[0185] The data packet is processed according to the data processing instruction, and the processing result is taken as the analysis result. The data packet is analyzed in the manner of user-specified instruction, the vehicle communication is reversed and analyzed on demand, the flexibility and individuality of the vehicle communication management are improved, and the management efficiency and user experience are improved.
[0186] In step 708, the analysis result is returned to the user.
[0187] The analysis result can be displayed through the visual interface, so as to improve the efficiency and user experience of the vehicle communication management.
[0188] In step 709, the data packet is sent to the second module.
[0189] The step 709 is substantially the same as the step 105, and will not be described herein.
[0190] Please refer to Figure 8A schematic diagram of a hardware structure of a vehicle communication control apparatus 80 is provided for the embodiments of the present application. As shown in Figure 8 The vehicle communication control apparatus 80 can include:
[0191] An intercepting module 801 is configured to listen to and intercept a data transmission request sent by a first module, the data transmission request being used to request sending a data packet to a second module, and the first module and the second module including electronic control units of a vehicle.
[0192] A determining module 802 is configured to determine a first address of the second module according to the data transmission request.
[0193] A replacing module 803 is configured to replace a preset first network card device address with the first address to obtain a first replaced device.
[0194] A receiving module 804 is configured to receive the data packet through the first replaced device.
[0195] A sending module 805 is configured to send the data packet to the second module.
[0196] Please refer to Figure 9 A schematic diagram of a hardware structure of a vehicle communication control device 90 is provided for the embodiments of the present application. As shown in Figure 9 The vehicle communication control device 90 can include a processor 901 and a memory 902. The memory 902 is configured to store one or more computer programs 903. The one or more computer programs 903 are configured to be executed by the processor 901. The one or more computer programs 903 include instructions which can be used to implement the vehicle communication control method described above in the vehicle communication control device 90.
[0197] It can be understood that the structure illustrated in the embodiments does not constitute a specific limitation on the vehicle communication control device 90. In other embodiments, the vehicle communication control device 90 can include more or fewer components than those shown, or combine certain components, or split certain components, or different component arrangements.
[0198] The processor 901 can include one or more processing units, e.g., the processor 901 can include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices or integrated in one or more processors.
[0199] The processor 901 can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 901 is a cache memory. The memory can hold instructions or data that the processor 901 has just used or is using in a loop. If the processor 901 needs to use the instructions or data again, it can call them directly from the memory. This avoids repeated access and reduces the latency of the processor 901, thus improving the efficiency of the system.
[0200] In some embodiments, the processor 901 can include one or more interfaces. The interfaces can include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface, etc.
[0201] In some embodiments, the processor 901 is configured to execute single instruction multiple data (SIMD), very long instruction word (VLIW), etc. acceleration schemes.
[0202] In some embodiments, the memory 902 can include high-speed random access memory and can also include nonvolatile memory, such as a hard disk, a memory card, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash memory device, or other volatile solid-state memory device.
[0203] The embodiment also provides a computer readable storage medium, which stores computer instructions, when the instructions are executed on a processor, the vehicle communication control device executes the above-mentioned related method steps to realize the vehicle communication control method in the above-mentioned embodiment.
[0204] In the embodiment, the vehicle communication control device and the computer readable storage medium are used to execute the corresponding method provided above, and thus the beneficial effects achieved by the vehicle communication control device and the computer readable storage medium can refer to the beneficial effects of the corresponding method provided above, which will not be described here.
[0205] In practical applications, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0206] In the several embodiments provided by the present application, the disclosed device and method can be implemented by other ways. For example, the device embodiment described above is only schematic. For example, the division of the modules or units is only a logical function division, and there can be another division manner in actual implementation. For example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different units, can be indirect couplings or communication connections through some interfaces, devices or units, and can be electrical, mechanical or other forms.
[0207] The units described as separate components can or can not be physically separate, and the components displayed as units can be one physical unit or multiple physical units, that is, can be located in one place, or can be distributed in multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
[0208] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The above integrated unit can be realized in the form of hardware, or in the form of software functional unit.
[0209] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application essentially or say the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The software product is stored in a storage medium, including a number of instructions to make a device (which can be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the method described in various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0210] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any change or replacement within the technical scope disclosed in the present application should be covered within the protection scope of the present application.
Claims
1. A vehicle communication control method, characterized in that: The method comprises: monitoring and intercepting a data transmission request sent by a first module; the data transmission request is used to request sending a data packet to a second module; the first module and the second module comprise an electronic control unit in a vehicle; acquiring a first address of the second module according to the data transmission request; Replacing the address of a preset first network card device with the first address to obtain a first replaced device; receiving the data packet through the first replaced device; Sending the data packet to the second module; The process of sending the data packet to the second module includes: Sending the data packet to a preset second network card device through the first replaced device; Obtaining a second address of the first module; Replacing the preset address of the second network card device with the second address to obtain a second replaced device; The data packet is sent to the second module through the second replaced device.
2. The method according to claim 1, characterized in that The first network card device is pre-deployed on a communication path between the first module and the second module; and the interception process of the data transmission request includes: monitoring the communication path through the first network card device; If the data transmission request is monitored, the data transmission request is intercepted by the first network card device.
3. The method according to claim 1, characterized in that The second network card device is communicatively connected to the first network card device; the second network card device is pre-deployed on the communication path between the first module and the second module.
4. The method according to claim 1, wherein The method further comprises: The data packet is analyzed to obtain an analysis result of the communication status between the first module and the second module.
5. The method according to claim 4, characterized in that The process of determining the analysis results includes: determining a performance standard corresponding to a communication process between the first module and the second module; The data packet is analyzed according to the performance standard to obtain the analysis result.
6. The method according to claim 5, characterized in that The process of determining the analysis results further includes: Determining a target performance indicator and a target data type based on the performance standard; wherein, if the target performance indicator includes an indicator representing communication security performance, the target data type includes a type representing the level of the data in the network model corresponding to the vehicle; Extracting data from the data packet according to the target data type to obtain data to be analyzed; The data to be analyzed is analyzed according to the target performance indicator to obtain the analysis result.
7. The method according to claim 5, characterized in that The performance standard determination process also includes: Determining communication scenario information corresponding to the data transmission request according to a type of at least one of the first module, the second module, and the data packet; The performance standard is determined according to the communication scenario information.
8. The method according to claim 5, characterized in that The process of determining the analysis results further includes: Displaying the interface corresponding to the data packet to the user; In response to a data processing instruction input by the user for the data packet, the data processing instruction includes an instruction selected by the user based on preset candidate processing instructions; the candidate processing instruction includes at least one of data replay, data tampering, data interception, and data capture; Processing the data packet according to the data processing instruction to obtain the analysis result; The method further comprises: The analysis result is returned to the user.
9. A vehicle communication control device, characterized in that: The vehicle communication control device includes: an interception module, configured to monitor and intercept a data transmission request sent by the first module; the data transmission request is used to request sending a data packet to the second module; the first module and the second module comprise an electronic control unit of the vehicle; a determining module, configured to determine a first address of the second module according to the data transmission request; A replacement module, configured to replace the address of a preset first network card device with the first address to obtain a first replaced device; a receiving module, configured to receive the data packet through the first replaced device; A sending module, configured to send the data packet to the second module; The sending module sends the data packet to the second module, including: Sending the data packet to a preset second network card device through the first replaced device; Obtaining a second address of the first module; Replacing the preset address of the second network card device with the second address to obtain a second replaced device; The data packet is sent to the second module through the second replaced device.
10. A vehicle communication control device, comprising a processor and a memory, characterized in that: The memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the vehicle communication device executes the vehicle communication control method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, which, when executed on a processor, cause the processor to execute the vehicle communication control method according to any one of claims 1 to 8 .
Citation Information
Patent Citations
Cross-network data transmission method, isolation equipment, device and medium
CN115001846A
Method and device for transferring data, electronic equipment and vehicle
CN115695490A