Communication method and device, storage medium, and vehicle

By determining the message type in the vehicle communication network and selecting the appropriate channel set to send messages, the problem of unreliable data transmission in the vehicle communication network failure is solved, and the stability and user experience of data transmission are improved.

WO2025108466A1PCT designated stage expired Publication Date: 2025-05-30BYD CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/133999
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-11-22
Filing Date
2024-11-22
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

When a vehicle communication network fails, data transmission cannot be carried out normally, resulting in poor reliability and user experience of data transmission.

Method used

When the network state of the first network channel is abnormal, by determining the message type, selecting sending messages through the first channel set or the second channel set to ensure data redundancy and avoid a surge in the network channel load rate.

Benefits of technology

Improves the stability and reliability of data transmission, improves the user experience, and avoids the surge in network channel load rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024133999_30052025_PF_FP_ABST
    Figure CN2024133999_30052025_PF_FP_ABST
Patent Text Reader

Abstract

A vehicle, provided with a processing device or an electronic device to implement a communication method. The communication method comprises: acquiring a first packet that needs to be sent by means of a first network channel; when a network state of the first network channel is abnormal, determining the packet type of the first packet; if the packet type of the first packet is a first type, sending the first packet by means of a first channel set; and if the packet type of the first packet is a second type, sending the first packet by means of a second channel set, wherein the number of network channels included in the first channel set is smaller than the number of network channels included in the second channel set.
Need to check novelty before this filing date? Find Prior Art

Description

Communication method, device, storage medium and vehicle

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on November 22, 2023, with application number 202311579173.9 and application name “A communication method and related device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to, but is not limited to, the field of vehicle communication technology, and in particular to a communication method, device, storage medium, and vehicle. Background Art

[0003] With the continuous development of intelligent connected vehicles and autonomous driving, the amount of communication data in vehicle networks is increasing rapidly, placing increasingly high demands on the reliability of controller data communication. When a vehicle communication network fails and data transmission is unable to proceed normally, communication redundancy design is required to ensure data transmission reliability.

[0004] In the related art, data that needs to be sent out through this network is not backed up and sent out through other networks, or data that multiple controllers need to send out is all sent out through multiple networks, which affects data transmission and poor user experience. Technical Solutions

[0005] Embodiments of the present application provide a communication method, apparatus, storage medium, and vehicle that, when the network status of a first network channel is abnormal, can determine the message type of a first message to be sent via the first network channel and send the first message via the first channel set or the second channel set. This ensures data redundancy and prevents a surge in network channel load, thereby improving the stability and reliability of data transmission and effectively enhancing the user experience.

[0006] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.

[0007] In a first aspect, an embodiment of the present application provides a communication method, applied to a communication system, wherein the communication system includes N network channels, where N is an integer and N ≥ 3, and the method includes:

[0008] Acquire a first message, where the first message is assigned to be sent in a first network channel, and the first network channel is one of the N network channels;

[0009] Determining that a network status of the first network channel is abnormal;

[0010] If the message type of the first message is the first type, sending the first message through a first channel set, where the first channel set includes at least one network channel with a normal network status among the N network channels;

[0011] If the message type of the first message is the second type, the first message is sent through a second channel set, where the second channel set includes at least two network channels with normal network status among the N network channels, and the number of network channels included in the first channel set is less than the number of network channels included in the second channel set.

[0012] Optionally, the first message allocated to be sent in the first network channel includes messages that have not been sent yet and messages that have been sent successfully. The messages that have not been sent yet may also be messages scheduled to be sent in the first network channel.

[0013] In an embodiment of the present application, when the network status of the first network channel is abnormal, the communication system can send the first message through the first channel set or the second channel set based on the message type of the first message. For example, the message can be set to the first type or the second type, and different message types correspond to different backup sending methods.

[0014] In this way, for unimportant messages, their message type can be set to the first type, so that at least one is selected when sending in backup, for example, only one network channel with normal network status is selected for transmission, to avoid all network channels from backing up and sending the message, and to ensure that the load rate of the network channel will not surge. For more important messages, their message type can be set to the second type, so that at least two are selected when sending in backup, for example, all network channels with normal network status are selected for sending, thereby improving the success rate of message sending. In short, users can flexibly set the message type of the message and send the message in backup. On the one hand, it can prevent data loss and ensure the normal operation of the communication function. On the other hand, it can also ensure that the load rate of the network channel will not surge, ensuring data redundancy while improving the stability and reliability of data transmission, and effectively improving user experience.

[0015] In a possible implementation of the first aspect, the first type is a common message, and the second type is an important message.

[0016] In a possible implementation of the first aspect, the N network channels include the first network channel and at least one network channel having the same communication mode as the first network channel, and the communication mode of the network channels in the first channel set is the same as the communication mode of the first network channel.

[0017] In the above implementation, selecting a network channel with the same communication mode for data transmission can increase the speed of data transmission, and can also improve the stability and reliability of data transmission, which can effectively improve the user experience.

[0018] In a possible implementation manner of the first aspect, the first channel set includes all network channels among the N network channels, which have normal network status and the same communication mode as the first network channel.

[0019] In a possible implementation manner of the first aspect, the network channel in the first channel set is the network channel with the highest priority among the N network channels.

[0020] In this way, when the network status of the first network channel is abnormal, selecting a network channel with normal network status and the highest priority to send the first message can improve the stability and reliability of data transmission, and can also increase the speed of data transmission, which can effectively improve the user experience.

[0021] In another possible implementation manner of the first aspect, the network channel with the highest priority includes a network channel with the highest bit rate or the highest transmission rate among network channels with the same communication mode as the first network channel.

[0022] In this way, when the network status of the first network channel is abnormal, selecting a network channel with the same communication mode as the first network channel and the highest bit rate or the highest transmission rate to send the first message can improve the stability and reliability of data transmission, and can also increase the speed of data transmission, which can effectively improve the user experience.

[0023] In another possible implementation of the first aspect, at least two of the N network channels have the same communication mode as the first network channel, and the communication mode of the network channels in the second channel set is the same as the communication mode of the first network channel.

[0024] And / or, the N network channels include a network channel having a communication mode different from that of the first network channel, and the second channel set includes the network channels among the N network channels having a communication mode different from that of the first network channel.

[0025] In another possible implementation of the first aspect, the second channel set includes all network channels among the N network channels whose network status is normal and whose communication mode is the same as that of the first network channel.

[0026] In the above implementation, selecting a network channel with the same communication mode for data transmission can increase the speed of data transmission, and can also improve the stability and reliability of data transmission, which can effectively improve the user experience.

[0027] In another possible implementation manner of the first aspect, the N network channels include a network channel having a communication mode different from that of the first network channel.

[0028] The second channel set further includes at least one network channel among the N network channels, whose network status is normal and whose communication mode is different from that of the first network channel.

[0029] In another possible implementation of the first aspect, the communication mode of the first network channel is one of CAN communication, CAN-FD communication, Ethernet communication, and optical fiber communication.

[0030] In this way, data can be transmitted through multiple communication methods. When a certain communication method is abnormal, data can also be transmitted through other communication methods. This can improve the stability and reliability of data transmission and effectively improve user experience.

[0031] In another possible implementation manner of the first aspect, the abnormal network status includes one or more of error frames, message timeout, and bus OFF in the N network channels.

[0032] In this way, the network status of each network channel can be monitored in real time. When an abnormality occurs in a network channel, backup can be sent in time to ensure data redundancy while improving the stability and reliability of data transmission, which can effectively improve user experience.

[0033] In another possible implementation of the first aspect, the method further includes:

[0034] Obtaining a list of messages scheduled to be sent on the network channels in the first channel set;

[0035] The sending the first message through the first channel set includes:

[0036] In response to the presence of a second message with the same content as the first message in the message list, the earlier of the original scheduled sending time of the first message and the original scheduled sending time of the second message is used as the time for sending the second message, and the second message is sent through the first channel set.

[0037] In another possible implementation of the first aspect, the method further includes:

[0038] Obtaining a list of messages scheduled to be sent on the network channel in the second channel set;

[0039] The sending the first message through the second channel set includes:

[0040] In response to the presence of a third message with the same content as the first message in the message list, the earlier of the original scheduled sending time of the first message and the original scheduled sending time of the third message is used as the time for sending the third message, and the third message is sent through the second channel set.

[0041] In this way, when the message scheduled to be sent on the network channel with normal network status has the same content as the first message, it will not be sent repeatedly, which can avoid resource waste, prevent repeated operations, and effectively improve user experience.

[0042] In another possible implementation of the first aspect, the method further includes:

[0043] In response to the abnormal network status of the first network channel, determining a load rate of each of the N network channels, where the load rate is determined based on one or more of a communication mode of the network channel, a number of unsent messages of the network channel, an estimated time required for the network channel to send all messages, a bit rate of the network channel, a transmission rate of the network channel, and a message delay duration of the network channel;

[0044] The network channels in the first channel set are the network channels with the lowest load rate among the N network channels, and the network channels in the second channel set are the network channels with a load rate lower than a first threshold among the N network channels, where the first threshold is predefined or pre-set.

[0045] In this way, when the network status of the first network channel is abnormal, the load rate of each network channel is determined based on multiple influencing factors, and the network channel with the lowest load rate is selected to send the first message. This can improve the stability and reliability of data transmission, and can also increase the speed of data transmission, which can effectively improve the user experience.

[0046] In a second aspect, an embodiment of the present application provides a processing device, the processing device being included in a communication system, the communication system including N network channels, N being an integer and N≥3, the processing device including an acquisition device and a processor,

[0047] The acquisition device is used to obtain a first message, where the first message is assigned to be sent in a first network channel, and the first network channel is one of the N network channels;

[0048] The processor is configured to:

[0049] Determining that a network status of the first network channel is abnormal;

[0050] If the message type of the first message is the first type, sending the first message through a first channel set, where the first channel set includes at least one network channel with a normal network status among the N network channels;

[0051] If the message type of the first message is the second type, the first message is sent through a second channel set, where the second channel set includes at least two network channels with normal network status among the N network channels, and the number of network channels included in the first channel set is less than the number of networks included in the second channel set.

[0052] In a possible implementation of the second aspect, the first type is a common message, and the second type is an important message.

[0053] In a possible implementation of the second aspect, the N network channels include the first network channel and at least one network channel having the same communication mode as the first network channel, and the communication mode of the network channels in the first channel set is the same as the communication mode of the first network channel.

[0054] In a possible implementation manner of the second aspect, the first channel set includes all network channels among the N network channels, which have normal network status and the same communication mode as the first network channel.

[0055] In a possible implementation of the second aspect, the network channel in the first channel set is the network channel with the highest priority among the N network channels.

[0056] In another possible implementation of the second aspect, the network channel with the highest priority includes a network channel with the highest bit rate or the highest transmission rate among network channels with the same communication mode as the first network channel.

[0057] In another possible implementation of the second aspect, at least two of the N network channels have the same communication mode as the first network channel, and the communication mode of the network channels in the second channel set is the same as the communication mode of the first network channel.

[0058] And / or, the N network channels include a network channel having a communication mode different from that of the first network channel, and the second channel set includes the network channels among the N network channels having a communication mode different from that of the first network channel.

[0059] In another possible implementation of the second aspect, the second channel set includes all network channels among the N network channels whose network status is normal and whose communication mode is the same as that of the first network channel.

[0060] In another possible implementation of the second aspect, the N network channels include a network channel having a communication mode different from that of the first network channel.

[0061] The second channel set further includes at least one network channel among the N network channels, whose network status is normal and whose communication mode is different from that of the first network channel.

[0062] In another possible implementation of the second aspect, the communication mode of the first network channel is one of CAN communication, CAN-FD communication, Ethernet communication and optical fiber communication.

[0063] In another possible implementation manner of the second aspect, the abnormal network status includes one or more of error frames, message timeout, and bus OFF in the N network channels.

[0064] In another possible implementation manner of the second aspect, the acquisition device is further configured to obtain a list of messages scheduled to be sent on the network channels in the first channel set;

[0065] The processor is also used to respond to the presence of a second message with the same content as the first message in the message list, and then use the earlier of the original scheduled sending time of the first message and the original scheduled sending time of the second message as the time for sending the second message, and send the second message through the first channel set.

[0066] In another possible implementation manner of the second aspect, the acquisition device is further configured to obtain a list of messages scheduled to be sent on the network channel in the second channel set;

[0067] The processor is also used to respond to the presence of a third message with the same content as the first message in the message list, and then use the earlier of the original scheduled sending time of the first message and the original scheduled sending time of the third message as the time for sending the third message, and send the third message through the second channel set.

[0068] In yet another possible implementation of the second aspect, the processor is further configured to, in response to an abnormal network status of the first network channel, determine a load rate of each of the N network channels, where the load rate is determined based on one or more of a communication mode of the network channel, a number of unsent messages of the network channel, an estimated time required for the network channel to send all messages, a bit rate of the network channel, a transmission rate of the network channel, and a message delay duration of the network channel.

[0069] The network channels in the first channel set are the network channels with the lowest load rate among the N network channels, and the network channels in the second channel set are the network channels with a load rate lower than a first threshold among the N network channels, where the first threshold is predefined or pre-set.

[0070] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory; the processor executes instructions stored in the memory so that the electronic device implements the method described in any one of the first aspects above.

[0071] Optionally, the electronic device further includes a communication interface, wherein the communication interface is used to receive and / or send data, and / or the communication interface is used to provide input and / or output for the processor.

[0072] It should be noted that the above embodiments are described using a processor (or general-purpose processor) that executes a method by calling a computer instruction. In specific implementations, the processor may also be a dedicated processor, in which case the computer instructions are pre-loaded into the processor. Alternatively, the processor may include both a dedicated processor and a general-purpose processor.

[0073] Optionally, the processor and the memory may also be integrated into one device, that is, the processor and the memory may also be integrated together.

[0074] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions. When the instructions are executed by an electronic device, the electronic device implements the method described in any one of the first aspects above.

[0075] In a fifth aspect, the present application provides a vehicle, which includes the aforementioned processing device or the aforementioned electronic device, so that the vehicle can implement the method described in any one of the aforementioned first aspects.

[0076] In a sixth aspect, the present application provides a computer program product, which includes computer instructions. When the instructions are executed by an electronic device, the electronic device implements the method described in any one of the first aspects above.

[0077] Optionally, the computer program product may be a software installation package or an image file. When the aforementioned method is required, the computer program product may be obtained and executed on a computing device.

[0078] The beneficial effects of the technical solutions provided in the second to sixth aspects of this application can refer to the beneficial effects of the technical solution in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] The following is a brief introduction to the drawings used in describing the embodiments.

[0080] FIG1 is a schematic diagram of the architecture of a communication system provided in an embodiment of the present application;

[0081] FIG2 is a flow chart of a communication method provided in an embodiment of the present application;

[0082] FIG3A is a schematic diagram of a network channel provided in an embodiment of the present application;

[0083] FIG3B is a schematic diagram of another network channel provided in an embodiment of the present application;

[0084] FIG3C is a schematic diagram of another network channel provided in an embodiment of the present application;

[0085] FIG3D is a schematic diagram of another network channel provided in an embodiment of the present application;

[0086] FIG4 is a flow chart of another communication method provided in an embodiment of the present application;

[0087] FIG5 is a schematic structural diagram of a processing device provided in an embodiment of the present application;

[0088] FIG6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.

[0089] Implementation Methods of the Application

[0090] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0091] The following is an introduction to the system architecture used in the embodiments of this application. It should be noted that the system architecture and business scenarios described in this application are intended to more clearly illustrate the technical solutions of this application and do not constitute a limitation on the technical solutions provided by this application. It is understood by those skilled in the art that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided by this application are equally applicable to similar technical problems.

[0092] Please refer to Figure 1, which is a schematic diagram of the architecture of a communication system provided in an embodiment of the present application. As shown in Figure 1, communication system 10 includes multiple network channels. Figure 1 uses network channel 1, network channel 2, network channel 3, and network channel n as examples. The following is an exemplary introduction to the communication system and network channels.

[0093] The communication system 10 is a device with data exchange and data processing capabilities. Optionally, the communication system 10 can obtain messages, process messages, and control network channels to send messages. Exemplarily, the communication system 10 can be a controller or an electronic device.

[0094] A network channel is a channel or medium with data transmission capability, and a network channel can be used to send messages outward. The communication system 10 may have multiple network channels, such as network channel 1, network channel 2, network channel 3, and network channel n in FIG1 . Optionally, the communication mode used by the network channel for data transmission may include one of CAN (Controller Area Network), CAN-FD (CAN with Flexible Data rate), Ethernet, and optical fiber, or a combination of the above communication modes. Exemplarily, the network channel may be a CAN channel, an Ethernet channel, an optical fiber channel, a CAN-FD channel, and the like. That is, there may be multiple ports on the communication system 10, for example, there may be multiple Ethernet ports or CAN ports and other ports on the communication system 10.

[0095] Optionally, the communication system 10 may include multiple network channels using the same communication method. That is, some of the multiple network channels included in the communication system 10 may use the same communication method. For example, the communication system 10 may include a total of five network channels, including three CAN network channels, two Ethernet channels, and five network channels of other network types.

[0096] Furthermore, network channels with the same communication mode can be network channels with different communication transmission parameters but the same communication mode. For example, network channels with the same communication mode can be CAN network channels with different baud rates or Ethernet channels with different speeds, such as a 100M Ethernet channel and a 1000M Ethernet channel.

[0097] As a possible implementation, the communication system 10 can obtain a first message assigned to be sent in the first network channel. When the communication system 10 determines that the network status of the first network channel is abnormal, if the message type of the first message is the first type, the first message is sent through the first channel set; if the message type of the first message is the second type, the first message is sent through the second channel set.

[0098] In an embodiment of the present application, the communication system can, when the network status of the first network channel is abnormal, send the first message through the first channel set or the second channel set according to the message type of the first message. In this way, for unimportant messages, the message type can be set to the first type, so that at least one is selected during backup transmission, for example, only one network channel with a normal network status is selected for transmission, to avoid all network channels from performing backup transmission of the message, thereby ensuring that the load rate of the network channel does not surge. For more important messages, the message type can be set to the second type, so that at least two are selected during backup transmission, for example, all network channels with normal network status are selected for transmission, thereby improving the success rate of message transmission. In short, users can flexibly set the message type of the message and send the message for backup. On the one hand, this can prevent data loss and ensure the normal operation of the communication function. On the other hand, it can also ensure that the load rate of the network channel does not surge, while ensuring data redundancy, it can improve the stability and reliability of data transmission and effectively improve user experience.

[0099] For example, consider the in-vehicle communication scenario. Due to the ongoing development of intelligent connected vehicles and autonomous driving, the volume of communication data on vehicle networks is surging, increasing the pressure on communication systems. When a vehicle communication network fails and data transmission is impossible, the communication system can select a network channel with a normal network status to send messages of the first type, and select all network channels with normal network status to send messages of the second type. This ensures data transmission reliability through communication redundancy design and avoids a surge in network channel load.

[0100] The method of the embodiment of the present application is described in detail below.

[0101] Please refer to Figure 2, which is a flow chart of a communication method provided in an embodiment of the present application. Optionally, the method can be applied to a communication system, for example, the method can be applied to the communication system 10 shown in Figure 1.

[0102] The communication method shown in FIG2 may include multiple steps in steps S201-S204. It should be understood that for the convenience of description, this application describes the steps S201-S204 in this order, and is not intended to limit the execution to the above order. The embodiment of this application does not limit the order of execution, execution time, number of executions, etc. of the above one or more steps. Steps S201-S204 are as follows:

[0103] Step S201: The communication system obtains a first message.

[0104] The first message is assigned to be sent on a first network channel, which is one of multiple network channels included in the communication system. Optionally, the first message assigned to be sent on the first network channel includes messages that have not yet been sent and messages that have been successfully sent. The messages that have not yet been sent may also be messages scheduled to be sent on the first network channel.

[0105] A communication system is a device with data exchange and data processing capabilities. Optionally, the communication system can obtain messages, process messages, and send messages through network channels. For example, the communication system can be a controller. The communication system can include multiple network channels, which can be used to send messages outward. For relevant introductions to the communication system, please refer to the relevant introduction of Figure 1. In some embodiments, the number of network channels included in the communication system is expressed as M, where M is an integer and M≥2, that is, M=2, M=3, etc. Optionally, in some embodiments, M can also be an integer and M≥3.

[0106] A network channel is a channel or medium capable of data transmission. The communication methods used for data transmission over a network channel can include one or more of CAN, CAN-FD, Ethernet, or fiber optics. When a communication system includes multiple communication methods, the system can transmit data through these methods. In the event of an anomaly in one communication method, data can be transmitted through other communication methods. This improves the stability and reliability of data transmission and effectively enhances the user experience.

[0107] Multiple network channels can be represented on a communication system through multiple ports. A port is an outlet for the communication system to communicate with the outside world and is used for communication. For example, a communication system may include multiple Ethernet ports or CAN ports.

[0108] Optionally, the communication modes of some of the M network channels included in the communication system may be the same. Furthermore, the network channels with the same communication mode may be network channels with different network channel parameters but the same communication mode.

[0109] Step S202: The communication system determines that the network status of the first network channel is abnormal.

[0110] During operation, a network channel may experience various network states, such as normal or abnormal. Abnormal conditions include, but are not limited to, one or more of the following: error frames, message timeouts, and bus OFFs. As one possible implementation, the communication system may monitor the network state of each of the multiple network channels to determine the network state.

[0111] When a network channel experiences an abnormality, the communication system needs to back up and send messages assigned to the first network channel over other network channels. During backup transmission, the message type is related to the backup transmission method. The message type can be represented by one or more attributes of the message, and messages can be classified into multiple types based on these attributes.

[0112] Taking the example of a message type including a first type and a second type, as a possible implementation, the message may include a first field. When the first field takes a first value, the message type is the first type; when the first field takes a second value, the message type is the second type. Furthermore, the message type can be determined by multiple attributes, for example, by combining the values ​​of the first field and the second field. When the first field takes the second value and the second field takes the third value, the message type is the first type. It is understandable that the first type and the second type in this application are exemplary descriptions made to distinguish different message types. During the specific implementation process, the first type can be an ordinary message, and the second type can be an important message (or called a special message). Optionally, in some scenarios, the first type may include more than one type, and the second type may also include more than one type.

[0113] The backup sending mode is described below in conjunction with step S203 and step S204, taking the case where the message type includes the first type and the second type as an example.

[0114] Step S203: If the message type of the first message is the first type, the communication system sends the first message through the first channel set.

[0115] Specifically, the first message is assigned to be sent on a first network channel. When the network status of the first network channel is abnormal, if the message type of the first message is a first type, the first message is sent via a first channel set, where the first channel set includes at least one network channel with a normal network status among a plurality of network channels included in the communication system.

[0116] For ease of understanding, several possible implementations of the first channel set are listed below:

[0117] In the first embodiment, the first channel set includes at least one network channel with a normal network status among multiple network channels. Please refer to Figure 3A, which is a schematic diagram of a network channel provided in an embodiment of the present application. For example, as shown in Figure 3A, the communication system includes network channels 1 to 4. When network channel 1 fails, the first channel set is at least one network channel with a normal network status among the remaining three network channels, that is, any one or any several network channels with a normal network status among network channels 2 to 4.

[0118] In the second embodiment, the first channel set includes network channels with the same communication mode as the first network channel. Among them, the multiple network channels include a first network channel and at least one network channel with the same communication mode as the first network channel. Please refer to Figure 3B, which is a schematic diagram of another network channel provided in an embodiment of the present application. For example, as shown in Figure 3B, the communication system includes network channels 1 to 4, wherein network channel 1 and network channel 3 are Ethernet channels, and network channel 2 and network channel 4 are CAN channels. When network channel 1 fails, the first channel set includes network channels with the same communication mode as the first network channel, that is, the first channel set includes network channel 3 in Figure 3B. In this way, selecting network channels with the same communication mode for data transmission can increase the speed of data transmission, and can also improve the stability and reliability of data transmission.

[0119] Furthermore, the first channel set includes all network channels among the multiple network channels that have normal network status and have the same communication mode as the first network channel.

[0120] Exemplarily, the communication system includes network channels 1 to 6, wherein network channel 1, network channel 3 and network channel 5 are Ethernet channels, and network channel 2, network channel 4 and network channel 6 are CAN channels. When network channel 1 fails, the first channel set includes all network channels with the same communication mode as the first network channel, that is, the first channel set includes network channel 3 and network channel 5.

[0121] In a third embodiment, the first channel set includes the network channel with the highest priority among the network channels with normal network status among the multiple network channels. Optionally, the communication system can prioritize each of the multiple network channels, and the network channel with the highest priority can be the network channel with the highest bit rate or the highest transmission rate among the network channels with the same communication mode as the first network channel. Please refer to Figure 3C, which is a schematic diagram of another network channel provided in an embodiment of the present application. For example, as shown in Figure 3C, the communication system includes network channels 1-network channels 4, wherein network channels 1-network channels 3 are Ethernet channels and network channel 4 is a CAN channel. When network channel 1 (i.e., a 100M Ethernet channel) fails, network channels 2-network channels 4 are in normal network status. The first channel set includes the network channel with the highest priority among network channels 2-network channels 4, for example, the network channel with a higher transmission rate among network channel 2 (i.e., a 300M Ethernet channel) and network channel 3 (i.e., a 1000M Ethernet channel), so the first channel set includes network channel 3 (i.e., a 1000M Ethernet channel) in Figure 3C.

[0122] Priority is a parameter used by the communication system to determine the priority of data transmission through one or more of multiple network channels. During backup transmission, the network channel with the highest priority can be selected for backup transmission. Optionally, the priority of the network channel can be pre-set by the user or determined based on network channel parameters.

[0123] For ease of understanding, Table 1 shows, by way of example, a priority table of multiple possible network channels.

[0124] Table 1 Priority table of multiple network channels

[0125] As shown in Table 1, the priority order of network channels is 1, 2, ..., n, and so on. For example, network channel 1 has a priority of 4, network channel 2 has a priority of 2, network channel 3 has a priority of 3, and network channel 4 has a priority of 1, among which network channel 4 has the highest priority. For example, when network channel 1 fails and the network communication status of network channels 2, 3, and 4 are all normal, since network channel 4 has the highest priority, the first message can be sent through network channel 4.

[0126] Optionally, there may be more than one network channel with the highest priority. In this case, the first channel set includes more than one network channel with the highest priority.

[0127] In this way, selecting the network channel with the highest priority to send the first message can improve the stability and reliability of data transmission and can also increase the speed of data transmission.

[0128] In a fourth embodiment, the first channel set may further include a network channel with the lowest load rate among the multiple network channels. Optionally, the communication system may determine the load rate of each network channel among the multiple network channels when the network status of the first network channel is abnormal. The communication system may determine the load rate of the network channel based on one or more of the communication mode of the network channel, the number of unsent messages of the network channel, the estimated time required for the network channel to send all messages, the bit rate of the network channel, the transmission rate of the network channel, and the message delay duration of the network channel. For example, please refer to Figure 3D, which is a schematic diagram of another network channel provided in an embodiment of the present application. For example, as shown in Figure 3D, the communication system includes five network channels, namely network channel 1 to network channel 5. Network channel 1 is abnormal. At this time, the network status of the remaining four network channels are normal, among which the load rate of network channel 2 is 30%, the load rate of network channel 3 is 50%, the load rate of network channel 4 is 70%, and the load rate of network channel 5 is 75%. At this time, the first channel set can also include network channel 2, that is, the first channel set includes network channel 2 in Figure 3D, and the communication system can send the first message through network channel 2.

[0129] In this way, the load rate of each network channel is determined according to multiple channel parameters, and the network channel with the lowest load rate is selected to send the first message, which can improve the stability and reliability of data transmission and also increase the speed of data transmission.

[0130] It should be understood that the above embodiments are illustrative examples, and there may be more embodiments in the specific implementation process. In addition, multiple embodiments may be combined.

[0131] Optionally, the network channels in the first channel set belong to multiple network channels, the network status of the network channels in the first channel set is normal, the network channels in the first channel set have the same communication mode as the first network channel, and the network channels in the first channel set have the lowest load rate among the network channels that meet the above conditions. In this way, when the network status of the first network channel is abnormal, selecting a network channel with the same communication mode as the first network channel and the lowest load rate to send the first message can better improve the stability and reliability of data transmission, better increase the speed of data transmission, and effectively improve the user experience.

[0132] As one possible implementation, a first message is a message scheduled to be sent via a first network channel at a first time. The message type of the first message is a first type. The communication system obtains a list of first messages scheduled to be sent via network channels in a first channel set. If a second message with the same content as the first message exists in the first message list, the communication system uses the earlier of the originally scheduled sending time of the first message and the originally scheduled sending time of the second message as the time to send the second message. The communication system sends the second message via the first channel set.

[0133] Exemplarily, the communication system detects that network channel 1 is abnormal at the 6th second, and network channel 2 is normal. The first channel set includes network channel 2. The communication system obtains message 1 scheduled to be sent through network channel 1 at the 10th second. The message type of message 1 is the first type. The communication system obtains the first message list scheduled to be sent through network channel 2. For example, the first message list includes message 2, message 3, and message 4. The communication system detects that message 2 has the same content as message 1. Message 2 is scheduled to be sent through network channel 2 at the 15th second. Between the 10th second and the 15th second, the 10th second is an earlier moment. At this time, the communication system controls network channel 2 to send message 2 at the 10th second.

[0134] As another example, the communication system detects an anomaly in network channel 1 at the 6th second, while network channels 2 and 3 are normal. The first channel set includes network channels 2 and 3. The communication system obtains message 1, scheduled to be sent via network channel 1 at the 10th second. Message 1 is of the first type. The communication system obtains a first message list scheduled to be sent via the first channel set, i.e., a first message list scheduled to be sent via network channels 2 and 3. For example, the first message list includes message 2, message 3, and message 4. The communication system detects that message 2 and message 4 have the same content as message 1. Message 2 is scheduled to be sent via network channel 2 at the 15th second, and message 4 is scheduled to be sent via network channel 3 at the 8th second. Since the 8th second is earlier than the 10th second, the 15th second, and the 8th second, the communication system controls network channel 2 to send message 2 at the 8th second and controls network channel 3 to send message 4 at the 8th second. In other words, for any network channel in a normal network state, messages with the same content are not sent repeatedly.

[0135] In this way, when the message scheduled to be sent on the network channel with normal network status has the same content as the first message, it will not be sent repeatedly, which can avoid resource waste, prevent repeated operations, and effectively improve user experience.

[0136] Step S204: If the message type of the first message is the second type, the communication system sends the first message through the second channel set.

[0137] Step S204 introduces another backup transmission method. When the network status of the first network channel is abnormal, if the message type of the first message is of the second type, the first message is sent via the second channel set. The second channel set includes at least two network channels with normal network status from the multiple network channels included in the communication system. Exemplarily, the number of network channels in the second channel set is represented by K, where K is an integer greater than 1. It should be noted that the number of network channels included in the first channel set is smaller than the number of network channels included in the second channel set.

[0138] For ease of understanding, several possible implementations of the second channel set are listed below:

[0139] In the first embodiment, the second channel set includes at least two network channels with normal network status among the multiple network channels. For example, the second channel set includes all network channels with normal network status among the multiple network channels. Exemplarily, as shown in FIG3A , the communication system includes network channels 1 to 4. When network channel 1 fails, the second channel set includes all network channels with normal network status among the remaining three network channels, that is, the second channel set includes two or all of network channels 2 to 4 in FIG3A . For another example, the communication system includes 10 network channels, and network channel 1 is abnormal. At this time, the network status of the remaining nine network channels is normal. At this time, the second channel set can include two or all of the remaining nine network channels. In this way, the transmission success rate of the first message can be improved.

[0140] It should be noted that in order to facilitate the explanation of the different backup sending methods, K is limited to an integer greater than 1. In some possible scenarios, if the communication system only includes the first network channel and the third network channel, when the first network channel fails, all network channels with normal network status are only one third network channel, and the second channel set includes this third network channel, that is, this solution is also applicable to the case where K=1.

[0141] In the second embodiment, the communication mode of the network channels in the second channel set is the same as the communication mode of the first network channels.

[0142] Exemplarily, the communication system includes M network channels, at least two of which have the same communication mode as the first network channel, for example, N of the M network channels have the same communication mode as the first network channel.

[0143] Furthermore, the second channel set includes all network channels with normal network status among the N network channels, where N is an integer and N≥3.

[0144] In this case, M and N may be the same or different. When M>N, there is a network channel among the M network channels that uses a different communication method than the N network channels. For example, as shown in FIG3C , a communication system includes network channels 1 through 4, where network channels 1 through 3 are Ethernet channels and network channel 4 is a CAN channel. Network channels 1 through 3 use the same communication method. When network channel 1 fails, network channels 2 through 4 remain in a normal state. The second channel set includes the network channels among network channels 1 through 3 that have a normal network state, i.e., the second channel set includes network channels 2 and 3 in FIG3C . For another example, a communication system includes 10 network channels, with network channel 1 failing. At this time, the remaining nine network channels all have normal network states. Of the remaining nine network channels, three use the same communication method as network channel 1. In this case, the second channel set can include these three network channels that use the same communication method as network channel 1. In this way, selecting network channels with the same communication method for data transmission can increase the speed of data transmission and improve the stability and reliability of data transmission.

[0145] Furthermore, the second channel set includes network channels that have a different communication method from the first network channel. For example, when M>N, that is, among the M network channels, there is also a network channel that has a different communication method from the N network channels. In this case, the second channel set includes at least one network channel that has a different communication method from the first network channel, or the second channel set includes the N network channels and at least one network channel that has a different communication method from the first network channel. For example, the communication system includes 10 network channels, and network channel 1 is abnormal. At this time, the network status of the remaining 9 network channels are normal, among which 3 of the remaining 9 network channels have the same communication method as network channel 1. In this case, the second channel set can include these 3 network channels that have the same communication method as network channel 1, and / or the second channel set can include at least one network channel among the remaining 6 network channels.

[0146] In a third embodiment, the second channel set may further include a network channel whose load rate among the multiple network channels is lower than the first threshold. Optionally, the communication system may determine the load rate of each network channel among the multiple network channels when the network status of the first network channel is abnormal. The communication system may determine the load rate of the network channel based on one or more of the communication mode of the network channel, the number of unsent messages of the network channel, the estimated time required for the network channel to send all messages, the bit rate of the network channel, the transmission rate of the network channel, and the message delay time of the network channel. Optionally, the first threshold is used to indicate the condition that the load rate of the network channel needs to meet. The first threshold is predefined or pre-specified. For example, the first threshold may be a value lower than 60%, such as 55%, 40%, etc. Exemplarily, as shown in Figure 3D, the communication system includes 5 network channels, namely network channel 1 to network channel 5, and network channel 1 is abnormal. At this time, the network status of the remaining 4 network channels are normal, among which the load rate of network channel 2 is 30%, the load rate of network channel 3 is 50%, the load rate of network channel 4 is 70%, and the load rate of network channel 5 is 75%. The first threshold is a value lower than 60%. At this time, the second channel set can include network channel 2 and network channel 3.

[0147] In this way, the load rate of each network channel is determined according to multiple influencing factors, and a network channel with a load rate lower than a first threshold is selected to send the first message, which can improve the stability and reliability of data transmission and also increase the speed of data transmission.

[0148] It should be understood that the above embodiments are illustrative examples, and there may be more embodiments in the specific implementation process. In addition, multiple embodiments may be combined.

[0149] Optionally, the network channels in the second channel set belong to multiple network channels, the network status of the network channels in the second channel set is normal, the network channels in the second channel set have the same communication mode as the first network channel, and the network channels in the second channel set are network channels with a load rate lower than the first threshold among the network channels that meet the above conditions. In this way, when the network status of the first network channel is abnormal, selecting a network channel with the same communication mode as the first network channel and a load rate lower than the first threshold to send the first message can better improve the stability and reliability of data transmission, better increase the speed of data transmission, and effectively improve the user experience.

[0150] As one possible implementation, a first message is a message scheduled to be sent via a first network channel at a first time. The message type of the first message is a second type. The communication system obtains a list of second messages scheduled to be sent via a network channel in a second channel set. If a third message with the same content as the first message exists in the second message list, the communication system uses the earlier of the originally scheduled sending time of the first message and the originally scheduled sending time of the third message as the time to send the third message. The communication system sends the third message via the second channel set.

[0151] Exemplarily, the communication system includes 4 network channels. The communication system detects that network channel 1 is abnormal at the 6th second, and network channel 2, network channel 3 and network channel 4 are normal. The communication system obtains message 1 scheduled to be sent through network channel 1 at the 10th second. The message type of message 1 is the second type. The communication system obtains a second message list scheduled to be sent through network channel 2, network channel 3 and network channel 4. For example, the second message list includes 10 messages, namely message 2, message 3, message 4 and message 5. Among them, the communication system detects that message 4 has the same content as message 1. Message 4 is scheduled to be sent through network channel 3 at the 8th second. Between the 8th second and the 10th second, the 8th second is an earlier moment. At this time, the communication system controls network channel 3 to send message 4 at the 8th second.

[0152] As another example, the communication system detects an anomaly in network channel 1 at the 6th second, while network channels 2 and 3 are normal. The first channel set includes network channels 2 and 3. The communication system obtains message 1, scheduled to be sent via network channel 1 at the 10th second. Message 1 is of the first type. The communication system obtains a second message list, scheduled to be sent via network channels 2, 3, and 4. For example, the second message list includes 10 messages, namely, message 2, message 3, message 4, and message 5. The communication system detects that message 4 and message 6 have the same content as message 1. Message 4 is scheduled to be sent via network channel 3 at the 8th second, and message 6 is scheduled to be sent via network channel 4 at the 12th second. Since the 8th second is earlier than the 8th second, the 10th second, and the 12th second, the communication system controls network channel 3 to send message 4 at the 8th second and controls network channel 4 to send message 6 at the 8th second. In other words, for any network channel with a normal network status, messages with the same content are not sent repeatedly.

[0153] In this way, when the message scheduled to be sent on the network channel with normal network status has the same content as the first message, it will not be sent repeatedly, which can avoid resource waste, prevent repeated operations, and effectively improve user experience.

[0154] As a possible implementation method, when M=2, if network channel 1 is abnormal, regardless of whether the first message is of the first type or the second type, the communication system will back up and send the first message through network channel 2. At this time, the network channels selected by the two backup methods of the communication system for the first message of the first type and the first message of the second type are the same, but the selection logic corresponding to the two backup methods is different.

[0155] In the embodiment shown in FIG2 , when the network status of the first network channel is abnormal, the communication system can, based on the message type of the first message, send the first message through the first channel set or the second channel set. Thus, for unimportant messages, their message type can be set to the first type, so that at least one is selected during backup transmission, for example, only one network channel with a normal network status is selected for transmission, thereby preventing all network channels from performing backup transmission of the message and ensuring that the network channel load rate does not surge. For more important messages, their message type can be set to the second type, so that at least two are selected during backup transmission, for example, all network channels with normal network status are selected for transmission, thereby improving the success rate of message transmission. In short, users can flexibly set the message type of messages and back up the messages. This can prevent data loss and ensure the normal operation of communication functions on the one hand, and ensure that the network channel load rate does not surge on the other hand, ensuring data redundancy while improving the stability and reliability of data transmission, effectively improving the user experience.

[0156] The embodiment shown in FIG2 includes multiple possible solutions. For ease of understanding, one possible solution is described below. It should be understood that some of the terms and logic in the solution shown in FIG4 can refer to the embodiment shown in FIG2.

[0157] Please refer to Figure 4, which is a flow chart of another communication method provided in an embodiment of the present application. The method includes the following steps:

[0158] S1: The communication system divides the message types of the messages to be sent out into a first type and a second type.

[0159] The first type is different from the second type. Optionally, the second type may be a message of higher importance or a message selected by the user.

[0160] S2: The communication system determines the priorities of multiple network channels included in the communication system.

[0161] In some embodiments, the communication system may include M network channels, where M is an integer and M≥2, that is, M=2, M=3, etc. Optionally, in some embodiments, M may also be an integer and M≥3.

[0162] Optionally, the communication system may determine the priority of the network channel based on one or more of the communication mode of the network channel, the number of unsent messages of the network channel, the time expected to be required for the network channel to send all messages, the bit rate of the network channel, the transmission rate of the network channel, and the message delay duration of the network channel.

[0163] S3: The communication system monitors the network status of each network channel in real time.

[0164] When the network status of the network channel is normal, step S4 is executed; when the network status of the network channel is abnormal, step S5 is executed.

[0165] The abnormal network status includes one or more of the following abnormal conditions: error frames, message timeouts, and bus OFF in multiple network channels.

[0166] S4: The communication system sends a message through the logic control network channel according to the predetermined normal state.

[0167] S5: The communication system sends the message according to the abnormal state. If the message type of the message is the first type, the message is sent through the network channel with the highest priority that is of the same type and in normal network status. If the message type is the second type, the message is sent through multiple network channels of the same type and in normal network status.

[0168] The network channels of the same type may be network channels with the same communication mode.

[0169] In the embodiment shown in FIG4 , the communication system can classify the message types of messages to be sent out into a first type and a second type, and determine the priorities of multiple network channels included in the communication system. The communication system can monitor the network status of each network channel in real time. When the network status is normal, the message is sent according to a predetermined normal state sending logic. When the network status is abnormal, the message is sent according to an abnormal state. If the message type of a message is the first type, the message is sent via the highest priority network channel with the same communication mode as the network channel and the normal network status. If the message type of a message is the second type, the message is sent via multiple network channels with the same communication mode as the network channel and the normal network status. In this way, the first message can be backed up and sent, preventing data loss and ensuring the normal operation of the communication function. It can also ensure that the load rate of the network channel does not surge, ensuring data redundancy while improving the stability and reliability of data transmission, effectively enhancing the user experience.

[0170] The above describes in detail the method of the embodiment of the present application. The following provides an apparatus of the embodiment of the present application.

[0171] Please refer to Figure 5, which is a schematic diagram of the structure of a processing device provided in an embodiment of the present application. The processing device 50 may include an acquisition device 501 and a processor 502. The processing device 50 is used to implement the aforementioned communication method, such as the communication method in the embodiments shown in Figures 2 and 4.

[0172] In a possible implementation, the processing device is included in a communication system, and the communication system includes N network channels, where N is an integer and N≥3.

[0173] The acquisition device 501 is used to obtain a first message, where the first message is assigned to be sent in a first network channel, and the first network channel is one of the N network channels;

[0174] The processor 502 is configured to:

[0175] Determining that a network status of the first network channel is abnormal;

[0176] If the message type of the first message is the first type, sending the first message through the first channel set, where the first channel set includes at least one network channel with a normal network status among the N network channels;

[0177] If the message type of the first message is the second type, the first message is sent through the second channel set, the second channel set includes at least 2 network channels with normal network status among the N network channels, and the number of network channels included in the first channel set is less than the number of networks included in the second channel set.

[0178] In a possible implementation, the first type is a common message, and the second type is an important message.

[0179] In a possible implementation, the N network channels include a first network channel and at least one network channel having the same communication mode as the first network channel, and the communication mode of the network channels in the first channel set is the same as that of the first network channel.

[0180] In a possible implementation, the first channel set includes all network channels among the N network channels, which have normal network status and the same communication mode as the first network channel.

[0181] In a possible implementation, the network channel in the first channel set is the network channel with the highest priority among the N network channels.

[0182] In a possible implementation, the network channel with the highest priority includes a network channel with the highest bit rate or the highest transmission rate among network channels with the same communication mode as the first network channel.

[0183] In a possible implementation, at least two of the N network channels have the same communication mode as the first network channel, and the communication mode of the network channels in the second channel set is the same as the communication mode of the first network channel.

[0184] And / or, the N network channels include a network channel having a communication mode different from that of the first network channel, and the second channel set includes the network channels among the N network channels having a communication mode different from that of the first network channel.

[0185] In a possible implementation, the second channel set includes all network channels among the N network channels whose network status is normal and whose communication mode is the same as that of the first network channel.

[0186] In a possible implementation, the N network channels include a network channel having a communication mode different from that of the first network channel.

[0187] The second channel set further includes at least one network channel among the N network channels, whose network status is normal and whose communication mode is different from that of the first network channel.

[0188] In a possible implementation, the communication mode of the first network channel is one of CAN communication, CAN-FD communication, Ethernet communication, and optical fiber communication.

[0189] In a possible implementation manner, the abnormal network status includes one or more of the following: error frames occurring in N network channels, message timeout, and bus OFF.

[0190] In a possible implementation, the acquisition device 501 is further configured to obtain a list of messages scheduled to be sent on the network channel in the first channel set;

[0191] The processor 502 is also used to, when there is a second message with the same content as the first message in the message list, use the earlier of the original scheduled sending time of the first message and the original scheduled sending time of the second message as the time for sending the second message, and send the second message through the first channel set.

[0192] In a possible implementation, the acquisition device 501 is further configured to obtain a list of messages scheduled to be sent on the network channel in the second channel set;

[0193] The processor 502 is also used to, when there is a third message with the same content as the first message in the message list, use the earlier of the original scheduled sending time of the first message and the original scheduled sending time of the third message as the time for sending the third message, and send the third message through the second channel set.

[0194] In one possible implementation, the processor 502 is further configured to, when the network status of the first network channel is abnormal, determine a load rate of each of the N network channels, where the load rate is determined based on one or more of a communication mode of the network channel, a number of unsent messages of the network channel, an estimated time required for the network channel to send all messages, a bit rate of the network channel, a transmission rate of the network channel, and a message delay duration of the network channel.

[0195] The second network channel is the network channel with the lowest load rate among the N network channels, and the multiple third network channels are network channels with load rates lower than a first threshold among the N network channels. The first threshold is predefined or pre-set.

[0196] It should be noted that the above components (collection component 501 and processing component 502) are used to execute the relevant steps of the above method. For example, the collection component 501 is used to execute the relevant content of step S201, and the processing component 502 is used to execute the relevant content of S202-S204.

[0197] Figure 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. An electronic device is a device with processing capabilities. The device here can be a physical device, such as a server (such as a rack server), a host, etc., or a virtual device, such as a virtual machine, a container, etc.

[0198] As shown in Figure 6, the electronic device 60 includes a processor 601, a memory 602, and one or more programs, and may include a communication interface 603. It should be understood that the present application does not limit the number of processors and memories in the electronic device 60.

[0199] The processor 601 is a module for performing calculations and may include a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), a digital signal processor (DSP), a microcontroller unit (MCU), or one or more integrated circuits for controlling the execution of the above program.

[0200] The memory 602 is used to provide storage space, which can optionally store application data, user data, operating systems, and computer programs. The memory 602 may include, but is not limited to, read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer.

[0201] The memory 602 may exist independently and be connected to the processor 601 via a bus. The memory 602 may also be integrated with the processor 601.

[0202] The communication interface 603 is used to provide information input or output for the at least one processor. And / or, the communication interface 603 can be used to receive data sent externally and / or send data to the outside. The communication interface 603 can be a wired link interface such as an Ethernet cable, or a wireless link interface (Wi-Fi, Bluetooth, general wireless transmission and other wireless communication technologies, etc.). Optionally, the communication interface 603 can also include a transmitter (such as a radio frequency transmitter, antenna, etc.) coupled to the interface, or a receiver, etc.

[0203] In an embodiment of the present application, the one or more programs are stored in the memory 602 in the form of program code and are configured to be executed by the processor 601. The program includes instructions for implementing the steps in the aforementioned communication method. For example, the communication method shown in Figures 2 and 4. That is, the memory 602 stores executable instructions, and the processor 601 executes the executable instructions to implement the aforementioned communication method, such as the communication method in the embodiments of Figures 2 and 4. In other words, the memory 602 stores instructions for executing the communication method.

[0204] Alternatively, the memory 602 stores executable instructions, and the processor 601 executes the executable instructions to respectively implement the functions of one or more of the aforementioned acquisition devices and processing devices, thereby realizing the communication method.

[0205] An embodiment of the present application further provides a vehicle, which includes the aforementioned processing device or the aforementioned electronic device, so that the vehicle implements the aforementioned communication method, such as the communication method in the embodiments of Figures 2 and 4.

[0206] The present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. The computer program instructions are used to implement the aforementioned communication methods, such as the communication methods in the embodiments of Figures 2 and 4.

[0207] The present application also provides a computer-readable storage medium including instructions for implementing the aforementioned communication method, such as the communication method in the embodiments of FIG. 2 and FIG. 4 .

[0208] The computer-readable storage medium may be any available medium capable of being stored by an electronic device, or a data storage device such as a data center that contains one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives).

[0209] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0210] The “at least one” mentioned in the embodiments of this application refers to one or more, and “plurality” refers to two or more. “At least one of the following items” or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, (a and b), (a and c), (b and c), or (a and b and c), where a, b, c can be single or multiple. “And / or” describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character “ / ” generally indicates that the previous and next associated objects are in an “or” relationship.

[0211] Furthermore, unless otherwise specified, ordinal numbers such as "first" and "second" in the embodiments of this application are used to distinguish multiple objects and are not used to limit the order, timing, priority, or importance of multiple objects. For example, the first channel set and the second channel set are only for ease of description and do not indicate a difference in the deployment order, importance, etc. of the first channel set and the second channel set.

[0212] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0213] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the protection scope of the technical solutions of the embodiments of the present application.

Claims

1. A communication method, wherein: Applied to a communication system, the communication system includes N network channels, N is an integer and N≥3, the method includes: Acquire a first message, where the first message is assigned to be sent in a first network channel, and the first network channel is one of the N network channels; Determining that a network status of the first network channel is abnormal; If the message type of the first message is the first type, sending the first message through a first channel set, where the first channel set includes at least one network channel of the N network channels whose network status is normal; If the message type of the first message is the second type, the first message is sent through a second channel set, the second channel set includes at least 2 network channels with normal network status among the N network channels, and the number of network channels included in the first channel set is less than the number of network channels included in the second channel set.

2. The method according to claim 1, wherein: The N network channels include the first network channel and at least one network channel having the same communication mode as the first network channel, and the communication mode of the network channels in the first channel set is the same as the communication mode of the first network channel.

3. The method according to claim 1 or 2, wherein: The first channel set includes all network channels among the N network channels whose network status is normal and whose communication mode is the same as that of the first network channel.

4. The method according to any one of claims 1 to 3, wherein: The network channel in the first channel set is the network channel with the highest priority among the N network channels.

5. The method according to any one of claims 1 to 4, wherein: There are at least two network channels among the N network channels whose communication mode is the same as that of the first network channel, and the communication mode of the network channels in the second channel set is the same as that of the first network channel, and / or the N network channels include a network channel whose communication mode is different from that of the first network channel, and the second channel set includes a network channel among the N network channels whose communication mode is different from that of the first network channel.

6. The method according to any one of claims 1 to 5, wherein: The second channel set includes all network channels among the N network channels whose network status is normal and whose communication mode is the same as that of the first network channel.

7. The method according to claim 6, wherein: The N network channels include a network channel having a communication mode different from that of the first network channel, and the second channel set further includes at least one network channel among the N network channels whose network status is normal and whose communication mode is different from that of the first network channel.

8. The method according to any one of claims 1 to 7, wherein: The communication mode of the first network channel is one of CAN communication, CAN-FD communication, Ethernet communication and optical fiber communication.

9. The method according to any one of claims 1 to 8, wherein: The abnormal network status includes one or more of error frames, message timeouts, and bus shutdowns occurring in the N network channels.

10. The method according to any one of claims 1 to 9, wherein: The method further comprises: Obtaining a list of messages scheduled to be sent on the network channels in the first channel set; The sending the first message through the first channel set includes: In response to the presence of a second message with the same content as the first message in the message list, the earlier time between the original scheduled sending time of the first message and the original scheduled sending time of the second message is used as the time for sending the second message, and the second message is sent through the first channel set.

11. The method according to any one of claims 1 to 10, wherein: The method further comprises: Obtaining a list of messages scheduled to be sent on the network channel in the second channel set; The sending the first message through the second channel set includes: In response to the presence of a third message with the same content as the first message in the message list, the earlier time between the original scheduled sending time of the first message and the original scheduled sending time of the third message is used as the time for sending the third message, and the third message is sent through the second channel set.

12. A processing device, wherein: The processing device is included in a communication system, the communication system includes N network channels, N is an integer and N≥3, the processing device includes a collection device and a processing device, The acquisition device is used to acquire a first message, where the first message is assigned to be sent in a first network channel, and the first network channel is one of the N network channels; The processing device is used for: Determining that a network status of the first network channel is abnormal; If the message type of the first message is the first type, sending the first message through a first channel set, where the first channel set includes at least one network channel whose network status is normal among the N network channels; If the message type of the first message is the second type, the first message is sent through a second channel set, the second channel set includes at least 2 network channels with normal network status among the N network channels, and the number of network channels included in the first channel set is less than the number of networks included in the second channel set.

13. An electronic device, wherein: The electronic device comprises a processor and a memory, wherein the memory stores instructions, wherein the instructions comprise instructions for executing the method according to any one of claims 1-11.

14. A computer-readable storage medium, wherein: The computer-readable storage medium is used to store computer instructions, and the computer instructions include instructions for executing the method according to any one of claims 1-11.

15. A vehicle, wherein: The vehicle comprises the processing device of claim 12 or the electronic device of claim 13 .

Citation Information

Patent Citations

  • Wireless local area network card communication method

    CN103023632A

  • On-vehicle control device

    JP2011229006A

  • System and method for multi-lane transmission

    JP2017188754A

  • Apparatus and method for switching communication channels having redundant configuration

    US20140269264A1

  • Enhanced physical signal structure for LTE v2v communications

    US20180227155A1