Communication method and device for multiple computing power units, electronic equipment and storage medium

By detecting and managing the computing units in the multi-chip system of smart cars, load sharing and failover of business data are achieved, which solves the problems of single point of failure and low chip utilization and improves the reliability and stability of the system.

CN118740599APending Publication Date: 2024-10-01BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310327590.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Smart car multi-chip systems have problems with single points of failure and low chip utilization, resulting in insufficient system reliability and stability.

Method used

By detecting whether the computing power unit receives the keep-alive message, if it does not receive or receives an abnormal message, the corresponding business data is diverted to another computing unit, and through virtual interface and address resolution parameter management, load sharing and failover are achieved. , to ensure that the system does not have a single point of failure in case of failure.

Benefits of technology

It improves the reliability and stability of multi-computing unit systems, avoids single points of failure, improves chip computing power utilization, and ensures the normal operation of smart car systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740599A_ABST
    Figure CN118740599A_ABST
Patent Text Reader

Abstract

The invention relates to a communication method and device for multiple computing power units, electronic equipment and a storage medium, and relates to the field of communication, and the method comprises the steps: distributing different quantities of business data for a first computing power unit and a second computing power unit according to a preset weight parameter; detecting whether the first computing power unit receives a keep-alive message sent by the second computing power unit or not, wherein the keep-alive message comprises an application program running state and a network state of the second computing power unit; and when it is detected that the first computing power unit does not receive the keep-alive message, or it is detected that the first computing power unit receives the keep-alive message and the running state of the application program is abnormal, and / or the network state is abnormal, guiding service data corresponding to the second computing power unit to the first computing power unit, so that the first computing power unit processes the service data. According to the embodiment of the invention, the situation of single-point failure of the system is avoided, and the reliability of the system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of smart cars, and in particular to a communication method, device, electronic device and storage medium for multiple computing units. Background Art

[0002] The smart cockpit and autonomous driving domain of smart cars generally deploy multiple high-computing chips, and each chip will be assigned to handle different services. In the existing dual-chip system, one computing chip is responsible for high-load services, and the other chip handles relatively low-load services. If a single chip fails, it will cause a single point of failure in the dual-chip system, affecting the reliability of the system. Summary of the invention

[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a communication method, device, electronic device and storage medium for multiple computing units, which can solve the problems of single point failure and low chip utilization in multi-chip systems.

[0004] In order to achieve the above objectives, the technical solutions provided by the embodiments of the present disclosure are as follows:

[0005] In a first aspect, the present disclosure provides a communication method for multiple computing units, the method comprising:

[0006] Detect whether the first computing unit has received a keep-alive message sent by the second computing unit, where the keep-alive message includes an application running status and a network status of the second computing unit;

[0007] When it is detected that the first computing unit has not received a keep-alive message, or when it is detected that the first computing unit has received a keep-alive message and the application program is running abnormally, and / or when the network status is abnormal, the business data corresponding to the second computing unit is directed to the first computing unit so that the first computing unit processes the business data.

[0008] As an optional implementation of the embodiment of the present disclosure, after allocating different amounts of service data to the first computing unit and the second computing unit according to the preset weight parameter, before detecting whether the first computing unit has received a keep-alive message sent by the second computing unit, the method further includes:

[0009] Evaluate and verify the computing power of the first computing power unit to determine whether there is idle computing power in the first computing power unit;

[0010] When there is idle computing power in the first computing power unit, the target business is allocated according to the first preset priority and the second preset priority, so that the first computing power unit processes the target business corresponding to the first preset priority, and the second computing power unit processes the target business corresponding to the second preset priority; wherein the first preset priority is smaller than the second preset priority.

[0011] As an optional implementation of the embodiment of the present disclosure, after allocating different amounts of service data to the first computing unit and the second computing unit according to the preset weight parameter, before detecting whether the first computing unit has received a keep-alive message sent by the second computing unit, the method further includes:

[0012] Create multiple virtual interfaces between the first computing unit and the second computing unit;

[0013] Divide multiple virtual interfaces according to service types and associate them with virtual groups corresponding to the service types;

[0014] Among them, the virtual groups corresponding to the service types include at least one of the following groups: a first virtual group, a second virtual group and a third virtual group; the first virtual group is used for decision calculation of autonomous driving, the second virtual group is used for learning and training of autonomous driving, and the third virtual group is used for transmitting keep-alive messages.

[0015] As an optional implementation of the embodiment of the present disclosure, after dividing multiple virtual interfaces according to service types and associating them to virtual groups corresponding to the service types, the method further includes:

[0016] For the virtual group corresponding to the first computing unit, configure the first address resolution parameter, and for the virtual group corresponding to the second computing unit, configure the second address resolution parameter;

[0017] The first address resolution parameter is used to indicate that the first computing unit is in an inactive state, and the second address resolution parameter is used to indicate that the second computing unit is in an active state.

[0018] As an optional implementation of the embodiment of the present disclosure, the method is applied to a multi-chip system, and the multi-chip system further includes: a switching unit;

[0019] When it is detected that the first computing unit does not receive the keep-alive message, or when it is detected that the first computing unit receives the keep-alive message and the application program is in an abnormal running state, and / or when the network state is abnormal, the service data corresponding to the second computing unit is directed to the first computing unit, including:

[0020] When it is detected that the first computing unit has not received a keep-alive message, or when it is detected that the first computing unit has received a keep-alive message and the application program is running abnormally, the first address resolution parameter configured by the virtual group corresponding to the first computing unit is updated to the second address resolution parameter to switch the first computing unit to an active state; when the second address resolution parameter is configured for the virtual group corresponding to the first computing unit, the first computing unit sends an address resolution protocol message to the switching unit; and / or,

[0021] When the first computing unit receives the keep-alive message and the network status is abnormal, the first computing unit sends an address resolution protocol message to the switching unit;

[0022] The switching unit directs the business data corresponding to the second computing unit to the first computing unit according to the address resolution protocol message, so that the first computing unit processes the business data corresponding to the second computing unit.

[0023] As an optional implementation of the embodiment of the present disclosure, when it is detected that the first computing unit receives a keep-alive message and the application program is in an abnormal running state, and / or the network state is abnormal, the service data corresponding to the second computing unit is directed to the first computing unit, including:

[0024] When the application program of the first computing unit is in an abnormal running state, stop refreshing the Ethernet forwarding table entry corresponding to the second computing unit; and / or, when the network state of the second computing unit is abnormal, delete the Ethernet forwarding table entry corresponding to the second computing unit;

[0025] Update the Ethernet forwarding table entry corresponding to the first computing unit;

[0026] According to the updated Ethernet forwarding table entry corresponding to the first computing unit, the service data corresponding to the second computing unit is sent to the first computing unit.

[0027] As an optional implementation of the embodiment of the present disclosure, after dividing the multiple virtual interfaces according to the service type and obtaining the virtual groups corresponding to the service type, the method further includes:

[0028] Associating the preset priority and the preset weight parameter with the virtual group corresponding to the business type to establish an association relationship between the computing power unit, the virtual group, the preset priority and the preset weight parameter;

[0029] Among them, the priority and preset weight parameter of the first virtual group corresponding to the second computing unit are greater than the priority and preset weight parameter of the first virtual group corresponding to the first computing unit.

[0030] In a second aspect, the present disclosure provides a communication device for multiple computing units, the device comprising:

[0031] An allocation module, used to allocate different amounts of business data to the first computing power unit according to preset weight parameters;

[0032] A detection module, used to detect whether the first computing unit has received a keep-alive message sent by the second computing unit, where the keep-alive message includes an application running state and a network state of the second computing unit;

[0033] The sending module is used to direct the business data corresponding to the second computing unit to the first computing unit so that the first computing unit can process the business data when it detects that the first computing unit has not received the keep-alive message, or detects that the first computing unit has received the keep-alive message and the application program is running abnormally, and / or the network status is abnormal.

[0034] As an optional implementation of the embodiment of the present disclosure, the detection module, before detecting whether the first computing unit receives the keep-alive message sent by the second computing unit, is further used to:

[0035] Evaluate and verify the computing power of the first computing power unit to determine whether there is idle computing power in the first computing power unit;

[0036] When there is idle computing power in the first computing power unit, the target business is allocated according to the first preset priority and the second preset priority, so that the first computing power unit processes the target business corresponding to the first preset priority, and the second computing power unit processes the target business corresponding to the second preset priority; wherein the first preset priority is smaller than the second preset priority.

[0037] As an optional implementation of the embodiment of the present disclosure, the detection module, before detecting whether the first computing unit receives the keep-alive message sent by the second computing unit, is further used to:

[0038] Create multiple virtual interfaces between the first computing unit and the second computing unit;

[0039] Divide multiple virtual interfaces according to service types and associate them with virtual groups corresponding to the service types;

[0040] Among them, the virtual groups corresponding to the service types include at least one of the following groups: a first virtual group, a second virtual group and a third virtual group; the first virtual group is used for decision calculation of autonomous driving, the second virtual group is used for learning and training of autonomous driving, and the third virtual group is used for transmitting keep-alive messages.

[0041] As an optional implementation of the embodiment of the present disclosure, the detection module divides the multiple virtual interfaces according to the service type and associates them with the virtual groups corresponding to the service types, and is further used to:

[0042] For the virtual group corresponding to the first computing unit, configure the first address resolution parameter, and for the virtual group corresponding to the second computing unit, configure the second address resolution parameter;

[0043] The first address resolution parameter is used to indicate that the first computing unit is in an inactive state, and the second address resolution parameter is used to indicate that the second computing unit is in an active state.

[0044] As an optional implementation of the embodiment of the present disclosure, the sending module is specifically used to:

[0045] When it is detected that the first computing unit has not received the keep-alive message, or when it is detected that the first computing unit has received the keep-alive message and the application program is in an abnormal running state, the service data corresponding to the second computing unit is directed to the first computing unit to switch the first computing unit to an active state; when the second address resolution parameter is configured for the virtual group corresponding to the first computing unit, the first computing unit sends an address resolution protocol message to the switching unit; and / or,

[0046] When the first computing unit receives the keep-alive message and the network status is abnormal, the first computing unit sends an address resolution protocol message to the switching unit;

[0047] The switching unit directs the business data corresponding to the second computing unit to the first computing unit according to the address resolution protocol message, so that the first computing unit processes the business data.

[0048] As an optional implementation of the embodiment of the present disclosure, the sending module is specifically used to:

[0049] When the application program of the second computing unit is in an abnormal running state, stop refreshing the Ethernet forwarding table entry corresponding to the second computing unit; and / or, when the network state of the second computing unit is abnormal, delete the Ethernet forwarding table entry corresponding to the second computing unit;

[0050] According to the Ethernet address of the first computing unit, update the Ethernet forwarding table entry corresponding to the first computing unit;

[0051] According to the updated Ethernet forwarding table entry corresponding to the first computing unit, the service data is sent to the first computing unit.

[0052] As an optional implementation of the embodiment of the present disclosure, the detection module, after dividing the multiple virtual interfaces according to the service type to obtain the virtual groups corresponding to the service types, is further configured to:

[0053] Associating the preset priority and the preset weight parameter with the virtual group corresponding to the business type to establish an association relationship between the computing power unit, the virtual group, the preset priority and the preset weight parameter;

[0054] Among them, the priority and preset weight parameter of the first virtual group corresponding to the second computing unit are greater than the priority and preset weight parameter of the first virtual group corresponding to the first computing unit.

[0055] In a third aspect, the present disclosure provides an electronic device comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the communication method of multiple computing units as described in the first aspect or any optional embodiment thereof is implemented.

[0056] In a fourth aspect, a computer-readable storage medium is provided, comprising: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the communication method of multiple computing units as described in the first aspect or any one of its optional embodiments is implemented.

[0057] In a fifth aspect, a vehicle is provided, the vehicle comprising a communication device of a multi-computing power unit as described in the second aspect, or an electronic device as described in the third aspect. The vehicle is used to execute the communication method of the multi-computing power unit provided in any embodiment of the present disclosure.

[0058] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0059] The embodiments of the present disclosure provide a communication method, device, electronic device and storage medium for multiple computing units, wherein the method comprises: allocating different amounts of business data to a first computing unit and a second computing unit according to preset weight parameters, so that the first computing unit and the second computing unit share all the business data; then detecting whether the first computing unit has received a keep-alive message sent by the second computing unit, wherein the keep-alive message includes the application running status and network status of the second computing unit. When it is detected that the first computing unit has not received the keep-alive message, the business data corresponding to the second computing unit is directed to the first computing unit; or, when it is detected that the first computing unit has received the keep-alive message and the application running status of the second computing unit included in the keep-alive message is abnormal, and / or the network status is abnormal, the business data corresponding to the second computing unit is directed to the first computing unit, so that the first computing unit can take over the business data corresponding to the second computing unit for processing. In this way, in the scenario where multiple computing units are deployed, it is firstly accurately determined whether the second computing unit is faulty. When the second computing unit fails, the normal first computing unit is dispatched to process the business data that was originally required to be processed by the second computing unit, so as to avoid single point failure in the system and improve the reliability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0061] In order to more clearly illustrate the embodiments of the present invention 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.

[0062] Figure 1 An architectural diagram of a multi-chip system provided for an embodiment of the present disclosure;

[0063] Figure 2 A flow chart of a communication method for multiple computing units provided in an embodiment of the present disclosure;

[0064] Figure 3 A structural diagram of a communication device of a multi-computing unit according to an embodiment of the present disclosure;

[0065] Figure 4 This is a structural diagram of an electronic device described in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0066] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0067] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0068] At present, smart cars have brought great convenience to people's travel. The systems of smart cars have been improving their corresponding functions. Among them, the main smart cockpits and autonomous driving domains will deploy multiple high-computing chips. In the scenario of multi-chip deployment, one chip is generally responsible for processing high-load services, and the other chip processes relatively low-load services. A single chip handles high-load services. Once a failure occurs, it will cause a single point failure of the system, affecting the overall function of the smart car system. In addition, the demand for chip computing power for various applications is uneven. A single chip processing high-load services will have insufficient computing power due to full load work, resulting in low processing efficiency, while the other chip is idle and has abundant computing power, but it is not reasonably and effectively used, which makes the computing power utilization rate of the system chip low. Therefore, the existing multi-chip system has the problems of single point failure and low chip computing power utilization.

[0069] In order to solve some or all of the above technical problems, the embodiments of the present disclosure provide a communication method, device, electronic device and storage medium for multiple computing units, wherein the method includes: allocating different amounts of business data to a first computing unit and a second computing unit according to a preset weight parameter, so that the first computing unit and the second computing unit jointly share all the business data; then detecting whether the first computing unit has received a keep-alive message sent by the second computing unit, the keep-alive message including the application running status and network status of the second computing unit, and when it is detected that the first computing unit has not received the keep-alive message, directing the business data corresponding to the second computing unit to the first computing unit; or, when it is detected that the first computing unit has received the keep-alive message, directing the business data corresponding to the second computing unit to the first computing unit; When the application running status of the second computing unit included in the live message and the keep-alive message is abnormal, and / or the network status is abnormal, the business data corresponding to the second computing unit is diverted to the first computing unit, so that the first computing unit takes over the business data corresponding to the second computing unit for processing, so that in the scenario of deploying multiple computing units, the business data is distributed to the first computing unit and the second computing unit to achieve load sharing, thereby improving the computing power utilization of multiple computing units; accurately judge whether the second computing unit is faulty. When the second computing unit fails, the normal first computing unit is dispatched to process the business data that was originally required to be processed by the second computing unit, so as to avoid single point failure in the system, thereby improving the reliability and stability of the system.

[0070] A communication method for multiple computing units provided in an embodiment of the present disclosure is applied to a multi-chip system, such as Figure 1 As shown, Figure 1 The architecture diagram of the multi-chip system provided in the embodiment of the present disclosure, the multi-chip system 100 includes a first computing unit 101 and a second computing unit 102. At the hardware level, the first computing unit 101 and the second computing unit 102 establish a connection through a physical network interface. The first computing unit 101 and the second computing unit 102 are connected to the cloud computing center 200. Among them, the first computing unit 101 is a physical chip in the multi-chip system 100, which is mainly used to transmit keep-alive messages, process the learning and training services of autonomous driving, and can also process the decision-making and computing services of autonomous driving. The second computing unit 102 is another physical chip in the multi-chip system 100, which is mainly used to transmit keep-alive messages, process the decision-making and computing services of autonomous driving, and can also process the learning and training services of autonomous driving.

[0071] It should be noted that the multi-chip system includes the first computing unit 101 and the second computing unit 102, but is not limited to the above two computing units. Figure 1As shown, the multi-chip system 100 also includes a switching unit 103 and a vehicle control unit 104, wherein the switching unit 103 is used to forward the communication data between the vehicle control unit 104 and the first computing unit 101 and / or the second computing unit 102, including forwarding the service request sent by the vehicle control unit 104 to the first computing unit 101 and / or the second computing unit 102, and forwarding the processing results fed back by the first computing unit 101 and / or the second computing unit 102 to the vehicle control unit 104. The vehicle control unit 104 is used to generate a service request based on the whole vehicle control, and send it to the first computing unit 101 and / or the second computing unit 102, and perform the whole vehicle control according to the processing results fed back by the first computing unit 101 and / or the second computing unit 102, so as to realize the intelligent cockpit and automatic driving functions.

[0072] The multi-chip system 100 can be integrated into a vehicle terminal. The operating system of the vehicle terminal can include Android, Linux system, embedded system (Quick UNIX, QNX), operating system developed by Microsoft Corporation (Windows), etc., which is not limited in the embodiments of the present disclosure.

[0073] It should be noted that the protection scope of the communication method of a multi-computing unit described in the embodiment of the present disclosure is not limited to the execution order of the steps listed in this embodiment, and all solutions implemented by adding, reducing, or replacing steps in the prior art based on the principles of the present disclosure are included in the protection scope of the present disclosure. 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.

[0074] like Figure 2 As shown, Figure 2 A flow chart of a communication method of multiple computing units provided in an embodiment of the present disclosure, the method comprising the following S201-S203:

[0075] S201, allocating different amounts of business data to the first computing unit and the second computing unit according to a preset weight parameter;

[0076] Among them, the preset weight parameters are weight parameters set by users for computing power allocation according to business needs. The preset weight parameters of the first computing power unit are different from the preset weight parameters of the second computing power unit. Different amounts of business data are allocated to the first computing power unit and the second computing power unit according to the preset weight parameters of different sizes.

[0077] In some embodiments, the first computing unit and the second computing unit are computing units with the same or similar physical structures and the same or similar functions. When applied to a multi-chip system of a smart car, the businesses that the first computing unit and the second computing unit are mainly responsible for are respectively set based on actual application requirements. Optionally, the first computing unit is a computing unit for training and learning for autonomous driving. The second computing unit is a computing unit that provides decision-making calculations for autonomous driving, and can use sensor data such as lidar, millimeter-wave radar, and high-precision maps to perform real-time environmental perception decision calculations.

[0078] It should be noted that the first computing unit can also provide decision-making calculations for autonomous driving. When the first computing unit and the second computing unit are both working normally, the second computing unit is mainly responsible for the decision-making calculations for autonomous driving, and the first computing unit can be responsible for part of the decision-making calculations for autonomous driving. The communication method of multiple computing units provided in the present disclosure can share the business to multiple computing units to achieve load sharing; and, in the event of a failure of any of the above computing units, another computing unit that is working normally will take over the business of the failed computing unit, thereby avoiding the situation where the failure of a single computing unit causes the failure of autonomous driving.

[0079] Subsequently, the communication method of multiple computing power units will be explained with the first computing power unit being mainly responsible for the autonomous driving learning and training business, and the second computing power unit being mainly responsible for the autonomous driving decision-making and computing business. It can be understood that, in the communication method of multiple computing power units provided in the embodiment of the present disclosure, the first computing power unit can be set to be mainly responsible for the autonomous driving learning and training business, and the second computing power unit can be mainly responsible for the autonomous driving decision-making and computing business. The method flow is the same or similar to the following method flow. To avoid repetition, the present disclosure will not elaborate on it here.

[0080] In some embodiments, the computing power unit mainly responsible for the decision-making computing business of autonomous driving serves as the main computing power unit in the multi-chip system, that is, the second computing power unit is the main computing power unit in the embodiment of the present disclosure, and other computing power units serve as backup computing power units of the multi-chip system, that is, the first computing power unit is the backup computing power unit in the embodiment of the present disclosure.

[0081] Exemplarily, the preset weight parameter corresponding to the first computing power unit is 5, and the preset weight parameter of the second computing power unit is 10, then all the autonomous driving decision-making and computing business data are divided into 15 equal parts, of which 10 parts of the business data are allocated to the second computing power unit, and the other 5 parts of the business data are allocated to the first computing power unit, so that the main and standby computing power units are jointly responsible for the decision-making and computing business of autonomous driving.

[0082] Through step S201, the high-load and high-computing-power services in the system can be apportioned to different computing power units to achieve load sharing, so that each computing power unit can effectively use its own computing power to process the allocated business data, and the second computing power unit is used as the main computing power unit for processing the decision-making and computing services of autonomous driving, and the second computing power unit is used as the backup computing power unit for processing the decision-making and computing services of autonomous driving. All the computing power of the second computing power unit will be used to process the decision-making and computing services of autonomous driving. At the same time, half of the computing power of the first computing power unit is used to process the decision-making and computing services of autonomous driving, and the other half of the computing power needs to process the learning and training services of autonomous driving that it needs to be responsible for. When the first computing power unit is used as a backup computing power unit and there is idle computing power, it shares the high-load business of the decision-making and computing services of autonomous driving with the second computing power unit as the main computing power unit, avoiding the situation where a single computing power unit processes high-load and high-computing-power services alone while other computing power units are idle, thereby improving the computing power utilization rate of each computing power unit in the system.

[0083] S202: Detect whether the first computing unit receives a keep-alive message sent by the second computing unit.

[0084] In a multi-chip system, the second computing unit as the main computing unit sends a keep-alive message to the first computing unit as the backup computing unit, so that the backup computing unit can take over the business data when the main computing unit is abnormal; at the same time, the first computing unit as the backup computing unit will also send a message to the second computing unit to share the load of the main computing unit. Among them, the keep-alive message sent by the first computing unit to the second computing unit includes the application running status and network status of the second computing unit. Therefore, the first computing unit determines whether the second computing unit is working normally according to whether it receives the keep-alive message sent by the second computing unit, and when the first computing unit receives the keep-alive message sent by the second computing unit, it determines whether the application of the second computing unit is abnormal and whether the network is abnormal according to the running status and network status of the application.

[0085] In some embodiments, the second computing unit periodically sends a keep-alive message to the first computing unit, wherein the period can be set according to application requirements, for example, the period is 1 / 10s, indicating that the second computing unit sends a keep-alive message to the first computing unit at intervals of 0.1s. The disclosed embodiment provides an implementation method, detecting whether the first computing unit receives the keep-alive message sent by the second computing unit within a preset time length, the preset time length can be set according to application requirements, for example, 0.3s, then detecting whether the first computing unit receives the keep-alive message sent by the second computing unit within 0.3s. The disclosed embodiment provides another implementation method, detecting whether the first computing unit continuously receives a preset number of keep-alive messages sent by the second computing unit, wherein the preset number can be set according to application requirements, for example, 3, then detecting whether the first computing unit continuously receives 3 keep-alive messages sent by the second computing unit. By performing detection within a preset time length, or detecting whether a preset number of keep-alive messages are continuously received, the accuracy of judging whether the second computing unit is faulty is improved.

[0086] In some embodiments, before detecting whether the first computing unit receives the keep-alive message sent by the second computing unit, the computing power of the first computing unit as a backup computing unit is evaluated and verified to determine whether the first computing unit has idle computing power. In the case that the first computing unit has idle computing power, the target service is allocated according to the first preset priority and the second preset priority, wherein the first preset priority and the second preset priority are used to indicate the order of processing the target service, and the first preset priority and the second preset priority are set according to the different target task types. Optionally, the second computing unit is mainly responsible for the decision-making and computing service of autonomous driving as the main computing unit, and the first computing unit is mainly responsible for the learning and training service of autonomous driving as the backup computing unit. When the target service is the decision-making and computing service of autonomous driving, the first preset priority is set to be lower than the second priority, so as to give priority to the second computing unit to process the decision-making and computing service of autonomous driving; when the target service is the learning and training task of autonomous driving, the first preset priority is set to be higher than the second priority, so as to give priority to the first computing unit to process the learning and training task of autonomous driving.

[0087] In some embodiments, reference Figure 1 As shown, the first computing unit is mainly responsible for the autonomous driving learning and training business. The first computing unit 101 maintains real-time communication with the cloud computing center 200 to train and learn sensor data with the help of the strong computing power of the cloud computing center, so as to better provide autonomous driving services.

[0088] In some embodiments, before the first computing unit detects whether a keep-alive message sent by the second computing unit is received, the embodiment of the present disclosure first constructs a basic network, and the process of constructing the basic network includes:

[0089] Step 1: Create multiple virtual interfaces between the first computing unit and the second computing unit.

[0090] In a multi-chip system, there is a physical network interface between the first computing unit and the second computing unit, for example, there are two physical network interfaces between the first computing unit and the second computing unit: ens34 and ens35. The disclosed embodiment provides an implementation method, based on the physical network interface between the first computing unit and the second computing unit, multiple virtual interfaces are newly created, and the type of the virtual interface can be Macvlan type, where Macvlan is a linux virtualization network card technology that can virtualize a physical network interface into multiple virtual interfaces, and each virtual interface can have a virtual Ethernet address (Media Access Control, Mac) and Internet Protocol address (Internet Protocol, IP).

[0091] Exemplarily, based on the physical network interfaces ens34 and ens35 between the first computing unit and the second computing unit, multiple virtual interfaces are newly created including: ens34.1, ens34.2, ens35.255, etc.

[0092] Step 2: Divide multiple virtual interfaces according to service types and associate them with virtual groups corresponding to the service types.

[0093] In some embodiments, the business types of the intelligent vehicle system include, but are not limited to: autonomous driving decision-making and computing services, autonomous driving learning and training services, and heartbeat keep-alive synchronization services. Among them, the autonomous driving decision-making and computing services include calculating the real-time data of sensors such as lidar, millimeter-wave radar, and video image acquisition to generate autonomous driving decisions and provide autonomous driving services; the autonomous driving learning and training services include maintaining communication with the cloud computing center and obtaining training samples to perform learning and training services for autonomous driving. The disclosed embodiments do not specifically limit the business types of the intelligent vehicle system.

[0094] Correspondingly, the virtual groups corresponding to the obtained business types are divided according to the business types, including but not limited to: a first virtual group, a second virtual group and a third virtual group, wherein the first virtual group is used for decision calculations for autonomous driving, the second virtual group is used for learning and training of autonomous driving, and the third virtual group is used for transmitting keep-alive messages.

[0095] In some embodiments, after obtaining the virtual group corresponding to the business type, a network configuration is performed on each virtual group to assign different IP addresses to different virtual groups, and a preset priority and a preset weight parameter are associated with the virtual group corresponding to the business type to establish an association relationship between the computing power unit, the virtual group, the preset priority, and the preset weight parameter. It can be understood that the computing power unit, the virtual group of each computing power unit, the preset priority, and the preset weight parameter are matched, and the computing power unit with a large priority is used as the main computing unit for processing the target business first, and the amount of business data to be processed is allocated to the main computing power unit and the backup computing power unit according to the weight parameter. Exemplary, as shown in Table 1.

[0096] Table 1

[0097]

[0098] In some embodiments, the preset priority of the first virtual group corresponding to the second computing power unit is greater than the preset priority of the first virtual group corresponding to the first computing power unit, and the preset weight parameter of the first virtual group corresponding to the second computing power unit is greater than the preset priority and preset weight parameter of the first virtual group corresponding to the first computing power unit, so that the second computing power unit serves as the main computing power unit to preferentially process more autonomous driving decision-making and computing services, and the first computing power unit serves as the backup computing power unit to process the remaining autonomous driving decision-making and computing services.

[0099] It should be noted that, for the first virtual group in Table 1, the priority of the first computing unit is set lower than that of the second computing unit, indicating that the first virtual group corresponding to the second computing unit is used as the main virtual group for processing the decision-making computing business of autonomous driving, and the first virtual group corresponding to the first computing unit is used as the secondary virtual group for processing the decision-making computing business of autonomous driving. In this way, load balancing can be achieved when the first computing unit and the second computing unit are processing the decision-making computing business of autonomous driving. The disclosed embodiment does not specifically limit the setting of priority and weight parameters.

[0100] Since the autonomous driving decision-making and computing business is a business for the entire vehicle control and has high real-time requirements, the second computing unit that mainly handles the autonomous driving decision-making and computing business is used as the main computing unit in the embodiment of the present disclosure. It can be understood that the master-slave relationship of the computing units in the multi-chip system is determined according to the different settings of the priority and weight parameters. When the preset priority and preset weight parameters of the first virtual group corresponding to the second computing unit are greater than the preset priority and preset weight parameters of the first virtual group corresponding to the first computing unit, the second computing unit is used as the main computing unit. The first and second are only used to distinguish different computing units. Whether the first computing unit is the main computing unit or the second computing unit is the main computing unit also needs to be judged by the set priority and weight parameters. Optionally, in the embodiment of the present disclosure, the second computing unit is used as the main computing unit.

[0101] The above embodiment creates a virtual interface between the first computing unit and the second computing unit, and divides the virtual interface into virtual groups so that different virtual groups can handle different services, configures IP addresses for virtual groups, sets priorities and weight parameters for virtual groups, thereby determining the main computing unit and backup computing unit of the multi-chip system in the initial state, realizing the main and backup work of autonomous driving, and enabling the main and backup computing units to communicate accurately and orderly through virtual groups.

[0102] In some embodiments, in the initial state of the multi-chip system, the vehicle control unit does not store the Ethernet address (Media Access Control Address, MAC) of any computing unit, and initiates a connection request with the second computing unit by broadcasting the Address Resolution Protocol (Address Resolution Protocol, ARP) message. When the switching unit in the multi-chip system receives the ARP message broadcast by the vehicle control unit, and the switching unit does not store the Ethernet forwarding table entry corresponding to any computing unit, the ARP message is forwarded to the first computing unit and the second computing unit by flooding forwarding. It should be noted that flooding is a data stream transmission technology used by switches and bridges, which sends the data stream received from a certain interface to all interfaces except the interface. The first computing unit and the second computing unit both receive the ARP message. In the embodiment of the present disclosure, the first computing unit and the second computing unit determine whether to respond to the ARP message based on the address resolution parameters configured by the virtual interface.

[0103] In some embodiments, the process of configuring the address resolution parameters of the first computing unit and the second computing unit is as follows: for the virtual group corresponding to the first computing unit, configure the first address resolution parameter, and for the virtual group corresponding to the second computing unit, configure the second address resolution parameter. The first address resolution parameter is used to indicate that the first computing unit is in an inactive state, and the second address resolution parameter is used to indicate that the second computing unit is in an active state. Exemplarily, for the virtual group corresponding to the second computing unit as the main computing unit, configure the first address resolution parameter arp_ignore=0; for the virtual group corresponding to the first computing unit as the backup computing unit, configure the second address resolution parameter arp_ignore=8, so that after the second computing unit receives the ARP message, it responds to the ARP message according to the second address resolution parameter, and after the first computing unit receives the ARP message, it ignores the ARP message according to the first address resolution parameter.

[0104] In some embodiments, after detecting whether the first computing power unit has received the keep-alive message sent by the second computing power unit, it is detected that the first computing power unit has received the keep-alive message sent by the second computing power unit, and the keep-alive message includes that the application running status of the second computing power unit is normal and the network status is normal, then it means that the second computing power unit as the main computing power unit can work normally and can provide real-time decisions for autonomous driving.

[0105] S203. When it is detected that the first computing unit has not received a keep-alive message, or when it is detected that the first computing unit has received a keep-alive message and the application program is running abnormally, and / or when the network status is abnormal, the business data corresponding to the second computing unit is directed to the first computing unit so that the first computing unit processes the business data.

[0106] In some embodiments, the failure of the second computing unit is manifested in the following four situations: In the first situation, it is detected that the first computing unit has not received the keep-alive message; In the second situation, it is detected that the first computing unit has received the keep-alive message and the application program is running abnormally; In the third situation, it is detected that the first computing unit has received the keep-alive message and the network state is abnormal; In the third situation, it is detected that the first computing unit has received the keep-alive message and the application program is running abnormally and the network state is abnormal. The following will explain these four situations respectively:

[0107] (1) Case 1

[0108] When it is detected that the first computing unit has not received the keep-alive message, it indicates that the second computing unit is faulty. It should be noted that in a multi-chip system, when the first computing unit is normal and the second computing unit is normal, the second computing unit and the first computing unit will periodically send address resolution protocol messages to the switching unit, wherein the address resolution protocol message is a free ARP message known to those skilled in the art, so that the switching unit keeps the Ethernet forwarding table updated. The Ethernet forwarding table is a MAC table known to those skilled in the art. The Ethernet forwarding table records the destination interface of the data. The switching unit can accurately transmit the data to the corresponding interface according to the Ethernet forwarding table. When the second computing unit fails, the second computing unit stops sending free ARP messages to the switching unit, while the first computing unit continues to send free ARP messages to the switching unit. The switching unit refreshes the Ethernet forwarding table according to the free ARP message sent by the first computing unit, and promptly updates the Ethernet forwarding table item corresponding to the first computing unit. When the second computing unit fails, the business data corresponding to the second computing unit is sent to the first computing unit according to the updated Ethernet address of the first computing unit, so that the first computing unit processes the business data. In this way, when a single computing unit fails in a multi-chip system, other computing units take over the business of the failed computing unit, thereby reducing the impact on the overall function of the system and ensuring the normal provision of autonomous driving services.

[0109] In some embodiments, when the first computing unit does not receive a keep-alive message, the first address resolution parameter configured by the virtual group corresponding to the first computing unit is updated to the second address resolution parameter to switch the first computing unit from an inactive state to an active state, that is, to switch the first computing unit from a backup computing unit to a main computing unit. Thus, when the virtual group corresponding to the first computing unit is configured with the second address resolution parameter, the first computing unit sends an address resolution protocol message to the switching unit. Further, the switching unit sends the service data corresponding to the second computing unit to the first computing unit according to the address resolution protocol message, so that the first computing unit processes the service data. When the second computing unit as the main computing unit fails, the backup computing unit (first computing unit) takes over the service of the second computing unit and processes the service data that originally needs to be processed by the second computing unit, thereby continuously providing autonomous driving services, reducing the impact of single point failures on the overall function of the system, and improving the stability of the system.

[0110] (2) Second Case

[0111] When it is detected that the first computing unit receives a keep-alive message, and the application program of the second computing unit included in the keep-alive message is in an abnormal state of operation, it indicates that the application program of the second computing unit is in an abnormal state of operation, and the second computing unit stops sending free ARP messages to the switching unit, then the Ethernet forwarding table entry corresponding to the second computing unit in the Ethernet forwarding table is no longer updated and enters an aging state. The disclosed embodiment provides an implementation method, when the application program of the second computing unit is in an abnormal state of operation, the first address resolution parameter configured by the virtual group corresponding to the first computing unit is updated to the second address resolution parameter, so as to switch the first computing unit from an inactive state to an active state, that is, to switch the first computing unit from a standby computing unit to a main computing unit. Furthermore, the first computing unit, as the main computing unit, sends a free ARP message (address resolution protocol message) to the switching unit, and the switching unit refreshes the Ethernet forwarding table entry according to the free ARP message sent by the first computing unit, and promptly updates the Ethernet forwarding table entry corresponding to the first computing unit. When the application of the second computing unit runs abnormally, the business data corresponding to the second computing unit is sent to the first computing unit according to the updated Ethernet forwarding table of the first computing unit, so that the first computing unit processes the business data. In this way, when the application of the original main computing unit in the multi-chip system runs abnormally, the backup computing unit takes over the business, thereby reducing the impact on the overall function of the system, improving the stability of the system, and ensuring the normal provision of autonomous driving services.

[0112] (3) The third case

[0113] When it is detected that the first computing unit receives a keep-alive message, and the network state of the second computing unit included in the keep-alive message is abnormal, it indicates that the network of the second computing unit is abnormal, the second computing unit stops sending free ARP messages to the switching unit, and the switching unit deletes the Ethernet forwarding table entry corresponding to the second computing unit from the Ethernet forwarding table. The disclosed embodiment provides an implementation method, when the network of the second computing unit is abnormal, the first address resolution parameter configured by the virtual group corresponding to the first computing unit is updated to the second address resolution parameter to switch the first computing unit from an inactive state to an active state, that is, the first computing unit is switched from a backup computing unit to a main computing unit, and the second address resolution parameter configured by the virtual group corresponding to the second computing unit is updated to the first address resolution parameter to switch the second computing unit from an active state to an inactive state, the network of the second computing unit is abnormal, and the second computing unit has a fault and is difficult to process the target business normally.

[0114] When the vehicle control unit initiates a new service request, the switching unit will trigger flood forwarding because it cannot find the Ethernet forwarding table entry corresponding to the second computing unit. After receiving the new service request, the second computing unit will ignore the new service request according to the first address resolution parameter configured by the corresponding virtual group and will not process it. After receiving the new service request, the first computing unit will respond to the new service request according to the second address resolution parameter configured by the corresponding virtual group, so that the switching unit will establish the Ethernet forwarding table entry corresponding to the first computing unit according to the Ethernet address of the first computing unit carried in the response, so that the switching unit will send the service data of the new service request to the first computing unit for processing according to the Ethernet forwarding table entry corresponding to the first computing unit. Therefore, when the network of the second computing unit is abnormal, the first computing unit switches to the main computing unit and takes over the work of the second computing unit, reducing the impact of the failure of the second computing unit on the overall function of the system.

[0115] (4) The fourth case

[0116] When it is detected that the first computing unit receives a keep-alive message, and the application running state and network state of the second computing unit included in the keep-alive message are abnormal, indicating that the application running and network of the second computing unit are abnormal, the second computing unit stops sending free ARP messages to the switching unit, and the switching unit deletes the Ethernet forwarding table entry corresponding to the second computing unit from the Ethernet forwarding table. In the fourth case, the service data corresponding to the second computing unit is sent to the first computing unit, and the implementation method for the first computing unit to process the service data is the same or similar to the third case, and the present disclosure will not be repeated here.

[0117] The above respectively targets four different situations, explaining that when the second computing unit serving as the main computing unit fails or is abnormal, the first computing unit, which originally serves as the backup computing unit, takes over the business of the second computing unit. After the computing unit switches between the main and backup states in the multi-chip system, the switching unit refreshes the Ethernet forwarding table, thereby sending the business data that originally needs to be processed by the second computing unit to the first computing unit for processing. Therefore, when the main computing unit fails or is abnormal, the normal backup computing unit is dispatched to take over, thereby reducing the impact of the failure and abnormality of a single computing unit on the overall function of the system and improving the stability of the multi-chip system.

[0118] In summary, the embodiments of the present disclosure provide a communication method, device, electronic device and storage medium for multiple computing units, wherein the method includes allocating different amounts of business data to a first computing unit and a second computing unit according to a preset weight parameter, so that the first computing unit and the second computing unit jointly share all the business data; then detecting whether the first computing unit has received a keep-alive message sent by the second computing unit, the keep-alive message including the application running status and network status of the second computing unit, and when it is detected that the first computing unit has not received the keep-alive message, directing the business data corresponding to the second computing unit to the first computing unit; or, when it is detected that the first computing unit has received a keep-alive message and the keep-alive message includes When the application running status of the second computing unit is abnormal, and / or the network status is abnormal, the business data corresponding to the second computing unit is diverted to the first computing unit, so that the first computing unit can take over and process the business data corresponding to the second computing unit. In the scenario where multiple computing units are deployed, the business data is distributed to the first computing unit and the second computing unit to achieve load sharing, thereby improving the computing power utilization of multiple computing units, accurately judging whether the second computing unit is faulty, and when the second computing unit fails, the normal first computing unit is dispatched to process the business data that was originally required to be processed by the second computing unit, so as to avoid single point failure in the system and improve the stability and reliability of the system.

[0119] like Figure 3 As shown, Figure 3 A structural diagram of a communication device of a multi-computing unit provided in an embodiment of the present disclosure, the device comprising:

[0120] An allocation module 301 is used to allocate different amounts of business data to the first computing power unit according to a preset weight parameter;

[0121] A detection module 302 is used to detect whether the first computing unit has received a keep-alive message sent by the second computing unit, where the keep-alive message includes an application running state and a network state of the second computing unit;

[0122] The sending module 303 is used to direct the business data corresponding to the second computing unit to the first computing unit so that the first computing unit can process the business data when it detects that the first computing unit has not received the keep-alive message, or detects that the first computing unit has received the keep-alive message and the application program is running abnormally, and / or the network status is abnormal.

[0123] As an optional implementation of the embodiment of the present disclosure, the detection module 302, before detecting whether the first computing unit receives the keep-alive message sent by the second computing unit, is further configured to:

[0124] Evaluate and verify the computing power of the first computing power unit to determine whether there is idle computing power in the first computing power unit;

[0125] When there is idle computing power in the first computing power unit, the target business is allocated according to the first preset priority and the second preset priority, so that the first computing power unit processes the target business corresponding to the first preset priority, and the second computing power unit processes the target business corresponding to the second preset priority; wherein the first preset priority is smaller than the second preset priority.

[0126] As an optional implementation of the embodiment of the present disclosure, the detection module 302, before detecting whether the first computing unit receives the keep-alive message sent by the second computing unit, is further configured to:

[0127] Create multiple virtual interfaces between the first computing unit and the second computing unit;

[0128] Divide multiple virtual interfaces according to service types and associate them with virtual groups corresponding to the service types;

[0129] Among them, the virtual groups corresponding to the service types include at least one of the following groups: a first virtual group, a second virtual group and a third virtual group; the first virtual group is used for decision calculation of autonomous driving, the second virtual group is used for learning and training of autonomous driving, and the third virtual group is used for transmitting keep-alive messages.

[0130] As an optional implementation of the embodiment of the present disclosure, the detection module 302 divides the multiple virtual interfaces according to the service type, and after associating them to the virtual groups corresponding to the service types, is further used to:

[0131] For the virtual group corresponding to the first computing unit, configure the first address resolution parameter, and for the virtual group corresponding to the second computing unit, configure the second address resolution parameter;

[0132] The first address resolution parameter is used to indicate that the first computing unit is in an inactive state, and the second address resolution parameter is used to indicate that the second computing unit is in an active state.

[0133] As an optional implementation of the embodiment of the present disclosure, the sending module 303 is specifically configured to:

[0134] When it is detected that the first computing unit has not received the keep-alive message, or when it is detected that the first computing unit has received the keep-alive message and the application program is in an abnormal running state, the service data corresponding to the second computing unit is directed to the first computing unit to switch the first computing unit to an active state; when the second address resolution parameter is configured for the virtual group corresponding to the first computing unit, the first computing unit sends an address resolution protocol message to the switching unit; and / or,

[0135] When the first computing unit receives the keep-alive message and the network status is abnormal, the first computing unit sends an address resolution protocol message to the switching unit;

[0136] The switching unit directs the business data corresponding to the second computing unit to the first computing unit according to the address resolution protocol message, so that the first computing unit processes the business data.

[0137] As an optional implementation of the embodiment of the present disclosure, the sending module 303 is specifically configured to:

[0138] When the application program of the second computing unit is in an abnormal running state, stop refreshing the Ethernet forwarding table entry corresponding to the second computing unit; and / or, when the network state of the second computing unit is abnormal, delete the Ethernet forwarding table entry corresponding to the second computing unit;

[0139] According to the Ethernet address of the first computing unit, update the Ethernet forwarding table entry corresponding to the first computing unit;

[0140] According to the updated Ethernet forwarding table entry corresponding to the first computing unit, the service data is sent to the first computing unit.

[0141] As an optional implementation of the embodiment of the present disclosure, the detection module 302, after dividing the multiple virtual interfaces according to the service type to obtain the virtual groups corresponding to the service type, is further configured to:

[0142] Associating the preset priority and the preset weight parameter with the virtual group corresponding to the business type to establish an association relationship between the computing power unit, the virtual group, the preset priority and the preset weight parameter;

[0143] Among them, the priority and preset weight parameter of the first virtual group corresponding to the second computing unit are greater than the priority and preset weight parameter of the first virtual group corresponding to the first computing unit.

[0144] like Figure 4 As shown, Figure 4 This is a structural diagram of an electronic device described in an embodiment of the present disclosure. An embodiment of the present disclosure provides an electronic device, which includes: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, each process of the communication method of the multi-computing unit in the above method embodiment is implemented. And the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0145] An embodiment of the present disclosure provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the various processes of the communication method of multiple computing units in the above method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0146] The computer readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0147] The embodiment of the present disclosure provides a vehicle, which includes the communication device of the multi-computing unit or the electronic device described above. The vehicle is used to execute the communication method of the multi-computing unit provided by any embodiment of the present disclosure.

[0148] An embodiment of the present disclosure provides a computer program product, which stores a computer program. When the computer program is executed by a processor, the various processes of the communication method of multiple computing units in the above method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0149] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.

[0150] In several embodiments provided by the present disclosure, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

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

[0152] In the present disclosure, memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0153] In the present disclosure, computer-readable media include permanent and non-permanent, removable and non-removable storage media. Storage media can be implemented by any method or technology to store information, and the information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0154] 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 "comprises" 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 "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0155] The above are only specific embodiments of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. 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 disclosure. Therefore, the present disclosure will not be limited to these embodiments herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A communication method for multiple computing units, characterized in that: include: Allocate different amounts of business data to the first computing unit and the second computing unit according to preset weight parameters; Detecting whether the first computing unit has received a keep-alive message sent by the second computing unit, where the keep-alive message includes an application running status and a network status of the second computing unit; When it is detected that the first computing unit has not received the keep-alive message, or when it is detected that the first computing unit has received the keep-alive message and the application is in an abnormal running state, and / or when the network state is abnormal, the business data corresponding to the second computing unit is directed to the first computing unit so that the first computing unit processes the business data corresponding to the second computing unit.

2. The method according to claim 1, characterized in that After allocating different amounts of service data to the first computing unit and the second computing unit according to the preset weight parameter, and before detecting whether the first computing unit has received a keep-alive message sent by the second computing unit, the method further includes: Evaluate and verify the computing power of the first computing power unit to determine whether there is idle computing power in the first computing power unit; When there is idle computing power in the first computing power unit, target services are allocated according to a first preset priority and a second preset priority, so that the first computing power unit processes the target services corresponding to the first preset priority, and the second computing power unit processes the target services corresponding to the second preset priority.

3. The method according to claim 2, characterized in that After allocating different amounts of service data to the first computing unit and the second computing unit according to the preset weight parameter, and before detecting whether the first computing unit has received a keep-alive message sent by the second computing unit, the method further includes: Create multiple virtual interfaces between the first computing unit and the second computing unit; Dividing the multiple virtual interfaces according to service types and associating them to virtual groups corresponding to the service types; Among them, the virtual group corresponding to the service type includes at least one of the following groups: a first virtual group, a second virtual group and a third virtual group; the first virtual group is used for decision calculation of autonomous driving, the second virtual group is used for learning and training of autonomous driving, and the third virtual group is used to transmit keep-alive messages.

4. The method according to claim 3, characterized in that After dividing the multiple virtual interfaces according to the service types and associating them to the virtual groups corresponding to the service types, the method further includes: For the virtual group corresponding to the first computing unit, configure a first address resolution parameter, and for the virtual group corresponding to the second computing unit, configure a second address resolution parameter; The first address resolution parameter is used to indicate that the first computing unit is in an inactive state, and the second address resolution parameter is used to indicate that the second computing unit is in an active state.

5. The method according to claim 4, characterized in that The method is applied to a multi-chip system, which further includes: a switching unit; The method of, when it is detected that the first computing unit has not received the keep-alive message, or when it is detected that the first computing unit has received the keep-alive message and the application program is in an abnormal running state, and / or when the network state is abnormal, directing the service data corresponding to the second computing unit to the first computing unit includes: When it is detected that the first computing unit has not received the keep-alive message, or when it is detected that the first computing unit has received the keep-alive message and the application is in an abnormal running state, the first address resolution parameter configured by the virtual group corresponding to the first computing unit is updated to the second address resolution parameter to switch the first computing unit to an active state; when the virtual group corresponding to the first computing unit is configured with the second address resolution parameter, the first computing unit sends an address resolution protocol message to the switching unit; and / or, When the first computing unit receives the keep-alive message and the network state is abnormal, the first computing unit sends the address resolution protocol message to the switching unit; The switching unit directs the business data corresponding to the second computing unit to the first computing unit according to the address resolution protocol message, so that the first computing unit processes the business data corresponding to the second computing unit.

6. The method according to claim 1, characterized in that The method of, when detecting that the first computing unit has received the keep-alive message and the application program is in an abnormal running state, and / or the network state is abnormal, directing the service data corresponding to the second computing unit to the first computing unit, includes: When the application program of the second computing unit is in an abnormal running state, stop refreshing the Ethernet forwarding table entry corresponding to the second computing unit; and / or, when the network state of the second computing unit is abnormal, delete the Ethernet forwarding table entry corresponding to the second computing unit; Update the Ethernet forwarding table entry corresponding to the first computing unit; According to the updated Ethernet forwarding table entry corresponding to the first computing unit, the service data corresponding to the second computing unit is sent to the first computing unit.

7. The method according to claim 3, characterized in that After dividing the multiple virtual interfaces according to the service types to obtain virtual groups corresponding to the service types, the method further includes: Associating the preset priority and the preset weight parameter with the virtual group corresponding to the business type to establish an association relationship between the computing power unit, the virtual group, the preset priority and the preset weight parameter; Among them, the preset priority and preset weight parameter of the first virtual group corresponding to the second computing unit are greater than the preset priority and preset weight parameter of the first virtual group corresponding to the first computing unit.

8. A communication device for multiple computing units, characterized in that: include: An allocation module, used to allocate different amounts of business data to the first computing power unit according to preset weight parameters; A detection module, used to detect whether the first computing unit has received a keep-alive message sent by the second computing unit, wherein the keep-alive message includes an application running state and a network state of the second computing unit; A sending module is used to direct the business data corresponding to the second computing unit to the first computing unit so that the first computing unit processes the business data when it is detected that the first computing unit has not received the keep-alive message, or when it is detected that the first computing unit has received the keep-alive message and the application is in an abnormal running state, and / or the network state is abnormal.

9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the communication method of a multi-computing unit as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the communication method of the multi-computing power unit according to any one of claims 1 to 7 is implemented.

11. A vehicle, characterized in that: include: A communication device for multiple computing units as claimed in claim 8, or an electronic device as claimed in claim 10.