Link communication method and device in vehicle-mounted network, electronic equipment and vehicle

By determining the link aggregation group matching the media access control address in the on-board network and sending message data to the data receiving end based on multiple port links, the problem of long link protection switching time in the on-board network is solved, and the stability of link communication and vehicle driving safety is improved.

CN119814648APending Publication Date: 2025-04-11BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311316997.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-11
Publication Date
2025-04-11

Smart Images

  • Figure CN119814648A_ABST
    Figure CN119814648A_ABST
Patent Text Reader

Abstract

The invention relates to a link communication method and device in a vehicle-mounted network, electronic equipment and a vehicle, and relates to the field of vehicle control, for a data sending end, the method can comprise the steps that message data to be sent is acquired, and the message data carries a media access control address of a data receiving end to receive the message data; a link aggregation group matched with the media access control address is determined, and the link aggregation group comprises a plurality of port links; and sending the message data to the data receiving end based on the plurality of port links, so that the data receiving end selects a first port link from the plurality of port links, and receives the message data transmitted by the first port link. According to the invention, data packet loss can be avoided, the stability of link communication is effectively ensured, and the safety of vehicle driving is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle control, and in particular to a link communication method, device, electronic equipment and vehicle in a vehicle network. Background Art

[0002] With the development of the "new four trends" of automobiles - electrification, intelligence, networking, and sharing, the automotive EEA (Electrical and Electronic Architecture) architecture is gradually evolving from the traditional architecture to the central control architecture, and ultimately achieving the goal of software-defined automobiles. In this evolutionary process, computing and communication will be the two most important research topics in automobiles. Computing is the brain, and communication is the limbs. The perfect combination of the two will give birth to a new life - intelligent networked cars. Therefore, reliable communication is crucial in the vehicle network. Once the network loses packets, the vehicle will operate abnormally.

[0003] In order to ensure stable communication between adjacent links, existing methods generally use the Equal-Cost Multipath Routing (ECMP) protocol and port aggregation protocol. These protocols are generally implemented by cooperating with fault detection and link switching, that is, first detecting the fault and then triggering the switchover. Link protection implemented by these protocols generally requires that the service return to normal within 50ms. However, in the vehicle network, packet loss is not allowed due to driving safety. The switching time of up to 50ms will not be able to continuously ensure the stability of the link in the vehicle network, which will easily lead to road traffic safety hazards. Summary of the invention

[0004] In view of this, the present application provides a link communication method, device, electronic device and vehicle in a vehicle network, which can solve the technical problem that the switching time of the link protection in the vehicle network is long, the stability of the link in the vehicle network cannot be continuously guaranteed, and thus easily poses a hidden danger to road traffic safety.

[0005] According to a first aspect of the present application, a link communication method in a vehicle network is provided, the method being applied to a data sending end, comprising:

[0006] Acquire message data to be sent, wherein the message data carries a media access control address of a data receiving end to receive the message data;

[0007] Determine a link aggregation group matching the media access control address, wherein the link aggregation group includes a plurality of port links;

[0008] The message data is sent to the data receiving end based on the multiple port links respectively, so that the data receiving end selects a first port link from the multiple port links and receives the message data transmitted by the first port link.

[0009] According to a second aspect of the present application, a link communication method in a vehicle network is provided, the method being applied to a data receiving end, comprising:

[0010] Determine the message data sent by the data sending end through the multiple port links in the link aggregation group;

[0011] A first port link is selected from the multiple port links, and the message data transmitted by the first port link is received.

[0012] According to a third aspect of the present application, a link communication device in a vehicle network is provided, the device being applied to a data sending end, comprising:

[0013] An acquisition module, used for acquiring message data to be sent, wherein the message data carries a media access control address of a data receiving end to receive the message data;

[0014] A determination module, configured to determine a link aggregation group matching the media access control address, wherein the link aggregation group includes a plurality of port links;

[0015] The sending module is used to send the message data to the data receiving end based on the multiple port links respectively, so that the data receiving end selects a first port link from the multiple port links and receives the message data transmitted by the first port link.

[0016] According to a fourth aspect of the present application, a link communication device in a vehicle network is provided, and the device is applied to a data receiving end, comprising:

[0017] A determination module, used to determine the message data sent by the data sending end through multiple port links in the link aggregation group;

[0018] The receiving module is used to select a first port link from the multiple port links and receive the message data transmitted by the first port link.

[0019] According to a fifth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the link communication method in the vehicle network described in the first aspect or the second aspect is implemented.

[0020] According to the sixth aspect of the present application, an electronic device is provided, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein when the processor executes the computer program, the link communication method in the vehicle network described in the first aspect or the second aspect is implemented.

[0021] According to a seventh aspect of the present application, a vehicle is provided, comprising: the electronic device as described in the sixth aspect.

[0022] By means of the above technical scheme, the present application provides a link communication method, device, electronic device and vehicle in an in-vehicle network. After obtaining the message data to be sent, the data sending end can extract the media access control address of the data receiving end corresponding to the message data, and then determine the link aggregation group that matches the media access control address; the link aggregation group can include multiple port links, and the data sending end can send message data to the data receiving end based on the multiple port links, so that the data receiving end selects a first port link from the multiple port links and receives the message data transmitted by the first port link. For the disclosed embodiment, the message data transmission between the data sending end and the data receiving end can adopt a multi-send single-receive method. Even if a port link fails among the multiple port links, there is no need to switch the link, and the other port links can ensure that the message data is transmitted to the data receiving end in time, thereby avoiding packet loss. In this way, the stability of the link communication in the in-vehicle network can be effectively guaranteed, and the safety of vehicle driving can be improved.

[0023] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

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

[0026] Figure 1 A vehicle network topology diagram provided by an embodiment of the present disclosure;

[0027] Figure 2A schematic diagram of a TRUNK link protection method provided by an embodiment of the present disclosure;

[0028] Figure 3 A schematic diagram of a TRUNK port fault switching principle provided by an embodiment of the present disclosure;

[0029] Figure 4 A schematic diagram of a FRER link protection method provided by an embodiment of the present disclosure;

[0030] Figure 5 A schematic diagram of a FRER fault switching principle provided by an embodiment of the present disclosure;

[0031] Figure 6 A schematic diagram of a flow chart of a link communication method in a vehicle network provided by an embodiment of the present disclosure;

[0032] Figure 7 A schematic diagram of a link communication principle provided by an embodiment of the present disclosure;

[0033] Figure 8 A schematic diagram of an example of a message identifier configuration provided by an embodiment of the present disclosure;

[0034] Fig. 9 A schematic flow chart of a link communication method in a vehicle network provided by another embodiment of the present disclosure;

[0035] Fig.10 A schematic diagram of the structure of a link communication device in a vehicle network provided by an embodiment of the present disclosure;

[0036] Fig.11 A schematic diagram of the structure of a link communication device in a vehicle network provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0037] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0038] The following describes a link communication method, device, electronic device, and vehicle in a vehicle network according to an embodiment of the present disclosure with reference to the accompanying drawings.

[0039] In order to ensure stable communication between adjacent links, existing methods generally use ECMP, port aggregation and other protocols. These protocols are generally implemented through fault detection and link switching, that is, the fault is detected first and then the switch is triggered. Link protection implemented by these protocols generally requires that the service returns to normal within 50ms, but in the vehicle network, packet loss is not allowed due to driving safety. The switching time of up to 50ms will not be able to continuously ensure the stability of the link in the vehicle network, which will easily lead to road traffic safety hazards.

[0040] In order to solve the above technical problems, the present disclosure can provide the following link protection methods for vehicle networks:

[0041] The embodiments of the present disclosure can be applied to Figure 1 In the in-vehicle network topology shown, the cockpit domain controller (Head up Display, HUD) is mainly responsible for the human-machine interaction in the cockpit. The external network gateway, cloud center gateway, display screen and other devices are mounted on the HUD; the vehicle domain controller (VCU) is the central control unit of the new energy vehicle and is the core of the entire control system. It is mainly responsible for the power control of the whole vehicle; the automatic driving domain controller (Full Self-Driving, FSD) is mainly responsible for the decision-making of intelligent driving. The FSD is mounted with sensors such as cameras and radars to collect vehicle environmental information. The three domains of VCU, HUD and FSD adopt the architecture of direct ring network, which can form a protection ring. For example, when the link between VCU and HUD fails, it can be forwarded through FSD. The forwarding path is VCU-FSD-HUD. However, this method also has a problem: since FSD carries the automatic driving function, it will generate massive data itself. If the business forwarding between VCU and HUD passes through FSD again, it will increase the burden of FSD and may affect the business of FSD itself. Since the VCU and HUD are directly connected, there is no need to forward through a third party. Therefore, by creating link communication protection between the VCU and the HUD, the VCU can directly send message data to the HUD, thereby reducing the data transmission burden of the FSD. It should be noted that in the following embodiment steps of the present disclosure, the VCU is used as the data sending end and the HUD is used as the data receiving end as an example to illustrate the technical solution in the present disclosure, but it does not constitute a specific limitation.

[0042] When creating link communication protection between the VCU and HUD:

[0043] As a possible implementation method, multiple direct links can be established between the VCU and the HUD and then a protection group can be formed through a port trunking protocol. The switching process can be configured in the port trunking protocol, such as Figure 2 As shown, in order to simplify the process, only the connection between VCU and HUD is drawn here, and the connection of FSD is omitted. In the figure, ports P1, P2, and P3 are added to a port aggregation group T1. After VCU receives a message, it finds group T1 (P1, P2, P3) according to the destination address Frame1 of the message, and then selects a port P1 from T1 (P1, P2, P3) based on a hash algorithm according to the characteristics of the message (such as source (Media Access Control, MAC), destination MAC, vlan, etc.) to send the message out. Different message characteristics may select different outbound port numbers. If a link fails, it will be detected by the detection protocol (such as bidirectional forwarding detection (Bidirectional Forwarding Detection, BFD) and other detection protocols), and then trigger the software to remove the faulty port from the T1 group, so that the next time the port is selected, the faulty port will not be selected. The detection and switching module in the figure is responsible for fault detection and port addition and deletion actions.

[0044] Correspondingly, such as Figure 3 As shown in the figure, if link 1 (P1-P1) fails, port P1 will be removed from T1 (P1, P2, P3), and only port (P2, P3) will be left in T1. After receiving a message, VCU will only select the forwarding port from T1 (P2, P3). Once the detection protocol detects that link 1 is restored, it will trigger the software to add P1 to the T1 group (P1, P2, P3). Through this process, the purpose of link protection is achieved. In this way, since there will be packet loss due to link detection and software processing of port addition and deletion, this method is suitable for scenarios that meet the requirements of network packet loss tolerance.

[0045] As a possible implementation method, the reliability of link communication can be improved based on the Frame Replication and Elimination for Reliability (FRER) protocol. FRER is a standard content of IEEE802.1CB and can be used to solve the problem of packet loss in traditional Ethernet service switching. Its basic principle is similar to the 1+1 protection method in traditional Ethernet. It adopts the method of multiple transmissions and single reception. The transmission end sends the service to multiple lines respectively, and the receiving end only receives one message and discards the duplicate messages.

[0046] like Figure 4 As shown in the figure, packet 1 is sent to two links on switch-1, and only one packet is received on switch-4, which discards the received packet. Even if one link fails, the packet will not be lost. Figure 5As shown in the figure, the link between switch-2 and switch-4 fails, and switch-4 can also receive a message without packet loss, thus achieving the purpose of protection. In this way, although packet loss can be avoided, there are also some problems. For example, the sending end needs to bind the mutually protected ports together and flood the message from each port, which is not convenient for unicast forwarding. At the same time, since it is unknown which line receives the message first, the MAC address will drift back and forth on different ports. Once the traffic is large, this high-frequency drift will cause unstable forwarding.

[0047] As a possible implementation method, the advantages of TRUNK and FRER can be combined. On the one hand, the configuration of FRER is very simple, without binding to protect the port group, and will not cause the MAC address to drift back and forth, so that the message forwarding is continuous and stable; on the other hand, TRUNK does not need to perform link detection, and does not need software to process the addition and deletion of ports. The configuration can be directly solidified in the chip. More importantly, there will be no packet loss after any link failure, which can effectively ensure the stability of the link.

[0048] Correspondingly, for the third possible implementation method, the present disclosure provides a link communication method, device, electronic device and vehicle in a vehicle network, which can solve the technical problem that the switching time in link protection is long, the stability of the link in the vehicle network cannot be continuously guaranteed, and there is a hidden danger to road traffic safety.

[0049] like Figure 6 As shown, an embodiment of the present disclosure provides a link communication in a vehicle network. The method is applied to a data sending end, and the data sending end includes but is not limited to a vehicle domain controller VCU in a vehicle network topology. In the following embodiment steps, the data sending end is taken as VCU as an example to illustrate the technical solution in the present disclosure, but it does not constitute a specific limitation.

[0050] Accordingly, the method may include:

[0051] Step 101: Acquire message data to be sent, where the message data carries a media access control address of a data receiving end that is to receive the message data.

[0052] Among them, the message data may be data corresponding to the car message, which refers to the digital signal transmitted inside the vehicle through the controller area network (CAN) bus. These signals may include status information of various vehicle systems, such as engine speed, vehicle speed, fuel volume, water temperature, air conditioning working status, etc., or may also include other information used for vehicle diagnosis, maintenance and modification, which are not specifically limited here; the data receiving end includes but is not limited to the cockpit domain controller HUD in the vehicle network topology. In the following embodiment steps, the data receiving end is taken as HUD as an example to illustrate the technical solution in the present disclosure, but it does not constitute a specific limitation.

[0053] Step 102: Determine a link aggregation group that matches the media access control address, wherein the link aggregation group includes multiple port links.

[0054] In a specific application scenario, when a vehicle needs to send message data to the HUD, the VCU can first obtain the message data to be sent, and then determine the port link used to establish a direct link communication with the data receiving end in combination with the Media Access Control Address (MAC) address of the data receiving end carried in the message data. The media access control address is used to define the physical location of a data receiving end, that is, to determine the link aggregation group according to the physical location of the data receiving end. Figure 7 As shown, a link aggregation group (such as T1) matching the media access control address can be determined. The link aggregation group can include three port links (i.e., P1-P1, P2-P2, and P3-P3), i.e., T1 (P1, P2, P3). The three port links can be used for the data sending end to send message data to the data receiving end.

[0055] In a specific application scenario, an access control list may be pre-generated, and the mapping relationship between different preset media access control addresses and corresponding preset link aggregation groups may be stored in the access control list. Accordingly, when determining the link aggregation group that matches the media access control address, the implementation steps may include: in the access control list, based on the mapping relationship, searching for the link aggregation group that matches the media access control address. Among them, the access control list (ACL) may be a list of rules for specifying which users or systems are allowed or denied to access specific objects or system resources. In a specific application scenario, the mapping relationship between different media access control addresses and corresponding link aggregation groups may be pre-stored in the access control list to provide corresponding link aggregation groups for data transmission under different media access control addresses. For the embodiments of the present disclosure, in the access control list, the link aggregation group that matches the media access control address corresponding to the data receiving end may be quickly determined through the media access control address and the mapping relationship.

[0056] Step 103: Send message data to the data receiving end based on the multiple port links respectively, so that the data receiving end selects a first port link from the multiple port links and receives the message data transmitted by the first port link.

[0057] The first port link is a port link that the data receiving end finally selects to receive the message data.

[0058] In a specific application scenario, when sending message data to a data receiving end based on multiple port links, the data sending end can redirect a copy of the message data to all port links in the link aggregation group, that is, use all port links to send message data to the data receiving end at the same time. In this process, there is no need to use the Hash algorithm to select the output port, which can simplify the operation steps. In the process of sending message data to the data receiving end, there is no need to turn on link detection, add or delete ports in T1, and even no upper-layer software participation is required, which can reduce the software operation burden of the VCU and ensure that all ports are always in group T1. The sending of message data can be achieved based on conventional MAC address lookup, and the learned output port of the MAC address is still T1, which will not change with the change of the port, thus avoiding the occurrence of MAC address drift. For the disclosed embodiment, through the message data transmission between the data sending end and the data receiving end, a multi-send single-receive method can be adopted. Even if a port link failure occurs in multiple port links, other port links can ensure that the message data is transmitted to the data receiving end in time, that is, there will be no packet loss after any link failure, which can effectively ensure the stability of the link.

[0059] In a specific application scenario, in order to realize the statistics and identification of multiple message data transmitted by multiple port links by the data receiving end, the data sending end can also add a message identifier to the message data before sending the message data to the data receiving end, and the message identifier is used to distinguish different message data. When receiving the message data, the data receiving end can record the message identifier in the message data. As a possible application scenario, if the data receiving end receives multiple message data containing the same message identifier within a specified time, the first port link can be determined based on the order of delivery of the message data, and the message data corresponding to the message identifier received later can be discarded to ensure that only one copy of the message data is received and the duplicate message data is discarded, that is, multiple sending and single receiving is realized; as a possible application scenario, if the data receiving end receives multiple message data containing the same message identifier within a specified time, the first port link for receiving the message data can also be determined based on other characteristic information, wherein the other characteristic information may include the selection priority of the pre-configured port link, the communication signal strength corresponding to the port link, etc.

[0060] Correspondingly, the steps of the embodiment may include: configuring a message identifier for message data; sending message data with the configured message identifier to a data receiving end based on multiple port links, so that the data receiving end selects a first port link from the multiple port links by identifying the message identifier, and receives the message data transmitted by the first port link.

[0061] Accordingly, when configuring a message identifier for message data, the steps of the embodiment may include: extracting message features of the message data and generating a message identifier corresponding to the message features, wherein the message features at least include Ethernet message types, and different message identifiers are generated corresponding to different message features; adding a message identifier at a specific position of the Ethernet frame structure corresponding to the message data. The Ethernet frame structure corresponding to the message data is as follows: Figure 8 As shown, a message identifier may be added at a specific position of the Ethernet frame structure (e.g., after the VLAN frame and before the type frame). Exemplarily, the message identifier may include a 0-1 byte EtherType (Ethernet message type) field, a 2-3 byte Reserved (reserved) field, and a 4-5 byte Sequencenumber (sequence number) field.

[0062] In summary, according to the link communication method, device, electronic device and vehicle in the vehicle network provided by the present application, after the data sending end obtains the message data to be sent, it can extract the media access control address of the data receiving end corresponding to the message data, and then determine the link aggregation group that matches the media access control address; the link aggregation group may include multiple port links, and the data sending end can send message data to the data receiving end based on the multiple port links respectively, so that the data receiving end selects a first port link from the multiple port links and receives the message data transmitted by the first port link. For the embodiments of the present disclosure, the message data transmission between the data sending end and the data receiving end can adopt a multi-send single-receive method. Even if a port link fails among the multiple port links, there is no need to switch the link, and the other port links can ensure that the message data is transmitted to the data receiving end in time, thereby avoiding packet loss. In this way, the stability of the link communication in the vehicle network can be effectively guaranteed, and the safety of vehicle driving can be improved.

[0063] like Fig. 9 As shown, an embodiment of the present disclosure provides a link communication in a vehicle network. The method is applied to a data receiving end, and the data receiving end includes but is not limited to a cockpit domain controller HUD in the vehicle network topology. In the following embodiment steps, the data receiving end is taken as HUD as an example to illustrate the technical solution in the present disclosure, but it does not constitute a specific limitation.

[0064] Accordingly, the method may include:

[0065] Step 201: Determine message data sent by a data sending end through multiple port links in a link aggregation group.

[0066] Among them, the data sending end includes but is not limited to the vehicle domain controller VCU in the vehicle network topology. In the following embodiment steps, the data sending end is taken as VCU as an example to illustrate the technical solution in the present disclosure, but it does not constitute a specific limitation.

[0067] Step 202: Select a first port link from multiple port links, and receive message data transmitted by the first port link.

[0068] The first port link is a port link that the data receiving end finally selects to receive the message data.

[0069] In a specific application scenario, the data transmitting end can send message data to the data receiving end based on multiple port links respectively. The data receiving end can select a first port link from the multiple port links, receive the message data transmitted by the first port link, and then discard the message data transmitted by other port links other than the first port link in the multiple port links. Specifically, in order to realize the statistics and identification of multiple message data transmitted by multiple port links by the data receiving end, the data transmitting end can also add a message identifier to the message data before sending the message data to the data receiving end. The message identifier is used to distinguish different message data. When receiving the message data, the data receiving end can record the message identifier in the message data. If multiple message data containing the same message identifier are received within a specified time, the first port link can be determined based on the order of delivery of the message data, and the message data corresponding to the message identifier received later can be discarded, so as to ensure that only one copy of the message data is received and the duplicate message data is discarded, that is, multiple sending and single receiving is realized. As a possible application scenario, if the data receiving end receives multiple message data containing the same message identifier within a specified time, it can also determine the first port link for receiving the message data based on other characteristic information, wherein the other characteristic information may include the selection priority of the pre-configured port link, the communication signal strength corresponding to the port link, etc., which is not specifically limited here.

[0070] Accordingly, for the embodiment of the present disclosure, when a first port link is selected from a plurality of port links:

[0071] As a possible implementation method, the steps of the embodiment may include: determining multiple port links that send the same message data by identifying the message identifier configured in the message data; determining the delivery time of the message data corresponding to the multiple port links; based on the delivery time, determining the first port link among the multiple port links that delivers the message data as the first port link.

[0072] As a possible implementation method, the implementation steps may include: determining multiple port links that send the same message data by identifying the message identifier configured in the message data; determining the selection priority of each port link in the multiple port links; and determining the port link with the highest corresponding selection priority in the multiple port links as the first port link. Correspondingly, when determining the selection priority of each port link in the multiple port links, the implementation steps may include: obtaining the selection frequency of each port link in the multiple port links within a preset historical time period; and determining the selection priority of each port link based on the selection frequency. Among them, the selection priority and the selection frequency are positively correlated, that is, the higher the selection frequency, the higher the corresponding selection priority of the port link, and the more likely it is to be used as the first port link to receive the message data sent by the data sending end; the preset historical time period for statistical selection frequency can be set according to the actual application scenario, such as within a historical week.

[0073] As a possible implementation, the steps of the embodiment may include: determining multiple port links that send the same message data by identifying the message identifier configured in the message data; obtaining the communication signal strength of each port link in the multiple port links; and determining the port link with the strongest corresponding communication signal strength in the multiple port links as the first port link. For the embodiment of the present disclosure, by selecting the port link with the strongest communication signal strength as the first port link, the transmission quality of the message data can be guaranteed.

[0074] Among them, in the above-mentioned several possible implementation methods, when determining multiple port links that send the same message data by identifying the message identifier configured in the message data, the message identifier of the message data transmitted by each port link can be extracted, and the similarity of the message identifiers can be calculated to determine multiple identical message data containing the same message identifier, and further determine multiple port links that transmit multiple identical message data.

[0075] Correspondingly, to discard duplicate message data, the embodiment steps may also include: discarding message data sent by a second port link among multiple port links, where the second port link is a port link other than the first port link among multiple port links that send the same message data.

[0076] In summary, according to the link communication method, device, electronic device and vehicle in the vehicle network provided by the present application, after determining the message data sent by the data sending end through multiple port links in the link aggregation group, the data receiving end can select a first port link from multiple port links and receive the message data transmitted by the first port link. For the embodiments of the present disclosure, the message data transmission between the data sending end and the data receiving end can adopt a multi-send and single-receive method. Even if a port link failure occurs in multiple port links, the data receiving end can receive the message data in multiple transmissions. In this way, zero packet loss can be guaranteed for any link failure, ensuring the stability of link communication, thereby improving the safety of vehicle driving.

[0077] It should be noted that, for the technical solution disclosed in the present invention, the configuration process can be solidified into the chip, and the entire process does not require any software participation. It can take effect as soon as power is turned on, making it more suitable for scenarios where the vehicle network needs to be quickly started.

[0078] Based on the above Figure 6 The specific implementation of the method shown in the embodiment provides a link communication device in a vehicle network, which is applied to a data sending end, such as Fig.10 As shown, the device comprises:

[0079] The acquisition module 31 may be used to acquire the message data to be sent, wherein the message data carries the media access control address of the data receiving end of the message data to be received;

[0080] A determination module 32, which can be used to determine a link aggregation group matching the media access control address, wherein the link aggregation group includes multiple port links;

[0081] The sending module 33 may be used to send message data to the data receiving end based on multiple port links respectively, so that the data receiving end selects a first port link from the multiple port links and receives the message data transmitted by the first port link.

[0082] In specific application scenarios, such as Fig.10 As shown, the device may further include: a generating module 34;

[0083] A generating module 34, which can be used to generate an access control list, in which a mapping relationship between different preset media access control addresses and corresponding preset link aggregation groups is stored;

[0084] The determination module 32 may be used to retrieve a link aggregation group matching the media access control address in the access control list based on a mapping relationship.

[0085] In specific application scenarios, such as Fig.10 As shown, the device may further include: a configuration module 35;

[0086] A configuration module 35, which can be used to configure a message identifier for the message data, where the message identifier is used to distinguish different message data;

[0087] The sending module 33 can be used to send message data with configured message identifiers to the data receiving end based on multiple port links, so that the data receiving end selects a first port link from the multiple port links by identifying the message identifier and receives the message data transmitted by the first port link.

[0088] In a specific application scenario, when configuring a message identifier for message data, the configuration module 35 can be used to extract message features of the message data and generate a message identifier for the message data based on the message features. The message features include at least an Ethernet message type, and different message features generate different message identifiers. The message identifier is added at a specific position of the Ethernet frame structure corresponding to the message data.

[0089] Based on the above Fig. 9 The specific implementation of the method shown in the embodiment provides a link communication device in a vehicle network, which is applied to a data receiving end, such as Fig.11 As shown, the device comprises:

[0090] A determination module 41, which may be used to determine the message data sent by the data sending end through the multiple port links in the link aggregation group;

[0091] The receiving module 42 may be configured to select a first port link from a plurality of port links and receive message data transmitted by the first port link.

[0092] In a specific application scenario, the receiving module 42 can be used to determine multiple port links that send the same message data by identifying the message identifier configured in the message data; determine the delivery time of the message data corresponding to the multiple port links; and based on the delivery time, determine the first port link among the multiple port links that delivers the message data as the first port link.

[0093] In a specific application scenario, the receiving module 42 can be used to determine multiple port links that send the same message data by identifying the message identifier configured in the message data; determine the selection priority of each port link among the multiple port links; and determine the port link with the highest selection priority among the multiple port links as the first port link.

[0094] In a specific application scenario, the receiving module 42 can be used to determine multiple port links that send the same message data by identifying the message identifier configured in the message data; obtain the communication signal strength of each port link in the multiple port links; and determine the port link with the strongest corresponding communication signal strength among the multiple port links as the first port link.

[0095] In specific application scenarios, such as Fig.11 As shown, the device further includes: a processing module 43;

[0096] The processing module 43 can be used to obtain the selection frequency of each port link in the plurality of port links within a preset historical time period; and determine the selection priority of each port link based on the selection frequency, wherein the selection priority and the selection frequency are positively correlated.

[0097] In a specific application scenario, the processing module 43 may also be used to discard message data sent by a second port link among multiple port links, where the second port link is a port link other than the first port link among multiple port links sending the same message data.

[0098] It should be noted that for other corresponding descriptions of the functional units involved in the link communication device in the vehicle network provided in this embodiment, reference can be made to Figure 6 or Fig. 9 The corresponding description in will not be repeated here.

[0099] Based on the above Figure 6 and Fig. 9 The method shown in the embodiment also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned Figure 6 and Fig. 9 The method shown.

[0100] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.

[0101] Based on the above Figure 6 and Fig. 9 The method shown, and Fig.10 and Fig.11 In order to achieve the above-mentioned purpose, the embodiment of the present application also provides an electronic device that can be configured on the vehicle (such as an electric vehicle) side, and the device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 6 and Fig. 9 The method shown.

[0102] Optionally, the above-mentioned physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.

[0103] Those skilled in the art will appreciate that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.

[0104] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.

[0105] Based on the above electronic device, the embodiment of the present application further provides a vehicle, which may specifically include: the above electronic device. The vehicle may specifically be an electric car, etc.

[0106] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or by hardware. The technical solution disclosed in the present invention can adopt a multi-send and single-receive method for the message data transmission between the data sending end and the data receiving end. Even if a port link fails among multiple port links, there is no need to switch the link. The other port links can ensure that the message data is transmitted to the data receiving end in time, thereby avoiding packet loss. In this way, the stability of the link communication in the vehicle network can be effectively guaranteed, and the safety of vehicle driving can be improved.

[0107] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0108] The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments herein, but will conform to the widest scope consistent with the principles and novel features applied for herein.

Claims

1. A link communication method in a vehicle network, characterized in that: The method is applied to a data sending end, comprising: Acquire message data to be sent, wherein the message data carries a media access control address of a data receiving end to receive the message data; Determine a link aggregation group matching the media access control address, wherein the link aggregation group includes a plurality of port links; The message data is sent to the data receiving end based on the multiple port links respectively, so that the data receiving end selects a first port link from the multiple port links and receives the message data transmitted by the first port link.

2. The method according to claim 1, characterized in that The method further comprises: Generate an access control list, wherein the access control list stores a mapping relationship between different preset media access control addresses and corresponding preset link aggregation groups; The determining of a link aggregation group matching the media access control address comprises: In the access control list, a link aggregation group matching the media access control address is retrieved based on the mapping relationship.

3. The method according to claim 1, characterized in that Before sending the message data to the data receiving end based on the multiple port links respectively, the method further includes: Configuring a message identifier for the message data, where the message identifier is used to distinguish different message data; The sending the message data to the data receiving end based on the multiple port links respectively includes: Based on the multiple port links, message data configured with the message identifier are respectively sent to the data receiving end, so that the data receiving end selects a first port link from the multiple port links by identifying the message identifier, and receives the message data transmitted by the first port link.

4. The method according to claim 3, characterized in that The configuring a message identifier for the message data comprises: Extracting message features of the message data, and generating a message identifier of the message data based on the message features, wherein the message features at least include an Ethernet message type, and different message identifiers are generated corresponding to different message features; The message identifier is added at a specific position of the message data corresponding to the Ethernet frame structure.

5. A link communication method in a vehicle network, characterized in that: The method is applied to a data receiving end, comprising: Determine the message data sent by the data sending end through the multiple port links in the link aggregation group; A first port link is selected from the multiple port links, and the message data transmitted by the first port link is received.

6. The method according to claim 5, characterized in that The selecting a first port link from the plurality of port links comprises: Determine multiple port links that send the same message data by identifying a message identifier configured in the message data; Determine the delivery time of the message data corresponding to the multiple port links; Based on the delivery time, a port link among the multiple port links that first delivers the message data is determined as a first port link.

7. The method according to claim 5, characterized in that The selecting a first port link from the plurality of port links comprises: Determine multiple port links that send the same message data by identifying a message identifier configured in the message data; Determining a selection priority of each port link among the multiple port links; Among the multiple port links, the port link corresponding to the highest selection priority is determined as the first port link.

8. The method according to claim 5, characterized in that The selecting a first port link from the plurality of port links comprises: Determine multiple port links that send the same message data by identifying a message identifier configured in the message data; Obtaining the communication signal strength of each port link among the multiple port links; Among the multiple port links, the port link corresponding to the strongest communication signal strength is determined as the first port link.

9. The method according to claim 7, characterized in that: The determining of the selection priority of each port link among the multiple port links comprises: Obtaining a selection frequency of each of the plurality of port links within a preset historical time period; The selection priority of each port link is determined based on the selection frequency, wherein the selection priority is positively correlated with the selection frequency.

10. The method according to any one of claims 5 to 8, characterized in that The method further comprises: The message data sent by the second port link among the multiple port links is discarded, where the second port link is another port link other than the first port link among the multiple port links that send the same message data.

11. A link communication device in a vehicle network, characterized in that: The device is applied to a data sending end, and comprises: An acquisition module, used for acquiring message data to be sent, wherein the message data carries a media access control address of a data receiving end to receive the message data; A determination module, configured to determine a link aggregation group matching the media access control address, wherein the link aggregation group includes a plurality of port links; The sending module is used to send the message data to the data receiving end based on the multiple port links respectively, so that the data receiving end selects a first port link from the multiple port links and receives the message data transmitted by the first port link.

12. A link communication device in a vehicle network, characterized in that: The device is applied to a data receiving end, and comprises: A determination module, used to determine the message data sent by the data sending end through multiple port links in the link aggregation group; The receiving module is used to select a first port link from the multiple port links and receive the message data transmitted by the first port link.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.

14. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 10 is implemented.

15. A vehicle, characterized in that: include: The electronic device as claimed in claim 14.