Automobile gateway dynamic routing system, dynamic routing table construction method and data processing method

The dynamic routing system automates ECU registration to create a dynamic routing table, addressing the complexity of static routing table maintenance by associating ECUs with data channels, thereby simplifying and stabilizing automotive network operations.

CN119254684APending Publication Date: 2025-01-03CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411551574.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-01
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

The generation and maintenance of static routing tables in automotive gateways are cumbersome, requiring complex version management and frequent updates due to new signals in Electronic Control Units (ECUs), leading to costly and error-prone maintenance.

Method used

A dynamic routing system that utilizes automatic registration of ECUs to create a dynamic routing table based on their logical addresses, eliminating the need for pre-defined static tables by associating ECUs with data transmission channels, and storing this information in non-volatile memory.

Benefits of technology

Simplifies the construction and maintenance of routing tables, reducing the complexity and cost associated with static routing table updates, and ensuring stable vehicle network operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254684A_ABST
    Figure CN119254684A_ABST
Patent Text Reader

Abstract

The invention discloses an automobile gateway dynamic routing system, which comprises an automobile gateway and at least one electronic control unit, and is characterized in that the automobile gateway comprises at least one data transmission channel, and the electronic control unit is connected with the at least one data transmission channel; the automobile gateway comprises a dynamic routing table, and the dynamic routing table comprises an association relationship between an electronic control unit and a data transmission channel; the automobile gateway is used for completing data transmission between the source electronic control unit and the target electronic control unit based on the dynamic routing table; according to the method, the implementation method of a static routing table is replaced by a dynamic routing table method, so that the technical defect that the static routing table is troublesome to construct and maintain is overcome.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of intelligent connected vehicles, and specifically to a dynamic routing system for an automobile gateway, a dynamic routing table construction method, and a data processing method. Background Art

[0002] The current car gateway routing is achieved by building a static routing table in the car gateway. When the car gateway receives a CAN message from a CAN channel, it directly queries the static routing table to obtain the destination channel corresponding to the message, and then sends it out from the destination channel.

[0003] First, the generation of static routing tables is more troublesome. It is necessary to determine all signal forwarding paths when designing the vehicle network to form a standard communication matrix table, and then use tools to convert the matrix table into a static routing table for vehicle gateway forwarding, and finally load the table into the vehicle gateway; secondly, the maintenance of static routing tables is more troublesome. Once there are new signals in the ECU (Electronic Control Unit) under the vehicle gateway, it is necessary to update the communication matrix table and regenerate the static routing table used by the vehicle gateway; and the static routing table is hard-coded into the vehicle gateway code, so the vehicle gateway program needs to be upgraded again at this time. Summary of the invention

[0004] In view of the above-mentioned shortcomings of the prior art, the present application provides an automotive gateway dynamic routing system, a dynamic routing table construction method, and a data processing method to solve at least one defect in the prior art.

[0005] To achieve the above objectives and other objectives, the present application provides a vehicle gateway dynamic routing system, including:

[0006] An automobile gateway, the automobile gateway comprising at least one data transmission channel;

[0007] at least one electronic control unit connected to the at least one data transmission channel;

[0008] The automobile gateway includes a dynamic routing table, which includes an association relationship between an electronic control unit and a data transmission channel; the automobile gateway is used to complete data transmission between a source electronic control unit and a target electronic control unit based on the dynamic routing table.

[0009] In one embodiment of the present application, the dynamic routing table is obtained by registering the association between the logical address of the electronic control unit and the data transmission channel, wherein the logical address of the electronic control unit is obtained by parsing the registration request message carrying the logical address of the electronic control unit received by the automobile gateway.

[0010] In one embodiment of the present application, the routing system further includes: a non-volatile memory for storing the dynamic routing table.

[0011] To achieve the above objectives and other related objectives, the present application provides a method for constructing a dynamic routing table, the method comprising:

[0012] Sending a registration request message to the vehicle gateway, wherein the registration request message carries the logical address of the electronic control unit;

[0013] The registration request message is received and parsed to obtain the logical address of the electronic control unit, the logical address of the electronic control unit and the data transmission channel are associated and registered to obtain a dynamic routing table.

[0014] A registration success message is sent to the electronic control unit.

[0015] In one embodiment of the present application, the method further includes:

[0016] If the ECU does not receive a successful registration message from the vehicle gateway within the set time period, the ECU will send a registration request message to the vehicle gateway again.

[0017] In one embodiment of the present application, the association relationship between the electronic control unit and the data transmission channel includes:

[0018] The association between an electronic control unit and a data transmission channel;

[0019] The association between an electronic control unit and multiple data transmission channels.

[0020] To achieve the above objectives and other related objectives, the present application provides a data processing method, which includes:

[0021] Receiving, through the automobile gateway, a request message sent by a source electronic control unit, wherein the request message carries a logical address of a target electronic control unit;

[0022] Parsing the request message to obtain the logical address of the target electronic control unit, and determining the target data transmission channel based on the logical address of the target electronic control unit and a dynamic routing table; wherein the dynamic routing table is a dynamic routing table included in the automobile gateway in the automobile gateway dynamic routing system, or a dynamic routing table constructed by the construction method;

[0023] Data is sent from the source electronic control unit to the target electronic control unit via the target data transmission channel.

[0024] In one embodiment of the present application, the step of determining the target data transmission channel based on the logical address of the target electronic control unit and the dynamic routing table includes:

[0025] Calling the dynamic routing table;

[0026] Based on the logical address of the target electronic control unit, the dynamic routing table is queried to obtain the logical address of the corresponding target electronic control unit through the association relationship between the logical address of the electronic control unit and the data transmission channel, and determine the target data transmission channel.

[0027] To achieve the above objectives and other related objectives, the present application provides an electronic device, including:

[0028] one or more processors; and

[0029] The memory is used to store one or more programs. When the one or more programs are executed by the one or more processors, the memory implements the method described.

[0030] To achieve the above objectives and other related objectives, the present application provides one or more machine-readable media having instructions stored thereon, which, when executed by one or more processors, enable the processors to execute the described methods.

[0031] Beneficial effects of this application:

[0032] The present application discloses a vehicle gateway dynamic routing system, comprising: a vehicle gateway and at least one electronic control unit, wherein the vehicle gateway comprises at least one data transmission channel, and the electronic control unit is connected to the at least one data transmission channel; the vehicle gateway comprises a dynamic routing table, and the dynamic routing table comprises an association relationship between the electronic control unit and the data transmission channel; the vehicle gateway is used to complete data transmission between a source electronic control unit and a target electronic control unit based on the dynamic routing table; the present application replaces the implementation method of a static routing table with a method of a dynamic routing table, thereby solving the technical defect that the static routing table is difficult to construct and maintain.

[0033] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0035] Figure 1 A schematic diagram of the network topology of a dynamic routing system for an automobile gateway according to an embodiment of the present application;

[0036] Figure 2 A flowchart of a method for constructing a dynamic routing table according to an embodiment of the present application;

[0037] Figure 3 This is a principle block diagram of a dynamic routing system for an automobile gateway according to an embodiment of the present application;

[0038] Figure 4 A flowchart of a data processing method according to an embodiment of the present application;

[0039] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing the memory of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0040] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0041] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.

[0042] Although the terms "first", "second", "A", and "B", etc. may be used herein to describe various elements, these elements should not be limited by these terms and are only used to distinguish one element from another. For example, a first element may be referred to as a second element, and similarly, a second element may be referred to as a first element without departing from the scope of the following technology. The term "and / or" includes a combination of multiple related items or any of the multiple related items.

[0043] As used herein, unless the context indicates otherwise, the singular form is intended to include the plural form, and it will be understood that the term "comprising" means the presence of stated features, quantities, steps, operations, elements, or combinations thereof, but does not exclude the presence or addition of one or more other features, quantities, steps, operations, elements, components, or combinations thereof.

[0044] Before the detailed description, it is intended to clarify that the division of components in this specification is divided only by the main function of each component. That is, two or more components to be described below can be combined into one component, or can be divided into two or more components according to more detailed functions. In addition to the main function of the component, each component to be described below can also perform some or all of the functions of other components, and some of the main functions of each component can be exclusively performed by other components.

[0045] The current car gateway routing is achieved by building a static routing table in the car gateway. When the car gateway receives a CAN message from a CAN channel, it directly queries the static routing table to obtain the destination channel corresponding to the message, and then sends it out from the destination channel.

[0046] This implementation has the following problems:

[0047] 1. The generation of static routing tables is rather troublesome. It is necessary to determine all signal forwarding paths when designing the vehicle network, form a standard communication matrix table, and then use tools to convert the matrix table into a static routing table for vehicle gateway forwarding, and finally load the table into the vehicle gateway.

[0048] 2. The maintenance of static routing tables is troublesome. Once there is a new signal in the ECU connected to the car gateway, the communication matrix table needs to be updated and the static routing table used by the car gateway needs to be regenerated. In many cases, the static routing table is hard-coded into the car gateway code, and the car gateway program needs to be upgraded again. This will lead to a complex version management problem. The software versions of each ECU of the whole vehicle, the versions of the communication matrix table, and the versions of the car gateway program need to be consistent, which is very costly to maintain and prone to errors.

[0049] 3. When matching a new car model, the car gateway program needs to be modified and adapted more because the communication matrix table has changed a lot.

[0050] Based on the above-mentioned defects, this application proposes a new dynamic routing system for automobile gateways, which replaces the implementation method of static routing tables by automatic registration, thereby solving the defects caused by static routing table technology. In this method, since the routing information is not set in advance, it is called dynamic routing, but it is quite different from traditional dynamic routing. Traditional dynamic routing usually uses routing protocols to publish node information to the routing domain by flooding, thereby realizing the release of routing information. However, this application only requires the ECU to register the CAN_ID it needs to the automobile gateway, build a routing information table in the automobile gateway, and guide message forwarding.

[0051] Figure 1 This is a simplified schematic diagram of the network topology of the automotive electronic and electrical architecture, which is only used to illustrate the design ideas of this application. Figure 1 The car gateway in the figure contains a dynamic routing table, which is represented by a dotted box. The dynamic routing table has the same function as the previous static routing table, which is used to guide message forwarding. The difference is that the static routing table is fixed, and the dynamic routing table is registered by the ECU to the car gateway after the car gateway and the downstream ECU are started.

[0052] See also Figure 1 , this embodiment provides a vehicle gateway dynamic routing system, including: a vehicle gateway and at least one electronic control unit (hereinafter referred to as ECU to represent the electronic control unit), the vehicle gateway includes at least one data transmission channel, and the electronic control unit is connected to the at least one data transmission channel;

[0053] The automobile gateway includes a dynamic routing table, which includes an association relationship between an electronic control unit and a data transmission channel; the automobile gateway is used to complete data transmission between a source electronic control unit and a target electronic control unit based on the dynamic routing table;

[0054] In an embodiment of the present application, the dynamic routing table is obtained by registering the association between the logical address of the electronic control unit and the data transmission channel, wherein the logical address of the electronic control unit is obtained by parsing the registration request message carrying the logical address of the electronic control unit received by the automobile gateway.

[0055] In a vehicle network, each ECU has a unique logical address, which is used to identify and distinguish different ECUs in the network. This logical address is usually determined during the hardware or firmware design phase of the ECU and programmed into the ECU during the production process. For example, the logical address of the engine control unit (ECU-Engine) in a smart car is "0x01", which is written into the ECU in advance.

[0056] When an ECU is first connected to the vehicle network or needs to be re-registered (for example, after a software update), a registration request message is constructed after the automotive gateway and ECU are started. This message contains the logical address of the ECU (such as CANID), and possibly other necessary information, such as the type of ECU, the supported communication protocol version, security credentials (such as encryption keys or certificates), etc. The ECU sends the registration request message to the automotive gateway in the vehicle network through its communication interface (such as CAN interface, Ethernet interface, etc.). The automotive gateway is a key device in the vehicle network, responsible for data forwarding and routing management between different network segments.

[0057] After receiving the registration request message from the ECU, the automotive gateway parses the registration request message to obtain the logical address and other relevant information of the ECU in the registration request message. Then the logical address of the ECU in the received request message is associated with the data transmission channel (such as a specific CAN ID range, Ethernet port or VLAN) to form an association relationship, and then the association relationship is registered to obtain a dynamic routing table. This dynamic routing table is the basis for the automotive gateway to make data packet forwarding decisions. It contains information such as the logical addresses, supported communication protocols, and data transmission channels of all ECUs in the network.

[0058] When the source ECU needs to access the target ECU, the corresponding target data transmission channel can be determined through the CANID and dynamic routing table of the target ECU, and the source ECU obtains the corresponding data from the target ECU through the target data transmission channel.

[0059] In the embodiment of the present application, the routing system further includes: a non-volatile memory for storing the dynamic routing table.

[0060] When the car gateway is reset due to some abnormal reason, the previous dynamic routing table information will be lost. This problem can be solved by writing the dynamic routing table to FLASH. FLASH usually refers to the flash memory in the microcontroller. It is a non-volatile memory used to store program code and some resident numbers. The data will not be lost even after power failure. When the car gateway starts, it first loads the dynamic routing information from FLASH, and then receives the request from the downstream ECU for real-time update, which can also speed up the construction of the dynamic routing table.

[0061] The present application replaces the implementation method of the static routing table by automatic registration, thereby solving the defects of the static routing table in that the construction and maintenance are troublesome.

[0062] See also Figure 2 , Figure 2 Flow chart of a method for constructing a dynamic routing table according to an embodiment of the present application. Figure 2 As shown, a method for constructing a dynamic routing table includes steps S210 to S230:

[0063] Step S210, sending a registration request message to the automobile gateway, wherein the registration request message carries the logical address of the electronic control unit;

[0064] In a vehicle network, each ECU has a unique logical address, which is used to identify and distinguish different ECUs in the network. This logical address is usually determined during the hardware or firmware design phase of the ECU and programmed into the ECU during the production process. For example, the logical address of the engine control unit (ECU-Engine) in a smart car is "0x01", which is written into the ECU in advance.

[0065] When an ECU is first connected to the vehicle network or needs to be re-registered (for example, after a software update), a registration request message is constructed after the automotive gateway and ECU are started. This message contains the logical address of the ECU (such as CANID), and possibly other necessary information, such as the type of ECU, the supported communication protocol version, security credentials (such as encryption keys or certificates), etc. The ECU sends the registration request message to the automotive gateway in the vehicle network through its communication interface (such as CAN interface, Ethernet interface, etc.). The automotive gateway is a key device in the vehicle network, responsible for data forwarding and routing management between different network segments.

[0066] Step S220, receiving and parsing the registration request message to obtain the logical address of the electronic control unit, associating the logical address of the electronic control unit with the data transmission channel and registering them to obtain a dynamic routing table;

[0067] After receiving the registration request message from the ECU, the automotive gateway parses the registration request message to obtain the logical address and other relevant information of the ECU in the registration request message. Then the logical address of the ECU in the received request message is associated with the data transmission channel (such as a specific CAN ID range, Ethernet port or VLAN) to form an association relationship, and then the association relationship is registered to obtain a dynamic routing table. This dynamic routing table is the basis for the automotive gateway to make data packet forwarding decisions. It contains information such as the logical addresses, supported communication protocols, and data transmission channels of all ECUs in the network.

[0068] During the registration process, the automotive gateway may also perform security checks to verify the identity and permissions of the ECU to ensure that only legitimate ECUs can access the network and participate in communications.

[0069] Figure 3 FIG. 1 is a functional block diagram of a dynamic routing system for an automobile gateway according to an embodiment of the present application. Figure 3As shown, the two channels channel1 and channel2 of the car gateway are connected to ECU1-1, ECU1-2 and ECU2-1, ECU2-2 respectively. Assume that ECU1-1 needs to receive the message of CANID1-1, ECU1-2 needs to receive the message of CANID1-2, ECU2-1 needs to receive the message of CANID2-1, and ECU2-2 needs to receive the message of CANID2-2.

[0070] It should be noted that the message ID that an ECU needs to receive is determined when the vehicle network is designed. Often an ECU needs to receive more than one message type, and the message type can be identified by CANID.

[0071] It should be noted that an ECU can correspond to more than one data transmission channel. When ECUs located in different channels initiate registration requests for the same CANID to the automotive gateway, multiple destination channels will be created in the same entry in the dynamic routing table. Table 1 shows the table structure of the dynamic routing table, indicating that an ECU can correspond to multiple data transmission channels.

[0072] Table 1

[0073] Destination CAN_ID Destination Channel CAN_ID1 Channel1_1[,Channel1_2,…Channel1_N] CAN_ID2 Channel2_1[,Channel2_2,…Channel2_N]

[0074] Step S230: Send a registration success message to the ECU.

[0075] After the automotive gateway completes the creation of the dynamic routing table, it generates a successful registration message and then returns the successful registration message to the ECU.

[0076] Once the logical address of the ECU is successfully registered in the dynamic routing table and all necessary checks have passed, the automotive gateway will generate a successful registration message. This successful registration message will be sent back to the ECU that initiated the registration request, notifying it that it has successfully registered in the vehicle network and can start normal communication activities. After the ECU receives the successful registration message, the ECU will confirm and update its internal state, preparing for subsequent data transmission and communication tasks.

[0077] After successful registration, the automotive gateway will continue to monitor the communication activities in the network and perform operations such as route optimization, fault detection and recovery as needed to ensure the stable operation of the vehicle network. The automotive gateway may also maintain an online status list of ECUs to record which ECUs are currently active and which may have failed or disconnected, so that corresponding processing can be performed when necessary.

[0078] The present application replaces the implementation method of the static routing table by automatic registration, thereby solving the defects of the static routing table in that the construction and maintenance are troublesome.

[0079] In one embodiment of the present application, the method further includes: if the ECU does not receive a registration success message returned by the automobile gateway within a set time period, sending a registration request message to the automobile gateway again through the ECU.

[0080] If the ECU starts and initializes before the car gateway, the registration request message sent by the ECU may be lost, so the ECU will continue to send registration request messages before receiving the registration success message from the car gateway. Specifically, after the CAN driver in the ECU is initialized, a timer task can be started to send a registration request to the car gateway. After receiving the registration success message, the timer task is closed. If no registration success message is received, the timer task will be executed continuously.

[0081] In one embodiment, the association relationship between the electronic control unit and the data transmission channel includes:

[0082] The association between an electronic control unit and a data transmission channel;

[0083] The association between an electronic control unit and multiple data transmission channels.

[0084] When an ECU is associated with a data transmission channel, it means that the ECU sends data outward through the data transmission channel, or receives data sent by other ECUs.

[0085] When an ECU is associated with multiple data transmission channels, it means that the ECU will send data outward through the multiple data transmission channels, or receive data sent by multiple other ECUs.

[0086] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0087] See also Figure 4 , Figure 4 Flow chart of a data processing method according to an embodiment of the present application. Figure 4 As shown, a data processing method includes:

[0088] Step S410, receiving a request message sent by a source electronic control unit through a vehicle gateway, wherein the request message carries a logical address of a target electronic control unit;

[0089] Step S520, parsing the request message to obtain the logical address of the target electronic control unit, and determining the target data transmission channel based on the logical address of the target ECU and a dynamic routing table; wherein the dynamic routing table is constructed by the aforementioned method for constructing the dynamic routing table;

[0090] In one embodiment of the present application, the step of determining the target data transmission channel based on the logical address of the target electronic control unit and the dynamic routing table includes:

[0091] Calling the dynamic routing table;

[0092] Based on the logical address of the target ECU, the dynamic routing table is queried to obtain the logical address of the corresponding target ECU through the association between the logical address of the ECU and the data transmission channel, and determine the target data transmission channel.

[0093] When the car gateway receives a CAN message from the ECU, it will query the dynamic routing table and match the CAN_ID of the message with the destination CAN_ID in the table. Since the dynamic routing table records the association between the logical address (CAN_ID) and the data transmission channel, if the match is successful, the corresponding target data transmission channel can be determined, and then the data can be sent out from the corresponding target data transmission channel.

[0094] Often, the target data transmission channel may be one or more than one.

[0095] For example, when source ECU-1 wants to obtain data from target ECU-2, source ECU-1 sends a request message carrying the logical address of target ECU-2 to the vehicle gateway; the vehicle gateway parses the request message to obtain the logical address of target ECU-2, and determines the target data transmission channel based on the logical address of target ECU-2 and the dynamic routing table;

[0096] When source ECU-1 wants to obtain data from target ECU-2 and target ECU-3 at the same time, source ECU-1 sends a request message carrying the logical addresses of target ECU-2 and target ECU-3 to the automotive gateway; the automotive gateway parses the request message to obtain the logical addresses of target ECU-2 and target ECU-3, and determines the target data transmission channel based on the logical addresses of target ECU-2 and target ECU-3 and the dynamic routing table, that is, the data transmission channel corresponding to target ECU-2 and the data transmission channel corresponding to target ECU-3.

[0097] Step S430: sending data from the source electronic control unit to the target electronic control unit through the target data transmission channel.

[0098] An embodiment of the present application also provides a device, including: one or more processors; and a memory for storing one or more programs, when the one or more programs are executed by one or more processors, the memory implements the implementation method of dynamic routing of the automobile gateway in the above embodiment.

[0099] The embodiments of the present application also provide one or more machine-readable media on which instructions are stored, which, when executed by one or more processors, enable the processors to execute the implementation method of dynamic routing of the automobile gateway in the above embodiments.

[0100] Figure 5 The schematic diagram of the structure of a computer system suitable for implementing the memory of the embodiment of the present application is shown. It should be noted that: Figure 5 The computer system of the memory shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0101] like Figure 5 As shown, the computer system includes a central processing unit (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) or the program loaded from the storage part to the random access memory (RAM), such as the method in the above embodiment. In the RAM, various programs and data required for system operation are also stored. The CPU, ROM and RAM are connected to each other through a bus. The input / output (I / O) interface is also connected to the bus.

[0102] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that a computer program read therefrom is installed into the storage part as needed.

[0103] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a computer program for executing the implementation method of the aforementioned automotive gateway dynamic routing. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part, and / or installed from a removable medium. When the computer program is executed by the central processing unit (CPU), various functions defined in the system of the present application are executed.

[0104] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a 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. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0105] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0106] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0107] Another aspect of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the aforementioned method for implementing dynamic routing of a vehicle gateway. The computer-readable storage medium may be included in the memory described in the above embodiment, or may exist independently without being assembled into the memory.

[0108] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the implementation method of the dynamic routing of the automobile gateway provided in each of the above embodiments.

[0109] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A dynamic routing system for automobile gateway, characterized in that: include: An automobile gateway, the automobile gateway comprising at least one data transmission channel; at least one electronic control unit connected to the at least one data transmission channel; The automobile gateway includes a dynamic routing table, which includes an association relationship between an electronic control unit and a data transmission channel; the automobile gateway is used to complete data transmission between a source electronic control unit and a target electronic control unit based on the dynamic routing table.

2. The automotive gateway dynamic routing system according to claim 1, characterized in that: The dynamic routing table is obtained by registering the association between the logical address of the electronic control unit and the data transmission channel, wherein the logical address of the electronic control unit is obtained by parsing the registration request message carrying the logical address of the electronic control unit received by the automobile gateway.

3. The automotive gateway dynamic routing system according to claim 1, characterized in that: The routing system further comprises: The non-volatile memory is used to store the dynamic routing table.

4. A method for constructing a dynamic routing table, characterized in that: The method comprises: Sending a registration request message to the vehicle gateway, wherein the registration request message carries the logical address of the electronic control unit; The registration request message is received and parsed to obtain the logical address of the electronic control unit, the logical address of the electronic control unit and the data transmission channel are associated and registered to obtain a dynamic routing table. A registration success message is sent to the electronic control unit.

5. The method for constructing a dynamic routing table according to claim 4, characterized in that: The method further comprises: If the ECU does not receive a successful registration message from the vehicle gateway within the set time period, the ECU will send a registration request message to the vehicle gateway again.

6. The method for constructing a dynamic routing table according to claim 4, characterized in that: The association relationship between the electronic control unit and the data transmission channel includes: The association between an electronic control unit and a data transmission channel; The association between an electronic control unit and multiple data transmission channels.

7. A data processing method, characterized in that: The method comprises: Receiving, through the automobile gateway, a request message sent by a source electronic control unit, wherein the request message carries a logical address of a target electronic control unit; Parsing the request message to obtain the logical address of the target electronic control unit, and determining the target data transmission channel based on the logical address of the target electronic control unit and a dynamic routing table; wherein the dynamic routing table is a dynamic routing table included in the automotive gateway in the automotive gateway dynamic routing system according to any one of claims 1 to 3, or a dynamic routing table constructed by the construction method according to any one of claims 4 to 6; Data is sent from the source electronic control unit to the target electronic control unit via the target data transmission channel.

8. The data processing method according to claim 7, characterized in that: The step of determining the target data transmission channel based on the logical address of the target electronic control unit and the dynamic routing table comprises: Calling the dynamic routing table; Based on the logical address of the target electronic control unit, the dynamic routing table is queried to obtain the logical address of the corresponding target electronic control unit through the association relationship between the logical address of the electronic control unit and the data transmission channel, and determine the target data transmission channel.

9. An electronic device, characterized in that: include: one or more processors; and A memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the memory implements the method according to any one of claims 4-6 or 7-8.

10. A machine-readable medium, characterized in that Instructions are stored thereon, which, when executed by one or more processors, cause the processors to perform the method as described in any one of claims 4-6 or 7-8.

Citation Information

Cited By

  • ECU calibration method based on serial port protocol

    CN121522292A

  • Gateway routing method and device, electronic equipment and medium

    CN122120197A