A communication method and device based on controller update in a vehicle, a vehicle gateway, and a storage medium

By detecting controller updates through the vehicle gateway and updating the message routing and port allocation fusion table, the network architecture adjustment problem when adding controllers in vehicles is solved, design and maintenance costs are reduced, and efficient inter-controller communication is achieved.

CN116668485BActive Publication Date: 2026-02-03FAW JIEFANG AUTOMOTIVE CO
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310664070.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-06
Publication Date
2026-02-03
Estimated Expiration
2043-06-06

AI Technical Summary

Technical Problem

In existing technologies, adding a controller to a vehicle requires re-evaluating and redesigning the network architecture, resulting in high design and maintenance costs.

Method used

The vehicle gateway detects updates to the target controller, determines its network segment, updates the packet routing and port allocation fusion table according to the pre-stored routing signal table, and determines the packet forwarding relationship according to the forwarding rules to realize communication between controllers.

Benefits of technology

It eliminates the need to reassess the vehicle network architecture, reduces vehicle design and maintenance costs, and improves communication efficiency between controllers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116668485B_ABST
    Figure CN116668485B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a communication method and device based on controller updating in a vehicle and a vehicle gateway. The communication method comprises the following steps: when detecting that a target controller in the vehicle is updated, determining a target network segment where the target controller is located; updating a message routing and port allocation fusion table according to the target network segment and a preset routing signal table stored in advance; wherein the preset routing signal table records a receiving relationship of the message among a plurality of controllers in the vehicle; determining a message forwarding relationship according to the message routing and port allocation fusion table and a preset forwarding rule; determining a target communication port corresponding to a port message of each port according to the message forwarding relationship, and forwarding the port message to the target communication port. The technical scheme of the embodiment of the application can realize that when a controller is added in the vehicle or a network segment where an existing controller is located is adjusted, the vehicle network architecture does not need to be re-evaluated and designed, and the cost of vehicle design and maintenance is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automotive technology, and in particular to a communication method, device, and vehicle gateway based on controller updates in a vehicle. Background Technology

[0002] As the number of intelligent devices in vehicles gradually increases, the need for interaction between various controllers in the vehicle is also increasing. Whether free communication between controllers can be achieved has become an important factor affecting vehicle performance.

[0003] In existing technologies, signal transmission between controllers in a vehicle is typically achieved through the Controller Area Network (CAN) protocol. Each controller needs to be predefined in a different network segment of the vehicle. The network segment in which each controller is located can be determined based on requirements such as the number of CAN network nodes and communication load.

[0004] However, when adding controllers to a vehicle using existing inter-controller communication methods, the vehicle network architecture needs to be re-evaluated and redesigned, resulting in higher vehicle design and maintenance costs. Summary of the Invention

[0005] This invention provides a communication method, device, and vehicle gateway based on controller updates in a vehicle. It can eliminate the need to re-evaluate and redesign the vehicle network architecture when adding a controller to a vehicle or adjusting the network segment where the existing controller is located, thereby reducing the cost of vehicle design and maintenance.

[0006] Firstly, a communication method based on controller updates in a vehicle is provided, executed by an onboard gateway, the method comprising:

[0007] When an update to the target controller in the vehicle is detected, the target network segment where the target controller is located is determined.

[0008] Based on the target network segment and the pre-stored preset routing signal table, update the packet routing and port allocation fusion table; the preset routing signal table records the packet reception relationship among multiple controllers in the vehicle;

[0009] The packet forwarding relationship is determined based on the packet routing and port allocation fusion table and the pre-configured forwarding rules;

[0010] Based on the message forwarding relationship, determine the target communication port corresponding to each port message, and forward the port message to the target communication port.

[0011] Optionally, when an update is detected in the target controller in the vehicle, the target network segment where the target controller is located is determined, including: when an update is detected in the target controller in the vehicle, obtaining the target controller in the vehicle that has been updated and sending a network segment detection message to the vehicle gateway; and determining the target network segment where the target controller is located based on the network segment detection message.

[0012] Optionally, based on the target network segment and the pre-stored preset routing signal table, the packet routing and port allocation fusion table is updated, including: obtaining the packet routing and port allocation fusion table before the controller is updated, determining the network segment where each controller is located, and generating the original port allocation table; updating the packet routing and port allocation fusion table based on the target network segment, the preset routing signal table, and the original port allocation table.

[0013] Optionally, based on the target network segment, the preset routing signal table, and the original port allocation table, update the packet routing and port allocation fusion table, including: adding the connection relationships between each controller and each network segment and the connection relationships between the target controller and the target network segment from the original port allocation table to the preset routing signal table, and updating the packet routing and port allocation fusion table.

[0014] Optionally, the packet forwarding relationship is determined based on the packet routing and port allocation fusion table and pre-set forwarding rules, including: determining the source communication port and destination communication port corresponding to each port packet according to the packet routing and port allocation fusion table; if the destination communication port includes the source communication port, the difference between the destination communication port and the source communication port is used as the target communication port; otherwise, the destination communication port is used as the target communication port; and generating the packet forwarding relationship based on the correspondence between each port packet and the source communication port and the target communication port.

[0015] Optionally, the target controller includes at least one of the following: engine controller, transmission controller, anti-lock braking system controller, retarder controller, instrument controller, and body controller.

[0016] Optionally, the default routing signal table also includes: the packet address and packet name of each port packet.

[0017] Secondly, a communication device for updating the controller in a vehicle is provided, executed by an onboard gateway, the device comprising:

[0018] The target network segment determination module is used to determine the target network segment where the target controller is located when an update is detected in the target controller in the vehicle.

[0019] The packet routing and port allocation fusion table update module is used to update the packet routing and port allocation fusion table according to the target network segment and the pre-stored preset routing signal table; wherein, the preset routing signal table records the reception relationship of packets among multiple controllers in the vehicle;

[0020] The packet forwarding relationship determination module is used to determine the packet forwarding relationship based on the packet routing and port allocation fusion table and the pre-set forwarding rules;

[0021] The port packet forwarding module is used to determine the target communication port corresponding to each port packet based on the packet forwarding relationship, and forward the port packet to the target communication port.

[0022] Thirdly, a vehicle-mounted gateway is provided, the vehicle-mounted gateway comprising:

[0023] At least two communication ports; each communication port is connected to a network segment in the vehicle via a communication wire, and the controller in the vehicle is configured to communicate within the network segment; each network segment has two terminating resistors; port messages can be forwarded between the communication ports;

[0024] At least one processor; and

[0025] A memory that is communicatively connected to at least one processor; wherein,

[0026] The memory stores a computer program that can be executed by at least one processor, such that the at least one processor is able to perform the communication method based on controller updates in a vehicle as described in any embodiment of the present invention.

[0027] Fourthly, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute and implement the communication method based on controller updates in a vehicle as described in any embodiment of the present invention.

[0028] The technical solution of this invention, by detecting an update to the target controller in a vehicle, determines the target network segment where the target controller is located; updates the packet routing and port allocation fusion table according to the target network segment and a pre-stored preset routing signal table; wherein the preset routing signal table records the reception relationship of packets among multiple controllers in the vehicle; determines the packet forwarding relationship according to the packet routing and port allocation fusion table and pre-set forwarding rules; and determines the target communication port corresponding to each port packet according to the packet forwarding relationship, and forwards the port packets to the target communication port, solves the communication problem when the vehicle controller is updated. This allows for the addition of a controller to the vehicle or adjustment of the network segment where the existing controller is located without re-evaluating and redesigning the vehicle network architecture, reducing the cost of vehicle design and maintenance.

[0029] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0030] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0031] Figure 1 This is a flowchart of a communication method based on controller updates in a vehicle, according to Embodiment 1 of the present invention.

[0032] Figure 2 This is a schematic diagram of vehicle network segment allocation provided according to an embodiment of the present invention;

[0033] Figure 3 This is a flowchart of another communication method based on controller updates in a vehicle, according to Embodiment 2 of the present invention;

[0034] Figure 4 This is a flowchart of another communication method based on controller updates in a vehicle, provided according to Embodiment 3 of the present invention;

[0035] Figure 5 This is a schematic diagram of a communication device based on controller updates in a vehicle, according to Embodiment 4 of the present invention.

[0036] Figure 6 This is a schematic diagram of the structure of an in-vehicle gateway that implements the communication method for updating the controller in a vehicle according to an embodiment of the present invention. Detailed Implementation

[0037] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0038] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0039] Example 1

[0040] Figure 1 This is a flowchart of a communication method based on controller updates in a vehicle, according to Embodiment 1 of the present invention. This embodiment is applicable to communication between controllers in a vehicle. The method can be executed by a communication device based on controller updates in the vehicle. This communication device can be implemented in hardware and / or software and can be configured in an in-vehicle gateway. Figure 1 As shown, the method includes:

[0041] Step 110: When an update is detected in the target controller in the vehicle, determine the target network segment where the target controller is located.

[0042] In this embodiment, the target controller can be a device that controls and manages the vehicle using electronic technology. For example, the target controller can be used to control the vehicle's motor drive, driving speed, and fault alarms. The target controllers can communicate with each other via the CAN protocol. The vehicle gateway can include multiple communication ports, each corresponding to a target network segment. Multiple target controllers can be assigned to a single target network segment.

[0043] In this step, specifically, each time the vehicle is powered on, the onboard gateway can obtain the network segment where the updated target controller is located. An updated target controller can manifest as the addition of a target controller, the deletion of a target controller, or a change in the network segment where the target controller resides.

[0044] Optionally, the presence of updates to the target controller can be determined by acquiring and parsing the signals sent by the target controller. Alternatively, the vehicle gateway can periodically send detection messages to each network segment and obtain the current network segment of each target controller through the feedback messages sent by each target controller to determine whether updates have been made.

[0045] For example, there are several ways to determine the target network segment where the target controller is located. For instance, the vehicle gateway can calculate the network number based on the Internet Protocol (IP) address of each target controller to determine the target network segment. Alternatively, when a target controller is updated, it needs to actively send a message to the vehicle gateway reporting the network segment it is now in. Or, the target controller can periodically send messages to the vehicle gateway so that the vehicle gateway can determine the target network segment.

[0046] In an optional embodiment of the present invention, the target controller includes at least one of the following: an engine controller, a transmission controller, an anti-lock braking system controller, a retarder controller, an instrument controller, and a body controller.

[0047] In this embodiment, the engine controller can be used to control fuel injection quantity, torque, and exhaust emissions, etc. The transmission controller can be used to control vehicle speed and wheel torque, etc. The anti-lock braking system (ABS) controller can prevent the wheels from not turning during emergency braking, improving vehicle driving safety. The retarder controller can assist the driver in controlling vehicle speed. The instrument panel controller can be used to control the instruments on the vehicle. The body control controller can be used to control doors, windows, and lights, etc.

[0048] In practical applications, engine controllers and transmission controllers are mainly used to control vehicle power; anti-lock braking systems (ABS) controllers and retarder controllers are mainly used for vehicle driving assistance; and instrument controllers and body controllers are mainly used for vehicle comfort control.

[0049] Figure 2 This is a schematic diagram of vehicle network segment allocation according to an embodiment of the present invention. Figure 2 As shown, the vehicle gateway can be configured with three communication ports: port A, port B, and port C. Port A corresponds to the first network segment, port B to the second network segment, and port C to the third network segment. To ensure network load balancing, two target controllers can be assigned to each network segment. For example, the engine controller and transmission controller can be assigned to the first network segment, the anti-lock braking system (ABS) controller and retarder controller to the second network segment, and the instrument cluster controller and body controller to the third network segment. To prevent data from being reflected back to the data sender and corrupting the original data, two terminating resistors can be configured in each network segment.

[0050] Step 120: Update the packet routing and port allocation fusion table according to the target network segment and the pre-stored preset routing signal table.

[0051] The preset routing signal table records the message reception relationship among multiple controllers in the vehicle.

[0052] In this embodiment, the reception relationships recorded in the preset routing signal table can be programmed into the vehicle gateway. The vehicle gateway can forward signals sent by the target controller to the target network segment according to the preset routing signal table. The preset routing signal table can also record the signal cycles between each target controller.

[0053] The message routing and port allocation fusion table can be a table obtained by fusing the communication ports corresponding to each target network segment with a preset routing signal table.

[0054] In this step, specifically, the network segment or port of the target controller sending the message and the network segment or port of the target controller receiving the message can be marked in the preset routing signal table to generate a message routing and port allocation fusion table. Afterwards, the message routing and port allocation fusion table can be updated based on the updated receiving relationships and the network segment of the target controller.

[0055] In an optional embodiment of the present invention, the preset routing signal table further includes: the message address and message name of each port message.

[0056] In this embodiment, the message address can be used to reflect the source address of each target controller. The message name can serve as an identifier for messages sent by each target controller. The message name can also be used to reflect the purpose for which the target controller sends the message.

[0057] For example, Table 1 is a preset routing signal table provided according to an embodiment of the present invention. The preset routing signal table can be as shown in Table 1. The engine controller can send an EEC1 message, the corresponding message address of which is 0CF00400. The transmission controller, anti-lock braking system (ABS) controller, and instrument cluster controller can receive the EEC1 message. The transmission controller can send an ETC2 message, the corresponding message address of which is 18F00503. The instrument cluster controller and body controller can receive the ETC2 message. The ABS controller can send an EBC1 message, the corresponding message address of which is 18F0010B. The transmission controller and body controller can receive the EBC1 message. The retarder controller can send an ERC1 message, the corresponding message address of which is 18F00010. The transmission controller can receive the ERC1 message. The instrument cluster controller can send TC01 messages, with the corresponding message address being 0CFE6C17. The engine controller can receive these TC01 messages. The body controller can send LC messages, with the corresponding message address being 0CFE4121. The instrument cluster controller can receive these LC messages.

[0058] Table 1

[0059] Step 130: Determine the packet forwarding relationship based on the packet routing and port allocation fusion table and the pre-set forwarding rules.

[0060] In this embodiment, the forwarding rules can be pre-defined by the user, for example, defining the target network segment that each packet can be forwarded to. The packet forwarding relationship can include the communication port for sending packets and the communication port for receiving packets.

[0061] In this step, specifically, the packet routing and port allocation fusion table can be updated according to the forwarding rules to determine the final packet forwarding relationship. For example, firstly, based on the packet routing and port allocation fusion table, it can be determined that the engine controller needs to send EEC1 packets on port A; the transmission controller needs to receive EEC1 packets on port A; and the anti-lock braking system (ABS) controller and instrument cluster controller need to receive EEC1 packets on ports B and C, respectively. Then, port A can be determined as the EEC1 packet sending port, and ports A, B, and C as the corresponding packet receiving ports. Finally, according to the forwarding rules, the packet forwarding relationship can be determined so that EEC1 packets can be forwarded from port A to ports B and C.

[0062] Step 140: Based on the message forwarding relationship, determine the target communication port corresponding to each port message, and forward the port message to the target communication port.

[0063] In this embodiment, the target communication port can be a port that receives port messages sent by the target controller.

[0064] In this step, specifically, based on the message forwarding relationship, the communication port that sent the port message and the target communication port that received the aforementioned port message can be obtained. One or more target controllers corresponding to the same target communication port can receive the port message forwarded by the vehicle gateway. The target controller can actively discard unnecessary port messages.

[0065] The technical solution of this embodiment, by detecting an update to the target controller in the vehicle, determines the target network segment where the target controller is located; updates the packet routing and port allocation fusion table according to the target network segment and a pre-stored preset routing signal table; wherein, the preset routing signal table records the reception relationship of packets among multiple controllers in the vehicle; determines the packet forwarding relationship according to the packet routing and port allocation fusion table and pre-set forwarding rules; and determines the target communication port corresponding to each port packet according to the packet forwarding relationship, and forwards the port packets to the target communication port, solves the communication problem when the vehicle controller is updated. It can realize that when adding a controller to the vehicle or adjusting the network segment where the existing controller is located, there is no need to re-evaluate and redesign the vehicle network architecture, thus reducing the cost of vehicle design and maintenance.

[0066] Example 2

[0067] Figure 3 This is a flowchart of another communication method for controller updates in a vehicle according to Embodiment 2 of the present invention. This embodiment is a further refinement of the above technical solution, and the technical solution in this embodiment can be combined with various optional solutions in one or more of the above embodiments. Figure 3 As shown, the method includes:

[0068] Step 210: When an update is detected in the target controller in the vehicle, the target controller in the vehicle that has been updated sends a network segment detection message to the vehicle gateway.

[0069] In this embodiment, the network segment detection message may include a message name and a message address. Since the communication port of the vehicle gateway corresponds to the network segment, the vehicle gateway can determine the target network segment where the target controller is located based on the communication port of the received network segment detection message.

[0070] For example, if the vehicle gateway receives a network segment detection message from the updated target controller on port A, it can determine that the target network segment where the updated target controller is located is the network segment corresponding to port A.

[0071] Step 220: Determine the target network segment where the target controller is located based on the network segment detection message.

[0072] In this step, specifically, after receiving the network segment detection message at the communication port, the vehicle gateway can obtain the target network segment corresponding to the communication port and mark the target controller that sent the network segment detection message as being located in the target network segment.

[0073] Step 230: Obtain the packet routing and port allocation fusion table before the controller update, determine the network segment where each controller is located, and generate the original port allocation table.

[0074] In this embodiment, the original port allocation table can be used to reflect the communication port where each target controller is located. For example, Table 2 is the original port allocation table provided in Embodiment 2 of the present invention. As shown in Table 2, the network segment where the engine controller and transmission controller are located corresponds to port A, the network segment where the anti-lock braking controller and retarder controller are located corresponds to port B, and the network segment where the instrument controller and body controller are located corresponds to port C.

[0075] Table 2

[0076]

[0077] The advantage of this setup is that it obtains the network segment of the target controller that has been updated through the network segment detection message, and obtains the network segment of the target controller that has not been updated through the packet routing and port allocation fusion table before the update. This reduces the number of network segment detection messages read by the vehicle gateway and improves the timeliness of communication between target controllers.

[0078] Step 240: Update the packet routing and port allocation fusion table based on the target network segment, the preset routing signal table, and the original port allocation table.

[0079] In this step, specifically, the original port allocation table can be updated based on the target network segment where the target controller being updated is located. Then, the packet routing and port allocation fusion table can be updated based on the updated original port allocation table and the preset routing signal table.

[0080] Step 250: Determine the packet forwarding relationship based on the packet routing and port allocation fusion table and the pre-set forwarding rules.

[0081] Step 260: Based on the message forwarding relationship, determine the target communication port corresponding to each port message, and forward the port message to the target communication port.

[0082] The technical solution of this invention solves the communication problem during vehicle controller updates by obtaining network segment detection messages sent by the updated target controller to the vehicle gateway when an update is detected in the vehicle. Based on these messages, the target network segment of the target controller is determined, a packet routing and port allocation fusion table before the controller update is obtained, the network segments of each controller are determined, an original port allocation table is generated, the packet routing and port allocation fusion table is updated based on the target network segment, a preset routing signal table, and the original port allocation table, the packet forwarding relationship is determined based on the fusion table and pre-set forwarding rules, and the target communication port corresponding to each port packet is determined based on the forwarding relationship. The port packets are then forwarded to the target communication port. This approach allows for the acquisition of the network segments of each controller, enabling free communication between controllers even after a target controller update. It simplifies vehicle network architecture design and reduces vehicle design and maintenance costs.

[0083] Example 3

[0084] Figure 4 This is a flowchart of another communication method for controller updates in a vehicle according to Embodiment 3 of the present invention. This embodiment is a further refinement of the above technical solution, and the technical solution in this embodiment can be combined with various optional solutions in one or more of the above embodiments. Figure 4 As shown, the method includes:

[0085] Step 310: When an update is detected in the target controller in the vehicle, determine the target network segment where the target controller is located.

[0086] In an optional embodiment of the present invention, the target controller includes at least one of the following: an engine controller, a transmission controller, an anti-lock braking system controller, a retarder controller, an instrument controller, and a body controller.

[0087] For example, such as Figure 2 As shown, the engine controller can periodically send EEC1 messages. The vehicle gateway can receive and analyze these EEC1 messages at port A connected to the first network segment, and then mark the engine controller in the first network segment. The anti-lock braking system (ABS) controller can send EBC1 messages. The vehicle gateway can receive and analyze these EBC1 messages at port B connected to the second network segment, and then mark the ABS controller in the second network segment. The instrument cluster controller can send TC01 messages. The vehicle gateway can receive and analyze these TC01 messages at port C connected to the third network segment, and then mark the instrument cluster controller in the third network segment.

[0088] Optionally, when an update is detected in the target controller in the vehicle, the target network segment where the target controller is located is determined, including: when an update is detected in the target controller in the vehicle, obtaining the target controller in the vehicle that has been updated and sending a network segment detection message to the vehicle gateway; and determining the target network segment where the target controller is located based on the network segment detection message.

[0089] Step 320: Update the packet routing and port allocation fusion table according to the target network segment and the pre-stored preset routing signal table.

[0090] The preset routing signal table records the message reception relationship among multiple controllers in the vehicle.

[0091] Optionally, based on the target network segment and the pre-stored preset routing signal table, the packet routing and port allocation fusion table is updated, including: obtaining the packet routing and port allocation fusion table before the controller is updated, determining the network segment where each controller is located, and generating the original port allocation table; updating the packet routing and port allocation fusion table based on the target network segment, the preset routing signal table, and the original port allocation table.

[0092] Step 330: Determine the source and destination communication ports corresponding to each port message based on the message routing and port allocation fusion table.

[0093] In this embodiment, the source communication port can be a port for receiving port packets. The destination communication port can be a port for forwarding packets. For example, the vehicle gateway can receive port packets from the source communication port and then forward the port packets from the destination communication port.

[0094] For example, Table 3 is a message routing and port allocation fusion table provided according to an embodiment of the present invention. As shown in Table 3, the source communication port corresponding to the EEC1 message is port A, and the destination communication ports are port A, port B, and port C. The source communication port corresponding to the ETC2 message is port A, and the destination communication port is port C. The source communication port corresponding to the EBC1 message is port B, and the destination communication ports are port A and port C. The source communication port corresponding to the ERC1 message is port B, and the destination communication port is port A. The source communication port corresponding to the TC01 message is port C, and the destination communication port is also port A. The source communication port corresponding to the LC message is port C, and the destination communication port is also port C.

[0095] Table 3

[0096]

[0097] Step 340: If the destination communication port includes the source communication port, then the difference between the destination communication port and the source communication port is taken as the target communication port.

[0098] For example, as shown in Table 3, when the engine controller sends an EEC1 message, port A serves as the source communication port. The transmission controller receives the EEC1 message at port A. The anti-lock braking system (ABS) controller receives the EEC1 message at its corresponding port B, and the instrument cluster controller and body control controller receive the EEC1 message at their respective ports C. In this case, the source communication port is port A, and the destination communication ports are ports A, B, and C. The difference between the destination and source communication ports can be obtained as ports B and C, which are the target communication ports.

[0099] The advantage of this setup is that target controllers on the same network segment can communicate directly without the need for an on-board gateway. Therefore, the difference between the destination communication port and the source communication port is used as the target communication port, which facilitates the subsequent determination of message forwarding relationships and simplifies the vehicle network architecture.

[0100] Step 350: If the source communication port is not included in the destination communication port, then the destination communication port shall be used as the target communication port.

[0101] For example, the transmission controller sends an ETC2 message via port A, and the instrument cluster controller and body controller receive the ETC2 message at port C. In this case, the source communication port is port A, and the destination communication port is port C. The difference between the destination communication port and the source communication port is port C, which is the target communication port.

[0102] Step 360: Generate message forwarding relationships based on the correspondence between each port message and the source communication port and the target communication port.

[0103] For example, Table 4 is a packet forwarding relationship table provided according to an embodiment of the present invention. As shown in Table 4, EEC1 packets are forwarded via port A to the network segments corresponding to ports B and C. ETC2 packets are forwarded via port A to the network segment corresponding to port C. EBC1 packets are forwarded via port B to the network segments corresponding to ports A and C. ERC1 packets are forwarded via port B to the network segment corresponding to port A. TC01 packets are forwarded via port C to the network segment corresponding to port A. LC packets do not have a corresponding packet forwarding relationship.

[0104] Table 4

[0105]

[0106]

[0107] Step 370: Based on the message forwarding relationship, determine the target communication port corresponding to each port message, and forward the port message to the target communication port.

[0108] The advantage of this setup is that the vehicle gateway can automatically obtain the network segment where the target controller is located and automatically forward packets according to the packet forwarding relationship. This avoids fixing the network segment where each controller is located, making it easier for users to add or change the network segment where the controller is located in the future, reducing vehicle maintenance costs and improving vehicle applicability.

[0109] The technical solution of this invention solves the communication problem during vehicle controller updates by determining the target network segment where the target controller is located when an update is detected in the vehicle, updating the message routing and port allocation fusion table according to the target network segment and a pre-stored preset routing signal table, determining the source communication port and destination communication port corresponding to each port message according to the message routing and port allocation fusion table, and using the difference between the destination communication port and the source communication port as the target communication port if the destination communication port includes the source communication port, and using the destination communication port as the target communication port if the destination communication port does not include the source communication port. A message forwarding relationship is generated based on the correspondence between each port message and the source and target communication ports, and the target communication port is determined according to the message forwarding relationship. The port message is then forwarded to the target communication port. This technical means solves the communication problem during vehicle controller updates, simplifies the message forwarding relationship and vehicle network architecture, improves the communication efficiency between controllers, and reduces vehicle design and maintenance costs.

[0110] Example 4

[0111] Figure 5This is a schematic diagram of a communication device for updating controllers in a vehicle, according to Embodiment 4 of the present invention. This embodiment is applicable to situations where controllers in a vehicle communicate with each other. The communication device for updating controllers in a vehicle can be implemented in hardware and / or software and can be configured in an on-board gateway.

[0112] like Figure 5 As shown, the communication device for updating the controller in a vehicle disclosed in this embodiment includes:

[0113] The target network segment determination module 91 is used to determine the target network segment where the target controller is located when an update is detected in the target controller in the vehicle.

[0114] The message routing and port allocation fusion table update module 92 is used to update the message routing and port allocation fusion table according to the target network segment and the pre-stored preset routing signal table; wherein, the preset routing signal table records the message reception relationship among multiple controllers in the vehicle;

[0115] The packet forwarding relationship determination module 93 is used to determine the packet forwarding relationship based on the packet routing and port allocation fusion table and the pre-set forwarding rules;

[0116] The port packet forwarding module 94 is used to determine the target communication port corresponding to each port packet according to the packet forwarding relationship, and forward the port packet to the target communication port.

[0117] The technical solution in this embodiment, through the cooperation of the target network segment determination module, the packet routing and port allocation fusion table update module, the packet forwarding relationship determination module, and the port packet forwarding module, can achieve the goal of not having to re-evaluate and redesign the vehicle network architecture when adding a controller to the vehicle or adjusting the network segment where the existing controller is located, thus reducing the cost of vehicle design and maintenance.

[0118] Optionally, the target network segment determination module 91 includes:

[0119] The network segment detection message acquisition unit is used to acquire the network segment detection message sent by the updated target controller in the vehicle to the vehicle gateway when an update is detected in the target controller in the vehicle.

[0120] The target network segment determination unit is used to determine the target network segment where the target controller is located based on the network segment detection message.

[0121] Optionally, the packet routing and port allocation fusion table update module 92 includes:

[0122] The original port allocation table generation unit is used to obtain the packet routing and port allocation fusion table before the controller is updated, determine the network segment where each controller is located, and generate the original port allocation table.

[0123] The packet routing and port allocation fusion table update unit is used to update the packet routing and port allocation fusion table according to the target network segment, the preset routing signal table, and the original port allocation table.

[0124] The preset routing signal table update unit is used to add the connection relationships between each controller and each network segment, as well as the connection relationships between the target controller and the target network segment, from the original port allocation table to the preset routing signal table, and update the packet routing and port allocation fusion table.

[0125] Optionally, the message forwarding relationship determination module 93 includes:

[0126] The communication port determination unit is used to determine the source communication port and destination communication port corresponding to each port message based on the message routing and port allocation fusion table;

[0127] The target communication port determination unit is used to determine the target communication port by taking the difference between the target communication port and the source communication port as the target communication port if the target communication port includes the source communication port; otherwise, it takes the target communication port as the target communication port.

[0128] The message forwarding relationship generation unit is used to generate message forwarding relationships based on the correspondence between each port message and the source communication port and the destination communication port.

[0129] Optionally, the target controller for each module includes at least one of the following: engine controller, transmission controller, anti-lock braking system controller, retarder controller, instrument controller, and body controller.

[0130] Optionally, the preset routing signal table corresponding to each module also includes: the packet address and packet name of each port packet.

[0131] The communication device based on vehicle controller update provided in the embodiments of the present invention can execute the communication method based on vehicle controller update provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0132] Example 5

[0133] Figure 6 A schematic diagram of the structure of an in-vehicle gateway 10 that can be used to implement an embodiment of the present invention is shown. Figure 6As shown, the vehicle gateway 10 includes at least two communication ports 20; each communication port 20 is connected to a network segment in the vehicle via a communication wire, and the controller in the vehicle is configured to communicate within the network segment; each network segment has two terminating resistors; port messages can be forwarded between the communication ports 20; at least one processor 11, and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor, and the processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the vehicle gateway 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0134] Multiple components in the vehicle gateway 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, optical disk, etc.; and a communication unit 19, such as a network card, modem, wireless transceiver, etc. The communication unit 19 allows the vehicle gateway 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0135] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as communication methods based on controller updates in a vehicle.

[0136] In some embodiments, the communication method based on in-vehicle controller updates can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the vehicle gateway 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the communication method based on in-vehicle controller updates described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the communication method based on in-vehicle controller updates by any other suitable means (e.g., by means of firmware).

[0137] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0138] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0139] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0140] To provide interaction with the user, the systems and techniques described herein can be implemented on an in-vehicle gateway, which includes: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the in-vehicle gateway. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0141] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0142] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0143] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0144] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A communication method based on controller updates in a vehicle, characterized in that, Applicable to communication between controllers in a vehicle, executed by the vehicle gateway, the method includes: When an update to the target controller in the vehicle is detected, the target network segment where the target controller is located is determined; Based on the target network segment and the pre-stored preset routing signal table, update the packet routing and port allocation fusion table, including: Obtain the packet routing and port allocation fusion table before the controller update, determine the network segment where each controller is located, and generate the original port allocation table; wherein, the original port allocation table is used to reflect the communication port where each target controller is located; The connection relationships between each controller and each network segment in the original port allocation table, as well as the connection relationship between the target controller and the target network segment, are added to the preset routing signal table to update the packet routing and port allocation fusion table; wherein, the preset routing signal table records the packet reception relationship among multiple controllers in the vehicle; Based on the packet routing and port allocation fusion table and the pre-set forwarding rules, the packet forwarding relationship is determined, including: Based on the packet routing and port allocation fusion table, determine the source communication port and destination communication port corresponding to each port packet; If the destination communication port includes the source communication port, then the difference between the destination communication port and the source communication port is taken as the target communication port. Otherwise, the destination communication port shall be used as the target communication port; The packet forwarding relationship is generated based on the correspondence between each port packet and the source communication port and the target communication port; Based on the message forwarding relationship, the target communication port corresponding to each port message is determined, and the port message is forwarded to the target communication port.

2. The method according to claim 1, characterized in that, When an update is detected in the target controller of the vehicle, the target network segment where the target controller is located is determined, including: When an update is detected in the target controller in the vehicle, the system sends a network segment detection message to the vehicle gateway to obtain the updated target controller in the vehicle. Based on the network segment detection message, the target network segment where the target controller is located is determined.

3. The method according to any one of claims 1-2, characterized in that, The target controller includes at least one of the following: engine controller, transmission controller, anti-lock braking system controller, retarder controller, instrument controller, and body controller.

4. The method according to any one of claims 1-2, characterized in that, The preset routing signal table also includes: the message address and message name of each port message.

5. A communication device for updating controllers in a vehicle, characterized in that, This device is applicable to communication between controllers in a vehicle and is executed by an onboard gateway. The device includes: The target network segment determination module is used to determine the target network segment where the target controller is located when an update is detected in the target controller in the vehicle. The packet routing and port allocation fusion table update module is used to update the packet routing and port allocation fusion table according to the target network segment and a pre-stored preset routing signal table; wherein, the preset routing signal table records the reception relationship of packets among multiple controllers in the vehicle; The packet forwarding relationship determination module is used to determine the packet forwarding relationship based on the packet routing and port allocation fusion table and the pre-set forwarding rules; The port packet forwarding module is used to determine the target communication port corresponding to each port packet according to the packet forwarding relationship, and forward the port packet to the target communication port; The packet routing and port allocation fusion table update module includes: The original port allocation table generation unit is used to obtain the packet routing and port allocation fusion table before the controller is updated, determine the network segment where each controller is located, and generate the original port allocation table; wherein, the original port allocation table is used to reflect the communication port where each target controller is located. The preset routing signal table update unit is used to add the connection relationship between each controller and each network segment in the original port allocation table, as well as the connection relationship between the target controller and the target network segment, to the preset routing signal table, and update the packet routing and port allocation fusion table. The message forwarding relationship determination module includes: The communication port determination unit is used to determine the source communication port and destination communication port corresponding to each port message according to the message routing and port allocation fusion table. The target communication port determination unit is configured to, if the target communication port includes the source communication port, use the difference between the target communication port and the source communication port as the target communication port; otherwise, use the target communication port as the target communication port. The message forwarding relationship generation unit is used to generate the message forwarding relationship based on the correspondence between each port message and the source communication port and the target communication port.

6. A vehicle-mounted gateway, characterized in that, The vehicle-mounted gateway includes: At least two communication ports; each communication port is connected to a network segment in the vehicle via a communication wire, and the controller in the vehicle is configured to communicate within the network segment; each network segment has two terminating resistors; port messages can be forwarded between the communication ports; At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor to enable the at least one processor to perform the communication method based on controller updates in a vehicle, as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the communication method based on controller updates in a vehicle as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Gateway configuration method and device

    CN113904922A