Ethernet message processing method, gateway controller, equipment and system

By using the OBD interface of the on-board automatic diagnostic system in the car for mirror access permission verification and Ethernet message processing, it is possible to safely and effectively collect and forward Ethernet messages inside the car without increasing installation space and wiring. Manufacturing cost and safety issues in the prior art were solved.

CN118984233APending Publication Date: 2024-11-19CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410983005.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-11-19

AI Technical Summary

Technical Problem

When collecting internal Ethernet packets in the prior art, it is necessary to increase installation space and complex wiring, resulting in increased manufacturing costs and structural complexity, and poses information security risks.

Method used

Mirror access permission verification is performed through the OBD interface of the vehicle automatic diagnosis system. If the verification is passed, the mirror access permission of the Ethernet message processing device will be enabled, and the packets of the target Ethernet network segment are sent in a mirror manner to realize messages of different network segments. Forwarding to avoid increasing vehicle installation space and wiring.

Benefits of technology

It reduces the manufacturing cost and structural complexity of automobiles, improves the security of Ethernet packet forwarding, and prevents data from being illegally intercepted and utilized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118984233A_ABST
    Figure CN118984233A_ABST
Patent Text Reader

Abstract

The invention provides an Ethernet message processing method, a gateway controller, equipment and a system.The Ethernet message processing method comprises the steps that mirror image access permission verification is conducted on Ethernet message processing equipment based on a mirror image access permission verification request sent by the Ethernet message processing equipment through an OBD interface; if the verification of the mirror image access authority is passed, opening the mirror image access authority, and sending mirror image access authority verification passing information to the Ethernet message processing equipment; receiving an Ethernet message acquisition instruction sent by the Ethernet message processing equipment, wherein the Ethernet message acquisition instruction comprises target Ethernet network segment mirror image configuration data; and based on the Ethernet message acquisition instruction, sending an Ethernet message corresponding to the target Ethernet segment to Ethernet message processing equipment in a mirroring manner. According to the technical scheme provided by the embodiment of the invention, the forwarding of the Ethernet message of the target network segment can be safely and effectively realized on the premise of not increasing the vehicle installation space and complex wiring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automobile technology, and in particular to an Ethernet message processing method, a gateway controller, a device and a system. Background Art

[0002] With the development of automotive electronics, the communication system inside the car has become more and more complex, involving more and more controllers. This has resulted in operations such as collecting data, debugging the system, and monitoring the status of the electrical system becoming increasingly troublesome during vehicle production testing and subsequent failures.

[0003] In the prior art, when Ethernet packets need to be collected, APA

[0004] The Ethernet 100M and 1000M network segment wiring harnesses of ECU (Electronic Control Unit) such as Auto-Parking-Assist, IVI (In-Vehicle Infotainment), TBOX (Telematics Control Unit) are directly guided to the OBD (On Board Diagnostics) diagnostic port, and then the Ethernet network segment messages are collected through the OBD diagnostic port, and the collected Ethernet messages are parsed to determine the status of each vehicle system. The above-mentioned method of collecting Ethernet messages adds additional installation space and complex wiring, increases the manufacturing cost and structural complexity of the car, and in addition, the vehicle signal can be easily illegally obtained and used, which seriously affects the security of the vehicle information.

[0005] In view of this, the present invention is proposed. Summary of the invention

[0006] In view of the above-mentioned defects or deficiencies in the prior art, the present application aims to provide an Ethernet message processing method, gateway controller, device and system, which can safely and effectively forward Ethernet messages in the target network segment without increasing the vehicle installation space and complex wiring.

[0007] In a first aspect, an embodiment of the present application provides an Ethernet message processing method, including:

[0008] Based on the mirror access permission verification request sent by the Ethernet message processing device through the on-board automatic diagnostic system OBD interface, verify the mirror access permission of the Ethernet message processing device;

[0009] If the mirror access permission is verified, the mirror access permission of the Ethernet message processing device is opened, and the mirror access permission verification pass information is sent to the Ethernet message processing device;

[0010] Receiving an Ethernet message acquisition instruction sent by the Ethernet message processing device, wherein the Ethernet message acquisition instruction includes target Ethernet network segment mirror configuration data;

[0011] Based on the Ethernet message acquisition instruction, the Ethernet message corresponding to the target Ethernet network segment is sent to the Ethernet message processing device in a mirrored manner.

[0012] According to the technical solution provided in the embodiment of the present application, the mirror access permission verification request sent by the Ethernet message processing device through the OBD interface of the vehicle automatic diagnostic system is used to verify the mirror access permission of the Ethernet message processing device, including:

[0013] Receiving a request for obtaining permission verification key generation data sent by the Ethernet message processing device through the on-board automatic diagnostic system OBD interface, and sending permission verification key generation data to the Ethernet message processing device, wherein the permission verification key generation data is used to generate a mirror access permission verification key;

[0014] Receive the image access permission verification key sent by the Ethernet message processing device, and compare the image access permission verification key with the preset image access permission verification key. If the image access permission verification key is consistent with the preset image access permission verification key, the image access permission verification passes; if the image access permission verification key is consistent with the preset image access permission verification key, the image access permission verification fails.

[0015] According to the technical solution provided in the embodiment of the present application, the permission verification key generation data is an input parameter for calculating the image access permission verification key, and the input parameter is randomly generated data.

[0016] According to the technical solution provided in the embodiment of the present application, the target Ethernet network segment mirror configuration data includes a target Ethernet network segment mirror identifier and a target Ethernet network segment inlet and outlet port mirror identifier. Accordingly, based on the Ethernet message acquisition instruction, the Ethernet message corresponding to the target Ethernet network segment is sent to the Ethernet message processing device in a mirrored manner, including:

[0017] Determine the target Ethernet network segment according to the target Ethernet network segment mirror identifier and the target Ethernet network segment inlet and outlet port mirror identifier;

[0018] The Ethernet message corresponding to the target Ethernet network segment is obtained, and is sent to the Ethernet message processing device in a mirrored manner.

[0019] In a second aspect, an embodiment of the present application further provides an Ethernet message processing method, including:

[0020] Sending a request for image access permission verification to the gateway controller via the vehicle automatic diagnostic system OBD interface;

[0021] After receiving the mirror access permission verification information sent by the gateway controller, sending an Ethernet message acquisition instruction to the gateway controller, the Ethernet message acquisition instruction includes the target Ethernet network segment mirror configuration data;

[0022] An Ethernet message corresponding to a target Ethernet network segment sent by the gateway controller in a mirroring manner is received, wherein the target Ethernet network segment is determined by the gateway controller based on the Ethernet message acquisition instruction.

[0023] According to the technical solution provided in the embodiment of the present application, the sending of the mirror access permission verification request to the gateway controller through the on-board automatic diagnostic system OBD interface includes:

[0024] Sending a request for obtaining permission verification key generation data to the gateway controller through an on-board automatic diagnostic system OBD interface, wherein the permission verification key generation data is used to generate a mirror access permission verification key;

[0025] Receiving the authority verification key generation data sent by the gateway controller, and generating the image access authority verification key based on the authority verification key generation data;

[0026] The image access permission verification key is sent to the gateway controller.

[0027] According to the technical solution provided in the embodiment of the present application, after receiving the Ethernet message corresponding to the target Ethernet network segment sent by the gateway controller in a mirrored manner, it also includes:

[0028] The Ethernet message is converted into a Controller Area Network (CAN) message.

[0029] In a third aspect, an embodiment of the present application further provides a gateway controller, including:

[0030] A first processor and a first memory; the first processor is used to execute the Ethernet message processing method as described in any one of claims 1 to 4 by calling the program or instruction stored in the first memory.

[0031] In a fourth aspect, an embodiment of the present application further provides an Ethernet message processing device, including:

[0032] A second processor and a second memory; the second processor is used to execute the Ethernet message processing method as described in any one of claims 5 to 7 by calling the program or instruction stored in the second memory.

[0033] In a fifth aspect, an embodiment of the present application further provides an Ethernet message processing system, comprising the gateway controller described in the third aspect and the Ethernet message processing device described in the fourth aspect, wherein the gateway controller and the Ethernet message processing device are connected via an on-board automatic diagnostic system OBD interface, wherein:

[0034] The Ethernet message processing device is used to send a mirror access permission verification request to the gateway controller through the vehicle automatic diagnostic system OBD interface;

[0035] The gateway controller is used to verify the mirror access permission of the Ethernet message processing device based on the received mirror access permission verification request, and if the mirror access permission verification passes, the mirror access permission of the Ethernet message processing device is opened, and the mirror access permission verification pass information is sent to the Ethernet message processing device;

[0036] After receiving the mirror access right verification pass information, the Ethernet message processing device is used to send an Ethernet message acquisition instruction to the gateway controller, and the Ethernet message acquisition instruction includes the target Ethernet network segment mirror configuration data;

[0037] The gateway controller is used to send the Ethernet message corresponding to the target Ethernet network segment to the Ethernet message processing device in a mirrored manner based on the received Ethernet message acquisition instruction;

[0038] The Ethernet message processing device is used to receive the Ethernet message.

[0039] In summary, the present application proposes an Ethernet message processing method, a gateway controller, a device and a system, wherein the Ethernet message processing method comprises: based on a mirror access right verification request sent by the Ethernet message processing device through the OBD interface of the vehicle automatic diagnostic system, verifying the mirror access right of the Ethernet message processing device; if the mirror access right verification passes, opening the mirror access right of the Ethernet message processing device, and sending the mirror access right verification pass information to the Ethernet message processing device; receiving an Ethernet message acquisition instruction sent by the Ethernet message processing device, the Ethernet message acquisition instruction including the target Ethernet network segment mirror configuration data; based on the Ethernet message acquisition instruction, sending the Ethernet message corresponding to the target Ethernet network segment to the Ethernet message processing device in a mirrored manner. The above technical solution does not require additional vehicle installation space and complex wiring. The gateway controller and the Ethernet message processing device are connected through the OBD interface of the vehicle automatic diagnostic system, and the forwarding of Ethernet messages in different network segments is realized in a mirroring manner. This overcomes the problem that the existing Ethernet message collection requires additional vehicle installation space and complex wiring, reduces the manufacturing cost and structural complexity of the vehicle, and at the same time, a mirror access right verification link is added before Ethernet message forwarding, thereby improving the security of Ethernet message forwarding and preventing data from being illegally intercepted and used. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A flowchart of an Ethernet message processing method provided in an embodiment of the present application;

[0041] Figure 2 A flowchart of another Ethernet message processing method provided in an embodiment of the present application;

[0042] Figure 3 A schematic diagram of the structure of an Ethernet message processing device provided in an embodiment of the present application;

[0043] Figure 4 A schematic diagram of the structure of another Ethernet message processing device provided in an embodiment of the present application;

[0044] Figure 5 A schematic diagram of the structure of a gateway controller provided in an embodiment of the present application;

[0045] Figure 6 A schematic diagram of the structure of an Ethernet message processing device provided in an embodiment of the present application;

[0046] Figure 7 A schematic diagram of the structure of an Ethernet message processing system provided in an embodiment of the present application;

[0047] Figure 8A flowchart of another Ethernet message processing method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.

[0049] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0050] As mentioned in the background technology, in response to the problems in the prior art, the present application proposes an Ethernet message processing method. The present embodiment can be applied to the situation of obtaining vehicle Ethernet messages. The device can be executed by an Ethernet message processing device, and the Ethernet message processing device can be implemented in the form of hardware and / or software. For example, the Ethernet message processing device can be configured in a gateway controller. Figure 1 A flow chart of an Ethernet message processing method provided in an embodiment of the present application is as follows: Figure 1 As shown, the Ethernet message processing method includes:

[0051] S110 . Based on a mirror access permission verification request sent by the Ethernet message processing device through an on-board automatic diagnostic system OBD interface, verify the mirror access permission of the Ethernet message processing device.

[0052] In this embodiment, the Ethernet message processing device can be a device for acquiring Ethernet messages, or a device for acquiring Ethernet messages and subsequently processing them. Exemplarily, the Ethernet message processing device can be a vehicle external acquisition device or a vehicle external diagnostic device, etc. The mirror access permission verification request is used to verify whether the Ethernet message processing device has the mirror access permission of the gateway controller. Exemplarily, the mirror access permission verification request may include unique attribute information such as the name or model of the Ethernet message processing device. Based on the unique attribute information, the gateway controller can perform mirror access permission verification on the Ethernet message processing device. In another exemplary embodiment, the mirror access permission verification request may also include a mirror access permission verification key. Based on the mirror access permission verification key, the gateway controller can perform mirror access permission verification on the Ethernet message processing device. As another example, the mirror access permission verification request may also include a request for obtaining permission verification key generation data. Based on the permission verification key generation data acquisition request, the gateway controller may feedback permission verification key generation data to the Ethernet message processing device, and receive the mirror access permission verification key generated based on the permission verification key generation data and sent by the Ethernet message processing device. Then, based on the mirror access permission verification key, the gateway controller may perform mirror access permission verification on the Ethernet message processing device, wherein the permission verification key generation data may be pre-set data or randomly generated data.

[0053] S120: If the mirror access right verification is passed, the mirror access right of the Ethernet message processing device is enabled, and a mirror access right verification pass message is sent to the Ethernet message processing device.

[0054] Exemplarily, the mirror access permission verification can be achieved by matching the unique attribute information of the Ethernet message processing device with the unique attribute information pre-stored in the gateway controller, or by matching the mirror access permission verification key directly sent by the Ethernet message processing device with the mirror access permission verification key pre-stored in the gateway controller, or by matching the mirror access permission verification key generated by the Ethernet message processing device based on the permission verification key generation data with the mirror access permission verification key generated by the gateway controller based on the permission verification key generation data, etc.

[0055] Among them, opening the mirror access right of the Ethernet message processing device may be configuring the mirror function of the internal switch chip for the Ethernet message processing device. After the configuration is completed, the Ethernet message processing device may have the mirror access right of the gateway controller.

[0056] S130. Receive an Ethernet message acquisition instruction sent by the Ethernet message processing device, wherein the Ethernet message acquisition instruction includes target Ethernet network segment mirror configuration data.

[0057] In this embodiment, the target Ethernet network segment mirror configuration data can be used to determine the target Ethernet network segment corresponding to the Ethernet message to be obtained.

[0058] S140. Based on the Ethernet message acquisition instruction, send the Ethernet message corresponding to the target Ethernet network segment to the Ethernet message processing device in a mirrored manner.

[0059] The gateway controller can determine the target Ethernet segment corresponding to the Ethernet message to be obtained according to the target Ethernet segment mirror configuration data, obtain the Ethernet message from the target Ethernet segment, and send it to the Ethernet message processing device through the vehicle automatic diagnosis system OBD interface.

[0060] An Ethernet message processing method proposed in an embodiment of the present application includes: based on a mirror access permission verification request sent by the Ethernet message processing device through the OBD interface of the vehicle automatic diagnostic system, verifying the mirror access permission of the Ethernet message processing device; if the mirror access permission verification passes, opening the mirror access permission of the Ethernet message processing device, and sending the mirror access permission verification pass information to the Ethernet message processing device; receiving an Ethernet message acquisition instruction sent by the Ethernet message processing device, the Ethernet message acquisition instruction including the target Ethernet network segment mirror configuration data; based on the Ethernet message acquisition instruction, sending the Ethernet message corresponding to the target Ethernet network segment to the Ethernet message processing device in a mirrored manner. The above technical solution does not require additional vehicle installation space and complex wiring. The gateway controller and the Ethernet message processing device are connected through the OBD interface of the vehicle automatic diagnostic system, and the forwarding of Ethernet messages in different network segments is realized in a mirroring manner. This overcomes the problem that the existing Ethernet message collection requires additional vehicle installation space and complex wiring, reduces the manufacturing cost and structural complexity of the vehicle, and at the same time, a mirror access right verification link is added before Ethernet message forwarding, thereby improving the security of Ethernet message forwarding and preventing data from being illegally intercepted and used.

[0061] In some embodiments of the present application, the mirror access permission verification request sent by the Ethernet message processing device through the vehicle automatic diagnostic system OBD interface, performing the mirror access permission verification on the Ethernet message processing device, includes:

[0062] Receiving a request for obtaining permission verification key generation data sent by the Ethernet message processing device through the on-board automatic diagnostic system OBD interface, and sending permission verification key generation data to the Ethernet message processing device, wherein the permission verification key generation data is used to generate a mirror access permission verification key;

[0063] Receive the image access permission verification key sent by the Ethernet message processing device, and compare the image access permission verification key with the preset image access permission verification key. If the image access permission verification key is consistent with the preset image access permission verification key, the image access permission verification passes; if the image access permission verification key is consistent with the preset image access permission verification key, the image access permission verification fails.

[0064] The permission verification key generation data acquisition request is a request for obtaining permission verification key generation data, and the permission verification key generation data may be a seed message pre-stored or randomly generated by the gateway controller. Accordingly, the preset mirror access permission verification key in the gateway controller may be pre-stored or calculated based on the seed message according to the mirror access permission verification key calculation method. The mirror access permission verification key sent by the Ethernet message processing device may also be calculated based on the seed message according to the mirror access permission verification key calculation method.

[0065] This embodiment first obtains the authority verification key generation data, determines the mirror access permission verification key based on the authority verification key generation data, and then uses the mirror access permission verification key to verify the mirror access permission of the Ethernet message processing device. Through multiple verifications, the security of Ethernet message transmission can be further guaranteed.

[0066] In some embodiments of the present application, the permission verification key generation data is an input parameter for calculating the image access permission verification key, and the input parameter is randomly generated data.

[0067] This embodiment uses randomly generated data as permission verification key generation data, which can further ensure the authenticity of the mirror access permission verification key, thereby further ensuring the security of Ethernet message transmission.

[0068] In some embodiments of the present application, the target Ethernet network segment mirror configuration data includes a target Ethernet network segment mirror identifier and a target Ethernet network segment inlet and outlet port mirror identifier. Accordingly, based on the Ethernet message acquisition instruction, the Ethernet message corresponding to the target Ethernet network segment is sent to the Ethernet message processing device in a mirrored manner, including:

[0069] Determine the target Ethernet network segment according to the target Ethernet network segment mirror identifier and the target Ethernet network segment inlet and outlet port mirror identifier;

[0070] The Ethernet message corresponding to the target Ethernet network segment is obtained, and is sent to the Ethernet message processing device in a mirrored manner.

[0071] Among them, different target Ethernet network segment mirroring identifiers indicate that different target Ethernet network segments are enabled. For example, the target Ethernet network segment mirroring identifier is set to 00, which can be used to indicate that APA network segment mirroring is enabled. The target Ethernet network segment mirroring identifier is set to 01, which can be used to indicate that TBOX network segment mirroring is enabled. The target Ethernet network segment mirroring identifier is set to 02, which can be used to indicate that IVI network segment mirroring is enabled, etc. Different target Ethernet network segment in-out port mirroring identifiers indicate that the target Ethernet network segment in-out port mirroring is enabled or disabled. For example, the target Ethernet network segment in-out port mirroring identifier is set to 11, which can be used to indicate that the target Ethernet network segment egress mirroring and ingress mirroring are disabled. The target Ethernet network segment in-out port mirroring identifier is set to 00, which can be used to indicate that the target Ethernet network segment egress mirroring and ingress mirroring are enabled. The target Ethernet network segment in-out port mirroring identifier is set to 01, which can be used to indicate that the target Ethernet network segment ingress mirroring is enabled and the target Ethernet network segment egress mirroring is disabled. The target Ethernet network segment in-out port mirroring identifier is set to 10, which can be used to indicate that the target Ethernet network segment ingress mirroring is disabled and the target Ethernet network segment egress mirroring is enabled, etc. Exemplarily, the Ethernet message acquisition instruction can be 31 01 8301 00 (target Ethernet network segment mirror identifier) ​​00 (target Ethernet network segment input and output port mirror identifier), wherein 31 represents the routine service SID code, 01 represents the sub-function item, indicating the start of the routine service; 83 01 represents the gateway mirror function bit; 00 represents turning on the APA network segment mirror; 00 represents turning on the APA network segment ingress mirror and egress mirror. The gateway controller can determine that the target Ethernet network segment is the APA network segment according to the Ethernet message acquisition instruction in the above example, and then obtain the Ethernet message of the APA network segment and send it to the Ethernet message processing device.

[0072] This embodiment configures the target Ethernet segment mirror identifier and the target Ethernet segment inlet and outlet port mirror identifier in the Ethernet message acquisition instruction, so that the gateway controller can directly determine the target Ethernet segment, improve the data acquisition capability, and meet the real-time and accuracy requirements of large amounts of data.

[0073] Figure 2 This is a flow chart of another Ethernet message processing method provided in an embodiment of the present application. This embodiment can be applied to the case of obtaining vehicle Ethernet messages. The device can be executed by an Ethernet message processing device. The Ethernet message processing device can be implemented in the form of hardware and / or software. For example, the Ethernet message processing device can be configured in an Ethernet message processing device. Figure 2 As shown, the method includes:

[0074] S210: Send a mirror access permission verification request to the gateway controller through the vehicle automatic diagnostic system OBD interface.

[0075] S220. After receiving the mirror access permission verification passed information sent by the gateway controller, send an Ethernet message acquisition instruction to the gateway controller, wherein the Ethernet message acquisition instruction includes the target Ethernet network segment mirror configuration data.

[0076] S230. Receive an Ethernet message corresponding to a target Ethernet network segment sent by the gateway controller in a mirroring manner, wherein the target Ethernet network segment is determined by the gateway controller based on the Ethernet message acquisition instruction.

[0077] An Ethernet message processing method proposed in an embodiment of the present application includes: sending a mirror access right verification request to a gateway controller through an onboard automatic diagnostic system OBD interface; after receiving the mirror access right verification pass information sent by the gateway controller, sending an Ethernet message acquisition instruction to the gateway controller, the Ethernet message acquisition instruction includes the target Ethernet network segment mirror configuration data; receiving an Ethernet message corresponding to the target Ethernet network segment sent by the gateway controller in a mirrored manner, the target Ethernet network segment is determined by the gateway controller based on the Ethernet message acquisition instruction. The above technical solution does not need to increase the vehicle installation space and complex wiring. The gateway controller and the Ethernet message processing device are connected through the onboard automatic diagnostic system OBD interface, and the forwarding of Ethernet messages of different network segments is realized in a mirrored manner, which overcomes the existing problem that the vehicle installation space and complex wiring are required to be additionally increased to realize Ethernet message collection, and reduces the manufacturing cost and structural complexity of the automobile. At the same time, a mirror access right verification link is added before the Ethernet message is forwarded, which improves the security of Ethernet message forwarding and prevents data from being illegally intercepted and used.

[0078] In some embodiments of the present application, sending a mirror access permission verification request to a gateway controller through an on-board automatic diagnostic system OBD interface includes:

[0079] Sending a request for obtaining permission verification key generation data to the gateway controller through an on-board automatic diagnostic system OBD interface, wherein the permission verification key generation data is used to generate a mirror access permission verification key;

[0080] Receiving the authority verification key generation data sent by the gateway controller, and generating the image access authority verification key based on the authority verification key generation data;

[0081] The image access permission verification key is sent to the gateway controller.

[0082] In some embodiments of the present application, after receiving the Ethernet message corresponding to the target Ethernet network segment sent by the gateway controller in a mirrored manner, the method further includes:

[0083] The Ethernet message is converted into a Controller Area Network (CAN) message.

[0084] Specifically, after receiving the Ethernet message, the Ethernet message processing device will parse its header and tail information to extract the payload data. According to the preset conversion rules and mapping relationships, the payload data is converted into the CAN message format, including setting the identifier, data length and data field of the CAN message.

[0085] In addition, Ethernet message processing equipment can also include its own power management functions, such as automatic wake-up, sleep and reset, to improve energy efficiency and stability.

[0086] In this embodiment, the Ethernet message is converted into a CAN message, which can effectively improve the data processing capability and meet the requirements of real-time and accuracy of large amounts of data.

[0087] Figure 3 This is a schematic diagram of the structure of an Ethernet message processing device provided in an embodiment of the present application. The Ethernet message processing device can be implemented in the form of hardware and / or software. For example, the Ethernet message processing device can be configured in a gateway controller. Figure 3 As shown, the device comprises:

[0088] The mirror access permission verification module 410 is used to verify the mirror access permission of the Ethernet message processing device based on the mirror access permission verification request sent by the Ethernet message processing device through the vehicle automatic diagnostic system OBD interface;

[0089] A mirror access permission opening module 420 is used to open the mirror access permission of the Ethernet message processing device if the mirror access permission is verified, and send the mirror access permission verification pass information to the Ethernet message processing device;

[0090] The Ethernet message acquisition instruction receiving module 430 is used to receive the Ethernet message acquisition instruction sent by the Ethernet message processing device, and the Ethernet message acquisition instruction includes the target Ethernet network segment mirror configuration data;

[0091] The Ethernet message sending module 440 is used to send the Ethernet message corresponding to the target Ethernet network segment to the Ethernet message processing device in a mirrored manner based on the Ethernet message acquisition instruction.

[0092] An Ethernet message processing device proposed in an embodiment of the present application includes: a mirror access permission verification module, which is used to verify the mirror access permission of the Ethernet message processing device based on the mirror access permission verification request sent by the Ethernet message processing device through the OBD interface of the vehicle automatic diagnostic system; a mirror access permission activation module, which is used to activate the mirror access permission of the Ethernet message processing device if the mirror access permission verification passes, and send the mirror access permission verification pass information to the Ethernet message processing device; an Ethernet message acquisition instruction receiving module, which is used to receive the Ethernet message acquisition instruction sent by the Ethernet message processing device, and the Ethernet message acquisition instruction includes the target Ethernet network segment mirror configuration data; an Ethernet message sending module, which is used to send the Ethernet message corresponding to the target Ethernet network segment to the Ethernet message processing device in a mirrored manner based on the Ethernet message acquisition instruction. The above technical solution does not require additional vehicle installation space and complex wiring. The gateway controller and the Ethernet message processing device are connected through the OBD interface of the vehicle automatic diagnostic system, and the forwarding of Ethernet messages in different network segments is realized in a mirroring manner. This overcomes the problem that the existing Ethernet message collection requires additional vehicle installation space and complex wiring, reduces the manufacturing cost and structural complexity of the vehicle, and at the same time, a mirror access right verification link is added before Ethernet message forwarding, thereby improving the security of Ethernet message forwarding and preventing data from being illegally intercepted and used.

[0093] In some embodiments of the present application, the image access permission verification module 410 may be specifically used to:

[0094] Receiving a request for obtaining permission verification key generation data sent by the Ethernet message processing device through the on-board automatic diagnostic system OBD interface, and sending permission verification key generation data to the Ethernet message processing device, wherein the permission verification key generation data is used to generate a mirror access permission verification key;

[0095] Receive the image access permission verification key sent by the Ethernet message processing device, and compare the image access permission verification key with the preset image access permission verification key. If the image access permission verification key is consistent with the preset image access permission verification key, the image access permission verification passes; if the image access permission verification key is consistent with the preset image access permission verification key, the image access permission verification fails.

[0096] In some embodiments of the present application, the permission verification key generation data is an input parameter for calculating the image access permission verification key, and the input parameter is randomly generated data.

[0097] In some embodiments of the present application, the target Ethernet network segment mirror configuration data includes a target Ethernet network segment mirror identifier and a target Ethernet network segment ingress and egress port mirror identifier. Accordingly, the Ethernet message sending module 440 may be specifically used for:

[0098] Determine the target Ethernet network segment according to the target Ethernet network segment mirror identifier and the target Ethernet network segment inlet and outlet port mirror identifier;

[0099] The Ethernet message corresponding to the target Ethernet network segment is obtained, and is sent to the Ethernet message processing device in a mirrored manner.

[0100] The Ethernet message processing device provided in this embodiment can execute the Ethernet message processing method applied to the gateway controller provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.

[0101] Figure 4 This is a schematic diagram of the structure of another Ethernet message processing device provided in an embodiment of the present application. The Ethernet message processing device can be implemented in the form of hardware and / or software. For example, the Ethernet message processing device can be configured in an Ethernet message processing device. Figure 4 As shown, the device comprises:

[0102] The image access permission verification request sending module 510 is used to send the image access permission verification request to the gateway controller through the vehicle automatic diagnostic system OBD interface;

[0103] The Ethernet message acquisition instruction sending module 520 is used to send an Ethernet message acquisition instruction to the gateway controller after receiving the mirror access permission verification information sent by the gateway controller, and the Ethernet message acquisition instruction includes the target Ethernet network segment mirror configuration data;

[0104] The Ethernet message receiving module 530 is used to receive an Ethernet message corresponding to a target Ethernet network segment sent by the gateway controller in a mirroring manner, wherein the target Ethernet network segment is determined by the gateway controller based on the Ethernet message acquisition instruction.

[0105] In some embodiments of the present application, the image access permission verification request sending module 510 can be specifically used to:

[0106] Sending a request for obtaining permission verification key generation data to the gateway controller through an on-board automatic diagnostic system OBD interface, wherein the permission verification key generation data is used to generate a mirror access permission verification key;

[0107] Receiving the authority verification key generation data sent by the gateway controller, and generating the image access authority verification key based on the authority verification key generation data;

[0108] The image access permission verification key is sent to the gateway controller.

[0109] In some embodiments of the present application, the Ethernet message processing device may also include an Ethernet to CAN module, which is used to convert the Ethernet message into a controller area network bus CAN message after receiving the Ethernet message corresponding to the target Ethernet segment sent by the gateway controller in a mirrored manner.

[0110] The Ethernet message processing apparatus provided in this embodiment can execute the Ethernet message processing method applied to the Ethernet message processing device provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.

[0111] Figure 5 A schematic diagram of the structure of a gateway controller provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the gateway controller 600 includes a first processor 601 and a first memory 602, wherein the first processor 601 may be one or more.

[0112] The first processor 601 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the gateway controller 600 to perform desired functions.

[0113] The first memory 602 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer programs or instructions may be stored on the computer-readable storage medium, and the first processor 601 may call the program or instruction to implement the Ethernet message processing method applied to the gateway controller described above and / or other desired functions. Various contents such as initial external parameters, thresholds, etc. may also be stored in the computer-readable storage medium.

[0114] In one example, the gateway controller 600 may further include: a first input device 603 and a first output device 604, which are interconnected via a bus system and / or other forms of connection mechanisms (not shown). The first input device 603 may include, for example, a keyboard, a mouse, etc. The first output device 604 may output various information to the outside, including early warning prompt information, braking force, etc. The first output device 604 may include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, etc.

[0115] Of course, to simplify, Figure 5 Only some of the components in the gateway controller 600 related to the present application are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the gateway controller 600 may also include any other appropriate components.

[0116] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by the first processor 601, enable the first processor 601 to execute the Ethernet message processing method applied to the gateway controller provided in the embodiment of the present application.

[0117] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0118] In addition, an embodiment of the present application may also be a computer-readable storage medium on which a program or instruction is stored, and the program or instruction enables a computer to execute the Ethernet message processing method applied to a gateway controller provided by any embodiment of the present application.

[0119] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0120] Figure 6 A schematic diagram of the structure of an Ethernet message processing device provided in an embodiment of the present application, such as Figure 6 As shown, the Ethernet message processing device 700 includes a second processor 701 and a second memory 702, wherein the second processor 701 may be one or more.

[0121] The second processor 701 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the Ethernet message processing device 700 to perform desired functions.

[0122] The second memory 702 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer programs or instructions may be stored on the computer-readable storage medium, and the second processor 701 may call the program or instruction to implement the Ethernet message processing method applied to the Ethernet message processing device described above and / or other desired functions. Various contents such as initial external parameters, thresholds, etc. may also be stored in the computer-readable storage medium.

[0123] In one example, the Ethernet message processing device 700 may further include: a second input device 703 and a second output device 704, which are interconnected via a bus system and / or other forms of connection mechanisms (not shown). The second input device 703 may include, for example, a keyboard, a mouse, etc. The second output device 704 may output various information to the outside, including early warning prompt information, braking force, etc. The second output device 704 may include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, etc.

[0124] Of course, to simplify, Figure 6 Only some of the components related to the present application in the Ethernet message processing device 700 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, the Ethernet message processing device 700 may also include any other appropriate components according to specific application conditions.

[0125] In addition to the above-mentioned method and device, an embodiment of the present application may also be a computer program product, which includes computer program instructions, and when the computer program instructions are executed by the second processor 701, the second processor 701 executes the Ethernet message processing method applied to the Ethernet message processing device provided in the embodiment of the present application.

[0126] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0127] In addition, the embodiments of the present application may also be a computer-readable storage medium on which a program or instruction is stored, and the program or instruction enables a computer to execute the Ethernet message processing method applied to an Ethernet message processing device provided by any embodiment of the present application.

[0128] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0129] Figure 7 A schematic diagram of the structure of an Ethernet message processing system provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the Ethernet message processing system includes the gateway controller 801 and the Ethernet message processing device 802 provided in the above embodiments, and the gateway controller 801 and the Ethernet message processing device 802 are connected through the vehicle automatic diagnostic system OBD interface, wherein:

[0130] The Ethernet message processing device 802 is used to send a mirror access permission verification request to the gateway controller 801 through the vehicle automatic diagnostic system OBD interface;

[0131] The gateway controller 801 is used to verify the mirror access permission of the Ethernet message processing device 802 based on the received mirror access permission verification request, and if the mirror access permission verification is passed, the mirror access permission of the Ethernet message processing device 802 is opened, and the mirror access permission verification pass information is sent to the Ethernet message processing device 802;

[0132] After receiving the mirror access right verification pass information, the Ethernet message processing device 802 is used to send an Ethernet message acquisition instruction to the gateway controller 801, and the Ethernet message acquisition instruction includes the target Ethernet network segment mirror configuration data;

[0133] The gateway controller 801 is used to send the Ethernet message corresponding to the target Ethernet network segment to the Ethernet message processing device 802 in a mirrored manner based on the received Ethernet message acquisition instruction;

[0134] The Ethernet message processing device 802 is used to receive the Ethernet message.

[0135] An Ethernet message processing system proposed in an embodiment of the present application includes a gateway controller and an Ethernet message processing device, wherein the gateway controller and the Ethernet message processing device are connected through an on-board diagnostic system (OBD) interface, wherein: the Ethernet message processing device is used to send a mirror access permission verification request to the gateway controller through the on-board diagnostic system (OBD) interface; the gateway controller is used to perform a mirror access permission verification on the Ethernet message processing device based on the received mirror access permission verification request, and if the mirror access permission verification passes, the mirror access permission of the Ethernet message processing device is enabled, and a mirror access permission verification pass message is sent to the Ethernet message processing device; after receiving the mirror access permission verification pass message, the Ethernet message processing device is used to send an Ethernet message acquisition instruction to the gateway controller, and the Ethernet message acquisition instruction includes a target Ethernet network segment mirror configuration data; the gateway controller is used to send an Ethernet message corresponding to the target Ethernet network segment to the Ethernet message processing device in a mirrored manner based on the received Ethernet message acquisition instruction; the Ethernet message processing device is used to receive the Ethernet message. The above technical solution does not require additional vehicle installation space and complex wiring. The gateway controller and the Ethernet message processing device are connected through the OBD interface of the vehicle automatic diagnostic system, and the forwarding of Ethernet messages in different network segments is realized in a mirroring manner. This overcomes the problem that the existing Ethernet message collection requires additional vehicle installation space and complex wiring, reduces the manufacturing cost and structural complexity of the vehicle, and at the same time, a mirror access right verification link is added before Ethernet message forwarding, thereby improving the security of Ethernet message forwarding and preventing data from being illegally intercepted and used.

[0136] In some embodiments of the present application, the Ethernet message processing device 802 may be specifically used to send a request for obtaining permission verification key generation data to the gateway controller 801 through the on-board automatic diagnostic system OBD interface, wherein the permission verification key generation data is used to generate a mirror access permission verification key;

[0137] The gateway controller 801 may be specifically configured to receive a request for obtaining authority verification key generation data, and send authority verification key generation data to the Ethernet message processing device 802;

[0138] The Ethernet message processing device 802 may also be specifically configured to receive permission verification key generation data, generate the image access permission verification key based on the permission verification key generation data, and send the image access permission verification key to the gateway controller;

[0139] The gateway controller 801 can also be specifically used to receive an image access permission verification key, and compare the image access permission verification key with a preset image access permission verification key. If the image access permission verification key is consistent with the preset image access permission verification key, the image access permission verification passes; if the image access permission verification key is consistent with the preset image access permission verification key, the image access permission verification fails.

[0140] In some embodiments of the present application, the permission verification key generation data is an input parameter for calculating the image access permission verification key, and the input parameter is randomly generated data.

[0141] In some embodiments of the present application, the target Ethernet network segment mirror configuration data includes a target Ethernet network segment mirror identifier and a target Ethernet network segment ingress and egress port mirror identifier. Accordingly, the gateway controller 801 may also be specifically configured to determine the target Ethernet network segment according to the target Ethernet network segment mirror identifier and the target Ethernet network segment ingress and egress port mirror identifier.

[0142] The Ethernet message corresponding to the target Ethernet network segment is obtained, and sent to the Ethernet message processing device 802 in a mirrored manner.

[0143] In some embodiments of the present application, the Ethernet message processing device 802 may include an Ethernet to CAN module, which may be specifically used to convert the Ethernet message into a controller area network bus CAN message after receiving the Ethernet message corresponding to the target Ethernet segment sent by the gateway controller in a mirrored manner.

[0144] Figure 8 A flow chart of another Ethernet message processing method provided in an embodiment of the present application. Figure 8 As shown, the Ethernet message processing method is executed by the Ethernet message processing system provided by the above embodiments, including:

[0145] S910, the Ethernet message processing device sends a mirror access permission verification request to the gateway controller through the vehicle automatic diagnostic system OBD interface;

[0146] S920, the gateway controller performs mirror access permission verification on the Ethernet message processing device based on the received mirror access permission verification request, and if the mirror access permission verification passes, the gateway controller enables the mirror access permission of the Ethernet message processing device, and sends the mirror access permission verification pass information to the Ethernet message processing device;

[0147] S930. After receiving the mirror access right verification pass information, the Ethernet message processing device sends an Ethernet message acquisition instruction to the gateway controller, where the Ethernet message acquisition instruction includes the target Ethernet network segment mirror configuration data;

[0148] S940, the gateway controller sends the Ethernet message corresponding to the target Ethernet network segment to the Ethernet message processing device in a mirrored manner based on the received Ethernet message acquisition instruction;

[0149] S950. The Ethernet message processing device receives the Ethernet message.

[0150] An Ethernet message processing method proposed in an embodiment of the present application is executed by an Ethernet message processing system, including: an Ethernet message processing device sends a mirror access right verification request to a gateway controller through an on-board automatic diagnostic system OBD interface; the gateway controller verifies the mirror access right of the Ethernet message processing device based on the received mirror access right verification request, and if the mirror access right verification passes, the mirror access right of the Ethernet message processing device is enabled, and a mirror access right verification pass message is sent to the Ethernet message processing device; after receiving the mirror access right verification pass message, the Ethernet message processing device sends an Ethernet message acquisition instruction to the gateway controller, and the Ethernet message acquisition instruction includes the target Ethernet network segment mirror configuration data; the gateway controller sends the Ethernet message corresponding to the target Ethernet network segment to the Ethernet message processing device in a mirrored manner based on the received Ethernet message acquisition instruction; the Ethernet message processing device receives the Ethernet message. The above technical solution does not require additional vehicle installation space and complex wiring. The gateway controller and the Ethernet message processing device are connected through the OBD interface of the vehicle automatic diagnostic system, and the forwarding of Ethernet messages in different network segments is realized in a mirroring manner. This overcomes the problem that the existing Ethernet message collection requires additional vehicle installation space and complex wiring, reduces the manufacturing cost and structural complexity of the vehicle, and at the same time, a mirror access right verification link is added before Ethernet message forwarding, thereby improving the security of Ethernet message forwarding and preventing data from being illegally intercepted and used.

[0151] In some embodiments of the present application, the Ethernet message processing device sends a mirror access permission verification request to the gateway controller through the vehicle automatic diagnostic system OBD interface; the gateway controller performs a mirror access permission verification on the Ethernet message processing device based on the received mirror access permission verification request, including:

[0152] The Ethernet message processing device sends a request for obtaining permission verification key generation data to the gateway controller through the on-board automatic diagnostic system OBD interface, wherein the permission verification key generation data is used to generate a mirror access permission verification key;

[0153] The gateway controller receives the request for obtaining the authority verification key generation data, and sends the authority verification key generation data to the Ethernet message processing device;

[0154] The Ethernet message processing device receives the authority verification key generation data, generates the mirror access authority verification key based on the authority verification key generation data, and sends the mirror access authority verification key to the gateway controller;

[0155] The gateway controller receives the image access permission verification key and compares the image access permission verification key with the preset image access permission verification key. If the image access permission verification key is consistent with the preset image access permission verification key, the image access permission verification passes; if the image access permission verification key is consistent with the preset image access permission verification key, the image access permission verification fails.

[0156] In some embodiments of the present application, the permission verification key generation data is an input parameter for calculating the image access permission verification key, and the input parameter is randomly generated data.

[0157] In some embodiments of the present application, the target Ethernet network segment mirror configuration data includes a target Ethernet network segment mirror identifier and a target Ethernet network segment inlet and outlet port mirror identifier. Accordingly, the gateway controller sends the Ethernet message corresponding to the target Ethernet network segment to the Ethernet message processing device in a mirrored manner based on the received Ethernet message acquisition instruction, including:

[0158] The gateway controller determines the target Ethernet network segment according to the target Ethernet network segment mirror identifier and the target Ethernet network segment inlet and outlet port mirror identifiers;

[0159] The Ethernet message corresponding to the target Ethernet network segment is obtained, and is sent to the Ethernet message processing device in a mirrored manner.

[0160] In some embodiments of the present application, after receiving the Ethernet message corresponding to the target Ethernet segment sent by the gateway controller in a mirrored manner, the Ethernet message processing device converts the Ethernet message into a controller area network bus CAN message.

[0161] It should be noted that the terms used in this application are only for describing specific embodiments, rather than limiting the scope of this application. As shown in the specification and claims of this application, unless the context clearly indicates an exception, the words "one", "a", "a kind of" and / or "the" do not specifically refer to the singular, but may also include the plural. The terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method 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 or device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method or device including the elements.

[0162] It should also be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. Unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", etc. should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0163] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and its core ideas of this application. The above is only the preferred implementation method of this application. It should be pointed out that due to the limitations of textual expression and the objective existence of infinite specific structures, ordinary technicians in this technical field can make several improvements, modifications or changes without departing from the principles of this application, and can also combine the above technical features in an appropriate manner; these improvements, modifications, changes or combinations, or the direct application of the concept and technical solution of the invention to other occasions without improvement, should be regarded as the scope of protection of this application.

Claims

1. A method for processing Ethernet messages, characterized in that: include: Based on the mirror access permission verification request sent by the Ethernet message processing device through the on-board automatic diagnostic system OBD interface, verify the mirror access permission of the Ethernet message processing device; If the mirror access permission is verified, the mirror access permission of the Ethernet message processing device is opened, and the mirror access permission verification pass information is sent to the Ethernet message processing device; Receiving an Ethernet message acquisition instruction sent by the Ethernet message processing device, wherein the Ethernet message acquisition instruction includes target Ethernet network segment mirror configuration data; Based on the Ethernet message acquisition instruction, the Ethernet message corresponding to the target Ethernet network segment is sent to the Ethernet message processing device in a mirrored manner.

2. The method according to claim 1, characterized in that The mirror access permission verification request sent by the Ethernet message processing device through the vehicle automatic diagnostic system OBD interface, performing the mirror access permission verification on the Ethernet message processing device, includes: Receiving a request for obtaining permission verification key generation data sent by the Ethernet message processing device through the on-board automatic diagnostic system OBD interface, and sending permission verification key generation data to the Ethernet message processing device, wherein the permission verification key generation data is used to generate a mirror access permission verification key; Receive the image access permission verification key sent by the Ethernet message processing device, and compare the image access permission verification key with the preset image access permission verification key. If the image access permission verification key is consistent with the preset image access permission verification key, the image access permission verification passes; if the image access permission verification key is consistent with the preset image access permission verification key, the image access permission verification fails.

3. The method according to claim 2, characterized in that The permission verification key generation data is an input parameter for calculating the image access permission verification key, and the input parameter is randomly generated data.

4. The method according to any one of claims 1 to 3, characterized in that: The target Ethernet network segment mirror configuration data includes a target Ethernet network segment mirror identifier and a target Ethernet network segment inlet and outlet port mirror identifier. Accordingly, based on the Ethernet message acquisition instruction, the Ethernet message corresponding to the target Ethernet network segment is sent to the Ethernet message processing device in a mirrored manner, including: Determine the target Ethernet network segment according to the target Ethernet network segment mirror identifier and the target Ethernet network segment inlet and outlet port mirror identifier; The Ethernet message corresponding to the target Ethernet network segment is obtained, and is sent to the Ethernet message processing device in a mirrored manner.

5. A method for processing Ethernet messages, characterized in that: include: Sending a request for image access permission verification to the gateway controller via the vehicle automatic diagnostic system OBD interface; After receiving the mirror access permission verification information sent by the gateway controller, sending an Ethernet message acquisition instruction to the gateway controller, the Ethernet message acquisition instruction includes the target Ethernet network segment mirror configuration data; An Ethernet message corresponding to a target Ethernet network segment sent by the gateway controller in a mirroring manner is received, wherein the target Ethernet network segment is determined by the gateway controller based on the Ethernet message acquisition instruction.

6. The method according to claim 5, characterized in that The sending of the image access permission verification request to the gateway controller through the vehicle automatic diagnostic system OBD interface includes: Sending a request for obtaining permission verification key generation data to the gateway controller through an on-board automatic diagnostic system OBD interface, wherein the permission verification key generation data is used to generate a mirror access permission verification key; Receiving the authority verification key generation data sent by the gateway controller, and generating the image access authority verification key based on the authority verification key generation data; The image access permission verification key is sent to the gateway controller.

7. The method according to claim 5 or 6, characterized in that: After receiving the Ethernet message corresponding to the target Ethernet network segment sent by the gateway controller in a mirroring manner, the method further includes: The Ethernet message is converted into a Controller Area Network (CAN) message.

8. A gateway controller, characterized in that: include: a first processor and a first memory; The first processor is used to execute the Ethernet message processing method according to any one of claims 1 to 4 by calling the program or instruction stored in the first memory.

9. An Ethernet message processing device, characterized in that: include: a second processor and a second memory; The second processor is used to execute the Ethernet message processing method according to any one of claims 5 to 7 by calling the program or instruction stored in the second memory.

10. An Ethernet message processing system, characterized in that: It comprises the gateway controller as claimed in claim 8 and the Ethernet message processing device as claimed in claim 9, wherein the gateway controller and the Ethernet message processing device are connected via an on-board automatic diagnostic system OBD interface.

Citation Information

Cited By

  • Message forwarding method, device, equipment and vehicle

    CN119697293A