Message routing method, message routing device, vehicle and readable storage medium

By introducing gateway blocking information into the vehicle communication gateway, distinguishing and processing the to-routed messages from different sending ends, the problem of network load increase caused by platform development is solved, and the stability of vehicle communication is ensured.

CN119135600APending Publication Date: 2024-12-13GREAT WALL MOTOR CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411152599.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

Platform development causes the network load of some network segments to increase for no reason during vehicle communication, affecting the stability of the entire vehicle communication.

Method used

By introducing gateway blocking information into the gateway, we can determine whether the message to be routed carries the information. If it is carried, it will be discarded. If it is not carried, it will be routed to the receiving end, ensuring that only the message that the receiving end needs to process is routed to the receiving end, reducing the network load.

Benefits of technology

Effectively reduce the network load on the network segment where the receiving end is located and ensure the stability of vehicle communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135600A_ABST
    Figure CN119135600A_ABST
Patent Text Reader

Abstract

The invention discloses a message routing method, a message routing device, a vehicle and a computer readable storage medium. The routing method is applied to a platform gateway and comprises the steps that a to-be-routed message sent by a sending end is received, and the sending end is a preset sending end of any same network segment; the to-be-routed message codes of the preset sending ends are the same; determining whether the message to be routed carries gateway shielding information; the gateway shielding information indicates that the to-be-routed message does not contain data required by the receiving end; the receiving end is used for receiving to-be-routed messages of a part of preset sending ends, and the sending ends and the receiving end are located in different network segments; if the message to be routed carries gateway shielding information, discarding the message to be routed; and if the to-be-routed message does not carry the gateway shielding information, routing the to-be-routed message to a receiving end. By means of the routing method, the platform gateway can only route the message needing to be processed by the receiving end to the receiving end, the network load of the network segment where the receiving end is located is reduced, and then the stability of whole vehicle communication is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Platform development is an important trend in the design of modern automotive electronic systems. It can not only improve efficiency and reduce costs, but also enhance the flexibility and reliability of the system. Therefore, during the development and design of the vehicle, all the firmware of the vehicle is developed according to the platform requirements. Taking software development as an example, platform development refers to the reuse of the same version of software for different vehicle models.

[0003] Although platform-based development can bring many advantages, during the communication process of vehicles that follow platform-based development, the load on some network segments increases for no reason, which leads to unstable communication of the entire vehicle.

[0004] Based on this, a vehicle communication method that ensures the stability of vehicle communication needs to be proposed. Summary of the invention

[0005] The present application provides a message routing method, a message routing device, a vehicle and a computer-readable storage medium, which can route only the messages that need to be processed by the receiving end to the receiving end, thereby reducing the network load of the network segment where the receiving end is located, and further ensuring the stability of the whole vehicle communication.

[0006] In a first aspect, the present application provides a message routing method, which is applied to a platform-based gateway, and the routing method includes:

[0007] receiving a message to be routed sent by a sending end, where the sending end is any one of at least two preset sending ends in the same network segment; the encoding of the message to be routed sent by each preset sending end is the same;

[0008] Determine whether the message to be routed carries gateway shielding information; the gateway shielding information is used to indicate that the message to be routed does not contain data required by the receiving end; the receiving end is used to receive the message to be routed sent by some preset sending ends routed by the gateway, and the sending end and the receiving end are in different network segments;

[0009] If the message to be routed carries gateway shielding information, the message to be routed will be discarded;

[0010] If the message to be routed does not carry the gateway shielding information, the message to be routed is routed to the receiving end.

[0011] In a second aspect, the present application provides a message routing device, which is applied to a platform-based gateway, and the routing device includes:

[0012] A receiving module, used for receiving a message to be routed sent by a sending end, where the sending end is any one of at least two preset sending ends in the same network segment; the encoding of the message to be routed sent by each preset sending end is the same;

[0013] A determination module is used to determine whether the message to be routed carries gateway shielding information; the gateway shielding information is used to indicate that the message to be routed does not contain data required by the receiving end; the receiving end is used to receive the message to be routed sent by some preset sending ends routed by the gateway, and the sending end and the receiving end are in different network segments;

[0014] A first routing module, configured to discard the message to be routed if the message to be routed carries gateway shielding information;

[0015] The second routing module is used to route the message to be routed to the receiving end if the message to be routed does not carry the gateway shielding information.

[0016] In a third aspect, the present application provides a vehicle comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method of the first aspect when executing the computer program.

[0017] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect are implemented.

[0018] In a fifth aspect, the present application provides a computer program product, which includes a computer program. When the computer program is executed by one or more processors, it implements the steps of the method of the first aspect.

[0019] Compared with the prior art, the present application has the following beneficial effects: Research has found that the reason why the network load of some network segments of platform-based vehicles increases for no reason is that for some messages, if the corresponding senders are different, then the requirements for routing the message to the receiving end are also different. For example, message a corresponds to two senders b1 and b2. Message a sent by sender b1 needs to be routed to the corresponding receiving end by the gateway; but message a sent by sender b2 does not need to be routed to the corresponding receiving end by the gateway. Since the design of the gateway also follows the platformization, the gateway corresponds to the same routing table, that is, no matter whether it is message a sent by sender b1 or b2, the gateway will route it to the corresponding receiving end. The receiving end is equivalent to receiving more message a sent by sender b2, which increases the network load of the network segment where the receiving end is located, thereby reducing the communication stability of the vehicle.

[0020] In order to prevent the to-be-routed message that does not contain the data required by the receiving end from being routed to the receiving end by the gateway, gateway shielding information can be added to such to-be-routed message. Based on this, after receiving the to-be-routed message, the gateway can determine whether the to-be-routed message has a need to be routed by determining whether the to-be-routed message carries the gateway shielding information. When the to-be-routed message carries the gateway shielding information, it means that the to-be-routed message does not need to be routed. At this time, the gateway can discard the to-be-routed message; when the to-be-routed message does not carry the gateway shielding information, it means that the to-be-routed message has a need to be routed. At this time, the gateway can route the to-be-routed message to the receiving end. Through this routing method, the gateway can only route the messages that need to be processed by the receiving end to the receiving end, thereby reducing the network load of the network segment where the receiving end is located, and thus ensuring the stability of the vehicle communication.

[0021] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0023] Figure 1 It is a flow chart of a message routing method provided in an embodiment of the present application;

[0024] Figure 2 It is a structural diagram of a message routing device provided in an embodiment of the present application;

[0025] Figure 3 It is a schematic diagram of the structure of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0027] In related technologies, although platform-based development can bring many advantages, the load on some network segments of vehicles that follow platform-based development increases for no reason, which in turn leads to unstable communication of the entire vehicle.

[0028] In order to find an effective solution, this application analyzes the communication status of vehicles before and after platformization. The analysis found that one of the reasons why the network load of some network segments of platformized vehicles increased unexplained is that for some messages, if the corresponding sending end is different, the requirements for routing the message to the receiving end may be different.

[0029] For example, for a vehicle equipped with both a dual clutch transmission (DHT) and a transmission control unit (TCU), both transmissions can send a message numbered 0x236. Among them, the 0x236 sent by the TCU needs to be sent to the High-Usage Test (HUT) unit, and the HUT unit performs a secure onboard communication (SecOC) check. The 0x236 sent by the DHT does not require the HUT unit to perform a SecOC check. Among them, the TCU and DHT are in the powertrain network segment (PT segment), and the HUT unit is in the service communication network segment (SC segment). Before platformization, although the DHT will send 0x236, it will not be sent to the HUT unit, but only to the VCU in the same network segment; the TCU will send 0x236 to the HUT unit because this frame of the message contains the signal that the HUT unit needs to use.

[0030] Furthermore, the analysis of the communication situation of the vehicle before and after platformization in this application shows that after platformization, in order to meet the requirements of platformization, there is only one version of the routing table used by the gateway. As long as the a network segment is configured with a message numbered b on the routing table, the gateway will route the message numbered b corresponding to the network segment a. Therefore, for 0x236 of the PT network segment, no matter whether the sending end is TCU or DHT, it will be routed to the HUT unit by the gateway. For the HUT unit, before platformization, it only receives 0x236 sent by the TCU. After platformization, it will receive 0x236 sent by both the TCU and DHT ends. This causes the network load of the SC network segment to increase for no reason, which in turn affects the stability of the vehicle communication.

[0031] That is to say, after the platformization, even if some numbered messages sent by the sender are not required by the receiver, the gateway will still send these messages to the receiver due to the routing configuration, thereby increasing the network load of the network segment where the receiver is located.

[0032] Based on this real reason, the present application proposes a message routing method, which can route only the messages that need to be processed by the receiving end to the receiving end, thereby reducing the network load of the network segment where the receiving end is located, and further ensuring the stability of the vehicle communication. The control method proposed in the present application will be described below through specific embodiments.

[0033] The message routing method provided in the embodiment of the present application can be applied to a platform-based gateway. Considering that the gateway is mainly used to connect different CAN networks (Controller Area Network) and allow communication between different control units (ECU, Electronic Control Unit), the gateway can specifically be a CAN gateway.

[0034] In order to illustrate the technical solution proposed in this application, each embodiment will be described below with the gateway as the execution entity.

[0035] Figure 1 A schematic flow chart of a message routing method provided in the present application is shown, and the message routing method includes:

[0036] Step 110: The gateway receives the message to be routed sent by the sender.

[0037] From the above analysis, it can be seen that the routing method of the present application is aimed at specific messages, that is, the same encoding, but can be sent by different sending ends, and for the corresponding receiving end, only the encoded message sent by part of the sending end needs to be received. For the convenience of description, such a message can be called a message to be routed.

[0038] In order to achieve targeted routing, at least two senders that are in the same network segment and can send the same encoded messages to be routed can be recorded as preset senders. The gateway starts to execute the routing method of the present application based on the routing message sent by any preset sender.

[0039] Step 120: The gateway determines whether the message to be routed carries gateway shielding information.

[0040] It can be seen from the above examples that for the same encoded message to be routed, the routing requirements of the message to be routed are different for different senders. However, for the gateway, it only knows the message to be routed that needs to be routed based on the configured routing table, and is not clear about the sender corresponding to the message to be routed that is about to be routed. In order to prevent the message to be routed sent by the sender without routing requirements from being routed by the gateway, the message to be routed sent by such a sender may carry gateway shielding information. The gateway shielding information is used to indicate that the message to be routed does not contain the data required by the receiving end, which can play a role in shielding the gateway, thereby preventing the frame of the message to be routed from being routed to the receiving end by the gateway. Therefore, in the present application, the receiving end corresponding to the message to be routed is only used to receive the messages to be routed sent by some preset senders.

[0041] Therefore, for each frame of the message to be routed, the gateway can determine whether it carries the gateway shielding information to judge whether the message to be routed sent by the unknown sender has a routing requirement.

[0042] Optionally, considering that not every frame message configured on the routing table has the above problem, for example, a total of 20 frames of messages are configured on the routing table, of which only 5 frames of messages have the above example situation, then through relevant configuration, the gateway can only execute step 120 for the 5 frames of messages with the above problem, thereby reducing the workload of the gateway and improving the routing efficiency of the gateway.

[0043] Step 130: If the message to be routed carries gateway shielding information, the gateway discards the message to be routed.

[0044] A message to be routed that carries gateway shielding information indicates that the message to be routed does not contain the data required by the receiving end and has no routing requirement. At this time, the gateway can discard the message to be routed, thereby avoiding routing the irrelevant message to the receiving end and increasing the network load of the network segment where the receiving end is located.

[0045] Step 140: If the message to be routed does not carry the gateway shielding information, the gateway routes the message to be routed to the receiving end.

[0046] A message to be routed that does not carry gateway shielding information indicates that the message to be routed contains data required by the receiving end and has a routing requirement; at this time, the gateway can route to the receiving end to ensure that the receiving end can receive the message to be routed that needs to be processed without increasing the network load of the network segment where it is located.

[0047] In the embodiment of the present application, the real reason why the network load of some network segments of the platformized vehicle increases unexplained during the communication process is first clarified, that is, the gateway after the platformization will send these messages to the receiving end due to the routing configuration, even if the to-be-routed messages sent by some preset sending ends are not required by the corresponding receiving end, thereby increasing the network load of the network segment where the receiving end is located. Based on this real reason, gateway shielding information can be added to the to-be-routed messages that do not have routing requirements, so that after receiving the to-be-routed messages, the gateway can determine whether the to-be-routed messages carry gateway shielding information to filter and discard the to-be-routed messages that do not need to be received and processed by the receiving end, and only route the to-be-routed messages that need to be received and processed by the receiving end, thereby reducing the network load of the network segment where the receiving end is located, ensuring that the receiving end can receive the required to-be-routed messages, and thus improving the stable communication of the vehicle.

[0048] In some embodiments, in order to enable the gateway to accurately and efficiently filter and discard the to-be-routed messages that are not related to the receiving end, the to-be-routed messages may be configured with a destination flag, so that the gateway can determine whether the to-be-routed messages carry gateway shielding information. Based on this, the aforementioned step 120 specifically includes:

[0049] Step A1: The gateway obtains the destination flag of the message to be routed.

[0050] Different preset senders may send the same coded routing message to different destinations. For example, for the message coded as 0x137, the Intelligent Brake Control (IBC) system and the Electronic Stability Program (ESP) system may send it. The IBC system needs to send 0x137 to the HUT unit that is not in the same network segment, while the ESP system does not need to send 0x137 to the HUT unit, but only needs to send it to the Engine Control Module (ECM) in the same network segment.

[0051] Based on this, for the to-be-routed messages with the same encoding but corresponding to different preset sending ends, since the destinations of the to-be-routed messages are different, the destination flag can be pre-configured for them, so that the gateway can determine the routing requirements of the to-be-routed messages. Whether it is 0x137 sent by the IBC system or the ESP system, the corresponding destination flag can be configured to facilitate the gateway to determine the destination corresponding to the to-be-routed message. For example, BZN represents ECM and EA represents the HUT unit, then the destination flag configured by 0x137 sent by the ESP system is BZN, and the destination flag configured by 0x137 sent by the IBC system is EA.

[0052] Step A2: The gateway determines whether the destination flag is consistent with the receiving end flag.

[0053] After obtaining the destination flag, the destination flag can be compared with the flag of the receiving end to determine whether the message to be routed carries gateway shielding information, and further determine whether it needs to be routed to the receiving end.

[0054] Step A3: If the destination flag bit is consistent with the receiving end flag bit, it is determined that the message to be routed does not carry gateway shielding information.

[0055] When the two flag bits are consistent, it means that the receiving end is the destination of the message to be routed, that is, the message to be routed contains the data required by the receiving end; therefore, the gateway can determine that the message to be routed does not carry gateway shielding information.

[0056] Step A4: If the destination flag bit is inconsistent with the receiving end flag bit, it is determined that the message to be routed carries gateway shielding information.

[0057] When the two flag bits are inconsistent, it means that the receiving end is not the destination of the message to be routed, that is, the message to be routed does not contain the data required by the receiving end. Therefore, the gateway can determine that the message to be routed carries gateway shielding information.

[0058] In this embodiment, the gateway determines whether the message to be routed carries gateway shielding information by comparing whether the destination flag is consistent with the flag of the receiving end, so that the gateway can accurately and efficiently filter and discard the messages to be routed that are not related to the receiving end, and route the messages to be routed that are related to the receiving end.

[0059] In some embodiments, in addition to configuring the destination flag bit for the message to be routed, the sender flag bit may also be configured. Based on this, the aforementioned step 120 specifically includes:

[0060] Step B1: The gateway obtains the sender flag of the message to be routed and the whitelist corresponding to the receiver.

[0061] When the message to be routed is configured with a sender flag, the gateway can obtain the sender flag and the whitelist corresponding to the receiver. For example, for HUT, the message 0x236 has TCU in its whitelist; the message 0x137 has IBC system in its whitelist.

[0062] Step B2: The gateway determines whether the sender is in the whitelist based on the sender flag.

[0063] As can be seen from the above example, for a sender in the whitelist, the message it sends is the data required by the receiver. Therefore, the gateway can determine whether the sender flag is in the whitelist, and then determine whether the message to be routed carries gateway shielding information.

[0064] Step B3: If it is determined based on the sender flag bit that the sender is not in the whitelist, the gateway determines that the message to be routed carries gateway shielding information.

[0065] When the sender corresponding to the message to be routed is not in the whitelist, it means that the message to be routed does not contain the data required by the receiver, so the gateway can determine that the message to be routed carries the gateway shielding information.

[0066] Step B4: If it is determined based on the sender flag bit that the sender is not in the whitelist, the gateway determines that the message to be routed carries gateway shielding information.

[0067] When the sender corresponding to the message to be routed is in the whitelist, it means that the message to be routed contains data required by the receiver, so the gateway can determine that the message to be routed carries the gateway shielding information.

[0068] In this embodiment, adding a sender flag bit to the message is equivalent to telling the gateway who sent this frame message. On the premise of obtaining the sender flag bit of the message to be routed, combined with the whitelist of the receiving end, the gateway can accurately determine whether the message to be routed carries gateway shielding information, and then accurately and efficiently filter and discard the messages to be routed that are not related to the receiving end, and route the messages to be routed that are related to the receiving end.

[0069] It can be understood that the whitelist in this embodiment can also be replaced by a blacklist, and the judgment logic can be adjusted accordingly.

[0070] In some embodiments, although the gateway in the above embodiment can compare the destination flag bit with the flag bit of the receiving end to determine whether the message to be routed is discarded or routed, the configuration process is cumbersome. For example, it is necessary to configure 0x236 sent by DHT and TCU at the same time. In order to reduce the workload of configuration, only the sending end corresponding to the message to be discarded can be configured, for example, only 0x236 sent by DHT can be configured. Based on this, the above step 120 specifically includes:

[0071] Step C1: The gateway determines whether the message to be routed carries a non-gateway flag.

[0072] Step C2: If the message to be routed does not carry a non-gateway flag, the gateway determines that the message to be routed carries the gateway shielding information.

[0073] Step C3: If the to-be-routed message carries a non-gateway flag bit, the gateway determines that the to-be-routed message carries the gateway shielding information.

[0074] The non-gateway flag indicates that the corresponding message does not need to be received by the gateway, which means that the message to be routed that carries the non-gateway flag does not contain the data required by the receiving end. Therefore, the gateway can determine whether the message to be routed carries the non-gateway flag to determine whether the message to be routed carries the gateway shielding information. Specifically, if the message to be routed does not carry the non-gateway flag, it is determined that the message to be routed does not carry the gateway shielding information; on the contrary, if the message to be routed carries the non-gateway flag, it is determined that the message to be routed carries the gateway shielding information. In this case, it can be considered that the gateway flag and the gateway shielding information are equivalent.

[0075] In this embodiment, the configuration of messages irrelevant to the receiving end based on the non-gateway flag bit can reduce the complexity of the configuration. The non-gateway flag bit is equivalent to the gateway shielding information, so whether the message to be routed carries the gateway shielding information can be determined by determining whether the message to be routed carries the non-gateway flag bit, so that the gateway can accurately and efficiently filter and discard the messages to be routed that are irrelevant to the receiving end, and route the messages to be routed that are relevant to the receiving end.

[0076] In some embodiments, generally, the message that needs to be verified by SecOC generally carries a corresponding verification signal. Based on this, when the receiving end is a HUT unit, step 120 specifically includes:

[0077] Step D1: The gateway determines whether the message to be routed carries a SecOC verification signal.

[0078] The HUT unit performs SecOC verification on the message. Therefore, whether the message to be routed carries a SecOC verification signal indicates whether the HUT unit needs to perform SecOC verification, that is, whether the message to be routed contains the data required by the HUT unit. Therefore, the gateway can determine whether the message to be routed carries a gateway shielding signal by judging whether the message to be routed carries a SecOC verification signal.

[0079] Step D2: If the message to be routed carries the SecOC verification signal, the gateway determines that the message to be routed does not carry the gateway shielding signal.

[0080] When the message to be routed carries a SecOC verification signal, it indicates that the message needs to be SecOC verified by the HUT unit, and generally contains data required by the HUT unit; thus, the gateway can determine that the message to be routed does not carry a gateway shielding signal.

[0081] Step D3: If the message to be routed does not carry the SecOC verification signal, the gateway determines that the message to be routed carries a gateway shielding signal.

[0082] When the message to be routed does not carry the SecOC verification signal, the message that does not require the HUT unit to perform SecOC verification generally does not contain data required by the HUT unit; thus, the gateway can determine that the message to be routed carries the gateway shielding signal.

[0083] In this embodiment, for the HUT unit as the receiving end, the gateway can determine whether the message to be routed carries the gateway shielding signal by judging whether the message to be routed carries the SecOC verification signal.

[0084] It is worth noting that in some special cases, some messages that do not require SecOC verification may also carry SecOC verification signals. Therefore, a more universal and effective method can be used to determine whether the message to be routed carries a gateway shielding signal, such as the embodiment corresponding to steps C1 to C3, to improve the reliability of gateway routing.

[0085] In some embodiments, after the gateway discards the message to be routed, in order to facilitate determining whether the message to be routed that should be shielded by the gateway is shielded, after the aforementioned step 130, it also includes: the gateway sends an error frame to the sender; the error frame is used to indicate whether the message to be routed is shielded by the gateway.

[0086] The error frame is a mechanism inherent in the bus protocol (Controller Area Network Protocol, CAN protocol). However, in this embodiment, it is not used to indicate whether a message is erroneous, but to indicate whether the message to be routed is blocked by the gateway.

[0087] Exemplarily, the error frame includes an error flag, and an error flag of 00 indicates that the message to be routed is not shielded by the gateway; an error flag of 01 indicates that the message to be routed is shielded by the gateway.

[0088] The discarded packets to be routed are recorded through error frames. If other problems are caused by improper routing, the error frames can be used to trace the source, so as to optimize the routing method.

[0089] In some embodiments, the above-mentioned flag bits can be implemented through configuration words.

[0090] Although the routing method of this application is simple, it can bring good benefits. By introducing a flag bit in the message through the configuration word, combined with the original error frame mechanism of the CAN protocol, it can effectively prevent messages irrelevant to the receiving end from being routed to the network segment where the receiving end is located due to the platform design of the gateway, thereby effectively controlling the network load of the network segment where the receiving end is located and ensuring the stability of the vehicle communication.

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

[0092] Corresponding to the message routing method of the above embodiment, Figure 2 A structural block diagram of a message routing device 2 provided in an embodiment of the present application is shown, which is applied to a platform-based gateway. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0093] Reference Figure 2 , the message routing device 2 comprises:

[0094] The receiving module 21 is used to receive a message to be routed sent by a sending end, where the sending end is any one of at least two preset sending ends in the same network segment; the encoding of the message to be routed sent by each preset sending end is the same;

[0095] The determination module 22 is used to determine whether the message to be routed carries gateway shielding information; the gateway shielding information is used to indicate that the message to be routed does not contain the data required by the receiving end; the receiving end is used to receive the message to be routed sent by the preset sending end routed by the gateway, and the sending end and the receiving end are in different network segments;

[0096] A first routing module 23, configured to discard the message to be routed if the message to be routed carries gateway shielding information;

[0097] The second routing module 24 is configured to route the message to be routed to the receiving end if the message to be routed does not carry the gateway shielding information.

[0098] Optionally, the determination module 22 is specifically configured to:

[0099] Determine whether the message to be routed carries a non-gateway flag;

[0100] If the message to be routed does not carry a non-gateway flag bit, it is determined that the message to be routed does not carry gateway shielding information;

[0101] If the message to be routed carries a non-gateway flag bit, it is determined that the message to be routed carries gateway shielding information.

[0102] Optionally, the message to be routed is configured with a destination flag; the determination module 22 is specifically used for:

[0103] Get the destination flag of the message to be routed;

[0104] Determine whether the destination flag is consistent with the receiving end flag;

[0105] If the destination flag bit is consistent with the receiving end flag bit, it is determined that the message to be routed does not carry gateway shielding information;

[0106] If the destination flag bit is inconsistent with the receiving end flag bit, it is determined that the message to be routed carries gateway shielding information.

[0107] Optionally, the message to be routed is configured with a sender flag bit; the determination module 22 is specifically used for:

[0108] Get the sender flag of the message to be routed and the whitelist corresponding to the receiver;

[0109] Determine whether the sender is in the whitelist based on the sender flag bit;

[0110] If it is determined based on the sender flag bit that the sender is in the whitelist, it is determined that the message to be routed does not carry gateway shielding information;

[0111] If it is determined based on the sender flag bit that the sender is not in the whitelist, it is determined that the message to be routed carries gateway shielding information.

[0112] Optionally, the receiving end is a HUT unit, and the determining module 22 is specifically used for:

[0113] Determine whether the message to be routed carries a SecOC verification signal;

[0114] If the message to be routed carries the SecOC verification signal, it is determined that the message to be routed does not carry the gateway shielding signal;

[0115] If the message to be routed does not carry the SecOC verification signal, it is determined that the message to be routed carries the gateway shielding signal.

[0116] Optionally, the routing device 2 further comprises a sending module, which is used to: after discarding the message to be routed, send an error frame to the sending end; the error frame is used to indicate whether the message to be routed is shielded by the gateway.

[0117] Optionally, the error frame includes an error flag, where the error flag is 00, indicating that the message to be routed is not shielded by the gateway; and the error flag is 01, indicating that the message to be routed is shielded by the gateway.

[0118] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0119] Figure 3 This is a schematic diagram of the physical structure of a vehicle provided in one embodiment of the present application. Figure 3 As shown, the vehicle 3 of this embodiment includes: at least one processor 30 ( Figure 3Only one processor is shown), a memory 31, and a computer program 32 stored in the memory 31 and executable on at least one processor 30. When the processor 30 executes the computer program 32, the steps in the above-mentioned routing method embodiment of any message are implemented, for example Figure 1 Steps 110-140 are shown.

[0120] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0121] In some embodiments, the memory 31 may be an internal storage unit of the vehicle 3, such as a hard disk or memory of the vehicle 3. In other embodiments, the memory 31 may also be an external storage device of the vehicle 3, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the vehicle 3.

[0122] Furthermore, the memory 31 may include both an internal storage unit and an external storage device of the vehicle 3. The memory 31 is used to store operating devices, applications, boot loaders, data, and other programs, such as program codes of computer programs, etc. The memory 31 may also be used to temporarily store data that has been output or is to be output.

[0123] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0124] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0125] An embodiment of the present application provides a computer program product. When the computer program product is run on a vehicle, the vehicle can implement the steps in the above-mentioned method embodiments when the computer program product is executed.

[0126] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / electronic device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.

[0127] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0128] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

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

[0130] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0131] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. 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. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A message routing method, characterized in that: Applied to a platform-based gateway, the routing method includes: Receiving a message to be routed sent by a sending end, wherein the sending end is any one of at least two preset sending ends in the same network segment; the encoding of the message to be routed sent by each of the preset sending ends is the same; Determine whether the message to be routed carries gateway shielding information; the gateway shielding information is used to indicate that the message to be routed does not contain data required by the receiving end; the receiving end is used to receive the message to be routed sent by the preset sending end that is routed by the gateway, and the sending end and the receiving end are in different network segments; If the message to be routed carries the gateway shielding information, discarding the message to be routed; If the message to be routed does not carry the gateway shielding information, the message to be routed is routed to the receiving end.

2. The routing method according to claim 1, characterized in that: The determining whether the message to be routed carries gateway shielding information includes: Determine whether the message to be routed carries a non-gateway flag bit; If the message to be routed does not carry the non-gateway flag bit, determining that the message to be routed does not carry the gateway shielding information; If the message to be routed carries a non-gateway flag bit, it is determined that the message to be routed carries the gateway shielding information.

3. The routing method according to claim 1, characterized in that: The message to be routed is configured with a destination flag; and the determining whether the message to be routed carries gateway shielding information includes: Obtaining the destination flag of the message to be routed; Determining whether the destination flag is consistent with the receiving end flag; If the destination flag bit is consistent with the flag bit of the receiving end, it is determined that the message to be routed does not carry the gateway shielding information; If the destination flag bit is inconsistent with the flag bit of the receiving end, it is determined that the message to be routed carries the gateway shielding information.

4. The routing method according to claim 1, characterized in that: The message to be routed is configured with a sender flag; and the determining whether the message to be routed carries gateway shielding information includes: Obtaining the sender flag of the message to be routed and the whitelist corresponding to the receiving end; Determining whether the sender is in the whitelist based on the sender flag bit; If it is determined based on the sender flag bit that the sender is in the whitelist, then it is determined that the message to be routed does not carry the gateway shielding information; If it is determined based on the sender flag bit that the sender is not in the whitelist, then it is determined that the message to be routed carries the gateway shielding information.

5. The routing method according to claim 1, characterized in that: The receiving end is a HUT unit, and the determining whether the message to be routed carries gateway shielding information includes: Determine whether the message to be routed carries a SecOC verification signal; the security verification signal is used to indicate that the message to be routed requires verification by the HUT unit; If the message to be routed carries a SecOC verification signal, determining that the message to be routed does not carry a gateway shielding signal; If the message to be routed does not carry the SecOC verification signal, it is determined that the message to be routed carries a gateway shielding signal.

6. The routing method according to any one of claims 1 to 5, characterized in that: After discarding the message to be routed, the method further includes: An error frame is sent to the sending end; the error frame is used to indicate whether the message to be routed is shielded by the gateway.

7. The routing method according to claim 6, characterized in that: The error frame includes an error flag, wherein the error flag is 00, indicating that the message to be routed is not shielded by the gateway; and the error flag is 01, indicating that the message to be routed is shielded by the gateway.

8. A message routing device, characterized in that: Applied to a platform-based gateway, the routing device includes: A receiving module, used for receiving a message to be routed sent by a sending end, wherein the sending end is any one of at least two preset sending ends in the same network segment; the encoding of the message to be routed sent by each of the preset sending ends is the same; A determination module, used to determine whether the message to be routed carries gateway shielding information; the gateway shielding information is used to indicate that the message to be routed does not contain data required by the receiving end; the receiving end is used to receive the message to be routed sent by the preset sending end that is partly routed by the gateway, and the sending end and the receiving end are in different network segments; A first routing module, configured to discard the message to be routed if the message to be routed carries the gateway shielding information; The second routing module is used for routing the message to be routed to the receiving end if the message to be routed does not carry the gateway shielding information.

9. A vehicle comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for routing messages according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for routing messages according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Vehicle communication method, vehicle communication device and vehicle

    CN119814417A