Routing relationship configuration method and device, electronic equipment and storage medium

By obtaining configuration words in the vehicle gateway controller and determining the target interface and service interface, and automatically configuring the routing table, the cost problems caused by low efficiency and frequent changes in the routing relationship configuration in the existing technology are solved, and efficient and timely routing is achieved Relational configuration.

CN119109779APending Publication Date: 2024-12-10GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411077750.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

In the prior art, the change of the routing relationship of the on-board gateway requires developers to manually modify the software code, resulting in complicated configuration steps and low efficiency. In the case of frequent changes, the gateway controller routing function software needs to be frequently updated, which increases labor costs and development cycle.

Method used

The configuration words are obtained through the vehicle's gateway controller, the target interface identification and target service interface are determined, and the vehicle's routing table is configured based on the target routing relationship, avoiding manual modification of the software code, and realizing automated configuration.

Benefits of technology

The routing relationship configuration steps are greatly reduced, the configuration efficiency is improved, the labor cost and development cycle are reduced, and the routing relationship is timely configured to adapt to the needs of frequent changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119109779A_ABST
    Figure CN119109779A_ABST
Patent Text Reader

Abstract

The invention discloses a routing relationship configuration method and device, electronic equipment and a readable storage medium. The method comprises the following steps: acquiring a configuration word through a gateway controller of a vehicle; if the configuration word indicates a target routing relationship and a target interface identifier, determining a target service interface corresponding to the target interface identifier through the gateway controller; the target routing relationship is used for indicating a mapping relationship between the message or signal of the source network segment and the message or signal of the target network segment; and configuring a routing table of the vehicle based on the target routing relationship through the target service interface. According to the routing relation configuration method and device, developers do not need to manually modify software codes and configure the routing relation through software generated by compiling the software codes, the configuration steps of the routing relation are greatly reduced, and therefore the configuration efficiency of the routing relation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and more specifically, to a method, device, electronic device and computer-readable storage medium for configuring a routing relationship. Background Art

[0002] The routing function of the vehicle gateway is implemented based on the routing relationship calibrated by the gateway controller. When the routing relationship changes, the developer needs to manually modify the code of the gateway controller routing function software to implement the routing relationship change. However, this method of changing the routing relationship is complicated, resulting in low efficiency in routing relationship configuration.

[0003] Therefore, there is an urgent need for a routing relationship configuration method to improve the configuration efficiency of routing relationships. Summary of the invention

[0004] The present application proposes a method, device, electronic device and computer-readable storage medium for configuring routing relationships to improve the above-mentioned defects.

[0005] In a first aspect, an embodiment of the present application provides a method for configuring a routing relationship, the method comprising:

[0006] Get the configuration word through the vehicle's gateway controller;

[0007] If the configuration word indicates a target routing relationship and a target interface identifier, the target service interface corresponding to the target interface identifier is determined by the gateway controller; the target routing relationship is used to indicate a mapping relationship between a source network segment message or signal and a target network segment message or signal;

[0008] The vehicle's routing table is configured based on the target routing relationship through the target service interface.

[0009] In a second aspect, an embodiment of the present application further provides a device for configuring a routing relationship, including:

[0010] An acquisition module, used for acquiring a configuration word through a gateway controller of a vehicle;

[0011] A determination module, used for determining the target service interface corresponding to the target interface identifier through the gateway controller if the configuration word indicates the target routing relationship and the target interface identifier; the target routing relationship is used to indicate the mapping relationship between the source network segment message or signal and the target network segment message or signal;

[0012] The configuration module is used to configure the vehicle's routing table based on the target routing relationship through the target service interface.

[0013] In a third aspect, an embodiment of the present application further provides an electronic device, characterized in that it comprises: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above method.

[0014] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the above method.

[0015] In a fifth aspect, an embodiment of the present application further provides a computer program product, comprising computer instructions, characterized in that the above method is implemented when the computer instructions are executed by a processor.

[0016] The present application provides a method, device, electronic device and computer-readable storage medium for configuring a routing relationship. In the present application, a configuration word is obtained through a gateway controller of a vehicle; if the configuration word indicates a target routing relationship and a target interface identifier, the target service interface corresponding to the target interface identifier is determined through the gateway controller; the target routing relationship is used to indicate the mapping relationship between the source network segment message or signal and the target network segment message or signal; the vehicle's routing table is configured based on the target routing relationship through the target service interface. In the present application, the configuration word obtained by the gateway controller realizes the configuration of the vehicle's routing table based on the target routing relationship, and the developer does not need to manually modify the software code, and the software generated by compiling the software code is used to configure the routing relationship, which greatly reduces the configuration steps of the routing relationship, thereby improving the configuration efficiency of the routing relationship. At the same time, there is no need to manually modify the code, which reduces the labor cost and development cycle. In addition, through the above process, after the routing relationship changes frequently, it is not necessary to frequently change the gateway controller routing function software to match the changed routing relationship. In this case, the routing relationship can be directly configured, and the timely configuration of the routing relationship can be achieved.

[0017] Other features and advantages of the embodiments of the present application will be described in the subsequent description, and partly become apparent from the description, or be understood by practicing the embodiments of the present application. The purposes and other advantages of the embodiments of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 A flow chart of a method for configuring a routing relationship proposed according to an embodiment of the present application is shown.

[0020] Figure 2 A flowchart of a method for configuring a routing relationship proposed according to another embodiment of the present application is shown.

[0021] Figure 3 A flowchart of a method for configuring a routing relationship proposed according to another embodiment of the present application is shown.

[0022] Figure 4 A schematic diagram of a system for configuring a routing relationship in an embodiment of the present application is shown.

[0023] Figure 5 A structural block diagram of a routing relationship configuration device proposed in an embodiment of the present application is shown.

[0024] Figure 6 A schematic diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0025] In order to make those skilled in the art better understand the present application scheme, the technical scheme in the present application embodiment will be clearly and completely described below in conjunction with the drawings in the present application embodiment. Obviously, the described embodiment is only a part of the present application embodiment, rather than all the embodiments. The components of the present application embodiment usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the present application for protection, but merely represents the selected embodiment of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0026] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0027] See also Figure 1 , Figure 1 A flowchart of a method for configuring a routing relationship proposed in an embodiment of the present application is shown, which is used in an electronic device. The method includes:

[0028] S101. Obtain a configuration word through a gateway controller of a vehicle.

[0029] The configuration word indicates the target service to be called, such as UDS2E service, UDS22 service, etc. UDS2E service refers to 2E service under the UDS protocol, and UDS22 service refers to 22 service under the UDS protocol. The UDS (Unified Diagnost ic Services) protocol provides standardized diagnostic services, enabling different diagnostic devices and tools to access and interact with vehicles.

[0030] Among them, the UDS2E service, full name is WriteDataBy Ident ifi er (write data by identifier) ​​service, allows the client (such as diagnostic equipment or system) to write information to the internal location specified by a given data identifier (did) in the server (ECU). Here, the 2E service writes data and is subdivided into adding or modifying routing relationships and deleting routing relationships. The UDS22 service, full name is ReadDataBy Ident ifi er (read data by identifier) ​​service, is a diagnostic service used to read the data value recorded by the specified data identifier from the ECU.

[0031] The gateway controller is the core component of the vehicle network, responsible for routing data from different networks such as CAN, LIN, MOST, FlexRay, Ethernet, etc., to ensure accurate and efficient transmission of information between different networks. The interface identifier can be a data identifier (DataBy Identifier, did), such as did1, did2, etc. The interface identifier is used to indicate the service interface called.

[0032] In some implementations, the configuration word may indicate a target routing relationship and a target interface identifier, and the configuration word may also indicate a target interface identifier but not a target routing relationship.

[0033] When the configuration word indicates the target routing relationship and the target interface identifier, a complete configuration word includes the target service, the target routing relationship and the target interface identifier; when the configuration word indicates the target interface identifier but does not indicate the target routing relationship, a complete configuration word includes the target service and the target interface identifier.

[0034] Among them, the routing relationship refers to the path and decision-making process followed in the process of transmitting data from the source address to the target address. The routing relationship is the basis for realizing the routing function. The routing function is mainly divided into two types: message routing and signal routing. Message routing refers to the process of transmitting the source message from the source address to the target address, which does not involve detailed analysis or modification of the message content. The routing table information of message routing is shown in Table 1 below; signal routing refers to the process of unpacking the source message at the source address, packaging the signal to be routed, and transmitting the packaged signal to the target address. It involves detailed analysis and repackaging of the message content. The routing table information of signal routing is shown in Table 2 below.

[0035] Table 1 Routing table information of message routing

[0036]

[0037] Table 1 shows the routing table information corresponding to the source message whose source message ID is 0x001.

[0038] Table 2 Routing table information of signal routing

[0039]

[0040] Table 2 shows the routing table information corresponding to two source signals that need to be routed in the source message whose source message ID is 0x001.

[0041] The target routing relationship may be a group of routing relationships or multiple groups of routing relationships. A group of routing relationships is a routing relationship corresponding to a frame message route or a signal.

[0042] S102: If the configuration word indicates a target routing relationship and a target interface identifier, determine a target service interface corresponding to the target interface identifier through a gateway controller.

[0043] The target routing relationship is used to indicate the mapping relationship between the message or signal of the source network segment and the message or signal of the target network segment.

[0044] Each routing relationship includes source address information and target address information. The source address information includes routing type, source message ID, source message type, source message DLC, source network segment, source message period, source signal length and source signal start bit. The target address information includes target message ID, target message type, target message length, target network segment, target message period and target signal start bit. The data definition of the routing relationship is shown in Table 3 below:

[0045] Table 3 Data definition of routing relationship

[0046]

[0047]

[0048]

[0049] Among them, DLC (Data Length Code) is a field in the CAN (Controller Area Network) data frame, which stands for "data length code".

[0050] Among them, different interface identifiers identify different service interfaces. For example, the service interface identified by di d1 is interface identifier Q1, and the service interface identified by di d1 is Q2.

[0051] In some implementations, obtaining the configuration word through a gateway controller of the vehicle includes: the gateway controller of the vehicle obtaining the configuration word from an on-board automatic diagnostic system (OBD) interface of a diagnostic instrument.

[0052] In other embodiments, before obtaining the configuration word through the gateway controller of the vehicle, the method also includes: the vehicle's tbox receives the configuration word from the server; obtaining the configuration word through the gateway controller of the vehicle includes: the gateway controller obtains the configuration word from the tbox.

[0053] Among them, the vehicle's tbox, the full name of which is Telematics Box, is used in the car's Internet of Vehicles system, also known as the vehicle-mounted T-Box. It is a vehicle-mounted information device that integrates long-distance communication and information science and technology, and is committed to providing cars with comprehensive driving data collection, remote query and control, and fault monitoring services.

[0054] S103. Configure the vehicle's routing table based on the target routing relationship through the target service interface.

[0055] The routing table includes at least one calibrated routing relationship, and the calibrated routing relationship also includes source address information and target address information.

[0056] For ease of distinction, the source address information in the target routing relationship is called the first source address information, the target address information in the target routing relationship is called the first target address information, the source address information in the calibration routing relationship is called the second source address information, and the source address information in the target routing relationship is called the second target address information.

[0057] In some implementations, configuring the vehicle's routing table based on the target routing relationship through the target service interface may include: configuring the vehicle's routing table based on the target routing relationship in accordance with a configuration method corresponding to the target service interface.

[0058] Among them, different service interfaces correspond to different configuration methods, and the routing table includes all calibrated routing relationships in the vehicle.

[0059] In some embodiments, if the target interface identifier is a first interface identifier, the calibrated routing relationship in the routing table is added or modified based on the target routing relationship through the service interface corresponding to the first interface identifier; if the target interface identifier is a second interface identifier, the calibrated routing relationship in the routing table is deleted based on the target routing relationship through the service interface corresponding to the second interface identifier.

[0060] For example, di d1 represents the first interface identifier, di d2 represents the second interface identifier, and the UDS 2E service is called to configure the calibrated routing relationship in the vehicle's routing table based on the target routing relationship through the service interface corresponding to di d1 or di d2.

[0061] In some embodiments, if the target interface identifier is a first interface identifier, a calibrated routing relationship corresponding to the target routing relationship is queried in the vehicle's routing table through the service interface corresponding to the first interface identifier. If the calibrated routing relationship corresponding to the target routing relationship is found in the vehicle's routing table, the calibrated routing relationship is replaced with the target routing relationship. If the calibrated routing relationship corresponding to the target routing relationship is not found in the vehicle's routing table, the target routing relationship is added to the vehicle's routing table.

[0062] In some embodiments, if the target interface identifier is the second interface identifier, the calibrated routing relationship corresponding to the target routing relationship is queried in the vehicle's routing table through the service interface corresponding to the first interface identifier. If the calibrated routing relationship corresponding to the target routing relationship is found in the vehicle's routing table, the calibrated routing relationship is deleted. If the calibrated routing relationship corresponding to the target routing relationship is not found in the vehicle's routing table, an error prompt message is output.

[0063] In some implementations, at least one parameter included in the first source address information may be used to query a calibrated routing relationship corresponding to the at least one parameter in a routing table of the vehicle as a calibrated routing relationship corresponding to the target routing relationship.

[0064] For example, the service interface corresponding to di d1 is used to query the first source address information, including a calibrated routing relationship whose routing type is message routing and whose source message ID is a. If the corresponding calibrated routing relationship is found, it is replaced with the target routing relationship. If the corresponding calibrated routing relationship is not found, it is added to the vehicle's routing table.

[0065] In some implementations, after S102, the method further includes: receiving prompt information returned by the gateway controller; the prompt information is used to indicate whether the configuration of the target routing relationship is successful or failed.

[0066] If the prompt information is used to prompt that the configuration of the target routing relationship fails, the gateway controller re-acquires the configuration word.

[0067] If the prompt information is used to prompt that the configuration of the target routing relationship is successful, the configuration is ended, and then data routing is performed through the routing relationship configured in the gateway controller.

[0068] In the present application, a configuration word is obtained through the gateway controller of the vehicle; if the configuration word indicates a target routing relationship and a target interface identifier, the target service interface corresponding to the target interface identifier is determined through the gateway controller; the target routing relationship is used to indicate the mapping relationship between the source network segment message or signal and the target network segment message or signal; the vehicle's routing table is configured based on the target routing relationship through the target service interface. In the present application, the configuration word obtained by the gateway controller realizes the configuration of the vehicle's routing table based on the target routing relationship, and the developer does not need to manually modify the software code, and the software generated by the software code compilation is used to configure the routing relationship, which greatly reduces the configuration steps of the routing relationship, thereby improving the configuration efficiency of the routing relationship. At the same time, there is no need to manually modify the code, which reduces the labor cost and development cycle. In addition, through the above process, after the routing relationship changes frequently, it is not necessary to frequently change the gateway controller routing function software to match the changed routing relationship. In this case, the routing relationship can be directly configured, and the timely configuration of the routing relationship can be achieved.

[0069] In one embodiment, after S101, the method further includes: if the target interface identifier indicated by the configuration word is a third interface identifier, reading the routing table through the service interface corresponding to the third interface identifier.

[0070] For example, di d3 is used to represent the third interface identifier, and the UDS22 service is called to read all the calibrated routing relationships in the vehicle's routing table through the service interface corresponding to di d3.

[0071] Among them, all the calibration routing relationships read are shown in Table 4 below:

[0072] Table 4 All calibration routing relationships

[0073]

[0074]

[0075] It should be noted that the order of the calibration routing relationships read each time may be different or the same, and the table 4 obtained before and after the vehicle routing table is configured is different.

[0076] In this embodiment, the third service interface indicated by the configuration word can quickly read all the calibrated routing relationships in the vehicle's routing table and the specific content of each routing relationship.

[0077] In one embodiment, if Figure 2 As shown, before S101, the method further includes:

[0078] S201. Obtain a key seed from a gateway controller.

[0079] The key seed is the initial key used to start the key update process or the key generation process, and is the starting point or basis for generating keys.

[0080] In some implementations, the key seed may be generated by random number generation and hash algorithm in the gateway controller to ensure its randomness and uniqueness.

[0081] In some embodiments, before S201, Figure 3 As shown, the method may include: S301, requesting a gateway controller to enter an extended session mode.

[0082] Among them, the extended session mode is a diagnostic session mode defined in the UDS protocol. This session mode provides a higher level of authority than the default session mode and allows more diagnostic service operations to be performed, such as writing data / parameters, reading and writing diagnostic codes, etc.

[0083] Correspondingly, in Figure 3 In the embodiment, S201 may include: in response to confirmation information returned by the gateway controller, obtaining a key seed from the gateway controller.

[0084] The gateway controller returns confirmation information after entering the extended session mode. After the gateway controller returns the confirmation information, it means that the gateway controller enters the extended session mode. At this time, the routing relationship of the gateway controller can be configured, and the key seed can be obtained from the gateway controller to start the subsequent gateway routing configuration process according to the key seed.

[0085] In some implementations, reading the vehicle's routing table may be performed in a default session.

[0086] S202: Generate a key to be verified based on the key seed.

[0087] In some implementations, a key to be verified may be generated by a key generation algorithm in an electronic device using a key seed as an input parameter.

[0088] Among them, the key generation algorithm can be PBKDF2 (Password-Based Key Derivation Function 2) and Scrypt, etc. PBKDF2 is a password-based one-way function that generates a fixed-length key by inputting information such as a password, a salt value, the number of iterations, and a digest function; Scrypt is a memory key derivation function that requires a large amount of memory and CPU computing resources, and increases the computational complexity by setting high parameter values.

[0089] S203: Send the key to be verified to the gateway controller, so that the gateway controller determines the comparison result between the key to be verified and the verification key, and returns the comparison result.

[0090] The verification key is generated by the gateway controller based on the key seed. The key generation algorithm in the gateway controller is the same as the key generation algorithm in the electronic device.

[0091] Correspondingly, in Figure 2 In the embodiment, S101 includes: if the comparison result is consistent, obtaining the configuration word through the gateway controller of the vehicle.

[0092] If the comparison result is inconsistent, obtain the key seed from the gateway controller again.

[0093] In this embodiment, before obtaining the configuration word through the gateway controller of the vehicle, a key seed is obtained from the gateway controller; a key to be verified is generated based on the key seed; the key to be verified is sent to the gateway controller so that the gateway controller determines the comparison result between the key to be verified and the verification key, and returns the comparison result; the verification key is generated by the gateway controller based on the key seed; the configuration word can only be obtained when the comparison result is consistent, thereby improving the security of the routing relationship configuration process and preventing the routing relationship from being maliciously tampered with.

[0094] Figure 4 A schematic diagram of a routing relationship configuration system is shown. The routing relationship configuration system 400 includes a gateway controller 410 and a calibration device 420.

[0095] The calibration device requests the gateway controller to enter extended session mode.

[0096] If the calibration device receives the confirmation information returned by the gateway controller, it obtains the key seed from the gateway controller, generates the key to be verified based on the key seed, and then sends the key to be verified to the gateway controller.

[0097] After receiving the key to be verified, the gateway controller compares the key to be verified with the verification key generated by the gateway controller according to the key seed, and returns the comparison result to the calibration device.

[0098] If the calibration device determines that the comparison result is consistent, it obtains the configuration word through the gateway controller.

[0099] Afterwards, if the configuration word indicates the target routing relationship and the target interface identifier, the target service interface corresponding to the target interface identifier is determined through the gateway controller; the vehicle's routing table is configured based on the target routing relationship through the target service interface, and if the configuration is successful, a prompt message is returned to the calibration device.

[0100] See attached Figure 5 , Figure 5 A structural block diagram of a routing relationship configuration device proposed in an embodiment of the present application is shown. For electronic equipment, the device includes:

[0101] An acquisition module 510 is used to acquire a configuration word through a gateway controller of the vehicle;

[0102] Determining module 520, for determining the target service interface corresponding to the target interface identifier through the gateway controller if the configuration word indicates the target routing relationship and the target interface identifier; the target routing relationship is used to indicate the mapping relationship between the source network segment message or signal and the target network segment message or signal;

[0103] The configuration module 530 is used to configure the vehicle's routing table based on the target routing relationship through the target service interface.

[0104] Optionally, the configuration module 530 is further used to configure the vehicle's routing table based on the target routing relationship in accordance with the configuration method corresponding to the target service interface.

[0105] Optionally, the configuration module 530 is also used to, if the target interface identifier is a first interface identifier, add or modify the calibrated routing relationship in the routing table based on the target routing relationship through the service interface corresponding to the first interface identifier; if the target interface identifier is a second interface identifier, delete the calibrated routing relationship in the routing table based on the target routing relationship through the service interface corresponding to the second interface identifier.

[0106] Optionally, the acquisition module 510 is further configured to acquire the configuration word from the on-board automatic diagnostic system OBD interface of the diagnostic instrument through the gateway controller of the vehicle.

[0107] Optionally, the acquisition module 510 is further used to receive a configuration word from a server via a tbox of the vehicle; and to acquire the configuration word from the tbox via a gateway controller.

[0108] Optionally, the configuration module 530 is further configured to read the routing table through a service interface corresponding to the third interface identifier if the target interface identifier indicated by the configuration word is a third interface identifier.

[0109] Optionally, the acquisition module 510 is also used to obtain a key seed from the gateway controller; generate a key to be verified based on the key seed; send the key to be verified to the gateway controller so that the gateway controller determines the comparison result between the key to be verified and the verification key, and returns the comparison result; the verification key is generated by the gateway controller based on the key seed; if the comparison result is consistent, obtain the configuration word through the gateway controller of the vehicle.

[0110] Optionally, the acquisition module 510 is also used to request the gateway controller to enter the extended session mode; obtain the key seed from the gateway controller, including: in response to the confirmation information returned by the gateway controller, obtain the key seed from the gateway controller; the gateway controller returns the confirmation information after entering the extended session mode.

[0111] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0112] In addition, each function in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software function modules.

[0113] Please refer to Figure 6 , which shows a structural block diagram of an electronic device provided according to an embodiment of the present application. The electronic device 720 can be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, and a vehicle. The electronic device 720 in the present application may include one or more of the following components: a processor 721, a memory 722, and one or more applications. One or more applications may be stored in the memory 722 and configured to be executed by one or more processors 721, and one or more programs are configured to execute the method described in the aforementioned method embodiment.

[0114] The processor 721 may include one or more processing cores. The processor 721 uses various interfaces and lines to connect the various parts of the entire electronic device 720, and executes various functions and processes data of the electronic device 720 by running or executing instructions, programs, code sets or instruction sets stored in the memory 722, and calling data stored in the memory 722. Optionally, the processor 721 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 721 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 721, but may be implemented separately through a communication chip.

[0115] The memory 722 may include a random access memory (RAM) or a read-only memory (ROM). The memory 722 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 722 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 720 during use.

[0116] In addition, each function in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software function modules.

[0117] On the other hand, the present application also provides a computer-readable storage medium, in which program code is stored. The program code can be called by a processor to execute the method described in the above method embodiment.

[0118] The computer readable storage medium can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a cluster of ROMs. Optionally, the computer readable storage medium includes a non-transitory computer-readable storage medium. The computer readable storage medium has storage space for program codes that execute any of the method steps in the above method. These program codes can be read from or written into one or more computer program products. The program code can be compressed, for example, in an appropriate form.

[0119] According to another aspect of the embodiments of the present application, a computer program product is provided, the computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the method in any of the above embodiments.

[0120] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for configuring a routing relationship, It is characterized in that The method comprises: Get the configuration word through the vehicle's gateway controller; If the configuration word indicates a target routing relationship and a target interface identifier, the target service interface corresponding to the target interface identifier is determined by the gateway controller; the target routing relationship is used to indicate a mapping relationship between a source network segment message or signal and a target network segment message or signal; The routing table of the vehicle is configured based on the target routing relationship through the target service interface.

2. The method according to claim 1, It is characterized in that The configuring the routing table of the vehicle based on the target routing relationship through the target service interface includes: The routing table of the vehicle is configured based on the target routing relationship in accordance with the configuration method corresponding to the target service interface.

3. The method according to claim 2, It is characterized in that The configuring the routing table of the vehicle based on the target routing relationship according to the configuration mode corresponding to the target service interface includes: If the target interface identifier is the first interface identifier, the calibrated routing relationship in the routing table is newly added or modified based on the target routing relationship through the service interface corresponding to the first interface identifier; If the target interface identifier is a second interface identifier, the calibrated routing relationship in the routing table is deleted based on the target routing relationship through the service interface corresponding to the second interface identifier.

4. The method according to claim 1, It is characterized in that The obtaining of the configuration word through the gateway controller of the vehicle includes: Obtaining the configuration word from the on-board automatic diagnostic system OBD interface of the diagnostic instrument through the gateway controller of the vehicle; or, Before acquiring the configuration word through the gateway controller of the vehicle, the method further includes: receiving the configuration word from a server via the tbox of the vehicle; The obtaining of the configuration word through the gateway controller of the vehicle includes: The configuration word is obtained from the tbox through the gateway controller.

5. The method according to claim 1, It is characterized in that After acquiring the configuration word through the gateway controller of the vehicle, the method further includes: If the target interface identifier indicated by the configuration word is a third interface identifier, the routing table is read through a service interface corresponding to the third interface identifier.

6. The method according to any one of claims 1 to 5, It is characterized in that Before acquiring the configuration word through the gateway controller of the vehicle, the method further includes: Obtaining a key seed from the gateway controller; Generate a key to be verified based on the key seed; Sending the key to be verified to the gateway controller, so that the gateway controller determines the comparison result between the key to be verified and the verification key, and returns the comparison result; the verification key is generated by the gateway controller based on the key seed; The obtaining of the configuration word through the gateway controller of the vehicle includes: If the comparison result is consistent, the configuration word is obtained through the gateway controller of the vehicle.

7. The method according to claim 6, It is characterized in that Before obtaining the key seed from the gateway controller, the method further includes: Requesting the gateway controller to enter extended session mode; The obtaining a key seed from the gateway controller includes: In response to the confirmation information returned by the gateway controller, a key seed is obtained from the gateway controller; and the gateway controller returns the confirmation information after entering the extended session mode.

8. A device for configuring a routing relationship, It is characterized in that include: An acquisition module, used for acquiring a configuration word through a gateway controller of a vehicle; A determination module, for determining, by the gateway controller, a target service interface corresponding to the target interface identifier if the configuration word indicates a target routing relationship and a target interface identifier; the target routing relationship is used to indicate a mapping relationship between a source network segment message or signal and a target network segment message or signal; A configuration module is used to configure the routing table of the vehicle based on the target routing relationship through the target service interface.

9. An electronic device, It is characterized in that include: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the method according to any one of claims 1-7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the method according to any one of claims 1 to 7.