CN115225481B - Gateway diagnosis route configuration method and device, vehicle-mounted gateway, vehicle and medium - Google Patents

Gateway diagnosis route configuration method and device, vehicle-mounted gateway, vehicle and medium Download PDF

Info

Publication number
CN115225481B
CN115225481B CN202111501474.0A CN202111501474A CN115225481B CN 115225481 B CN115225481 B CN 115225481B CN 202111501474 A CN202111501474 A CN 202111501474A CN 115225481 B CN115225481 B CN 115225481B
Authority
CN
China
Prior art keywords
vehicle
diagnosis
gateway
network management
control unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111501474.0A
Other languages
Chinese (zh)
Other versions
CN115225481A (en
Inventor
高德申
温小锋
朱鹏波
韦恩祥
王礼
王宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Automobile Group Co Ltd
Original Assignee
Guangzhou Automobile Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Automobile Group Co Ltd filed Critical Guangzhou Automobile Group Co Ltd
Priority to CN202111501474.0A priority Critical patent/CN115225481B/en
Publication of CN115225481A publication Critical patent/CN115225481A/en
Application granted granted Critical
Publication of CN115225481B publication Critical patent/CN115225481B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application relates to the technical field of vehicles and discloses a gateway diagnosis route configuration method, a gateway diagnosis route configuration device, a vehicle-mounted gateway, a vehicle and a storage medium, which are used for realizing automatic configuration of diagnosis routes and improving configuration efficiency of the diagnosis routes. Wherein the method comprises the following steps: monitoring a network management message identifier sent by a vehicle-mounted control unit; confirming a target bus where the vehicle-mounted control unit is located according to the network management message identifier; searching a diagnosis identifier corresponding to the network management message identifier from a preset identifier mapping table; and configuring diagnosis route configuration information of the vehicle platform through the diagnosis identification and the target bus corresponding to each vehicle-mounted control unit.

Description

Gateway diagnosis route configuration method and device, vehicle-mounted gateway, vehicle and medium
Technical Field
The present disclosure relates to the field of vehicle technologies, and in particular, to a gateway diagnostic route configuration method and device, a vehicle-mounted gateway, a vehicle, and a storage medium.
Background
The internal communication of the automobile can have a large number of diagnosis messages, and the messages can have a scene of information interchange, which is called diagnosis route. The intelligent and personalized popularization of automobiles is gradual, in addition, in order to reduce the cost, the platform is also the mainstream of a host factory, in order to solve the contradiction between the platform and the individuation, the differentiation is configured into a normal state, and the gateway is used as a data interaction hub of a vehicle-mounted gateway, so that the gateway is required to configure the diagnosis route.
The inventor finds that, due to the differentiation of each vehicle model, the diagnosis route needs to be manually and independently configured according to the diagnosis route condition for each vehicle model, the development workload is large, the verification time is long, and the diagnosis is low in the configuration efficiency of the diagnosis mode route.
Disclosure of Invention
The application provides a gateway diagnosis route configuration method, a gateway diagnosis route configuration device, a vehicle-mounted gateway, a vehicle and a storage medium, which are used for solving the technical problem that the conventional diagnosis route configuration efficiency is low.
A gateway diagnostic routing configuration method, comprising:
monitoring a network management message identifier sent by a vehicle-mounted control unit;
confirming a target bus where the vehicle-mounted control unit is located according to the network management message identifier;
searching a diagnosis identifier corresponding to the network management message identifier from a preset identifier mapping table;
and configuring diagnosis route configuration information of the vehicle platform through the diagnosis identification and the target bus corresponding to each vehicle-mounted control unit.
In an embodiment, the preset identifier mapping table is obtained by the following manner:
acquiring diagnostic identifiers and network management message identifiers corresponding to all the vehicle-mounted control units of a vehicle platform;
establishing a mapping relation between the diagnosis identifier corresponding to each vehicle-mounted control unit and the network management message identifier;
and generating the identification mapping table through the mapping relation of each vehicle-mounted control unit.
In an embodiment, the monitoring the network management message identifier sent by the vehicle-mounted control unit includes:
receiving a diagnosis control routine sent by a diagnosis instrument;
and responding to the diagnosis control routine, and monitoring a network management message identifier sent by the vehicle-mounted control unit.
In an embodiment, after the configuring the diagnostic routing configuration information of the vehicle platform, the method further comprises:
judging whether all the vehicle-mounted control units of the vehicle platform are configured with corresponding diagnosis routes or not;
when it is determined that all the vehicle-mounted control units of the vehicle platform are configured with corresponding diagnosis routes, setting a diagnosis configuration identification position;
and when the vehicle-mounted control unit is diagnosed and the diagnosis configuration identification bit is in the set state, routing the diagnosis message according to the diagnosis routing configuration information.
In one embodiment, the identifying the target bus where the vehicle-mounted control unit is located according to the network management message identifier includes:
the method comprises the steps of obtaining bus structure information of a vehicle platform in advance, wherein the bus structure information comprises all buses of the vehicle platform and path information of the buses;
acquiring path information corresponding to the network management message identifier;
and confirming the target bus where the vehicle-mounted control unit is located from all buses according to the path information of the buses and the path information corresponding to the network management message identifier.
In an embodiment, after the configuring the diagnostic routing configuration information of the vehicle platform, the method further comprises:
and storing the diagnosis routing configuration information in a charged erasable programmable read-only memory of the vehicle-mounted gateway.
A gateway diagnosis route configuration device is applied to a vehicle-mounted gateway and comprises:
the monitoring module is used for monitoring the network management message identifier sent by the vehicle-mounted control unit ECU;
the confirmation module is used for confirming a target bus where the vehicle-mounted control unit is located according to the network management message identifier;
the searching module is used for searching the diagnosis identifier corresponding to the network management message identifier from a preset identifier mapping table;
the configuration module is used for configuring the diagnosis route configuration information of the vehicle platform through the diagnosis identification and the target bus corresponding to each vehicle-mounted control unit.
An on-board gateway comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the steps of the gateway diagnostic routing configuration method of any of the preceding claims.
A vehicle comprising an on-board control unit and an on-board gateway as described above.
A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the steps of the gateway diagnostic routing configuration method of any of the preceding claims.
According to one scheme provided by the application, the vehicle-mounted gateway is used as a hub of each bus of the whole vehicle, namely each network segment, can integrate the IDs of the network management messages and the diagnosis messages of all the ECU units, automatically compares the stored identification mapping table according to the IDs of the network management messages of all the ECU units, stores the corresponding buses of the ECU of the whole vehicle, automatically configures and stores the diagnosis route configuration information, and is then used for forwarding routes of subsequent diagnosis messages. The purpose of dynamic configuration diagnosis route is achieved. Compared with the traditional scheme, manual configuration is not needed, so that the configuration efficiency of the diagnostic route is greatly improved, and the method has strong practicability and application scene.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments of the present application will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an application environment of a gateway diagnostic routing configuration method according to an embodiment of the present application;
FIG. 2 is a flow chart of a gateway diagnostic routing configuration method according to an embodiment of the present application;
FIG. 3 is another flow chart of a method for configuring a gateway diagnostic route according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a gateway diagnostic routing configuration device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an in-vehicle gateway according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The embodiment of the application provides a gateway diagnosis routing configuration method, which can be applied to an application environment as shown in fig. 1, and comprises an on-board gateway, an on-board control unit (Electronic Control Unit, ECU) and a diagnosis instrument, wherein the on-board control unit is an on-board unit in a vehicle platform, and a vehicle system generally comprises a plurality of on-board control units, and for example, the on-board control unit can comprise the ECU1, the ECU2, the... The vehicle platform can refer to various vehicle types, that is, the gateway diagnosis route configuration method provided by the application can be applied to various vehicle types, and is not particularly limited.
With the wide application of vehicle diagnostic protocols, most of the current vehicle internal communication has a phenomenon that a traditional diagnostic message (UDSonCAN, UDSonLIN) and a diagnostic message based on ethernet (UDSonIP) coexist, and these messages have a scene of information mutual transfer, which is called as a diagnostic route. Because of the differential configuration of the vehicle types, the configuration information of the diagnosis route is usually manually configured at present, and the configuration information is used for diagnosing the diagnosis message according to the configured configuration information of the diagnosis route during diagnosis. In order to solve the technical problem of low efficiency, the inventor specially proposes the scheme of the application, and the scheme is described in detail through specific embodiments.
In an embodiment, as shown in fig. 2, a gateway diagnostic route configuration method is provided, and the method is applied to the vehicle gateway in fig. 1, and includes the following steps:
s10: and monitoring the network management message identifier sent by the vehicle-mounted control unit.
The vehicle-mounted gateway can detect whether a vehicle-mounted control unit in the vehicle platform sends out a network management message identifier, wherein the vehicle-mounted control unit can send out a network management message in a vehicle bus based on certain special scenes, the network management message carries the network management message identifier, and the vehicle-mounted gateway can monitor the network management message identifier sent out by the vehicle-mounted control unit. The special scenario may refer to that the vehicle-mounted gateway requests the vehicle-mounted control unit to send the network management message.
In some embodiments, the network management packet identifier may be a network management packet ID (Identity Document), and the specific form of the identifier is not limited.
In one embodiment, in step S10, namely, monitoring the network management message identifier sent by the vehicle-mounted control unit, the method specifically includes the following steps:
s11: a diagnostic control routine sent by a diagnostic instrument is received.
S12: and responding to the diagnosis control routine, and monitoring a network management message identifier sent by the vehicle-mounted control unit.
For steps S11-S12, in order to trigger the on-vehicle gateway to monitor the implementation manner in which the on-vehicle control unit sends the network management message identifier, in step S11, a diagnostic control routine may be sent to the on-vehicle gateway by using the diagnostic apparatus, where, by way of example, the diagnostic control routine may be: 0x31 0x01 0xXX 0xXX; the specific identification in the diagnostic control routine is also vehicle factory custom and is not described here. In step S12, after receiving the diagnostic control routine sent by the diagnostic apparatus, the on-board gateway will respond to the diagnostic control routine to enable the on-board gateway to start monitoring the network management message ID of the on-board control unit of the vehicle platform.
The same processing mode is adopted for other vehicle-mounted control units, so that the vehicle-mounted gateway starts to monitor the network management message ID on each bus.
In an embodiment, the diagnosis control routine may be sent by the diagnostic apparatus at the time of the initial diagnosis of the on-board control unit, which is not particularly limited.
S20: and confirming a target bus where the vehicle-mounted control unit is located according to the network management message identifier.
After obtaining the network management message ID, the vehicle-mounted gateway confirms the target bus where the vehicle-mounted control unit is located according to the network management message ID.
For other vehicle-mounted control units, the same processing mode is adopted, so that the vehicle-mounted gateway starts to monitor the network management message ID on each bus to obtain the bus where each vehicle-mounted control unit is located.
In one embodiment, in step S20, that is, the target bus where the vehicle-mounted control unit is located is confirmed according to the network management message identifier, the method specifically includes the following steps:
s21: bus structure information of a vehicle platform is obtained in advance, wherein the bus structure information comprises all buses of the vehicle platform and path information of the buses.
S22: and acquiring path information corresponding to the network management message identifier.
S23: and confirming the target bus where the vehicle-mounted control unit is located from all buses according to the path information of the buses and the path information corresponding to the network management message identifier.
For the step S21-S23, the manner in which the target bus where each vehicle-mounted control unit is located is confirmed for the vehicle-mounted gateway, it may be understood that, for each vehicle type, the bus structure of the corresponding vehicle platform is different. After the network management message identifier is obtained, the network management message identifier indicates which vehicle-mounted control unit is sent, so that the vehicle-mounted gateway can find out the target bus where the vehicle-mounted control unit is located according to the comparison between the path information corresponding to the network management message identifier and the bus structure information after knowing the corresponding path information according to the network management message identifier.
In some embodiments, bus structure information of the vehicle platform may be pre-integrated into the on-board gateway in order to perform the solution in the present application.
The embodiment provides a simple processing mode for the vehicle-mounted gateway to acquire the bus where each vehicle-mounted control unit is located, and the feasibility of the scheme is improved.
S30: and searching for a diagnosis identifier corresponding to the network management message identifier from a preset identifier mapping table.
The method comprises the steps that a preset identification mapping table stores the mapping relation between network management message identifications and diagnostic identifications (diagnostic IDs), and after the network management message identifications are obtained, the vehicle-mounted gateway searches the diagnostic identifications corresponding to the network management message identifications from the preset identification mapping table.
In some embodiments, the identifier mapping table is pre-stored in the vehicle-mounted gateway, so that the diagnostic identifier corresponding to the network management message identifier can be found by quickly using the identifier mapping table.
In an embodiment, the preset identifier mapping table is obtained by the following manner:
s101: and obtaining all diagnostic identifiers and network management message identifiers corresponding to the vehicle-mounted control units of the vehicle platform.
S102: and establishing a mapping relation between the diagnosis identifier corresponding to each vehicle-mounted control unit and the network management message identifier.
S103: and generating the identification mapping table through the mapping relation of each vehicle-mounted control unit.
For the process embodiment of generating the identification mapping table for the vehicle-mounted gateway in steps S101-S103, specifically, the vehicle-mounted gateway or other devices may sort the diagnostic IDs and the network management message IDs of each vehicle-mounted control unit according to the configuration of the vehicle platform, establish the mapping relationship between the diagnostic identifier and the network management message identifier corresponding to each vehicle-mounted control unit, and then the vehicle-mounted gateway generates the identification mapping table from the mapping relationship between the diagnostic IDs and the network management IDs of each vehicle-mounted control unit in the vehicle platform, and integrate the identification mapping table in the vehicle-mounted gateway software.
In an embodiment, the identification mapping table may also be generated by other external devices and then integrated in the vehicle gateway, which is not limited in particular.
In one embodiment, the diagnostic routing configuration information may be stored in a charged erasable programmable read-only memory ((Electrically Erasable Programmable read only memory, EEPROM)) of the vehicle gateway.
S40: and configuring diagnosis route configuration information of the vehicle platform through the diagnosis identification and the target bus corresponding to each vehicle-mounted control unit.
After determining the diagnostic identifier and the target bus corresponding to each vehicle-mounted control unit in the vehicle platform through steps S10-S30, the vehicle-mounted gateway can complete the diagnostic route configuration information of the vehicle platform according to the corresponding relationship of the target bus. For example, if ECU1 corresponds to diagnostic ID1 and bus 1, ECU2 corresponds to diagnostic ID2 and bus 2.
It can be seen that, by using the gateway diagnostic route configuration method provided by the embodiment of the present application, the vehicle-mounted gateway is used as the hub of each bus of the whole vehicle, that is, each network segment, and can integrate the IDs of the network management messages and the diagnostic messages of all the ECU units, and automatically store the corresponding bus of the ECU of the whole vehicle according to the ID by automatically comparing the ID of the network management message of each ECU with the stored identification mapping table, automatically configure and store the diagnostic route configuration information, and then use the diagnostic route configuration information for forwarding routes of subsequent diagnostic messages. The purpose of dynamic configuration diagnosis route is achieved. Compared with the traditional scheme, manual configuration is not needed, so that the configuration efficiency of the diagnostic route is greatly improved, and the method has strong practicability and application scene.
In an embodiment, as shown in fig. 3, after step S40, that is, after the configuration of the diagnostic routing configuration information of the vehicle platform, the method further includes the steps of:
s50: and judging whether all the vehicle-mounted control units of the vehicle platform are configured with corresponding diagnosis routes or not.
S60: and when the vehicle-mounted control units of the vehicle platform are judged to be configured with the corresponding diagnosis routes, setting the diagnosis configuration identification position.
S70: and when diagnosis is carried out on the vehicle-mounted control unit and the diagnosis configuration identification bit is in the set state.
S80: and routing the diagnosis message according to the diagnosis route configuration information.
For steps S50-S60, after the vehicle gateway configures the diagnostic route configuration information of each vehicle control unit, it is determined whether all the vehicle control units of the vehicle platform have been configured with corresponding diagnostic routes, when the vehicle gateway determines that all the vehicle control units of the vehicle platform have been configured with corresponding diagnostic routes, the vehicle gateway sets the diagnostic configuration identification position (flag bit=1), otherwise, prompt information may be sent. When the vehicle-mounted gateway diagnoses the vehicle-mounted control unit and the diagnosis configuration identification bit is in the set state, the diagnosis route configuration information is completely finished, at this time, the vehicle-mounted gateway routes a diagnosis message according to the route indication of the diagnosis route configuration information, and sends the diagnosis message to a bus corresponding to the vehicle-mounted control unit to finish a diagnosis test, and specific diagnosis service contents are not described herein.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
In an embodiment, a gateway diagnostic routing configuration device is provided, where the gateway diagnostic routing configuration device corresponds to the gateway diagnostic routing configuration method in the above embodiment one by one. As shown in fig. 4, the gateway diagnostic route configuration device includes a monitoring module 101, a confirmation module 102, a lookup module 103, and a configuration module 104. The functional modules are described in detail as follows:
the monitoring module 101 is used for monitoring the network management message identifier sent by the vehicle-mounted control unit;
the confirmation module 102 is configured to confirm, according to the network management message identifier, a target bus where the vehicle-mounted control unit is located;
the searching module 103 is configured to search for a diagnostic identifier corresponding to the network management message identifier from a preset identifier mapping table;
and the configuration module 104 is configured to configure diagnostic routing configuration information of the vehicle platform through the diagnostic identifier and the target bus corresponding to each vehicle-mounted control unit.
In one embodiment, the configuration module 104 is further configured to:
acquiring diagnostic identifiers and network management message identifiers corresponding to all the vehicle-mounted control units of a vehicle platform;
establishing a mapping relation between the diagnosis identifier corresponding to each vehicle-mounted control unit and the network management message identifier;
and generating the identification mapping table through the mapping relation of each vehicle-mounted control unit.
In an embodiment, the monitoring module 101 is further configured to:
receiving a diagnosis control routine sent by a diagnosis instrument;
and responding to the diagnosis control routine, and monitoring a network management message identifier sent by the vehicle-mounted control unit.
In an embodiment, the gateway diagnostic route configuration device further comprises a routing module for:
judging whether all the vehicle-mounted control units of the vehicle platform are configured with corresponding diagnosis routes or not;
when it is determined that all the vehicle-mounted control units of the vehicle platform are configured with corresponding diagnosis routes, setting a diagnosis configuration identification position;
and when the vehicle-mounted control unit is diagnosed and the diagnosis configuration identification bit is in the set state, routing the diagnosis message according to the diagnosis routing configuration information.
In one embodiment, the validation module 102 is further configured to:
the method comprises the steps of obtaining bus structure information of a vehicle platform in advance, wherein the bus structure information comprises all buses of the vehicle platform and path information of the buses;
acquiring path information corresponding to the network management message identifier;
and confirming the target bus where the vehicle-mounted control unit is located from all buses according to the path information of the buses and the path information corresponding to the network management message identifier.
In an embodiment, the gateway diagnostic route configuration device further includes a save module, where the save module is configured to:
and storing the diagnosis routing configuration information in a charged erasable programmable read-only memory of the vehicle-mounted gateway.
It can be seen that, through the gateway diagnostic route configuration device provided by the embodiment of the present application, the gateway diagnostic route configuration device may be used in a vehicle gateway, to implement automatic configuration of diagnostic routes, where the vehicle gateway is used as a hub of each bus of the whole vehicle, that is, each network segment, and may integrate network management messages of all ECU units and IDs of diagnostic messages, and automatically compare stored identification mapping tables according to the IDs of the network management messages of each ECU unit, store buses corresponding to the ECU of the whole vehicle, automatically configure and store diagnostic route configuration information, and then use for forwarding routes of subsequent diagnostic messages. The purpose of dynamic configuration diagnosis route is achieved. Compared with the traditional scheme, manual configuration is not needed, so that the configuration efficiency of the diagnostic route is greatly improved, and the method has strong practicability and application scene.
The specific limitation of the gateway diagnostic route configuration device may be referred to as limitation of the gateway diagnostic route configuration method hereinabove, and will not be described herein. The respective modules in the gateway diagnostic routing configuration apparatus described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, an in-vehicle gateway is provided, the internal structure of which may be as shown in fig. 5. The vehicle gateway comprises a processor, a memory and a network interface which are connected through a system bus. Wherein the processor of the on-board gateway is configured to provide computing and control capabilities. The memory of the vehicle-mounted gateway comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the vehicle-mounted gateway is used for communicating with an external diagnostic instrument, a vehicle-mounted control unit and the like through network connection. The computer program is executed by a processor to implement a gateway diagnostic routing configuration method.
In one embodiment, there is provided an on-vehicle gateway comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
monitoring a network management message identifier sent by a vehicle-mounted control unit;
confirming a target bus where the vehicle-mounted control unit is located according to the network management message identifier;
searching a diagnosis identifier corresponding to the network management message identifier from a preset identifier mapping table;
and configuring diagnosis route configuration information of the vehicle platform through the diagnosis identification and the target bus corresponding to each vehicle-mounted control unit.
In an embodiment, the processor when executing the computer program further performs the steps of:
acquiring diagnostic identifiers and network management message identifiers corresponding to all the vehicle-mounted control units of a vehicle platform;
establishing a mapping relation between the diagnosis identifier corresponding to each vehicle-mounted control unit and the network management message identifier;
and generating the identification mapping table through the mapping relation of each vehicle-mounted control unit.
In one embodiment, the processor when executing the computer program performs the steps of:
receiving a diagnosis control routine sent by a diagnosis instrument;
and responding to the diagnosis control routine, and monitoring a network management message identifier sent by the vehicle-mounted control unit.
In an embodiment, the processor when executing the computer program further performs the steps of:
judging whether all the vehicle-mounted control units of the vehicle platform are configured with corresponding diagnosis routes or not;
when it is determined that all the vehicle-mounted control units of the vehicle platform are configured with corresponding diagnosis routes, setting a diagnosis configuration identification position;
and when the vehicle-mounted control unit is diagnosed and the diagnosis configuration identification bit is in the set state, routing the diagnosis message according to the diagnosis routing configuration information.
In one embodiment, the processor when executing the computer program performs the steps of:
the method comprises the steps of obtaining bus structure information of a vehicle platform in advance, wherein the bus structure information comprises all buses of the vehicle platform and path information of the buses;
acquiring path information corresponding to the network management message identifier;
and confirming the target bus where the vehicle-mounted control unit is located from all buses according to the path information of the buses and the path information corresponding to the network management message identifier.
In an embodiment, the processor when executing the computer program further performs the steps of:
and storing the diagnosis routing configuration information in a charged erasable programmable read-only memory of the vehicle-mounted gateway.
In one embodiment, a vehicle is provided comprising an on-board control unit and an on-board gateway as in any of the previous embodiments.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
monitoring a network management message identifier sent by a vehicle-mounted control unit;
confirming a target bus where the vehicle-mounted control unit is located according to the network management message identifier;
searching a diagnosis identifier corresponding to the network management message identifier from a preset identifier mapping table;
and configuring diagnosis route configuration information of the vehicle platform through the diagnosis identification and the target bus corresponding to each vehicle-mounted control unit.
In an embodiment, the computer program when executed by the processor further performs the steps of:
acquiring diagnostic identifiers and network management message identifiers corresponding to all the vehicle-mounted control units of a vehicle platform;
establishing a mapping relation between the diagnosis identifier corresponding to each vehicle-mounted control unit and the network management message identifier;
and generating the identification mapping table through the mapping relation of each vehicle-mounted control unit.
In an embodiment, the computer program when executed by the processor further performs the steps of:
receiving a diagnosis control routine sent by a diagnosis instrument;
and responding to the diagnosis control routine, and monitoring a network management message identifier sent by the vehicle-mounted control unit.
In an embodiment, the computer program when executed by the processor further performs the steps of:
judging whether all the vehicle-mounted control units of the vehicle platform are configured with corresponding diagnosis routes or not;
when it is determined that all the vehicle-mounted control units of the vehicle platform are configured with corresponding diagnosis routes, setting a diagnosis configuration identification position;
and when the vehicle-mounted control unit is diagnosed and the diagnosis configuration identification bit is in the set state, routing the diagnosis message according to the diagnosis routing configuration information.
In an embodiment, the computer program when executed by the processor further performs the steps of:
the method comprises the steps of obtaining bus structure information of a vehicle platform in advance, wherein the bus structure information comprises all buses of the vehicle platform and path information of the buses;
acquiring path information corresponding to the network management message identifier;
and confirming the target bus where the vehicle-mounted control unit is located from all buses according to the path information of the buses and the path information corresponding to the network management message identifier.
In an embodiment, the computer program when executed by the processor further performs the steps of:
and storing the diagnosis routing configuration information in a charged erasable programmable read-only memory of the vehicle-mounted gateway.
It should be noted that, the technical effects corresponding to the above embodiments may refer to the descriptions of the foregoing method embodiments, and the description is not repeated here.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (9)

1. A method for configuring a diagnostic route for a gateway, comprising:
monitoring a network management message identifier sent by a vehicle-mounted control unit;
confirming a target bus where the vehicle-mounted control unit is located according to the network management message identifier;
searching a diagnosis identifier corresponding to the network management message identifier from a preset identifier mapping table;
configuring diagnosis route configuration information of a vehicle platform through the diagnosis identification and the target bus corresponding to each vehicle-mounted control unit;
confirming a target bus where the vehicle-mounted control unit is located according to the network management message identifier, including:
the method comprises the steps of obtaining bus structure information of a vehicle platform in advance, wherein the bus structure information comprises all buses of the vehicle platform and path information of the buses;
acquiring path information corresponding to the network management message identifier;
and confirming the target bus where the vehicle-mounted control unit is located from all buses according to the path information of the buses and the path information corresponding to the network management message identifier.
2. The method for configuring a diagnostic route of a gateway according to claim 1, wherein the preset identification mapping table is obtained by:
acquiring diagnostic identifiers and network management message identifiers corresponding to all the vehicle-mounted control units of a vehicle platform;
establishing a mapping relation between the diagnosis identifier corresponding to each vehicle-mounted control unit and the network management message identifier;
and generating the identification mapping table through the mapping relation of each vehicle-mounted control unit.
3. The gateway diagnostic routing configuration method of claim 1, wherein monitoring network management message identifications sent by a vehicle-mounted control unit comprises:
receiving a diagnosis control routine sent by a diagnosis instrument;
and responding to the diagnosis control routine, and monitoring a network management message identifier sent by the vehicle-mounted control unit.
4. The gateway diagnostic routing configuration method of claim 1, wherein after the configuring of diagnostic routing configuration information for a vehicle platform, the method further comprises:
judging whether all the vehicle-mounted control units of the vehicle platform are configured with corresponding diagnosis routes or not;
when it is determined that all the vehicle-mounted control units of the vehicle platform are configured with corresponding diagnosis routes, setting a diagnosis configuration identification position;
and when the vehicle-mounted control unit is diagnosed and the diagnosis configuration identification bit is in the set state, routing the diagnosis message according to the diagnosis routing configuration information.
5. The gateway diagnostic routing configuration method of any of claims 1-4, wherein after the configuring of diagnostic routing configuration information for a vehicle platform, the method further comprises:
and storing the diagnosis routing configuration information in a charged erasable programmable read-only memory of the vehicle-mounted gateway.
6. A gateway diagnostic routing configuration apparatus, applied to a vehicle-mounted gateway, comprising:
the monitoring module is used for monitoring the network management message identifier sent by the vehicle-mounted control unit ECU;
the confirmation module is used for confirming a target bus where the vehicle-mounted control unit is located according to the network management message identifier;
the searching module is used for searching the diagnosis identifier corresponding to the network management message identifier from a preset identifier mapping table;
the configuration module is used for configuring diagnostic route configuration information of the vehicle platform through the diagnostic identifiers corresponding to the vehicle-mounted control units and the target buses;
the confirmation module is further configured to:
the method comprises the steps of obtaining bus structure information of a vehicle platform in advance, wherein the bus structure information comprises all buses of the vehicle platform and path information of the buses;
acquiring path information corresponding to the network management message identifier;
and confirming the target bus where the vehicle-mounted control unit is located from all buses according to the path information of the buses and the path information corresponding to the network management message identifier.
7. An in-vehicle gateway comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the steps of the gateway diagnostic routing configuration method of any of claims 1 to 5.
8. A vehicle comprising an on-board control unit and an on-board gateway as claimed in claim 7.
9. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the steps of the gateway diagnostic routing configuration method of any one of claims 1 to 5.
CN202111501474.0A 2021-12-09 2021-12-09 Gateway diagnosis route configuration method and device, vehicle-mounted gateway, vehicle and medium Active CN115225481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111501474.0A CN115225481B (en) 2021-12-09 2021-12-09 Gateway diagnosis route configuration method and device, vehicle-mounted gateway, vehicle and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111501474.0A CN115225481B (en) 2021-12-09 2021-12-09 Gateway diagnosis route configuration method and device, vehicle-mounted gateway, vehicle and medium

Publications (2)

Publication Number Publication Date
CN115225481A CN115225481A (en) 2022-10-21
CN115225481B true CN115225481B (en) 2024-03-22

Family

ID=83606350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111501474.0A Active CN115225481B (en) 2021-12-09 2021-12-09 Gateway diagnosis route configuration method and device, vehicle-mounted gateway, vehicle and medium

Country Status (1)

Country Link
CN (1) CN115225481B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116224976B (en) * 2023-05-08 2023-08-25 北京集度科技有限公司 Test method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607327A (en) * 2013-12-03 2014-02-26 北京经纬恒润科技有限公司 Diagnostic method and integrated ECU
CN106878124A (en) * 2015-12-10 2017-06-20 现代自动车株式会社 Method and vehicle control device for controlling Large Copacity deagnostic communication in vehicle
CN111343051A (en) * 2020-03-05 2020-06-26 中国第一汽车股份有限公司 Message routing test method, device and storage medium
CN113141306A (en) * 2021-04-15 2021-07-20 常州易控汽车电子股份有限公司 Diagnostic message routing method and bus routing equipment thereof
CN113691432A (en) * 2021-08-10 2021-11-23 一汽解放汽车有限公司 Automobile CAN network message monitoring method and device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5949417B2 (en) * 2012-10-09 2016-07-06 株式会社デンソー Relay device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607327A (en) * 2013-12-03 2014-02-26 北京经纬恒润科技有限公司 Diagnostic method and integrated ECU
CN106878124A (en) * 2015-12-10 2017-06-20 现代自动车株式会社 Method and vehicle control device for controlling Large Copacity deagnostic communication in vehicle
CN111343051A (en) * 2020-03-05 2020-06-26 中国第一汽车股份有限公司 Message routing test method, device and storage medium
CN113141306A (en) * 2021-04-15 2021-07-20 常州易控汽车电子股份有限公司 Diagnostic message routing method and bus routing equipment thereof
CN113691432A (en) * 2021-08-10 2021-11-23 一汽解放汽车有限公司 Automobile CAN network message monitoring method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
汽车电控模块诊断一体化平台及应用;胡杰;周佼鹏;可志伟;石国勇;杜玉峰;;汽车技术(第06期);全文 *

Also Published As

Publication number Publication date
CN115225481A (en) 2022-10-21

Similar Documents

Publication Publication Date Title
CN111385191B (en) Vehicle-mounted interconnection gateway, vehicle OTA upgrading system and method, and computer storage medium
US11507365B2 (en) On-board update device, update processing program, program update method, and on-board update system
US10936306B2 (en) Vehicle control system and software compatibility checking method
US10135866B2 (en) Method of preventing drive-by hacking, and apparatus and system therefor
CN111381844A (en) Method and device for updating vehicle ECU firmware
CN112612262A (en) Production line testing method and device for vehicle-mounted equipment, computer equipment and storage medium
WO2021203604A1 (en) Update test method and apparatus for vehicle component, and computer device and storage medium
WO2022017125A1 (en) Program flashing method and apparatus, vehicle, and storage medium
CN115225481B (en) Gateway diagnosis route configuration method and device, vehicle-mounted gateway, vehicle and medium
JP2024512364A (en) Automatic in-vehicle localization of UWB module
CN106557773B (en) Vehicle fault diagnosis method and system
CN105005539A (en) Authenticating data at a microcontroller using message authentication codes
US10124769B2 (en) Global stolen vehicles tracking
US10732959B2 (en) Pre and post update vehicle bus traffic fingerprinting
CN112596447B (en) Method and device for determining length of ECU (electronic control Unit) flash data, electronic equipment and medium
CN113485920A (en) Method and device for realizing DoIP entity, readable storage medium and electronic equipment
US11203352B2 (en) Controller for a motor vehicle and method for operating the controller
CN116009922A (en) Vehicle, software flashing method and device for vehicle and storage medium
CN113285860B (en) Method and system for flashing slave node through master node
CN112217799B (en) Vehicle diagnosis method, vehicle diagnosis device and terminal equipment
CN114967634A (en) Processor diagnostic device, processor diagnostic method, and electronic apparatus
CN111740972B (en) Method, device, equipment and storage medium for updating communication protocol stack information
US20230333841A1 (en) Electronic control apparatus, reprogram execution method, and non-transitory computer readable storage medium
CN115701034A (en) Bus control method and related device
CN113696781B (en) New energy automobile OTA (over the air) upgrading storage battery capacity detection method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant