Vehicle communication control method, device and equipment and computer readable storage medium

By monitoring and intercepting data transmission requests of in-vehicle modules and using address disguise to obtain data packets, the existing in-vehicle communication management solution affects the normal communication of in-vehicle modules is solved, and stable and safe in-vehicle communication data acquisition and analysis is achieved.

CN120017697AActive Publication Date: 2025-05-16ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510236785.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-05-16
Estimated Expiration
2045-02-28

AI Technical Summary

Technical Problem

The existing in-vehicle communication management scheme will affect the normal communication of in-vehicle modules, resulting in data transmission delays and system instability.

Method used

By listening and intercepting the data transmission request sent by the first module, the address of the second module is determined, and the data packet is obtained through the address disguise, avoiding the transformation of the in-vehicle module.

Benefits of technology

It realizes the acquisition and analysis of in-vehicle communication data without affecting the normal communication of in-vehicle modules, and improves the stability and safety of in-vehicle communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017697A_ABST
    Figure CN120017697A_ABST
Patent Text Reader

Abstract

The invention relates to the field of vehicle communication, in particular to a vehicle communication control method, device and equipment and a computer readable storage medium. The method comprises the following steps: monitoring and intercepting a data transmission request sent by a first module; the data transmission request is used for requesting to send a data packet to the second module; the first module and the second module comprise an electronic control unit of the vehicle; determining a first address of the second module according to the data transmission request; replacing the address of a preset network card device with the first address to obtain a first replaced device; and receiving the data packet through the first replaced device, and sending the data packet to the second module. The data packet is captured through the device with the address replaced, normal communication between the electronic control units is not affected, and stability of communication in the vehicle can be guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle communication technology, and in particular to a vehicle communication control method, device, equipment and computer-readable storage medium. Background Art

[0002] With the advent of the era of vehicle intelligence and information technology, the amount and complexity of in-vehicle communication data are increasing, and the management requirements for in-vehicle communication are also increasing.

[0003] In the related technology, the capture of in-vehicle communication data is achieved by setting up intermediate proxy devices such as gateways and middleware in the vehicle network. This requires the modification of the software and hardware of vehicle modules such as electronic control units, and may also cause data transmission delays, thereby affecting the performance of autonomous driving systems, real-time safety responses, and vehicle networking applications.

[0004] Therefore, a vehicle communication management solution is needed that does not affect normal vehicle communication. Summary of the invention

[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 will affect the normal communication of in-vehicle modules.

[0006] In a first aspect, an embodiment of the present application provides a vehicle communication control method, the method comprising: Monitoring 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 an electronic control unit in a vehicle; Determining 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; The data packet is sent to the second module.

[0007] Different from the related art, when analyzing the in-vehicle communication data, the acquisition of the data packet requires the modification of the first module, which has a high modification cost and may affect the normal communication function of the first module. Through the above scheme, the address of the preset network card device is disguised according to the first address read from the data transmission request to obtain the first replaced device. Therefore, the intercepted data transmission request is directly sent to the first replaced device to achieve the acquisition of the data packet and send the data packet to the second module, so as not to affect the normal communication process between the in-vehicle modules. The data packet acquisition process does not require the modification of the in-vehicle module and is imperceptible to the first module, so it will not affect the normal communication function of the first module, and can ensure the stability and security of the in-vehicle communication.

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

[0009] In some embodiments, the method further comprises: The data packet is sent to a preset second network card device through the first replaced device; the second network card device is communicatively connected 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; Obtaining a second address of the first module; Replacing the address of a preset 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.

[0010] In some embodiments, 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.

[0011] In some embodiments, the method further comprises: 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.

[0012] In some embodiments, the method further comprises: Determine 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 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.

[0013] In some embodiments, the method further comprises: Determine the communication scenario information corresponding to the data transmission request according to the 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.

[0014] In some embodiments, the method further comprises: 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; In some embodiments, the method further comprises: The analysis result is returned to the user.

[0015] In a second aspect, an embodiment of the present application further provides a vehicle communication control device, including: An interception module, used to monitor and intercept a 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 an electronic control unit of the vehicle; a determination module, configured to determine a first address of the second module according to the data transmission request; A replacement module, used for replacing 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 is used to send the data packet to the second module.

[0016] In a third aspect, an embodiment of the present application further provides a vehicle communication control device, which includes a processor and a memory, wherein 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 as described in the first aspect.

[0017] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions. When the computer instructions are executed on a processor, the processor executes the vehicle communication control method as described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 The present invention is a flowchart of the steps of a vehicle communication control method provided according to an embodiment of the present application.

[0019] Figure 2 The present invention is a flowchart of the steps of a vehicle communication control method provided according to another embodiment of the present application.

[0020] Figure 3 The present invention is a flowchart of the steps of a vehicle communication control method provided according to another embodiment of the present application.

[0021] Figure 4 The present invention is a flowchart of the steps of a vehicle communication control method provided according to another embodiment of the present application.

[0022] Figure 5 The present invention is a flowchart of the steps of a vehicle communication control method provided according to another embodiment of the present application.

[0023] Figure 6 The present invention is a flowchart of the steps of a vehicle communication control method provided according to another embodiment of the present application.

[0024] Figure 7 The present invention is a flowchart of the steps of a vehicle communication control method provided according to another embodiment of the present application.

[0025] Figure 8 It is a schematic diagram of the structure of a vehicle communication control device provided according to an embodiment of the present application.

[0026] Fig. 9 It is a schematic diagram of the structure of a vehicle communication control device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that the implementation methods of the present application and the features in the implementation methods can be combined with each other without conflict.

[0028] In the following description, many specific details are set forth to facilitate a full understanding of the present application. The described implementations are only part of the implementations of the present application, rather than all the implementations.

[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

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

[0031] In this application, "at least one" means one or more, and "more" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0032] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0033] With the advent of the era of vehicle intelligence and information technology, such as the application and popularization of autonomous driving technology, the amount of interactive data in vehicle communication is increasing. The efficiency, quality, safety and other performance of vehicle communication will affect the reliability of vehicle operation, thereby affecting the driving experience of the vehicle. Therefore, the data of vehicle communication can be analyzed to obtain the performance of various aspects of vehicle communication. To analyze the data of vehicle communication, it is necessary to obtain the data of vehicle communication first.

[0034] In the related art, based on the needs of in-vehicle communication management, etc., it may be necessary to obtain in-vehicle communication data. In the related art, if the in-vehicle communication data is to be obtained, it is generally necessary to insert a preset transfer device in the vehicle network, and intercept the data packet through the transfer device. The transfer device may include hardware and software devices such as gateways, middleware, and network agents. Specifically, in order to realize the application of the transfer device in the vehicle network, it is necessary in the related art to establish a communication connection between the in-vehicle module and the transfer device, and modify the external address of the in-vehicle module to the address of the transfer device, so that the in-vehicle module receives and sends data through the transfer device. The in-vehicle module can be the ECU (Electronic Control Unit) in the vehicle. The existing problems include at least: first, the workload of modifying the address of the in-vehicle module is large, which will lead to low efficiency in obtaining in-vehicle communication data. Furthermore, unlike other non-vehicle network environments where IP (Internet Protocol) addresses can be dynamically assigned, the communication addresses of in-vehicle modules are generally hard-coded. Modifications to the communication addresses of in-vehicle modules may affect the normal communication functions of the in-vehicle modules, such as causing the communication functions of the in-vehicle modules to be unavailable. In addition, this unified proxy solution for transit equipment may cause data delays, interference, or system instability. This not only affects the normal operation of in-vehicle equipment, but may also cause delays in data transmission, thereby affecting the performance of autonomous driving systems, real-time safety responses, and Internet of Vehicles applications.

[0035] Therefore, how to obtain in-vehicle communication data without affecting the normal operation of the in-vehicle communication system is a problem that needs to be solved.

[0036] It can be seen from the above that there is a problem that the acquisition of in-vehicle communication data has a great impact on in-vehicle communication.

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

[0038] See also Figure 1 , which is a flowchart of the steps of the vehicle communication control method provided by an embodiment of the present application. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted. The embodiment of the present invention is based on a preset electronic device, which has certain data transmission, data processing and data storage capabilities. Specifically, the electronic device may include a mobile phone, a laptop computer, a gateway device, etc., and the embodiment of the present invention is not limited to this.

[0039] See also Figure 1 As shown, the vehicle communication control method may include the following steps: Step 101: monitor 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 an electronic control unit in a vehicle.

[0040] 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 network. The communication protocol adopted by the vehicle network may include vehicle Ethernet, CAN, FlexRay, etc., and the present invention is not limited to this. Preferably, considering that vehicle Ethernet is an emerging in-vehicle communication technology, it has the advantages of high bandwidth and low latency, and can carry large-scale data interaction, and is particularly suitable for scenes with high data transmission requirements such as high-precision sensors, automatic driving systems and in-vehicle entertainment systems. In addition, the standardization and openness of vehicle Ethernet also provide greater possibilities for collaborative cooperation in the automotive industry chain. Through a unified data transmission platform, it can not only improve the compatibility between various systems in the car, but also promote in-depth cooperation between automobile manufacturers and technology suppliers. Therefore, vehicle Ethernet communication technology, as an in-vehicle network, has great potential in meeting the needs of intelligent driving, Internet of Vehicles, and high-bandwidth, low-latency data transmission, and it is a better choice for in-vehicle communication in the era of intelligence. The in-vehicle network security analysis tools in the related art, such as CANOE, AutoSuite, etc., are generally developed for traditional in-vehicle communication technologies such as CAN and FlexRay, and cannot be directly adapted to the high-speed, high-bandwidth network environment of in-vehicle Ethernet. There may be problems such as high modification costs, high communication delays, and unavailable module functions after modification. Therefore, the embodiments of the present application are preferably applicable to communication control in an in-vehicle Ethernet environment.

[0041] The first module and the second module realize specific functions of the vehicle through data transmission, such as automatic driving, in-vehicle entertainment, vehicle networking, in-vehicle information sharing, etc. In the embodiment of the present invention, the in-vehicle network is monitored by the aforementioned electronic device, and when the first module sends a data transmission request to the second module, the data transmission request is intercepted, that is, the data transmission request is not directly transmitted from the first module to the second module.

[0042] Step 102: Determine a first address of the second module according to the data transmission request.

[0043] Among them, the first address is used to specifically characterize 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 the IP address or MAC (Media Access Control Address) address of the second module. It can be understood that the data transmission request generally specifies the information of the recipient of the request. Therefore, the address of the recipient expected by the data transmission request is read from the data transmission request as the first address of the second module.

[0044] Step 103: Replace the preset address of the first network card device with the first address to obtain a first replaced device.

[0045] Among them, the preset first network card device includes a device with communication capability, and the first network card device can serve as a network node to access other network addresses and be accessed by other network addresses. There is a communication connection between the first network card device and the aforementioned 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.

[0046] The first network card device can be controlled by the electronic device on which the embodiment of the present invention is based, and the preset address of the first network card device is replaced with the first address to achieve address disguise of the first network card device, thereby achieving the deception of the first module by the first replaced device, so that the first module believes that it is directly communicating with the expected communication object (such as the second module), while in fact the communication process between the first module and the second module will be monitored and controlled by the first replaced device.

[0047] 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 may be 18.117.184.236, and the address of the first network card device may be 18.116.27.25, then the address of the first replaced device is also 18.117.184.236. Therefore, the first module is unaware of the interception and reception of the data transmission request by the first replaced device.

[0048] At the same time, different from the related art that requires modification of the configuration of the first module and / or the second module so that the intermediate network proxy device can perform unified management of the communication functions for the first module and / or the second module, the embodiment of the present invention performs modification on the gateway device side, without the need to perform modification work such as module configuration rewriting and communication address modification on the first module side as in the related art, thereby avoiding the problem of large modification workload and impact on the normal function of the vehicle module.

[0049] Step 104: Receive the data packet through the first replaced device.

[0050] Since the address of the first replaced device is the first address specified by 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 realizing the capture of the data packet without any modification to the first module, avoiding the impact of the in-vehicle communication situation analysis on the normal function of the in-vehicle module.

[0051] Step 105: Send the data packet to the second module.

[0052] On the basis of imperceptibly capturing the data packet used for in-vehicle communication performance analysis through address forgery technology, the data packet is sent to the second module, so as not to affect the normal communication function between the first module and the second module. Specifically, in order to avoid excessive redundancy of equipment, the data packet can be sent to the second module through the aforementioned first replaced device. It should be noted that in order to avoid excessive coupling of the equipment, which is inconvenient for subsequent maintenance and updating, the data packet received by the first replaced device can also be obtained through the aforementioned electronic device, and the data packet can be sent to the second module through the electronic device.

[0053] In order to avoid the analysis of in-vehicle communication from having a significant impact on the communication process itself, thereby affecting the stability and availability of in-vehicle communication, in some embodiments, a preset network card device is deployed on the communication path between the first module and the second module; wherein the first module and the second module include an electronic control unit in the vehicle; wherein the preset network card device includes a device with certain communication capabilities and data processing, and the network card device can be used as a network node to access other network addresses and provide access to other network addresses, and perform certain processing on the received data. There is a communication connection between the network card device and the aforementioned electronic device. In order to realize the communication function, a network interface can be respectively provided in the first module and the second module, and the communication path between the first module and the second module is used to connect the network interface of the first module with 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.

[0054] 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 may be provided between the network card device and the first module and the second module, respectively, so that the acquisition and forwarding of data packets may be achieved in a manner other than 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 present invention are connected to the network interface of the first module and the network interface of the second module respectively through the Ethernet converter. Among them, Gigabit vehicle Ethernet can be adopted natively between the first module and the second module, and ordinary Ethernet can be adopted between the network card device and the first module and the second module. The Ethernet converter may include a method for converting between ordinary Ethernet and Gigabit vehicle Ethernet, and the present invention does not limit this.

[0055] By setting 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 the communication data (such as the aforementioned data packet) between the first module and the second module through the network card device.

[0056] like Figure 2 As shown, the vehicle communication control method includes: Step 201: monitor the communication path through a preset first network card device.

[0057] The data transmission on the communication path between the first module and the second module is monitored by a preset first network card device. The definition of the first network card device can refer to the aforementioned step 103. Optionally, considering that the frequency and data volume of in-vehicle communication may be large in the vehicle network environment, in order to avoid wasting monitoring and data processing resources, the target type of data transmitted on the communication path can be monitored in a targeted manner according to the management requirements for in-vehicle communication, while ignoring other types of data.

[0058] Step 202: If a data transmission request sent by the first module is monitored, the data transmission request is intercepted by the first network card device; wherein the data transmission request is used to request to send a data packet to the second module.

[0059] Among them, considering that the network card device is set between the first module and the second module, the data transmission requests between the first module and the second module will pass through the network card device. If a data transmission request is monitored, the data transmission request is intercepted by the network card device, thereby avoiding the data transmission request from being sent directly to the second module, facilitating the capture of data packets for subsequent analysis of in-vehicle communication performance. At the same time, since no modification is required on the in-vehicle module side in the embodiment of the present application, the interception and capture actions of the network card device are imperceptible to the first module and / or the second module, avoiding the impact on the normal functions of the vehicle.

[0060] Step 203: Determine a first address of the second module according to the data transmission request.

[0061] Among them, step 203 is substantially the same as the aforementioned step 102 and will not be described again here.

[0062] Step 204: Replace the address of the first network card device with the first address to obtain a first replaced device.

[0063] Among them, step 204 is substantially the same as the aforementioned step 103 and will not be described again here.

[0064] Step 205: Receive the data packet through the first replaced device.

[0065] Among them, step 205 is substantially the same as the aforementioned step 104 and will not be described again here.

[0066] Step 206: Send the data packet to the second module.

[0067] Among them, step 206 is substantially the same as the aforementioned step 105 and will not be described again here.

[0068] In some embodiments, considering that the second module as a data receiver may have requirements for the legitimacy of the identity of the data packet sender, in order to ensure the normal transmission of the data packet between the first module and the second module, Figure 3 As shown, the vehicle communication control method includes: Step 301: monitor 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 an electronic control unit in a vehicle.

[0069] Among them, step 301 is substantially the same as the aforementioned step 101 and will not be described again here.

[0070] Step 302: Determine a first address of the second module according to the data transmission request.

[0071] Among them, step 302 is substantially the same as the aforementioned step 102 and will not be described again here.

[0072] Step 303: Replace the preset address of the first network card device with the first address to obtain a first replaced device.

[0073] Among them, step 303 is substantially the same as the aforementioned step 103 and will not be described again here.

[0074] Step 304: Receive the data packet through the first replaced device.

[0075] Among them, step 304 is substantially the same as the aforementioned step 104 and will not be described again here.

[0076] Step 305: Send the data packet to a preset second network card device through the first replaced device; 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.

[0077] Among them, the preset second network card device includes a device with communication capability, and the first network card device can be used as a network node to access other network addresses and be accessed by other network addresses. There is a communication connection between the second network card device and the aforementioned electronic device. In order to avoid the data acquisition process between the first module and the second module also being abnormal when a single network card device fails, the first network card device can be connected to the second network card device through communication, and then the first network card device can be connected to the first module through communication, and the second network card device can be connected to the second module through communication, so that data can be monitored and received through the first network card device, and data can be sent through the second network card device.

[0078] Step 306: Obtain the second address of the first module.

[0079] Among them, similar to the function of the aforementioned 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.

[0080] Step 307: Replace the preset address of the second network card device with the second address to obtain a second replaced device.

[0081] Considering that in some communication scenarios, the receiver of the communication request will verify the identity of the sender of the request, such as the identity of the sender of the request recorded in the data transmission request and the identity of the object to which the request is actually sent. If the identity information of the two is inconsistent, the request may be judged to be illegal, and the data transmission request may be rejected or other error operations. In the scenario where the first module and the second module communicate directly, the above-mentioned identity inconsistency problem will not occur. However, since the address of the second network card device is forged in the embodiment of the present invention, in order to ensure the normal transmission of the data packet between the first module and the second module, when the data packet is transmitted to the second module, the address of the second preset network card device is forged according to the second address of the sender, that is, the first module, to obtain the second replaced device.

[0082] Step 308: Send the data packet to the second module through the second replaced device.

[0083] The second replaced device obtained by address forgery again sends the data packet to the second module, so that the second replaced device can verify the identity consistency of the request sender through the second module, thereby ensuring the normal transmission of the data packet between the first module and the second module.

[0084] In some embodiments, in order to ensure the stability and reliability of the vehicle, after obtaining the in-vehicle communication data, the communication status between the first module and the second module can be analyzed based on the communication data, so as to ensure the safety and stability of the vehicle operation. Figure 4 As shown, the vehicle communication control method includes: Step 401: monitor 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 an electronic control unit in a vehicle.

[0085] Among them, step 401 is substantially the same as the aforementioned step 101 and will not be described again here.

[0086] Step 402: Determine a first address of the second module according to the data transmission request.

[0087] Among them, step 402 is substantially the same as the aforementioned step 102 and will not be described again here.

[0088] Step 403: Replace the preset address of the first network card device with the first address to obtain a first replaced device.

[0089] Among them, step 403 is substantially the same as the aforementioned step 103 and will not be described again here.

[0090] Step 404: Receive the data packet through the first replaced device.

[0091] Among them, step 404 is substantially the same as the aforementioned step 104 and will not be described again here.

[0092] Step 405: Analyze the data packet to obtain analysis results of the communication status between the first module and the second module.

[0093] Among them, considering that the performance of in-vehicle communication has a great influence on the performance of the vehicle, the analysis result of the communication situation 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 characterize the performance of the communication situation under the preset performance dimension. The preset performance dimension can be determined according to the management requirements for in-vehicle communication. For example, when there is a management requirement for in-vehicle communication security, the preset performance dimension may include a characteristic dimension that characterizes the communication security performance, such as the communication encryption type, the communication encryption complexity and other characteristic dimensions. Correspondingly, when there is a management requirement for in-vehicle communication quality, the preset performance dimension may include a characteristic dimension that characterizes the communication quality performance, such as the communication delay, the communication stability, the packet loss rate and other characteristic dimensions. Among them, when the preset performance dimension includes a characteristic dimension that characterizes the communication security performance, the data packet can be subjected to data processing such as data replay, data tampering, data capture, etc., to simulate the communication security between the first module and the second module and prompt the accuracy of the analysis result.

[0094] Optionally, considering that the captured data packets may be large in size, the type of data that needs to be analyzed can be determined based on vehicle management requirements, the data packets can be extracted based on the data type, and the performance of the communication process between the first module and the second module under the aforementioned preset performance dimensions can be analyzed based on the extracted data.

[0095] Step 406: Send the data packet to the second module.

[0096] Among them, step 406 is substantially the same as the aforementioned step 105 and will not be described again here.

[0097] In some embodiments, in order to ensure the stability and reliability of the vehicle, there are certain performance requirements for in-vehicle communication. Therefore, in order to more accurately analyze the communication between the first module and the second module, so as to provide a reference for vehicle control and operation and maintenance management, Figure 5 As shown, the vehicle communication control method includes: Step 501: monitor 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 an electronic control unit in a vehicle.

[0098] Among them, step 501 is substantially the same as the aforementioned step 101 and will not be described again here.

[0099] Step 502: Determine a first address of the second module according to the data transmission request.

[0100] Among them, step 502 is substantially the same as the aforementioned step 102 and will not be described again here.

[0101] Step 503: Replace the preset address of the first network card device with the first address to obtain a first replaced device.

[0102] Among them, step 503 is substantially the same as the aforementioned step 103 and will not be described again here.

[0103] Step 504: Receive the data packet through the first replaced device.

[0104] Among them, step 504 is substantially the same as the aforementioned step 104 and will not be described again here.

[0105] Step 505: Determine a performance standard corresponding to the communication process between the first module and the second module.

[0106] Among them, the performance standard is used to characterize the performance standard that the in-vehicle communication process needs to achieve when the vehicle is running stably, reliably and safely. Specifically, the performance standard may include at least one preset performance characteristic dimension and the 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 under 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 judged as the performance standard.

[0107] For example, the preset performance dimensions may include characteristic dimensions that characterize communication security performance, such as communication encryption type, communication encryption complexity, and other characteristic dimensions. Optionally, the preset performance dimensions may also include characteristic dimensions that characterize communication quality performance, such as communication delay, communication stability, packet loss rate, and other characteristic dimensions.

[0108] Considering that with the development of vehicle-related software and hardware technologies, in-vehicle communication scenarios are becoming increasingly diverse, and different communication scenarios may correspond to different performance standards, therefore, in some embodiments, the process of determining the performance standard further includes: The communication scenario information corresponding to the data transmission request is determined according to the type of at least one of the first module, the second module and the data packet, thereby determining the performance standard according to the communication scenario information. Different communication scenarios are used to implement different functions of the vehicle.

[0109] The types of the first module and the second module may include the functions of the first module and the second module in the vehicle, such as for power system control, for in-vehicle entertainment, etc. Optionally, the types of the first module and the second module may also be determined according to the domains they include in the vehicle, such as the control domain and the driving domain of the vehicle. The type of the data packet is used to characterize the function of the information contained in the data packet in vehicle control, such as for automatic driving, in-vehicle entertainment, vehicle networking, in-vehicle information sharing, etc.

[0110] In an embodiment of the present invention, the performance standards for in-vehicle communication under multiple preset communication scenarios can be calibrated, so that the performance standard corresponding to the matched communication scenario can be selected according to the matching results between the currently determined communication scenario information and each preset communication scenario.

[0111] Step 506: Analyze the data packet according to the performance standard to obtain an analysis result of the communication status between the first module and the second module.

[0112] Specifically, the data packet is analyzed according to the preset performance dimension included in the performance standard to obtain the performance performance of the communication situation between the first module and the second module under the preset performance dimension, and then the performance 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 situation.

[0113] Step 507: Send the data packet to the second module.

[0114] Among them, step 507 is substantially the same as the aforementioned step 105 and will not be described again here.

[0115] In some embodiments, considering that the analysis method of in-vehicle communication data in related technologies is relatively simple, it is difficult to provide strong support for vehicle control and operation and maintenance management, such as Figure 6 As shown, the vehicle communication control method includes: Step 601: monitor 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 an electronic control unit in a vehicle.

[0116] Among them, step 601 is substantially the same as the aforementioned step 101 and will not be described again here.

[0117] Step 602: Determine a first address of the second module according to the data transmission request.

[0118] Among them, step 602 is substantially the same as the aforementioned step 102 and will not be described again here.

[0119] Step 603: Replace the preset address of the first network card device with the first address to obtain a first replaced device.

[0120] Among them, step 603 is substantially the same as the aforementioned step 103 and will not be described again here.

[0121] Step 604: Receive the data packet through the first replaced device.

[0122] Among them, step 604 is substantially the same as the aforementioned step 104 and will not be described again here.

[0123] Step 605: Determine a performance standard corresponding to the communication process between the first module and the second module.

[0124] Among them, step 605 is substantially the same as the aforementioned step 505 and will not be described again here.

[0125] Step 606: Determine the target performance indicator and the target data type based on the performance standard; wherein, if the target performance indicator includes an indicator characterizing communication security performance, the target data type includes the type of the level at which the characterizing data is located in the network model corresponding to the vehicle.

[0126] Among them, the target performance index is used to characterize the performance index value that needs to be achieved in the in-vehicle communication process when the vehicle is running stably, reliably and safely. Specifically, the target performance index 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 index can include indicators that characterize communication instructions, such as delay, packet loss rate, retransmission rate and other indicators. Correspondingly, considering that the vehicle network environment is relatively complex, communication data such as data packets contain more information, and different performance indicators may be able to evaluate The type of data may be different, therefore, in an embodiment of the present invention, in order to improve the efficiency of performance analysis, the target data type of the data to be analyzed is also determined according to the performance standard. In particular, considering that the intermediate gateway device in the related art generally obtains relatively low-level communication data, such as the physical layer, data link layer, and network layer, it has little reference significance for the control of the vehicle at the business level and performance level. Specifically, when analyzing the in-vehicle communication security performance, based on the different functions of the data transmitted by the vehicle network at each level of the network model, if the target performance indicator includes an indicator characterizing the communication security performance, the target data type includes the type of level at which the data is located in the network model corresponding to the vehicle.

[0127] The network model corresponding to the vehicle is used to characterize a standardized framework that divides the vehicle network communication protocol into multiple different levels. The network model corresponding to the vehicle may include the OSI (Open System Interconnect, Open System Interconnection Reference) seven-layer model, the TCP (Transmission Control Protocol, Transmission Control Protocol) / IP four-layer model, etc., and the present invention is not limited to this. Among them, the composition of the OSI seven-layer module includes the following: Application layer: The top layer in the network architecture, providing communication services between the user interface and the application. 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. Session layer: The session layer manages the communication sessions between applications and is responsible for establishing, maintaining and terminating sessions. This layer also provides data synchronization and checkpoint recovery functions to ensure the integrity and continuity of communication. Transport layer: The transport layer provides end-to-end data transmission services for applications and is responsible for data segmentation, transmission control, error recovery and flow control. TCP and UDP (User Datagram Protocol) are mainly used to implement these functions. 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. Data link layer: The data link layer provides point-to-point data transmission services, is responsible for converting raw bit streams into data frames, and detects and corrects errors that occur during transmission. It also controls the way to access the physical medium, as well as the transmission and reception of data frames. Physical layer: The physical layer transmits the original bit stream on the physical medium, and defines the specifications of the hardware devices and transmission media that connect the host. Ensure that the bit stream can be accurately transmitted in the network, such as through media such as Ethernet, optical fiber, and radio waves. Correspondingly, the TCP / IP four-layer model includes the application layer, transport layer, network layer, and network interface layer. The definition and function of each layer can refer to the aforementioned seven-layer model.

[0128] Based on the functions of the above-mentioned various levels, if the target performance indicators include indicators that characterize communication security performance, the data to be analyzed can come from the transmission layer in the vehicle's network model. Thus, by analyzing the data transmitted by the transmission layer, the analysis results of the communication security performance are obtained.

[0129] Step 607: extract data from the data packet according to the target data type to obtain data to be analyzed.

[0130] The data whose data type is the target data type is extracted from the data packet to obtain the data to be analyzed.

[0131] Step 608: Analyze the data to be analyzed according to the target performance indicator to obtain an analysis result of the communication status between the first module and the second module.

[0132] Among them, according to the performance dimension specified by the target performance indicator, the performance characteristic value of the data to be analyzed under the performance dimension is extracted, and then the performance standard value corresponding to the performance dimension specified by the target performance indicator is compared with the aforementioned extracted performance characteristic value to obtain an analysis result. Specifically, if the performance standard value is greater than the performance standard value, it is characterized that the communication situation between the first module and the second module meets the target performance indicator. It can be understood that when extracting the performance characteristic value, the data to be analyzed can be processed, such as data replay, data testing, data editing, etc., and the embodiment of the present invention does not limit this.

[0133] Step 609: Send the data packet to the second module.

[0134] Among them, step 609 is substantially the same as the aforementioned step 105 and will not be described again here.

[0135] In some embodiments, in order to improve the flexibility of in-vehicle communication situation analysis and user experience, such as Figure 7 As shown, the vehicle communication control method includes: Step 701: monitor 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 an electronic control unit in a vehicle.

[0136] Among them, step 701 is substantially the same as the aforementioned step 101 and will not be described again here.

[0137] Step 702: Determine a first address of the second module according to the data transmission request.

[0138] Among them, step 702 is substantially the same as the aforementioned step 102 and will not be described again here.

[0139] Step 703: Replace the preset address of the first network card device with the first address to obtain a first replaced device.

[0140] Among them, step 703 is substantially the same as the aforementioned step 103 and will not be described again here.

[0141] Step 704: Receive the data packet through the first replaced device.

[0142] Among them, step 704 is substantially the same as the aforementioned step 104 and will not be described again here.

[0143] Step 705: Display the interface corresponding to the data packet to the user.

[0144] The data packet can be displayed to the user through a preset visual interface. Optionally, considering that the data volume of the data packet may be large and its readability may be low, the data packet can also be analyzed for content, and the summary of the data packet, directory and other brief information obtained by the analysis can be displayed to the user. The user can be an object with certain data analysis and / or network operation and maintenance experience, such as an operation and maintenance manager of the vehicle network.

[0145] Step 706: Responding 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 instructions include at least one of data replay, data tampering, data interception and data capture.

[0146] The candidate processing instructions may be displayed through the visualization interface in the aforementioned step 705. Considering that the performance standards of the vehicle may be relatively fixed and mechanical, while the user's management requirements for vehicle communications may be dynamically changing, and there may be a certain knowledge threshold for analyzing vehicle communication conditions, therefore, in an embodiment of the present invention, preset candidate processing instructions are displayed for users to make personalized selections to improve the flexibility and personalization of vehicle communication management. Considering the importance of vehicle communication security management, the candidate processing instructions may include operations commonly used in communication security analysis such as data replay, data tampering, data interception, and data capture to improve the efficiency of communication process performance analysis.

[0147] Step 707: Analyze the data packet according to the data processing instruction to obtain an analysis result of the communication status between the first module and the second module.

[0148] The data packet is processed according to the data processing instruction, and the processing result is used as the analysis result. The data packet is analyzed in the form of user-specified instructions to achieve on-demand inversion and performance analysis of vehicle communication conditions, which can improve the flexibility and personalization of vehicle communication management, improve management efficiency and user management experience.

[0149] Step 708: Return the analysis result to the user.

[0150] The analysis results can be displayed through the aforementioned visualization interface, thereby improving the efficiency of vehicle communication management and user experience.

[0151] Step 709: Send the data packet to the second module.

[0152] Among them, step 709 is substantially the same as the aforementioned step 105 and will not be described again here.

[0153] Please refer to Figure 8, is a schematic diagram of the hardware structure of the vehicle communication control device 80 provided in the embodiment of the present application. Figure 8 As shown, the vehicle communication control device 80 may include: The interception module 801 is used to monitor and intercept a 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 an electronic control unit of the vehicle; A determination module 802, configured to determine a first address of the second module according to the data transmission request; A replacement module 803, 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 804, configured to receive the data packet through the first replaced device; The sending module 805 is used to send the data packet to the second module.

[0154] Please refer to Fig. 9 , is a schematic diagram of the hardware structure of the vehicle communication control device 90 provided in the embodiment of the present application. Fig. 9 As shown, the vehicle communication control device 90 may include a processor 901 and a memory 902. The memory 902 is used 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, and the above instructions can be used to implement the above vehicle communication control method in the vehicle communication control device 90.

[0155] It is understandable that the structure shown in this embodiment does not constitute a specific limitation on the vehicle communication control device 90. In other embodiments, the vehicle communication control device 90 may include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently.

[0156] The processor 901 may include one or more processing units, for example, the processor 901 may 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 may be independent devices or integrated into one or more processors.

[0157] The processor 901 may 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 may store instructions or data that the processor 901 has just used or circulated. If the processor 901 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 901, and thus improves the efficiency of the system.

[0158] In some embodiments, the processor 901 may include one or more interfaces. The interface may 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.

[0159] In some embodiments, the processor 901 is used to execute acceleration schemes such as single instruction multiple data (SIMD) and very long instruction word (VLIW).

[0160] In some embodiments, the memory 902 may include a high-speed random access memory and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0161] This embodiment also provides a computer-readable storage medium, in which computer instructions are stored. When the instructions are executed on a processor, the vehicle communication control device executes the above-mentioned related method steps to implement the vehicle communication control method in the above-mentioned embodiment.

[0162] Among them, the vehicle communication control device and computer-readable storage medium provided in this embodiment are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0163] In practical applications, the above functions can be distributed 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.

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

[0165] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.

[0166] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0167] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.

[0168] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in 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 to send a data packet to a second module; the first module and the second module include an electronic control unit in a vehicle; Acquire 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; The data packet is sent to the second module.

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; 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 sending process of the data packet to the second module includes: The data packet is sent to a preset second network card device through the first replaced device; the second network card device is communicatively connected 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; Obtaining a second address of the first module; Replacing the address of a preset 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.

4. The method according to claim 1, characterized in that: 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 result 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 result also includes: Determine 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 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 criteria determination process also includes: Determine the communication scenario information corresponding to the data transmission request according to the 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 result also 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 comprises: An interception module, used to monitor and intercept a 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 an electronic control unit of the vehicle; A determination module, configured to determine a first address of the second module according to the data transmission request; A replacement module, used for replacing 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 is used to send the data packet to the second module.

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

  • Data frame transmission method and apparatus, and readable storage medium

    WO2024066757A1