WO2024000214A1 - Communication method in vehicle and related apparatus - Google Patents

Communication method in vehicle and related apparatus Download PDF

Info

Publication number
WO2024000214A1
WO2024000214A1 PCT/CN2022/102139 CN2022102139W WO2024000214A1 WO 2024000214 A1 WO2024000214 A1 WO 2024000214A1 CN 2022102139 W CN2022102139 W CN 2022102139W WO 2024000214 A1 WO2024000214 A1 WO 2024000214A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
data
control unit
aforementioned
transmission interface
Prior art date
Application number
PCT/CN2022/102139
Other languages
French (fr)
Chinese (zh)
Inventor
李�杰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2022/102139 priority Critical patent/WO2024000214A1/en
Publication of WO2024000214A1 publication Critical patent/WO2024000214A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/46Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for vehicle-to-vehicle communication [V2V]

Definitions

  • this application provides a communication method in a vehicle, which method includes:
  • the first control unit sends the first message through the first transmission interface
  • the data in the first message and the data in the second message are related, and the communication protocols followed by the first transmission interface and the second transmission interface are different.
  • the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the first target data, and the first message includes The data is verification information, and the verification information is used to verify the first target data.
  • the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the second target data, and the first message includes The data of is the first data, and the first data is part of the data in the second target data.
  • the aforementioned first message includes N1 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M1 messages corresponding to the aforementioned second transmission interface, and is encapsulated into the aforementioned N1
  • the data in each packet is the same as the data encapsulated in the aforementioned M1 packets, and both the aforementioned N1 and the aforementioned M1 are integers greater than 0.
  • the data in the aforementioned second message includes the data to be sent by the aforementioned first control unit within one or more clock cycles; or,
  • the aforementioned first situation includes at least one of the following situations: the aforementioned second message is a message sent by the aforementioned first control unit in response to the data collection request of the data collection unit, and the aforementioned second message is a broadcast message or a multicast message. message, or the aforementioned second message is a message sent by the aforementioned first control unit in response to a request from the vehicle status monitoring unit;
  • the aforementioned second situation includes that the data in the aforementioned second message is information for controlling the aforementioned vehicle driving operation.
  • the number of encapsulated packets may be different for different application scenarios.
  • the length of the message transmitted by the second transmission interface is relatively large, more data can be encapsulated at one time. Therefore, for the first scenario mentioned above, since the real-time requirements of the data are not high, the data to be sent within one or more clock cycles can be encapsulated and sent in one message at a time.
  • the packets sent through the two interfaces can be encapsulated into the same number of packets to reduce the data encapsulation time and ensure data transmission efficiency. It can be seen that in this application, heterogeneous transmission networks can be used to flexibly transmit messages in different ways for different application scenarios.
  • the aforementioned second message includes extended information
  • the aforementioned extended information includes one or more of the following: status information of the subsystem where the aforementioned first control unit is located, control information issued by the aforementioned first control unit. instructions, or the sensor data collected by the aforementioned first control unit.
  • the aforementioned first message includes N2 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M2 messages corresponding to the aforementioned second transmission interface
  • the aforementioned M2 messages The data included in the text is the first target data
  • the data of the aforementioned N2 messages is verification information.
  • the aforementioned verification information is used to verify the aforementioned first target data.
  • the aforementioned N2 and the aforementioned M2 are both integers greater than 0.
  • the verification information of the data is transmitted through the first transmission interface, and the data is transmitted through the second transmission interface.
  • This kind of data transmission The difference processing mechanism can significantly shorten the data transmission time when the transmission bandwidth of the second transmission interface is large, complete the data transmission in a shorter time, and effectively complete the data verification. This reduces the time cost of joint interaction between control units, reduces the time loss of direct communication between vehicle components, and improves interaction performance.
  • the aforementioned first message includes N3 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M3 messages corresponding to the aforementioned second transmission interface
  • the aforementioned M3 messages The data included in the text is the second target data
  • the data of the aforementioned N3 messages is the first data
  • the aforementioned first data is part of the aforementioned second target data
  • the aforementioned N3 and the aforementioned M3 are both integers greater than 0.
  • a part of the entire data is transmitted through the first transmission interface, and the entire data is transmitted through the second transmission interface.
  • This differential processing mechanism of data transmission can significantly shorten the data transmission time when the transmission bandwidth of the second transmission interface is large.
  • the transmission time can be used to complete the data transmission in a shorter time.
  • the data transmitted by the first transmission interface can be used to verify the overall data transmitted by the second interface, thereby effectively completing the data verification. This reduces the time cost of joint interaction between control units, reduces the time loss of direct communication between vehicle components, and improves interaction performance.
  • the aforementioned first message includes N4 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M4 messages corresponding to the aforementioned second transmission interface
  • the aforementioned first message The data in the message is the second data
  • the data in the second message is the third data
  • the second data and the third data are part of the third target data respectively
  • the third target data is the first control data.
  • the data to be sent by the unit in one or more clock cycles, the aforementioned N4 and the aforementioned M4 are both integers greater than 0.
  • the aforementioned second data and the aforementioned third data are used to restore the aforementioned third target data.
  • this differentiated encryption transmission method can reduce the dependence of transmission encryption on encryption algorithms, and can achieve high-level ciphertext transmission without the need for complex encryption algorithms.
  • the embodiments of this application can significantly reduce the device's overhead in ciphertext transmission.
  • the aforementioned first message includes a verification message
  • the aforementioned verification message and the aforementioned second message include synchronization verification information
  • the aforementioned verification message and the aforementioned synchronization verification information are denoted by
  • the aforementioned synchronization verification information includes the identification ID of the aforementioned verification message, the sequence number of the clock cycle when the aforementioned verification message is sent, and the verification of the data in the aforementioned second message. test value.
  • the transmitted messages between the two transmission interfaces can be used to modify the real-time constrained communication of each other, complete the real-time constrained communication solution of the transmission network, and realize the real-time communication transformation of the network. This builds real-time functionality in redundant communication scenarios.
  • the first control unit is a control unit included in the steering system in the aforementioned vehicle, a control unit included in the braking system in the aforementioned vehicle, a control unit included in the power system in the aforementioned vehicle, the aforementioned vehicle.
  • control units are units with high functional safety level requirements.
  • a heterogeneous redundant communication network for these units, it can be ensured that the data of these units can be transmitted accurately and quickly to meet the requirements of the corresponding functional safety level.
  • the aforementioned first control unit is a control unit included in the VDC system in the aforementioned vehicle, a vehicle control unit VCU in the aforementioned VDC system, or a control unit of the autonomous driving and assistance system ADAS;
  • the aforementioned first control unit communicates with the P second control units in the aforementioned vehicle through the aforementioned first transmission interface;
  • the communication network connected to the first transmission interface has a bus topology structure
  • the communication network connected to the second transmission interface has a star topology structure
  • the aforementioned first control unit is the control unit of the VDC system in the aforementioned vehicle, the vehicle control unit VCU in the aforementioned VDC system, or the control unit of the autonomous driving and assistance system ADAS;
  • the aforementioned first control unit communicates with the P second control units in the aforementioned vehicle through the aforementioned first transmission interface; the aforementioned P is an integer greater than 0;
  • the aforementioned first control unit communicates with the aforementioned P second control units through the aforementioned second transmission interface.
  • the communication network connected to the first transmission interface and the second transmission interface is a bus topology.
  • the aforementioned first control unit is the control unit of the VDC system in the aforementioned vehicle, the vehicle control unit VCU in the aforementioned VDC system, or the control unit of the autonomous driving and assistance system ADAS;
  • the aforementioned first control unit communicates with the P second control units in the aforementioned vehicle through the aforementioned first transmission interface; the aforementioned P is an integer greater than 0;
  • the first control unit communicates with the switching unit in the vehicle through the second transmission interface, and the switching unit is used to forward messages sent by the first control unit to the second control unit through the second transmission interface.
  • the communication network connected to the first transmission interface has a bus topology structure
  • the communication network connected to the second transmission interface has a switched network structure
  • this application provides a communication method in a vehicle, which method includes:
  • the aforementioned second control unit receives the second message through the second transmission interface
  • the data in the first message and the data in the second message are related, and the communication protocols followed by the first transmission interface and the second transmission interface are different.
  • the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the first target data, and the first message includes The data is verification information, and the verification information is used to verify the first target data.
  • the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the second target data, and the first message includes The data of is the first data, and the first data is part of the data in the second target data.
  • the correlation between the data in the first message and the data in the second message may include the following situations: the data in the first message is the second data, and the data in the second message is the third data, The second data and the third data are respectively part of the third target data, and the third target data is the data to be received by the second control unit within one or more clock cycles. The second data and the third data are used to restore the third target data.
  • the above-mentioned first message and second message can come from the first control unit, and data can be transmitted between the first control unit and the second control unit through two transmission interfaces following different communication protocols.
  • the two The data transmitted by the transmission interface is related, that is, using heterogeneous redundant communication methods, which can solve the problem of external interaction failure of the control unit due to defects in the same transmission technology, improve the interaction performance of the control unit, and also improve the Communication security and reliability of the control unit.
  • the aforementioned first message includes N1 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M1 messages corresponding to the aforementioned second transmission interface, and is encapsulated into the aforementioned N1
  • the data in each packet is the same as the data encapsulated in the aforementioned M1 packets, and both the aforementioned N1 and the aforementioned M1 are integers greater than 0.
  • the data transmitted by the first transmission interface and the second transmission interface are the same, ensuring that the unit that receives these data (hereinafter referred to as the second control unit for short) can receive these data.
  • the two transmission interfaces follow different communication protocols, which can solve the problem of external interaction failure of the control unit due to defects in the same transmission technology.
  • the aforementioned first message includes N3 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M3 messages corresponding to the aforementioned second transmission interface
  • the aforementioned M3 messages The data included in the text is the second target data
  • the data of the aforementioned N3 messages is the first data
  • the aforementioned first data is part of the aforementioned second target data
  • the aforementioned N3 and the aforementioned M3 are both integers greater than 0.
  • the aforementioned first message includes N4 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M4 messages corresponding to the aforementioned second transmission interface
  • the aforementioned first message The data in the message is the second data
  • the data in the second message is the third data
  • the second data and the third data are part of the third target data respectively
  • the third target data is the first control data.
  • the data to be sent by the unit within one or more clock cycles, the aforementioned N4 and the aforementioned M4 are both integers greater than 0.
  • this differentiated encryption transmission method can reduce the dependence of transmission encryption on encryption algorithms, and can achieve high-level ciphertext transmission without the need for complex encryption algorithms.
  • the embodiments of this application can significantly reduce the device's overhead in ciphertext transmission.
  • the first message includes a verification message
  • the aforementioned second message is determined to be valid
  • the aforementioned verification message and the aforementioned second message include synchronization verification information
  • the aforementioned synchronization verification information includes the identification ID of the aforementioned verification message, the location where the aforementioned verification message is sent, and The sequence number of the clock cycle and the check value of the data in the aforementioned second message;
  • the aforementioned second message is determined to be valid, including:
  • the aforementioned second message is received by the aforementioned second control unit within a preset time period after the aforementioned second control unit receives the aforementioned verification message, and the aforementioned synchronization verification information in the aforementioned second message is consistent with the aforementioned verification message. If the synchronization check information in the two messages is the same, the second message is determined to be valid.
  • the transmitted messages between the two transmission interfaces can be used to modify the real-time constrained communication of each other, complete the real-time constrained communication solution of the transmission network, and realize the real-time communication transformation of the network. This builds real-time functionality in redundant communication scenarios.
  • the time when the aforementioned first message is received by the aforementioned second control unit is later than the time when the aforementioned second message is received by the aforementioned second control unit;
  • the aforementioned second control unit After the aforementioned second control unit receives the second message through the second transmission interface, it also includes:
  • the aforementioned second control unit performs calculation based on the data in the aforementioned second message.
  • the second control unit after receiving the first message through the first transmission interface, the second control unit further includes:
  • the aforementioned second control unit performs verification processing on the data in the aforementioned first message and the aforementioned second message.
  • the aforementioned second control unit performs verification processing on the data in the aforementioned first message and the aforementioned second message, including:
  • the second control unit When it is determined that the data in the first message is different from the data in the second message, the second control unit receives the third message through the second transmission interface based on a retransmission mechanism;
  • the second control unit executes an error correction strategy on the data in the first message.
  • the communication network where the second transmission interface is located has a larger transmission bandwidth and can transmit the above-mentioned second message to the second control unit quickly. Then, the second control unit can first based on the received second message. Calculations were performed using the data in the text. Verify after receiving the data in the first message.
  • the example of this application can complete the two-step operation of receiving and data processing within the original time of receiving data, significantly improving communication and data processing efficiency.
  • the aforementioned second control unit is a control unit included in the steering system in the aforementioned vehicle, a control unit included in the braking system in the aforementioned vehicle, a control unit included in the power system in the aforementioned vehicle, the aforementioned vehicle.
  • the aforementioned second control unit is a control unit included in the steering system in the aforementioned vehicle, a control unit included in the braking system in the aforementioned vehicle, or a control unit included in the power system in the aforementioned vehicle;
  • the aforementioned second control unit communicates with the aforementioned first control unit through the aforementioned first transmission interface.
  • the aforementioned second control unit also communicates with the aforementioned first control unit through the aforementioned second transmission interface.
  • the aforementioned first control unit is a body domain in the aforementioned vehicle.
  • the second control unit communicates with the switching unit in the vehicle through the second transmission interface, and the switching unit is used to forward the data from the second control unit to the first control unit through the second transmission interface. messages sent by the unit.
  • a control unit includes:
  • a sending unit configured to send the first message through the first transmission interface
  • the aforementioned sending unit is also used to send the second message through the second transmission interface
  • the data in the first message and the data in the second message are related, and the communication protocols followed by the first transmission interface and the second transmission interface are different.
  • the aforementioned first transmission interface is a controller area network CAN interface
  • the aforementioned second transmission interface is a vehicle-mounted Ethernet interface.
  • the correlation between the data in the first message and the data in the second message may include the following situation: the data in the first message and the data in the second message are the same.
  • the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the first target data, and the first message includes The data is verification information, and the verification information is used to verify the first target data.
  • the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the second target data, and the first message includes The data of is the first data, and the first data is part of the data in the second target data.
  • the correlation between the data in the first message and the data in the second message may include the following situations: the data in the first message is the second data, and the data in the second message is the third data, The second data and the third data are respectively part of the third target data, and the third target data is the data to be sent by the first control unit within one or more clock cycles. The second data and the third data are used to restore the third target data.
  • the aforementioned first message includes N1 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M1 messages corresponding to the aforementioned second transmission interface, and is encapsulated into the aforementioned N1
  • the data in each packet is the same as the data encapsulated in the aforementioned M1 packets, and both the aforementioned N1 and the aforementioned M1 are integers greater than 0.
  • the data in the aforementioned second message includes the data to be sent by the aforementioned first control unit within one or more clock cycles; or,
  • the aforementioned first situation includes at least one of the following situations: the aforementioned second message is a message sent by the aforementioned first control unit in response to the data collection request of the data collection unit, and the aforementioned second message is a broadcast message or a multicast message. message, or the aforementioned second message is a message sent by the aforementioned first control unit in response to a request from the vehicle status monitoring unit;
  • the aforementioned second situation includes that the data in the aforementioned second message is information for controlling the aforementioned vehicle driving operation.
  • the aforementioned second message includes extended information
  • the aforementioned extended information includes one or more of the following: status information of the subsystem where the aforementioned first control unit is located, control information issued by the aforementioned first control unit. instructions, or the sensor data collected by the aforementioned first control unit.
  • the aforementioned first message includes N2 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M2 messages corresponding to the aforementioned second transmission interface
  • the aforementioned M2 messages The data included in the text is the first target data
  • the data of the aforementioned N2 messages is verification information.
  • the aforementioned verification information is used to verify the aforementioned first target data.
  • the aforementioned N2 and the aforementioned M2 are both integers greater than 0.
  • the aforementioned first message includes N3 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M3 messages corresponding to the aforementioned second transmission interface
  • the aforementioned M3 messages The data included in the text is the second target data
  • the data of the aforementioned N3 messages is the first data
  • the aforementioned first data is part of the aforementioned second target data
  • the aforementioned N3 and the aforementioned M3 are both integers greater than 0.
  • the aforementioned first message includes N4 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M4 messages corresponding to the aforementioned second transmission interface
  • the aforementioned first message The data in the message is the second data
  • the data in the second message is the third data
  • the second data and the third data are part of the third target data respectively
  • the third target data is the first control data.
  • the data to be sent by the unit in one or more clock cycles, the aforementioned N4 and the aforementioned M4 are both integers greater than 0.
  • the aforementioned second data and the aforementioned third data are used to restore the aforementioned third target data.
  • the aforementioned first message includes a verification message
  • the aforementioned verification message and the aforementioned second message include synchronization verification information
  • the aforementioned verification message and the aforementioned synchronization verification information are denoted by
  • the aforementioned synchronization verification information includes the identification ID of the aforementioned verification message, the sequence number of the clock cycle when the aforementioned verification message is sent, and the verification of the data in the aforementioned second message. test value.
  • the first control unit is a control unit included in the steering system in the aforementioned vehicle, a control unit included in the braking system in the aforementioned vehicle, a control unit included in the power system in the aforementioned vehicle, the aforementioned vehicle.
  • the aforementioned first control unit is a control unit included in the VDC system in the aforementioned vehicle, a vehicle control unit VCU in the aforementioned VDC system, or a control unit of the autonomous driving and assistance system ADAS;
  • the aforementioned first control unit communicates with the P second control units in the aforementioned vehicle through the aforementioned first transmission interface;
  • the aforementioned first control unit communicates with the aforementioned P second control units respectively through the P aforementioned second transmission interfaces;
  • the aforementioned first control unit is the control unit of the VDC system in the aforementioned vehicle, the vehicle control unit VCU in the aforementioned VDC system, or the control unit of the autonomous driving and assistance system ADAS;
  • the aforementioned first control unit communicates with the P second control units in the aforementioned vehicle through the aforementioned first transmission interface; the aforementioned P is an integer greater than 0;
  • the aforementioned first control unit communicates with the aforementioned P second control units through the aforementioned second transmission interface.
  • the aforementioned first control unit is the control unit of the VDC system in the aforementioned vehicle, the vehicle control unit VCU in the aforementioned VDC system, or the control unit of the autonomous driving and assistance system ADAS;
  • the aforementioned first control unit communicates with the P second control units in the aforementioned vehicle through the aforementioned first transmission interface; the aforementioned P is an integer greater than 0;
  • the first control unit communicates with the switching unit in the vehicle through the second transmission interface, and the switching unit is used to forward messages sent by the first control unit to the second control unit through the second transmission interface.
  • the aforementioned receiving unit is also used to receive the second message through the second transmission interface
  • the data in the first message and the data in the second message are related, and the communication protocols followed by the first transmission interface and the second transmission interface are different.
  • the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the first target data, and the first message includes The data is verification information, and the verification information is used to verify the first target data.
  • the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the second target data, and the first message includes The data of is the first data, and the first data is part of the data in the second target data.
  • the correlation between the data in the first message and the data in the second message may include the following situations: the data in the first message is the second data, and the data in the second message is the third data, The second data and the third data are respectively part of the third target data, and the third target data is the data to be sent by the first control unit within one or more clock cycles. The second data and the third data are used to restore the third target data.
  • the aforementioned first message includes N1 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M1 messages corresponding to the aforementioned second transmission interface, and is encapsulated into the aforementioned N1
  • the data in each packet is the same as the data encapsulated in the aforementioned M1 packets, and both the aforementioned N1 and the aforementioned M1 are integers greater than 0.
  • the aforementioned first message includes N2 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M2 messages corresponding to the aforementioned second transmission interface
  • the aforementioned M2 messages The data included in the text is the first target data
  • the data of the aforementioned N2 messages is verification information.
  • the aforementioned verification information is used to verify the aforementioned first target data.
  • the aforementioned N2 and the aforementioned M2 are both integers greater than 0.
  • the aforementioned first message includes N3 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M3 messages corresponding to the aforementioned second transmission interface
  • the aforementioned M3 messages The data included in the text is the second target data
  • the data of the aforementioned N3 messages is the first data
  • the aforementioned first data is part of the aforementioned second target data
  • the aforementioned N3 and the aforementioned M3 are both integers greater than 0.
  • the aforementioned first message includes N4 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M4 messages corresponding to the aforementioned second transmission interface
  • the aforementioned first message The data in the message is the second data
  • the data in the second message is the third data
  • the second data and the third data are part of the third target data respectively
  • the third target data is the first control data.
  • the data to be sent by the unit within one or more clock cycles, the aforementioned N4 and the aforementioned M4 are both integers greater than 0.
  • the aforementioned second data and the aforementioned third data are used to restore the aforementioned third target data.
  • the first message includes a verification message
  • the aforementioned second message is determined to be valid
  • the second message is received by the second control unit after exceeding the preset time period, the second message is determined to be invalid.
  • the aforementioned verification message and the aforementioned second message include synchronization verification information
  • the aforementioned synchronization verification information includes the identification ID of the aforementioned verification message, the location where the aforementioned verification message is sent, and The sequence number of the clock cycle and the verification value of the data in the second message; the second message is received by the second control unit within a preset time after the second control unit receives the verification message.
  • the aforementioned second message was determined to be valid, including:
  • the aforementioned second message is received by the aforementioned second control unit within a preset time period after the aforementioned second control unit receives the aforementioned verification message, and the aforementioned synchronization verification information in the aforementioned second message is consistent with the aforementioned verification message. If the synchronization check information in the two messages is the same, the second message is determined to be valid.
  • the time when the aforementioned first message is received by the aforementioned second control unit is later than the time when the aforementioned second message is received by the aforementioned second control unit;
  • the above-mentioned second control unit also includes a calculation unit, configured to perform calculations based on the data in the above-mentioned second message after the above-mentioned receiving unit receives the second message through the second transmission interface.
  • the above-mentioned second control unit further includes a verification unit, configured to perform verification on the above-mentioned first message and the above-mentioned second message after the aforementioned receiving unit receives the first message through the first transmission interface. The data is verified.
  • the aforementioned verification unit is specifically used for:
  • the aforementioned second control unit is a control unit included in the steering system in the aforementioned vehicle, a control unit included in the braking system in the aforementioned vehicle, a control unit included in the power system in the aforementioned vehicle, the aforementioned vehicle.
  • the aforementioned second control unit is a control unit included in the steering system in the aforementioned vehicle, a control unit included in the braking system in the aforementioned vehicle, or a control unit included in the power system in the aforementioned vehicle;
  • the aforementioned second control unit communicates with the aforementioned first control unit through the aforementioned first transmission interface.
  • the aforementioned second control unit also communicates with the aforementioned first control unit through the aforementioned second transmission interface.
  • the aforementioned first control unit is a body domain in the aforementioned vehicle.
  • the second control unit communicates with the switching unit in the vehicle through the second transmission interface, and the switching unit is used to forward the data from the second control unit to the first control unit through the second transmission interface. Messages sent by the unit.
  • the first transmission interface is a controller area network CAN interface
  • the second transmission interface is a vehicle Ethernet interface
  • inventions of the present application provide a communication system.
  • the communication system includes a first control unit and a second control unit.
  • the aforementioned first control unit is used to execute the method described in any one of the above-mentioned first aspects.
  • the aforementioned third control unit The two control units are used to execute the method described in any one of the above second aspects.
  • a controller which includes a control unit and a memory.
  • the memory is coupled to the control unit.
  • the control unit executes the computer program or computer instructions stored in the memory, the method described in any one of the above first aspects can be implemented.
  • the device may also include a transmission interface, which is used for the device to communicate with other devices.
  • the transmission interface may be a transceiver, a circuit, a bus, a module, or other types of transmission interfaces.
  • the device may include:
  • Memory for storing computer programs or computer instructions
  • Control unit for:
  • the data in the first message and the data in the second message are related, and the communication protocols followed by the first transmission interface and the second transmission interface are different.
  • the computer program or computer instructions in the memory in this application can be stored in advance or downloaded from the Internet when using the device.
  • This application does not specifically limit the source of the computer program or computer instructions in the memory.
  • the coupling in the embodiment of this application is an indirect coupling or connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information interaction between devices, units or modules.
  • a controller which includes a control unit and a memory.
  • the memory is coupled to the control unit.
  • the control unit executes the computer program or computer instructions stored in the memory, the method described in any one of the above second aspects can be implemented.
  • the device may also include a transmission interface, which is used for the device to communicate with other devices.
  • the transmission interface may be a transceiver, a circuit, a bus, a module, or other types of transmission interfaces.
  • the device may include:
  • Memory for storing computer programs or computer instructions
  • Control unit for:
  • the data in the first message and the data in the second message are related, and the communication protocols followed by the first transmission interface and the second transmission interface are different.
  • the computer program or computer instructions in the memory in this application can be stored in advance or downloaded from the Internet when using the device.
  • This application does not specifically limit the source of the computer program or computer instructions in the memory.
  • the coupling in the embodiment of this application is an indirect coupling or connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information interaction between devices, units or modules.
  • embodiments of the present application provide a chip, which includes a processor and a memory, wherein the memory is used to store computer programs or computer instructions, and the processor is used to execute the computer program or computer instructions stored in the memory,
  • the aforementioned chip is caused to perform the method described in any one of the above first aspects.
  • embodiments of the present application provide a chip, which includes a processor and a memory, wherein the memory is used to store computer programs or computer instructions, and the processor is used to execute the computer program or computer instructions stored in the memory,
  • the aforementioned chip is caused to perform the method described in any one of the above second aspects.
  • an embodiment of the present application provides a vehicle.
  • the vehicle includes a first control unit and/or a second control unit.
  • the first control unit is used to execute the method described in any one of the first aspects.
  • the second control unit The control unit is configured to execute the method described in any one of the above second aspects.
  • the present application provides a computer-readable storage medium that stores a computer program or computer instructions.
  • the computer program or computer instructions are executed by a processor to implement any one of the above-mentioned first aspects. method described.
  • the present application provides a computer-readable storage medium that stores a computer program or computer instructions.
  • the computer program or computer instructions are executed by a processor to implement any one of the above-mentioned second aspects. method described.
  • the present application provides a computer program product.
  • the computer program product is executed by a processor, any of the methods described in the first aspect will be executed.
  • the present application provides a computer program product.
  • the computer program product is executed by a processor, any of the methods described in the second aspect will be executed.
  • embodiments of the present application provide a chip, which includes a processor, wherein the processor is used to execute a computer program or computer instructions stored in a memory, so that the chip executes any one of the above first aspects.
  • embodiments of the present application provide a chip, which includes a processor, wherein the processor is used to execute a computer program or computer instructions stored in a memory, so that the chip executes any one of the above second aspects.
  • Figure 1A shows a schematic diagram of the communication system architecture provided by an embodiment of the present application
  • Figure 1B shows a schematic diagram of the communication system architecture provided by an embodiment of the present application
  • Figure 1C shows a schematic diagram of the communication system architecture provided by the embodiment of the present application.
  • FIG. 2A shows a schematic diagram of the steering system architecture provided by an embodiment of the present application
  • Figure 2B shows a schematic diagram of the braking system architecture provided by the embodiment of the present application.
  • Figure 4 shows a schematic diagram of message sending provided by the embodiment of the present application
  • Figure 5 shows a schematic diagram of the message sending process provided by the embodiment of the present application.
  • Figure 6 shows a schematic diagram of message sending provided by the embodiment of the present application.
  • Figure 8 shows a schematic diagram of the message format provided by the embodiment of this application.
  • FIGS. 9 and 10 show a schematic structural diagram of a control unit provided by an embodiment of the present application.
  • multiple refers to two or more.
  • “and/or” is used to describe the association of associated objects, indicating three relationships that can exist independently.
  • a and/or B can mean: A exists alone, B exists alone, or both.
  • Descriptions such as "at least one (or at least one) of a1, a2, ... and an” used in the embodiments of this application include the situation where any one of a1, a2, ... and an exists alone. , also includes any combination of any more of a1, a2,...
  • each situation can exist alone; for example, the description of "at least one of a, b, and c" includes a single a , b alone, c alone, a and b combination, a and c combination, b and c combination, or a combination of abc.
  • FIG. 1A , FIG. 1B and FIG. 1C a schematic diagram of an in-vehicle communication system provided by the present application is exemplarily shown.
  • the control unit is both a network node of the first communication network and a network node of the second communication network.
  • the first communication network and the second communication network are mutually redundant communication networks for the control unit. That is, the control unit can communicate with another control unit through the first communication network or communicate with the other control unit through the second communication network.
  • an in-vehicle communication system provided by the embodiment of the present application may be as shown in Figure 1C.
  • the communication system shown in FIG. 1C is different from the communication system shown in FIG. 1A in the topological structure of the second communication network.
  • the second communication network of the communication system shown in Figure 1C is a switched network structure. It can be seen that in the second communication network, in addition to the control unit, a plurality of switching units are also included. These switching units are used to forward data between control units. Each switching unit can be connected to at least two control units through a second communication network interface for forwarding data between the at least two control units.
  • One switching unit can also be connected to another switching unit through the second communication network interface, and the two switching units connected through the second communication network interface can forward data from each other to each other.
  • the network interface in the second communication network can also provide a single point of access for other devices, units or equipment in the vehicle to communicate. That is, the control unit may not pass through the switching unit, but through the second communication network interface. Communicates directly with other devices, units or equipment.
  • VIU Electronic control function
  • ECU electronice control unit
  • the data involved in the above functions may include the operating data of the actuator in the control unit, for example, the motion parameters of the actuator, the working status of the actuator, etc.
  • the data involved in the above functions may also be data collected through the data acquisition unit of the control unit (for example, a sensitive element or sensor).
  • the road information on which the vehicle is traveling or weather information collected through the vehicle's sensitive components are not specifically limited in the embodiments of the present application.
  • the communication protocols followed by the first communication network interface and the second communication network interface are different, that is, the communication protocols followed by the first communication network and the second communication network are different.
  • the first communication network may be a CAN network.
  • the above-mentioned first communication network interface may be a CAN interface.
  • the first communication network and the first communication network interface follow the communication protocol of the CAN network.
  • the above-mentioned second communication network may be vehicle Ethernet.
  • the above-mentioned second communication network interface may be a vehicle-mounted Ethernet interface.
  • the second communication network and the second communication network interface follow the communication protocol of the vehicle Ethernet.
  • the above-mentioned CAN network may be a controller area network with flexible data-rate (CAN with flexible data-rate, CANFD).
  • the CAN interface of the above control unit may be a CANFD bus interface.
  • the above-mentioned CAN network may be a third-generation CAN communication technology network (CAN extra large, CANXL).
  • the CAN interface of the above control unit may be a CANXL bus interface.
  • the above-mentioned vehicle Ethernet interface may be an Ethernet interface of a Fast Ethernet standard such as 10BASE-T1S, 10BASE-T1, 100Base-T1 or 1000Base-T1.
  • a Fast Ethernet standard such as 10BASE-T1S, 10BASE-T1, 100Base-T1 or 1000Base-T1.
  • the first communication network may be a CAN network.
  • the above-mentioned first communication network interface may be a CAN interface.
  • the first communication network and the first communication network interface follow the communication protocol of the CAN network.
  • the above-mentioned second communication network may be a vehicle-mounted wireless network.
  • the above-mentioned second communication network interface may be a vehicle-mounted wireless network interface.
  • the second communication network and the second communication network interface follow the communication protocol of the vehicle wireless network.
  • the above-mentioned second communication network is not limited to the network introduced above.
  • it may also be a Bluetooth network or a vehicle-mounted network defined in the future.
  • the above-mentioned second communication network interface is not limited to the network interface introduced above.
  • it may also be a Bluetooth interface or a vehicle-mounted network interface defined in the future.
  • the embodiments of the present application are not limited to this.
  • the control unit in Figure 1A, Figure 1B and Figure 1C can be a unit with high functional safety.
  • the unit with higher functional safety may be a control unit with an automotive safety integrity level (ASIL) reaching level C or level D or higher.
  • ASIL automotive safety integrity level
  • Units with high functional safety will require a redundant backup mechanism for the main control and system interaction communication links to prevent risks such as control failure caused by the failure of a single communication link.
  • the control unit 1 in the above-mentioned Figures 1A, 1B and 1C can be a control unit included in a vehicle domain controller (vehicle domain controller, VDC) system, or can be a whole vehicle controller in the vehicle.
  • VDC vehicle domain controller
  • control unit vehicle control unit, VCU
  • vehicle control unit can be a control unit included in the autonomous driving and assistance system (advanced driver assistance system, ADAS) in the vehicle.
  • the control unit other than the control unit 1 in the communication system shown in FIG. 1A, FIG. 1B and FIG. 1C may include a control unit included in the steering system in the vehicle, a control unit included in the braking system, or a power unit.
  • the system includes control units, etc.
  • the power system may include front drive motors and rear drive motors. It should be noted that this is only an example and does not constitute a limitation on the embodiments of the present application.
  • the control unit in the above communication system can be any subsystem or controller in the vehicle that requires redundant access, and the embodiment of the present application does not limit this.
  • FIG. 1A, FIG. 1B and FIG. 1C The structure of the communication system shown in FIG. 1A, FIG. 1B and FIG. 1C is only an example and does not constitute a limitation on the embodiments of the present application.
  • the embodiments of this application implement heterogeneous communication technology under dual networks with different communication protocols.
  • heterogeneous network communication By constructing heterogeneous network communication and improving functional safety features, it can solve the problem of common cause failure and the problem of excessive delay overhead caused by communication interaction efficiency in the system. , as well as a series of problems such as the difficulty in expanding the capacity of network access points.
  • This common cause failure refers to the risk of failure of units implemented using related technologies due to the same design defect or quality problem due to the same factor. For example, if serious logic flaws are found in the CAN bus, or there are other unknown design flaws, once the failure occurs, all interfaces using this technology may fail. This leads to system interaction failure, and there is a common factor that causes the system to fail.
  • the control unit includes a first communication network interface and a second communication network interface that are redundant to each other.
  • the following takes the control unit included in the steering system or braking system as an example to introduce the redundant communication interface design scheme of the control unit. See FIG. 2A and FIG. 2B for example.
  • FIG. 2A exemplarily shows a schematic structural diagram of the steering system.
  • the steering system includes steering controller 1 and steering controller 2.
  • the steering controller 1 and the steering controller 2 are the control units included in the above-mentioned steering system. Steering controller 1 and steering controller 2 are connected and can communicate with each other.
  • the steering system also includes power module 1, power module 2, power supply 1, power supply 2, etc.
  • the power module 1 is connected to the steering controller 1 and is used to provide steering control instruction signals to the steering controller 1 .
  • the power module 2 is connected to the steering controller 2 and is used to provide steering control indication signals to the steering controller 2 .
  • the power supply 1 is connected to the steering controller 1 and the power module 1 respectively, and is used to supply power to the steering controller 1 and the power module 1.
  • the power supply 2 is connected to the steering controller 2 and the power module 2 respectively, and is used to supply power to the steering controller 2 and the power module 2 .
  • the steering controller 1 is connected to the first communication network interface and accesses the first communication network through the first communication network interface.
  • the steering controller 2 is connected to the second communication network interface and accesses the second communication network through the second communication network interface.
  • the steering system includes two steering controllers, one steering controller is connected to the first communication network interface, and the other steering controller is connected to the second communication network interface, thus realizing the differentiation of the steering system.
  • Design of redundant communication interface
  • the above-mentioned first communication network interface may be a CAN transceiver.
  • the above-mentioned second communication network interface may be implemented based on a vehicle Ethernet physical layer (PHY), or may be a vehicle Ethernet transceiver.
  • the steering controller may be a micro control unit (MCU), ECU or other processing unit, etc., and the embodiment of the present application does not limit this.
  • the first communication network interface and the second communication network interface may be designed on one of the above-mentioned two steering controllers. That is, the first communication network interface and the second communication network interface can be connected to a steering controller.
  • the steering system may also include one steering controller or two or more steering controllers. Then, the first communication network interface may be connected to any steering controller in the steering system, and the second communication network interface may also be connected to any steering controller in the steering system.
  • Figure 2B illustrates a schematic structural diagram of the braking system.
  • the braking system includes brake controller 1 and brake controller 2.
  • the brake controller 1 and the brake controller 2 are the control units included in the brake system. Brake controller 1 and brake controller 2 are connected and can communicate with each other.
  • the braking system also includes motor drive unit 1, motor drive unit 2, pedal stroke sensor, wheel speed sensor, deceleration sensor, etc.
  • the motor drive unit 1 is connected to the brake controller 1 and is used to drive the motor based on instructions from the brake controller 1 .
  • the motor drive unit 2 is connected to the brake controller 2 and is used to drive the motor based on instructions from the brake controller 2 .
  • the pedal stroke sensor, wheel speed sensor and deceleration sensor are all connected to the two brake controllers to provide corresponding sensing data to the brake controllers.
  • the brake controller 1 is connected to the first communication network interface and accesses the first communication network through the first communication network interface.
  • the brake controller 2 is connected to the second communication network interface and accesses the second communication network through the second communication network interface.
  • the braking system includes two brake controllers, one brake controller is connected to the first communication network interface, and the other brake controller is connected to the second communication network interface, thereby realizing Design of heterogeneous redundant communication interfaces for braking systems.
  • the above-mentioned first communication network interface may be a first transmission transceiver.
  • the above-mentioned second communication network interface may be implemented based on the second communication network PHY, or may be a second communication network transceiver.
  • the brake controller may be an MCU, an ECU, or other processing unit, which is not limited in the embodiment of the present application.
  • the first communication network interface and the second communication network interface may be designed on one of the two brake controllers. That is, the first communication network interface and the second communication network interface can be connected to a brake controller.
  • the braking system may also include one brake controller or two or more brake controllers. Then, the first communication network interface can be connected to any brake controller in the braking system, and the second communication network interface can also be connected to any brake controller in the braking system. .
  • heterogeneous redundant communication interfaces of other control units such as the control unit included in the power system, the control unit included in VDC, the control unit included in VCU or ADAS, etc. can refer to the redundant communication interface design of the steering system or braking system mentioned above. , no details will be given in the embodiments of this application.
  • the embodiments of the present application set up mutually redundant heterogeneous network communication interfaces in the control unit, so that the different physical transmission characteristics of the first transmission bus and the second communication network bus can be utilized, and the defects caused by the same transmission technology can be solved.
  • the second communication network is a vehicle-mounted Ethernet, the large bandwidth characteristics of the second communication network can also be used to improve data transmission efficiency.
  • the communication method in the vehicle provided by the embodiment of the present application is introduced below. This method can be exemplarily applied to the control unit of the above communication system. For example, referring to Figure 3, the communication method includes but is not limited to the following steps:
  • the first control unit sends a first message through the first transmission interface, and sends a second message through the second transmission interface.
  • the data in the first message and the data in the second message are related.
  • the first transmission interface and the second transmission interface follow different communication protocols.
  • the above-mentioned first control unit may be a control unit included in the steering system, a control unit included in the braking system, a control unit included in the power system, and a control unit included in the body domain controller VDC system in the vehicle.
  • the first control unit is provided with a first transmission interface and a second transmission interface that are redundant to each other.
  • the first transmission interface may be the above-mentioned first communication network interface
  • the second transmission interface may be the above-mentioned second communication network interface.
  • the design of the first transmission interface and the second transmission interface in the first control unit reference may be made to the design in the above-mentioned FIG. 2A or FIG. 2B and its possible implementations, and will not be described again here.
  • control unit provided with the first transmission interface and the second transmission interface that are redundant to each other can be the first control unit described in the embodiments of this application. unit.
  • the first control unit may send a message to another control unit (referred to as the second control unit for short) through the mutually redundant first transmission interface and the second transmission interface.
  • the message sent by the first control unit to the second control unit through the first transmission interface may be referred to as the first message for short.
  • the message sent by the first control unit to the second control unit through the second transmission interface may be referred to as the second message for short.
  • the data in the first message and the data in the second message are related. The correlation between the data in the first message and the second message will be further introduced later, which will not be described in detail here.
  • the data in the first message refers to the payload in the first message
  • the data in the second message refers to the payload in the second message.
  • the second control unit receives the first message through the third transmission interface, and receives the second message through the fourth transmission interface.
  • the third transmission interface and the fourth transmission interface follow different communication protocols.
  • the second control unit may be a control unit included in the VDC system in the vehicle.
  • the first message and the second message sent by the first control unit to the second control unit may include control information or instruction information.
  • the embodiment of the present application does not limit the information included in the first message and the second message.
  • the second control unit may be a control unit included in the vehicle.
  • the first message and the second message sent by the first control unit to the second control unit may include sensor data collected by the first control unit, etc.
  • the embodiment of the present application does not limit the information included in the first message and the second message.
  • the second control unit is provided with a third transmission interface and a fourth transmission interface that are redundant to each other.
  • the third transmission interface may be the above-mentioned first communication network interface
  • the fourth transmission interface may be the above-mentioned second communication network interface.
  • the design of the third transmission interface and the fourth transmission interface in the second control unit reference may be made to the design in the above-mentioned FIG. 2A or FIG. 2B and its possible implementations, and will not be described again here.
  • control unit provided with the third transmission interface and the fourth transmission interface that are mutually redundant can be the second control unit described in the embodiments of this application. unit.
  • the first control unit after the above-mentioned first control unit sends the first message through the first transmission interface, the first message is transmitted to the first communication network through the first transmission interface, and the first message is transmitted through the first communication network. transmitted to the second control unit.
  • the first communication network may be the first communication network in the above-mentioned FIG. 1A, FIG. 1B or FIG. 1C.
  • the second control unit receives the first message through the third transmission interface.
  • the second message is transmitted to the second communication network through the second transmission interface, and the second message is transmitted to the second communication network through the second communication network.
  • Second control unit may be the second communication network in the above-mentioned FIG. 1A, FIG. 1B or FIG. 1C.
  • the second control unit receives the second message through the fourth transmission interface.
  • the first control unit accesses the first communication network through the first transmission interface and accesses the second communication network through the second transmission interface.
  • the second control unit is connected to the first communication network through the third transmission interface, and is connected to the second communication network through the fourth transmission interface.
  • the first communication network and the second communication network are mutually redundant.
  • the correlation between the data in the first message and the data in the second message may include the following situation: the data in the first message and the data in the second message are the same. .
  • the above-mentioned first message includes N1 messages that comply with the communication protocol of the above-mentioned first communication network.
  • the messages that comply with the communication protocol of the first communication network will be referred to as the first communication network for short. message.
  • the N1 first communication network messages are sent through the above-mentioned first transmission interface, and the N1 first communication network messages can also be called N1 messages corresponding to the first transmission interface.
  • the above-mentioned second message includes M1 messages complying with the communication protocol of the above-mentioned second communication network.
  • the messages complying with the communication protocol of the second communication network will be referred to as the second communication network message for short.
  • the M1 second communication network messages are sent through the above-mentioned second transmission interface, and the M1 second communication network messages can also be called M1 messages corresponding to the second transmission interface. Both N1 and M1 are integers greater than 0. Then, the data included in the N1 first communication network packets and the data included in the M1 second communication network packets are the same.
  • the transmission bandwidth of the second communication network is greater than the transmission bandwidth of the first communication network
  • the data length of the second communication network message is greater than the data length of the first communication network message. Therefore, when transmitting the same data, compared with the first communication network, the data transmission can be completed through the second communication network in less transmission time and fewer messages.
  • the following takes the first communication network as the CAN network (the first communication network messages are CAN messages) and the second communication network as the vehicle Ethernet network (the second communication network messages are Ethernet messages) as an example.
  • the payload length of the Ethernet message is larger, more bytes of data can be loaded.
  • the longest length of an Ethernet message is 1518 bytes, and the longest payload can be 1476 bytes.
  • the payload length of the Ethernet packet may be different.
  • the payload length of CAN messages is smaller and the amount of data loaded is smaller.
  • a CAN message is about 11 bytes, of which the Payload can hold up to 8 bytes.
  • the Payload of the CAN FD message can only load up to 64 bytes. Therefore, if you want to transmit the same data through the CAN network and the vehicle Ethernet network respectively, you need to use more CAN messages to load the data, and only need to use fewer Ethernet messages to load the data.
  • the communication bandwidth of the above-mentioned CAN network is small (for example, 1Mbps, etc.), and the communication bandwidth of the above-mentioned vehicle Ethernet network is large (for example, 10Mbps, 100Mbps, or 1000Mbps, etc.), then, at the same clock
  • the M1 second communication network messages that is, the M1 Ethernet messages
  • the N1 first communication network messages that is, the N1 CAN messages. That is to say, the transmission efficiency of data transmission through the vehicle Ethernet network is higher and the transmission time overhead is smaller.
  • Figure 4 takes a clock cycle as an example.
  • the clock cycle is also called the oscillation cycle and is defined as the reciprocal of the clock frequency.
  • a clock cycle is the most basic and smallest unit of time in a computer.
  • One clock cycle may be, for example, 10 milliseconds or a multiple of 10 milliseconds, etc. This is not limited in the embodiment of the present application.
  • the first control unit sends data to the second control unit.
  • the first control unit can send this data to the second control unit via the mutually redundant CAN network and the vehicle Ethernet network.
  • the first control unit When sending the data through the CAN network, the first control unit can encapsulate the data into a CAN message. Since the payload length of the CAN message is small, multiple CAN messages (in Figure 4, five CAN messages are used to load the data as an example) can be used to load the data. Then, the first control unit sends the multiple CAN messages through the first transmission interface, and the multiple CAN messages are transmitted to the second control unit through the CAN network. Transmitted to the second control unit is received by the second control unit.
  • the first control unit When sending the data through the vehicle Ethernet, the first control unit can encapsulate the data into an Ethernet message. Since the payload length of the Ethernet packet is large, the data can be loaded with a smaller number of Ethernet packets (in Figure 4, one Ethernet packet is used to load the data as an example). Then, the first control unit sends the Ethernet message through the second transmission interface, and the Ethernet message is transmitted to the second control unit through the vehicle Ethernet network.
  • the processing flow of the above-mentioned first control unit sending data through the CAN network and the vehicle-mounted Ethernet can be exemplarily shown in Figure 5 .
  • the first control unit begins to organize data, which may be data within one or more clock cycles, for example.
  • the first control unit can split the data into several parts based on the CAN protocol, load the split data, and package it to generate multiple CAN messages.
  • the multiple CAN messages are sent through the CAN network.
  • the first control unit can load and package the data to be sent into an Ethernet message based on the vehicle Ethernet protocol, and then send the Ethernet message through the vehicle Ethernet.
  • the transmission rate of the CAN network is smaller than that of the automotive Ethernet.
  • the time to transmit a CAN message is longer than the time to transmit an Ethernet message.
  • a CAN message is sent through the CAN network. It takes approximately 0.26 milliseconds (ms), that is, T1, T2, T3, T4, and T5 in FIG. 4 are approximately 0.26 ms.
  • T1' in Figure 4 is approximately 0.028ms.
  • multiple CAN messages need to be transmitted but only one Ethernet message needs to be transmitted. It can be seen that transmitting data through vehicle Ethernet can greatly improve the transmission efficiency.
  • the Ethernet message sent through the vehicle Ethernet takes T1’ to be transmitted to the second control unit, that is, it only takes T1’ to transmit the data to the second control unit through the vehicle Ethernet.
  • Multiple CAN messages sent through the CAN network require (T1+T2+T3+T4+T5) time to be fully transmitted to the second control unit, that is, it takes (T1+T2 +T3+T4+T5) time. Then, after the second control unit receives the Ethernet message through the vehicle Ethernet and obtains the data, it can first perform calculations based on the obtained data to obtain the first calculation result.
  • the second control unit can parse the Ethernet message to obtain the data in the message. And can cache the obtained data to the local buffer. Then, the second control unit can adopt a priority calculation strategy, import the obtained data into the application or algorithm module for calculation, and obtain the above-mentioned first calculation result.
  • the calculation result can be used as a calculation input for another control unit or application or module, and the embodiment of the present application does not limit this.
  • the second control unit can continue to receive CAN messages.
  • the second control unit can compare the data in the CAN messages and the aforementioned received Ethernet. The data in the message is verified. The specific implementation of the verification will be described in detail later and will not be detailed here.
  • the example of this application can complete the two-step operation of receiving and data processing within the original time of receiving data, significantly improving communication. and data processing efficiency.
  • the second control unit receives the above-mentioned first message (such as the multiple CAN messages in the above-mentioned FIG. 4) and the above-mentioned second message (such as the above-mentioned CAN messages in FIG. 4). After the Ethernet message), verification can be performed based on the data in the first message and the second message.
  • the above-mentioned first message such as the multiple CAN messages in the above-mentioned FIG. 4
  • the above-mentioned second message such as the above-mentioned CAN messages in FIG. 4
  • the data in the first message and the data in the second message can be directly compared. If the two data are the same, it means that the data has not been erroneously or tampered with during the transmission process.
  • the data received is safe data. If the two data are different, it indicates that at least one of the data is abnormal.
  • the second control unit has calculated the first calculation result based on the data in the second message. Then, the second control unit can perform calculations in the same calculation method based on the data in the first message to obtain the second calculation result. If the two calculation results are the same, it means that the data has not been errored or tampered with during the transmission process, and the received data is safe data. If the results of these two calculations are different, it indicates that at least one piece of data is abnormal.
  • the first message transmitted above may include a data check code
  • the second message may also include the same data check code.
  • the second control unit may compare the data check code in the first message with the data check code in the second message. If the data check codes in the two messages are the same, it means that the data did not make errors or was tampered with during the transmission process, and the received data is safe data. If the data check codes in the two packets are different, it indicates that at least one piece of data is abnormal.
  • the data check code may be a hash value calculated by using a hash algorithm on the data encapsulated in the first message or the second message.
  • the above-mentioned data check code may be a data check code calculated by the first control unit for the data encapsulated in the first message or the second message.
  • the first message includes N1 first communication network messages (for example, the 5 CAN messages in Figure 4 above)
  • any one of the N1 first communication network messages may carry the Data check code.
  • the above data check code includes N1 check codes.
  • the N1 check codes are check codes calculated separately for the data encapsulated in each of the N1 first communication network messages.
  • each first communication network message includes a check code
  • the check code is the check code of the data encapsulated in the message.
  • the second message may include the N1 check codes.
  • the first message transmitted above may include a data signature
  • the second message may also include the same data signature.
  • the second control unit may compare the data signature in the first message with the data signature in the second message. If the data signatures in the two messages are the same, it means that the data did not make errors or was tampered with during the transmission process, and the received data is safe. If the data signatures in the two packets are different, it indicates that at least one piece of data is abnormal.
  • the second control unit can use a hash algorithm to calculate the data in the first message to obtain a hash value, and then use the same hash algorithm to calculate the data in the second message.
  • the data is calculated to obtain another hash value. If the two hash values are the same, it means that the data has not been errored or tampered with during transmission, and the received data is safe. If the two hash values are different, it indicates that at least one piece of data is abnormal.
  • the second control unit may send a request to retransmit the data to the first control unit, and may indicate in the request that the second control unit transmits the data through the third data transmission unit with a larger transmission bandwidth.
  • a second communication network such as automotive Ethernet is used to retransmit the data.
  • the first control unit can re-encapsulate the data to generate a new second communication network message (referred to as the third message for short), and then quickly send the third message to the second control unit through the second communication network. unit.
  • the second control unit parses and obtains the data in the third message, and compares the obtained data with the data in the second message.
  • the second control unit may discard the data of the first message, or may request the first control unit to retransmit the data through the first communication network, such as a CAN network.
  • communication jitter occurs due to transmission congestion between the first control unit and the second control unit, which increases the transmission delay of the first message and/or the second message, making it impossible to transmit the message on time. All are transferred to the second control unit. In this case, if the received data is calculated according to the preset time, partial data may be received at this time, resulting in incorrect calculation results. In order to avoid this situation from happening, it is necessary to eliminate the impact of increased transmission delay caused by communication jitter.
  • the impact of communication jitter can be eliminated by reserving time gaps during the communication sending and receiving process.
  • the above-mentioned second control unit may first perform data verification after receiving the above-mentioned second message and the first message. If the data verification fails, it may be due to communication jitter that the second message and/or the first message are not completely received. In this case, you can wait for a preset time period. Then, the data in the received first message and the second message are verified. The data will be calculated after passing the verification.
  • the task processing time is allocated through the adjustment of data verification and the waiting mechanism to ensure that all data is received before calculation is performed, thereby ensuring the correctness of the calculation results and eliminating the impact of communication jitter.
  • the second communication network is a vehicle-mounted Ethernet
  • high-precision time synchronization can be achieved through the vehicle-mounted Ethernet to eliminate the impact of communication jitter.
  • the general precise time protocol gPTP
  • gPTP general precise time protocol
  • the time-sensitive network (TSN) protocol and the Institute of Electrical and Electronics Engineers (IEEE) 802.1Qbv standard can be used.
  • TSN time-sensitive network
  • IEEE 802.1Qbv Institute of Electrical and Electronics Engineers
  • the message sending can be staggered according to the order of time. Time, control the time point when messages are sent, and solve the problem of communication conflicts caused by time synchronization from the source, thus avoiding communication jitter.
  • the first control unit within one clock cycle, has multiple sending opportunities to send messages to the second control unit.
  • the sending opportunity refers to a sending opportunity, and each sending opportunity is pre-configured with transmission resources (time domain resources and/or frequency domain resources) for sending data.
  • the data to be sent in one clock cycle can be divided into several transmissions without having to All these data are encapsulated into a message and sent. For example, assume that within one clock cycle, the first control unit has three sending opportunities to send messages to the above-mentioned second control unit.
  • the first control unit can divide the data that needs to be sent into three parts, and encapsulate one part of the data into a message (for example, an Ethernet message) and send it to the second control unit every time a sending opportunity comes. That is, within this clock cycle, the first control unit can send one message three times to complete the data transmission.
  • a message for example, an Ethernet message
  • each sending opportunity is not limited to sending one message, but may also send multiple messages. This embodiment of the present application does not limit this.
  • the sending trigger signal for sending the message through the first communication network may be the same as the sending trigger signal through the second communication network.
  • the sending trigger signal of the network sending message is the same. That is, the same sending trigger signal is used to control the sending of the two messages.
  • the sending trigger signals of the first message and the second message are the same.
  • the second control unit can be regarded as a data collection unit.
  • the above-mentioned second message is a message sent by the above-mentioned first control unit to the second control unit in response to the data collection request of the second control unit (for example, it may be an Ethernet message transmitted through the above-mentioned vehicle Ethernet).
  • the data that the second control unit requires to be collected is the data of the first control unit in one or more clock cycles, then the first control unit can encapsulate all the data to be sent in the one or more cycles. It is sent within the above-mentioned second message.
  • the data in the second message may include data to be sent by the first control unit within one or more clock cycles.
  • the embodiments of the present application can reduce the message encapsulation and transmission overhead, reduce system complexity, and improve the efficiency of data collection.
  • the first control unit may also send data to one or more other control units.
  • the above-mentioned second message may be a multicast message or a broadcast message, that is, the first control unit transmits the message through multicast or broadcast based on the above-mentioned second communication network (for example, it may be a vehicle-mounted Ethernet).
  • the second message is sent to the second control unit and one or more other control units.
  • the data in the multicast message or broadcast message may include data to be sent by the first control unit within one or more clock cycles. Data distribution is achieved through multicast messages or broadcast messages, which can effectively reduce the overhead of maintaining multiple duplicate effective communication channels during one-to-many communication.
  • the second communication network is vehicle Ethernet
  • the Layer 2 multicast or broadcast mechanism of vehicle Ethernet can be used to effectively implement one-to-many communication.
  • the above-mentioned second control unit is used to specifically control vehicle driving operations (such as emergency braking operations, vehicle driving stability control operations (such as operations to control the vehicle to avoid skidding), etc.), and the above-mentioned first control unit
  • vehicle driving operations such as emergency braking operations, vehicle driving stability control operations (such as operations to control the vehicle to avoid skidding), etc.
  • vehicle driving stability control operations such as operations to control the vehicle to avoid skidding
  • first control unit The unit is configured to send specific information for controlling the driving operation of the vehicle to the second control unit, that is, sending instruction information for operation control.
  • the operation control instruction information sent has high real-time requirements, and the accuracy of the information must be ensured.
  • the number of messages sent by the first control unit through the above-mentioned first communication network (such as the above-mentioned N1)
  • the number of messages sent through the above-mentioned second communication network such as the above-mentioned M1
  • the first communication network as the CAN network
  • the second communication network as the vehicle Ethernet
  • the above-mentioned first message includes N1 CAN messages
  • the N1 CAN messages and the M1 Ethernet messages correspond one to one, and a CAN message and the Ethernet message corresponding to the CAN message can be sent synchronously to ensure the real-time nature of the messages.
  • the one-to-one correspondence between CAN messages and Ethernet messages can also facilitate the verification of data in the messages and improve the accuracy of the data in the messages.
  • the second message can also be extended with information.
  • the extended information may include, for example: the system status of the system where the first control unit is located, the control instructions sent by the first control unit, the sensor data collected by the first control unit, or the intermediate calculation amount calculated by the first control unit. one or more messages.
  • the extended information this is only an example and does not constitute a limitation on the embodiments of the present application.
  • the extended information may also include other information, which is not limited by the embodiments of the present application.
  • the first control unit and the second control unit may utilize different transmission characteristics of the first communication network and the second communication network to implement a differential processing mechanism for data transmission.
  • the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the first target data, and the data in the first message
  • the included data is verification information, and the verification information is used to verify the first target data.
  • the above-mentioned first message includes N2 first communication network messages.
  • the N2 first communication network messages are sent through the above-mentioned first transmission interface, and the N2 first communication network messages can also be called N2 messages corresponding to the first transmission interface.
  • the above-mentioned second message includes M2 second communication network messages.
  • the M2 second communication network messages are sent through the above-mentioned second transmission interface, and the M2 second communication network messages can also be called M2 messages corresponding to the second transmission interface.
  • Both N2 and M2 are integers greater than 0.
  • the data included in the M2 messages is the above-mentioned first target data
  • the data in the N2 messages is verification information used to verify the first target data.
  • the following takes the first communication network as the CAN network (the first communication network messages are CAN messages) and the second communication network as the vehicle Ethernet network (the second communication network messages are Ethernet messages) as an example. See Figure 6 for example.
  • FIG. 6 takes one clock cycle as an example.
  • the first control unit sends the above-mentioned first target data to the second control unit.
  • the first control unit can send the first target data to the second control unit through the mutually redundant CAN network and the vehicle-mounted Ethernet network, and implement verification of the first target data.
  • the first target data can be any data, and the embodiment of the present application does not limit this.
  • the first control unit may send the first target data to the second control unit through the vehicle Ethernet network, and then send the verification information of the first target data to the second control unit through the CAN network.
  • the first control unit may encapsulate the first target data into an Ethernet message. Since the payload length of the Ethernet packet is relatively large, the first target data can be loaded with a smaller number of Ethernet packets (in Figure 6, one Ethernet packet is used as an example to load the first target data). .
  • the first control unit sends the Ethernet message (for example, the above-mentioned second message) through the second transmission interface, and the Ethernet message is transmitted to the second control unit through the vehicle-mounted Ethernet network.
  • the above-mentioned verification information of the first target data may be a verification value calculated by the first control unit based on the first target data.
  • the first control unit can calculate the first target data through a hash algorithm to obtain a hash value, and the hash value is the verification information of the first target data.
  • the first control unit can calculate the first target data through the MD5 algorithm to obtain a hash value, and the hash value is the verification information of the first target data.
  • the embodiment of this application does not limit the specific verification calculation algorithm.
  • the first control unit may encapsulate the verification information of the first target data into a CAN message.
  • one or more CAN messages can be determined based on the amount of verification information (in Figure 6, one CAN message is used to load the verification of the first target data). Information (for example) loads the verification information of the first target data. Then, the first control unit sends the CAN message (for example, the above-mentioned first message) through the first transmission interface, and the CAN message is transmitted to the second control unit through the CAN network.
  • the CAN message for example, the above-mentioned first message
  • the second control unit can first perform preprocessing and other operations on the data in the Ethernet message. For example, after receiving the above-mentioned Ethernet message, the second control unit can parse the Ethernet message to obtain the data in the message. And can cache the obtained data to the local buffer. The second control unit can then perform some preprocessing operations based on the obtained data. For example, a cyclic redundancy check (CRC) can be performed on the data, or a checksum can be used to check whether there are errors during the transmission of the data, such as whether there are bit errors. (0 becomes 1, or 1 becomes 0) etc.
  • CRC cyclic redundancy check
  • the same verification calculation algorithm as the above-mentioned first control unit can be used to calculate the obtained data to obtain another verification value for comparison with the verification information in the CAN message.
  • the second control unit After the second control unit receives the above-mentioned CAN message, it obtains the verification information in the CAN message. Based on the above description, it can be known that the verification information may be a verification value. If the second control unit has calculated the check value of the data in the preprocessing of the data in the Ethernet message obtained above, then the check value obtained from the CAN message can be directly compared with the calculated value. Check value is compared. If the two check values are the same, it means that the data has not been tampered with during transmission, and the received data is safe. If the two check values are different, it indicates that at least one of the data in the Ethernet message and the check information in the CAN message is abnormal.
  • the second control unit does not calculate the check value of the data in the preprocessing of the data in the Ethernet message obtained above, then it can obtain the check value in the CAN message.
  • the data in the Ethernet message is calculated using the same verification calculation algorithm as the above-mentioned first control unit to obtain another verification value. Then, compare the two check values. If the two check values are the same, it means that the data has not been tampered with during transmission, and the received data is safe. If the two check values are different, it indicates that at least one of the data in the Ethernet message and the check information in the CAN message is abnormal.
  • the second control unit can report to the first control unit Sends a request to retransmit the data and can indicate in the request that the data is to be retransmitted via automotive Ethernet.
  • the first control unit can re-encapsulate the above-mentioned first target data to generate a new Ethernet message, and then quickly send the new Ethernet message to the second control unit through the vehicle Ethernet.
  • the second control unit parses and obtains the data in the new Ethernet message, and compares the obtained data with the data in the above-mentioned Ethernet message.
  • the second control unit may discard the verification information of the CAN message, or may request the first control unit to retransmit the verification information through the CAN network.
  • the difference processing mechanism of data transmission in the embodiment of the present application significantly shortens the data transmission time, and can complete the data transmission in a shorter time, and effectively Data verification is completed. This reduces the time cost of joint interaction between control units, reduces the time loss of direct communication between vehicle components, and improves interaction performance.
  • the first control unit and the second control unit may utilize different transmission characteristics of the first communication network and the second communication network to implement a differential processing mechanism for data transmission.
  • the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the second target data, and the data in the first message The included data is first data, and the first data is part of the second target data.
  • the above-mentioned first message includes N3 first communication network messages.
  • the N3 first communication network messages are sent through the above-mentioned first transmission interface, and the N3 first communication network messages can also be called N3 messages corresponding to the first transmission interface.
  • the above-mentioned second message includes M3 second communication network messages.
  • the M3 second communication network messages are sent through the above-mentioned second transmission interface, and the M3 second communication network messages can also be called M3 messages corresponding to the second transmission interface.
  • Both N3 and M3 are integers greater than 0.
  • the data included in the M3 messages is the above-mentioned second target data, and the data in the N3 messages is part of the second target data, that is, the above-mentioned first data.
  • the following takes the first communication network as the CAN network (the first communication network messages are CAN messages) and the second communication network as the vehicle Ethernet network (the second communication network messages are Ethernet messages) as an example. See Figure 7 for an example.
  • FIG. 7 takes one clock cycle as an example.
  • the first control unit sends the above-mentioned second target data to the second control unit.
  • the first control unit may send the second target data to the second control unit through the mutually redundant CAN network and the vehicle Ethernet network.
  • the second target data can be any data, and the embodiment of the present application does not limit this.
  • the first data included in the first message may be any part of the second target data.
  • the first data in the first message can be used to verify the second target data in the received second message.
  • the first control unit may send the second target data to the second control unit through the vehicle-mounted Ethernet network, and then send the first data of the second target data to the second control unit through the CAN network.
  • the first control unit may encapsulate the second target data into an Ethernet message. Since the payload length of the Ethernet packet is relatively large, the second target data can be loaded with a smaller number of Ethernet packets (in Figure 7, one Ethernet packet is used as an example to load the second target data). .
  • the first control unit sends the Ethernet message (for example, the above-mentioned second message) through the second transmission interface, and the Ethernet message is transmitted to the second control unit through the vehicle-mounted Ethernet network.
  • the first control unit may encapsulate the first data of the second target data into a CAN message. Since the length of the payload of the CAN message is small, one or more CAN messages can be determined based on the data amount of the first data (in Figure 7, one CAN message is used to load the second target data). One data (for example) loads the first data of the second target data. Then, the first control unit sends the CAN message (for example, the above-mentioned first message) through the first transmission interface, and the CAN message is transmitted to the second control unit through the CAN network.
  • CAN message for example, the above-mentioned first message
  • the transmission rate of the CAN network is smaller than that of the automotive Ethernet.
  • the time to transmit a CAN message is longer than the time to transmit an Ethernet message.
  • the transmission rate of the CAN network is 500kbps
  • the length of the CAN message is 11 bytes
  • the transmission rate of the vehicle Ethernet is 100Mbps
  • the length of the Ethernet message is 1200 bytes
  • a CAN message is sent through the CAN network. It takes approximately 0.26 milliseconds (ms), that is, T1 in FIG. 7 is approximately 0.26 ms.
  • T2 in Figure 7 is approximately 0.112ms. It can be seen that transmitting the second target data through the vehicle Ethernet can greatly improve the transmission efficiency.
  • the second control unit can first preprocess the second target data in the Ethernet message, etc. operate. For example, after receiving the above-mentioned Ethernet message, the second control unit can parse the Ethernet message to obtain the data in the message. And can cache the obtained data to the local buffer. The second control unit can then perform some preprocessing operations based on the obtained data. For example, the data can be checked by CRC check or checksum check to check whether there are errors in the data during transmission, such as whether there are bit errors (0 becomes 1, or 1 becomes 0), etc. . This is only an example, and the embodiment of the present application does not limit the preprocessing operation.
  • the second control unit After the second control unit receives the above-mentioned CAN message, it obtains the first data in the CAN message.
  • the first data can be used to verify the above-received second target data.
  • the first control unit may mark the first data encapsulated in the second target data of the second message, that is, the Ethernet message.
  • the first data may mark the bits occupied by the first data in the Ethernet message. bits, etc., the embodiments of this application do not limit this.
  • the second control unit After the second control unit receives the Ethernet message, the first data in the second target data in the Ethernet message can be obtained based on the preset mark.
  • the obtained first data can be compared with the first data in the first message, that is, the above-mentioned CAN message, to implement data verification. If the two pieces of data are the same, it means that there were no errors or tampering with the data during transmission, and the received data is safe. If the two pieces of data are different, it means that at least one of the data in the Ethernet message and the data in the CAN message is abnormal.
  • the second control unit may report to the first control unit Sends a request to retransmit the data and can indicate in the request that the data is to be retransmitted via automotive Ethernet. Based on the request, the first control unit can re-encapsulate the second target data to generate a new Ethernet message, and then quickly send the new Ethernet message to the second control unit through the vehicle Ethernet. After receiving the new Ethernet message, the second control unit parses and obtains the data in the new Ethernet message, and compares the obtained data with the data in the above-mentioned Ethernet message.
  • the second control unit may discard the first data of the CAN message, or may request the first control unit to retransmit the first data through the CAN network.
  • the difference processing mechanism of data transmission in the embodiment of the present application significantly shortens the data transmission time, and can complete the data transmission in a shorter time, and effectively Data verification is completed. This reduces the time cost of joint interaction between control units, reduces the time loss of direct communication between vehicle components, and improves interaction performance.
  • the first control unit and the second control unit can utilize different transmission characteristics of the first communication network and the second communication network to implement a differential processing mechanism for data transmission, and through this The difference processing mechanism can achieve the effect of encrypted data transmission.
  • the correlation between the data in the first message and the data in the second message may include the following situations: the data in the first message is the second data, and the data in the second message is the third data.
  • the second data and the third data are respectively partial data in the third target data
  • the third target data is the data to be sent by the first control unit within one or more clock cycles.
  • the second data and the third data are used to restore the third target data.
  • the second data and the third data together are the third target data.
  • the above-mentioned first message includes N4 first communication network messages.
  • the N4 first communication network messages are sent through the above-mentioned first transmission interface, and the N4 first communication network messages can also be called N4 messages corresponding to the first transmission interface.
  • the above-mentioned second message includes M4 second communication network messages.
  • the M4 second communication network messages are sent through the above-mentioned second transmission interface, and the M4 second communication network messages can also be called M4 messages corresponding to the second transmission interface.
  • Both N4 and M4 are integers greater than 0.
  • the data included in the M4 messages is the above-mentioned second target data, and the data in the N4 messages is part of the second target data, that is, the above-mentioned first data.
  • the following takes the first communication network as the CAN network (the first communication network messages are CAN messages) and the second communication network as the vehicle Ethernet network (the second communication network messages are Ethernet messages) as an example.
  • the CAN network and the vehicle-mounted Ethernet can be used to realize data transmission between the first control unit and the second control unit, which has a data encryption effect.
  • high-level encrypted transmission of messages can be achieved by taking advantage of the differences in message formats, message protocols and physical characteristics transmitted by the CAN network and the vehicle-mounted Ethernet network. Due to the versatility and networked nature of Ethernet messages, they are easily captured, cracked, or copied, resulting in information interception. Based on this, the heterogeneous redundant network in the embodiment of the present application can be used to perform high-level encrypted and secure transmission.
  • the data can be divided into two parts according to preset rules, one part is transmitted through the CAN network, and the other part is transmitted through the vehicle Ethernet.
  • the preset rule can be to randomly divide the data into two parts, or it can be to extract data according to a preset byte length interval, and the extracted data is one part, and the remaining data is another part, etc.
  • This application implements For example, there are no restrictions on this default rule.
  • the data sent by the first control unit to the second control unit may be data to be sent by the first control unit within one or more clock cycles, and this embodiment of the present application does not limit this.
  • the first control unit When sending data through the CAN network, the first control unit can encapsulate the data into N4 CAN messages. Then, the first control unit sends the N4 CAN messages through the first transmission interface, and the N4 CAN messages are transmitted to the second control unit through the CAN network.
  • the first control unit When sending the data through the vehicle Ethernet, the first control unit can encapsulate the data into M4 Ethernet messages. Then, the first control unit sends the M4 Ethernet messages through the second transmission interface, and the M4 Ethernet messages are transmitted to the second control unit through the vehicle-mounted Ethernet network.
  • the second control unit After the above-mentioned second control unit receives the above-mentioned N4 CAN messages and M4 Ethernet messages, it can obtain the data in these messages to complete subsequent calculations and processing. This embodiment of the present application does not perform this specific calculation and processing. limit.
  • this differentiated encryption transmission method can reduce the dependence of transmission encryption on encryption algorithms, and can achieve high-level ciphertext transmission without the need for complex encryption algorithms.
  • the embodiments of this application can significantly reduce the device's overhead in ciphertext transmission.
  • the first communication network is a hard real-time system
  • the second communication network is a non-real-time system. Since the communication in the second communication network is non-real-time, it may happen that the second communication network message sent by the first control unit to the second control unit cannot be delivered on time, resulting in an error in the processing result.
  • the current clock cycle is clock cycle 2.
  • the second control unit receives the second communication network message sent by the first control unit in clock cycle 2. .
  • the second communication network message sent by the first control unit is delayed, resulting in the second control unit receiving within clock cycle 2.
  • the above-mentioned first communication network is a CAN network
  • the second communication network is a vehicle-mounted Ethernet.
  • the first message may include a verification message
  • the verification message may be used to verify the real-time nature of the second message.
  • the verification message and the second message may use the same sending trigger signal.
  • the sending trigger signal is generated, the sending operations of the verifying message and the second message are simultaneously triggered.
  • the verification message is transmitted to the second control unit through the first communication network, and the second message is transmitted to the second control unit through the second communication network.
  • the second message is blocked during the transmission process, resulting in a delay in sending the second message to the second control unit.
  • the above verification message will be received by the second control unit before the second message.
  • a preset duration can be set. If the second message is received by the second control unit within the preset time period after the verification message is received, it is determined that the second message is valid. If the second message is not received by the second control unit for more than the preset time period after the verification message is received, the second message is determined to be invalid.
  • the fact that the second message is valid means that it can be used normally to participate in subsequent processing.
  • the invalidity of the second message means that the second message is not a message to be received in the current clock cycle. Invalid packets can be discarded, and the embodiment of the present application does not limit this.
  • the above preset time period does not exceed the clock cycle in which the verification message is transmitted. For example, assume that a clock cycle is 10 seconds, and the verification message is received by the second control unit at the 3rd second of the clock cycle. Then, the preset duration can be any duration between 0 seconds and 7 seconds. The embodiment of this application does not limit the specific value of the preset time period.
  • the verification message is used to verify the real-time nature of the second message.
  • the same synchronization verification information can be set in the verification message and the second message, and the second control unit can determine the verification message and the second message based on the same synchronization verification information. relation.
  • the synchronization verification information may include the identification ID of the verification message, the sequence number of the clock cycle in which the verification message is sent, and the verification value of the data in the second message.
  • the above-mentioned first communication network is a CAN network
  • the verification insulation is a CAN message
  • the second communication network is a vehicle-mounted Ethernet
  • the second message is an Ethernet message. See Figure 8 for example.
  • the data check value may be calculated through CRC check or checksum check on the data 1 to obtain the check value.
  • the data 1 can be user-defined sending data (User define Data).
  • the message identifier, clock cycle sequence number and data check value are the above-mentioned synchronization check information.
  • the synchronization check information is loaded in the bytes of the payload of the CAN message.
  • both the clock cycle sequence number and the data check value can occupy 4 bytes.
  • Ethernet packets the packet identifier can be loaded in the packet header. Then, the clock cycle sequence number, data 1 and data check value can be loaded in the bytes of the payload of the Ethernet message.
  • the second control unit can first obtain the synchronization verification information in the verification message and save it. Then, the second control unit can check the corresponding synchronization verification information in the subsequently received Ethernet message. If the synchronization check information in an Ethernet message is the same as the synchronization check information in the verification message, and the time of receiving the certain Ethernet message is within the preset time after the verification message is received, Within the range, it can be determined that the certain Ethernet message is valid.
  • the above data check value is not limited to the check of data 1, but can also be the check of the entire Ethernet message.
  • the above data check value may be the check value of the entire Ethernet message.
  • the data check value may be calculated through CRC check or checksum check on the entire message to obtain the check value.
  • the transmission delay of messages transmitted on the bus of the network is certain, and there will be no message delay when congestion occurs in the second communication network. Transmission issues. Therefore, the real-time nature of the second communication network message is verified through the hard real-time nature of the first communication network and the certainty of transmission delay. In this way, the certainty and timeliness of the transmitted data are ensured, and the communication system is improved. real-time communication.
  • the embodiments of this application can be applied in data transmission scenarios that are sensitive to business information and sensitive to delay.
  • the solution of this application uses the above-mentioned first communication network and the second communication network to construct a heterogeneous and redundant communication network, realizes heterogeneous communication methods, and solves the common problems of high-function secure communication between systems. due to failure issues.
  • This application solution uses a new communication transmission mechanism, which effectively improves the transmission efficiency. Through the improvement of transmission efficiency, more information can be transmitted, and the transmission time can also be significantly shortened.
  • the calculation method can be changed by shortening the transmission time. By calculating in advance and verifying the transmission results, the interactive computing efficiency of the alignment system can be improved, bringing system benefits. Changed the traditional transmission and calculation model.
  • This application enables a new data transmission method, which can realize highly reliable in-vehicle communication.
  • the transmission can be completed by placing the data on different buses.
  • differential transmission the security of data transmission can be enhanced, the dependence on complex encryption algorithms can be reduced, and the cost of secure communication and encrypted transmission can be reduced.
  • a redundant communication network constructed by a strong real-time first communication network such as the CAN network and a non-real-time second communication network such as vehicle Ethernet, it is possible to correct and constrain the vehicle Ethernet communication through the real-time nature of the CAN network.
  • Real-time complete the real-time constrained communication solution of high-speed transmission network, and realize the real-time communication transformation of Ethernet. This builds real-time performance in redundant communication scenarios.
  • each control unit or device includes a corresponding hardware structure and/or software module for executing each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
  • Embodiments of the present application can divide the device into functional modules according to the above method examples.
  • each functional module can be divided corresponding to each function, or two or more functions can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods.
  • the embodiment of the present application also provides a device for implementing any of the above methods.
  • a device including a first control unit for implementing any of the above methods.
  • another device is provided, including a unit (or means) for implementing each step performed by the second control unit in any of the above methods.
  • FIG. 9 is a schematic structural diagram of a control unit provided by an embodiment of the present application.
  • the control unit 900 shown in FIG. 9 may be the first control unit in the above method embodiment.
  • the control unit 900 includes a sending unit 901. in:
  • Sending unit 901, configured to send the first message through the first transmission interface
  • the aforementioned sending unit 901 is also used to send the second message through the second transmission interface
  • the data in the first message and the data in the second message are related, and the communication protocols followed by the first transmission interface and the second transmission interface are different.
  • the sending unit 901 may be used to implement the sending operation of S301 shown in FIG. 3 above.
  • the aforementioned first transmission interface is a controller area network CAN interface
  • the aforementioned second transmission interface is a vehicle-mounted Ethernet interface.
  • the correlation between the data in the first message and the data in the second message may include the following situation: the data in the first message and the data in the second message are the same.
  • the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the first target data, and the first message includes The data is verification information, and the verification information is used to verify the first target data.
  • the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the second target data, and the first message includes The data of is the first data, and the first data is part of the data in the second target data.
  • the correlation between the data in the first message and the data in the second message may include the following situations: the data in the first message is the second data, and the data in the second message is the third data, The second data and the third data are respectively part of the third target data, and the third target data is the data to be sent by the first control unit within one or more clock cycles. The second data and the third data are used to restore the third target data.
  • the aforementioned first message includes N1 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M1 messages corresponding to the aforementioned second transmission interface, and is encapsulated into the aforementioned N1
  • the data in each packet is the same as the data encapsulated in the aforementioned M1 packets, and both the aforementioned N1 and the aforementioned M1 are integers greater than 0.
  • the data in the aforementioned second message includes the data to be sent by the aforementioned first control unit within one or more clock cycles; or,
  • the aforementioned first situation includes at least one of the following situations: the aforementioned second message is a message sent by the aforementioned first control unit in response to the data collection request of the data collection unit, and the aforementioned second message is a broadcast message or a multicast message. message, or the aforementioned second message is a message sent by the aforementioned first control unit in response to a request from the vehicle status monitoring unit;
  • the aforementioned second situation includes that the data in the aforementioned second message is information for controlling the aforementioned vehicle driving operation.
  • the aforementioned second message includes extended information
  • the aforementioned extended information includes one or more of the following: status information of the subsystem where the aforementioned first control unit is located, control information issued by the aforementioned first control unit. instructions, or the sensor data collected by the aforementioned first control unit.
  • the aforementioned first message includes N2 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M2 messages corresponding to the aforementioned second transmission interface
  • the aforementioned M2 messages The data included in the text is the first target data
  • the data of the aforementioned N2 messages is verification information.
  • the aforementioned verification information is used to verify the aforementioned first target data.
  • the aforementioned N2 and the aforementioned M2 are both integers greater than 0.
  • the aforementioned first message includes N3 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M3 messages corresponding to the aforementioned second transmission interface
  • the aforementioned M3 messages The data included in the text is the second target data
  • the data of the aforementioned N3 messages is the first data
  • the aforementioned first data is part of the aforementioned second target data
  • the aforementioned N3 and the aforementioned M3 are both integers greater than 0.
  • the aforementioned first message includes N4 messages corresponding to the aforementioned first transmission interface
  • the aforementioned second message includes M4 messages corresponding to the aforementioned second transmission interface
  • the aforementioned first message The data in the message is the second data
  • the data in the second message is the third data
  • the second data and the third data are part of the third target data respectively
  • the third target data is the first control data.
  • the data to be sent by the unit in one or more clock cycles, the aforementioned N4 and the aforementioned M4 are both integers greater than 0.
  • the aforementioned second data and the aforementioned third data are used to restore the aforementioned third target data.
  • the aforementioned first message includes a verification message
  • the aforementioned verification message and the aforementioned second message include synchronization verification information
  • the aforementioned verification message and the aforementioned synchronization verification information are denoted by
  • the aforementioned synchronization verification information includes the identification ID of the aforementioned verification message, the sequence number of the clock cycle when the aforementioned verification message is sent, and the verification of the data in the aforementioned second message. test value.
  • the first control unit is a control unit included in the steering system in the aforementioned vehicle, a control unit included in the braking system in the aforementioned vehicle, a control unit included in the power system in the aforementioned vehicle, the aforementioned vehicle.
  • the aforementioned first control unit is a control unit included in the VDC system in the aforementioned vehicle, a vehicle control unit VCU in the aforementioned VDC system, or a control unit of the autonomous driving and assistance system ADAS;
  • the aforementioned first control unit communicates with the P second control units in the aforementioned vehicle through the aforementioned first transmission interface;
  • the aforementioned first control unit communicates with the aforementioned P second control units respectively through the P aforementioned second transmission interfaces;
  • the aforementioned first control unit is the control unit of the VDC system in the aforementioned vehicle, the vehicle control unit VCU in the aforementioned VDC system, or the control unit of the autonomous driving and assistance system ADAS;
  • the aforementioned first control unit communicates with the P second control units in the aforementioned vehicle through the aforementioned first transmission interface; the aforementioned P is an integer greater than 0;
  • the aforementioned first control unit communicates with the aforementioned P second control units through the aforementioned second transmission interface.
  • the aforementioned first control unit is the control unit of the VDC system in the aforementioned vehicle, the vehicle control unit VCU in the aforementioned VDC system, or the control unit of the autonomous driving and assistance system ADAS;
  • the aforementioned first control unit communicates with the P second control units in the aforementioned vehicle through the aforementioned first transmission interface; the aforementioned P is an integer greater than 0;
  • the first control unit communicates with the switching unit in the vehicle through the second transmission interface, and the switching unit is used to forward messages sent by the first control unit to the second control unit through the second transmission interface.
  • FIG. 10 is a schematic structural diagram of another control unit provided by an embodiment of the present application.
  • the control unit 1000 shown in FIG. 10 may be the second control unit in the above method embodiment.
  • the control unit 1000 includes a receiving unit 1001. in:
  • the receiving unit 1001 is used to receive the first message through the third transmission interface
  • the aforementioned receiving unit 1001 is also used to receive the second message through the fourth transmission interface;
  • the data in the first message and the data in the second message are related, and the communication protocols followed by the third transmission interface and the fourth transmission interface are different.
  • the receiving unit 1001 may be used to perform the receiving operation in S302 in Figure 3 above.
  • the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the first target data, and the first message includes The data is verification information, and the verification information is used to verify the first target data.
  • the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the second target data, and the first message includes The data of is the first data, and the first data is part of the data in the second target data.
  • the correlation between the data in the first message and the data in the second message may include the following situations: the data in the first message is the second data, and the data in the second message is the third data, The second data and the third data are respectively part of the third target data, and the third target data is the data to be sent by the first control unit within one or more clock cycles. The second data and the third data are used to restore the third target data.
  • the aforementioned first message includes N1 messages corresponding to the aforementioned third transmission interface
  • the aforementioned second message includes M1 messages corresponding to the aforementioned fourth transmission interface, and is encapsulated into the aforementioned N1
  • the data in each packet is the same as the data encapsulated in the aforementioned M1 packets, and both the aforementioned N1 and the aforementioned M1 are integers greater than 0.
  • the aforementioned first message includes N2 messages corresponding to the aforementioned third transmission interface
  • the aforementioned second message includes M2 messages corresponding to the aforementioned fourth transmission interface
  • the aforementioned M2 messages The data included in the text is the first target data
  • the data of the aforementioned N2 messages is verification information.
  • the aforementioned verification information is used to verify the aforementioned first target data.
  • the aforementioned N2 and the aforementioned M2 are both integers greater than 0.
  • the aforementioned first message includes N3 messages corresponding to the aforementioned third transmission interface
  • the aforementioned second message includes M3 messages corresponding to the aforementioned fourth transmission interface
  • the aforementioned M3 messages The data included in the text is the second target data
  • the data of the aforementioned N3 messages is the first data
  • the aforementioned first data is part of the aforementioned second target data
  • the aforementioned N3 and the aforementioned M3 are both integers greater than 0.
  • the first message includes N4 messages corresponding to the third transmission interface
  • the second message includes M4 messages corresponding to the fourth transmission interface
  • the first message The data in the message is the second data
  • the data in the second message is the third data
  • the second data and the third data are part of the third target data respectively
  • the third target data is the first control data.
  • the data to be sent by the unit within one or more clock cycles, the aforementioned N4 and the aforementioned M4 are both integers greater than 0.
  • the aforementioned second data and the aforementioned third data are used to restore the aforementioned third target data.
  • the first message includes a verification message
  • the aforementioned second message is determined to be valid; or,
  • the second message is received by the second control unit after exceeding the preset time period, the second message is determined to be invalid.
  • the aforementioned verification message and the aforementioned second message include synchronization verification information
  • the aforementioned synchronization verification information includes the identification ID of the aforementioned verification message, the location where the aforementioned verification message is sent, and The sequence number of the clock cycle and the verification value of the data in the second message; the second message is received by the second control unit within a preset time after the second control unit receives the verification message.
  • the aforementioned second message was determined to be valid, including:
  • the aforementioned second message is received by the aforementioned second control unit within a preset time period after the aforementioned second control unit receives the aforementioned verification message, and the aforementioned synchronization verification information in the aforementioned second message is consistent with the aforementioned verification message. If the synchronization check information in the two messages is the same, the second message is determined to be valid.
  • the time when the aforementioned first message is received by the aforementioned second control unit is later than the time when the aforementioned second message is received by the aforementioned second control unit;
  • the above-mentioned second control unit also includes a calculation unit, configured to perform calculations based on the data in the above-mentioned second message after the above-mentioned receiving unit 1001 receives the second message through the fourth transmission interface.
  • the above-mentioned second control unit further includes a verification unit, configured to verify the above-mentioned first message and the above-mentioned second message after the foregoing receiving unit 1001 receives the first message through the third transmission interface. The data in the file is verified.
  • the aforementioned verification unit is specifically used for:
  • the aforementioned second control unit is a control unit included in the steering system in the aforementioned vehicle, a control unit included in the braking system in the aforementioned vehicle, a control unit included in the power system in the aforementioned vehicle, the aforementioned vehicle.
  • the aforementioned second control unit is a control unit included in the steering system in the aforementioned vehicle, a control unit included in the braking system in the aforementioned vehicle, or a control unit included in the power system in the aforementioned vehicle;
  • the aforementioned second control unit communicates with the aforementioned first control unit through the aforementioned third transmission interface.
  • the aforementioned second control unit also communicates with the aforementioned first control unit through the aforementioned fourth transmission interface.
  • the aforementioned first control unit is a body domain in the aforementioned vehicle.
  • the second control unit communicates with the switching unit in the vehicle through the fourth transmission interface, and the switching unit is used to forward the information from the second control unit to the first control unit through the fourth transmission interface. Messages sent by the unit.
  • the third transmission interface is a controller area network CAN interface
  • the fourth transmission interface is a vehicle Ethernet interface
  • each unit in the above device (such as the above-mentioned control unit 900 or control unit 1000) is only a division of logical functions. In actual implementation, it can be fully or partially integrated into a physical entity, or it can also be physically separated.
  • the unit in the device can be implemented in the form of a processor calling software; for example, the device includes a processor, the processor is connected to a memory, instructions are stored in the memory, and the processor calls the instructions stored in the memory to implement any of the above methods.
  • the processor is, for example, a general-purpose processor, such as a central processing unit (CPU) or a microprocessor
  • the memory is a memory within the device or a memory outside the device.
  • the units in the device can be implemented in the form of hardware circuits, and some or all of the functions of the units can be implemented through the design of the hardware circuits, which can be understood as one or more processors; for example, in one implementation,
  • the hardware circuit is an application-specific integrated circuit (ASIC), which realizes the functions of some or all of the above units through the design of the logical relationships of the components in the circuit; for another example, in another implementation, the hardware circuit is It can be realized by programmable logic device (PLD), taking field programmable gate array (FPGA) as an example, which can include a large number of logic gate circuits, and the logic gate circuits are configured through configuration files.
  • PLD programmable logic device
  • FPGA field programmable gate array
  • All units of the above device may be fully realized by the processor calling software, or may be fully realized by hardware circuits, or part of the units may be realized by the processor calling software, and the remaining part may be realized by hardware circuits.
  • the processor is a circuit with signal processing capabilities.
  • the processor may be a circuit with instruction reading and execution capabilities, such as a CPU, a microprocessor, and a graphics processor. (graphics processing unit, GPU) (can be understood as a microprocessor), or digital signal processor (digital signal processor, DSP), etc.; in another implementation, the processor can achieve certain functions through the logical relationship of the hardware circuit. Function, the logical relationship of the hardware circuit is fixed or can be reconstructed, such as the hardware circuit implemented by the processor for ASIC or PLD, such as FPGA.
  • the process of the processor loading the configuration file and realizing the hardware circuit configuration can be understood as the process of the processor loading instructions to realize the functions of some or all of the above units.
  • it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a neural network processing unit (Neural Network Processing Unit, NPU), a tensor processing unit (TPU), a deep learning processing unit (deep learning processing unit, DPU), etc.
  • NPU Neural Network Processing Unit
  • TPU tensor processing unit
  • DPU deep learning processing unit
  • each unit in the above device can be one or more processors (or processing circuits) configured to implement the above method, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA , or a combination of at least two of these processor forms.
  • processors or processing circuits
  • each unit in the above device may be integrated together in whole or in part, or may be implemented independently. In one implementation, these units are integrated together and implemented as a system-on-a-chip (SOC).
  • SOC may include at least one processor for implementing any of the above methods or implementing the functions of each unit of the device.
  • the at least one processor may be of different types, such as a CPU and an FPGA, a CPU and an artificial intelligence processor, CPU and GPU etc.
  • FIG. 11 is a schematic structural diagram of a possible physical entity of the control unit provided by this application.
  • the control unit 1100 shown in FIG. 11 may be the first control unit in the method described in the above embodiment.
  • the control unit 1100 includes: a processor 1101, a memory 1102 and a communication interface 1103.
  • the processor 1101, the communication interface 1103, and the memory 1102 may be connected to each other or to each other via a bus 1104.
  • the communication interface 1103 may include the first transmission interface and the second transmission interface in the above-mentioned first control unit.
  • the memory 1102 is used to store computer programs and data of the control unit 1100.
  • the memory 1102 may include, but is not limited to, random access memory (random access memory, RAM), read-only memory (read-only memory, ROM), Erasable programmable read-only memory (erasable programmable read only memory, EPROM) or portable read-only memory (compact disc read-only memory, CD-ROM), etc.
  • the processor 1101 in addition to calling the program code in the memory 1102 to implement part of the functions, can also cooperate with other components (such as communication interface 1103) together to complete other functions described in the method embodiment (such as the function of receiving or sending data).
  • the number of communication interfaces 1103 may be multiple, and are used to support the control unit 1100 to communicate, such as receiving or sending data or signals.
  • the processor 1101 may be the above-described CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms, etc.
  • the processor 1101 may be used to read the program stored in the above-mentioned memory 1102 and perform the operations performed by the first control unit in the method described in the above-mentioned Figure 3 and its possible embodiments.
  • FIG. 12 is a schematic structural diagram of a possible physical entity of the control unit provided by this application.
  • the control unit 1200 shown in FIG. 12 may be the second control unit in the method described in the above embodiment.
  • the control unit 1200 includes: a processor 1201, a memory 1202 and a communication interface 1203.
  • the processor 1201, the communication interface 1203, and the memory 1202 may be connected to each other or to each other via a bus 1204.
  • the communication interface 1203 may include the third transmission interface and the fourth transmission interface in the above-mentioned second control unit.
  • the memory 1202 is used to store computer programs and data of the control unit 1200.
  • the memory 1202 may include but is not limited to RAM, ROM, EPROM or CD-ROM, etc.
  • the processor 1201 in addition to calling the program code in the memory 1202 to implement some functions, can also cooperate with other components (such as communication interface 1203) together to complete other functions described in the method embodiment (such as the function of receiving or sending data).
  • the number of communication interfaces 1203 may be multiple, and are used to support the control unit 1200 to communicate, such as receiving or sending data or signals.
  • the processor 1201 may be the above-described CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms, etc.
  • the processor 1201 may be used to read the program stored in the above-mentioned memory 1202 and perform the operations performed by the second control unit in the method described in the above-mentioned Figure 3 and its possible embodiments.
  • An embodiment of the present application also provides a communication system, which includes the first control unit and the second control unit in the above method embodiment.
  • An embodiment of the present application also provides a chip, which includes a processor and a memory, wherein the memory is used to store computer programs or computer instructions, and the processor is used to execute the computer program or computer instructions stored in the memory, so that the chip Execute the operations performed by the above-mentioned first control unit.
  • An embodiment of the present application also provides a chip, which includes a processor and a memory, wherein the memory is used to store computer programs or computer instructions, and the processor is used to execute the computer program or computer instructions stored in the memory, so that the chip Execute the operations performed by the above-mentioned second control unit.
  • An embodiment of the present application also provides a chip, which includes a processor, wherein the processor is used to call a computer program or computer instructions stored in a memory, so that the chip performs the operations performed by the first control unit.
  • An embodiment of the present application also provides a chip, which includes a processor, wherein the processor is used to call a computer program or computer instructions stored in a memory, so that the chip performs the operations performed by the second control unit.
  • An embodiment of the present application also provides a vehicle, which includes the above-mentioned first control unit and/or second control unit.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • the computer-readable storage medium stores computer programs or computer instructions.
  • the computer programs or computer instructions are executed by a processor to implement the above-mentioned embodiments and possible embodiments thereof.
  • the operation performed by the first control unit in any embodiment.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • the computer-readable storage medium stores computer programs or computer instructions.
  • the computer programs or computer instructions are executed by a processor to implement the above-mentioned embodiments and possible embodiments thereof.
  • the operations performed by the second control unit in any embodiment.
  • Embodiments of the present application also provide a computer program product.
  • the computer program product is read and executed by a computer, the operation performed by the first control unit in any of the above embodiments and possible embodiments will be be executed.
  • Embodiments of the present application also provide a computer program product.
  • the computer program product is read and executed by a computer, the operation performed by the second control unit in any of the above embodiments and possible embodiments will be be executed.
  • data can be transmitted between the first control unit and the second control unit through two transmission interfaces that follow different communication protocols.
  • the data transmitted by the two transmission interfaces are related, that is, using Heterogeneous redundant communication methods can solve the problem of external interaction failure of control units due to defects in the same transmission technology, improve the interactive performance of control units, and also improve the communication security and reliability of control units.
  • first, second, etc. are used to distinguish the same or similar items with basically the same functions and functions. It should be understood that the terms “first”, “second” and “nth” There is no logical or sequential dependency, and there is no limit on the number or execution order. It should also be understood that, although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another.
  • the size of the sequence number of each process does not mean the order of execution.
  • the execution order of each process should be determined by its function and internal logic, and should not be determined by the execution order of the embodiments of the present application.
  • the implementation process constitutes no limitation.
  • references throughout this specification to "one embodiment,” “an embodiment,” and “a possible implementation” mean that specific features, structures, or characteristics related to the embodiment or implementation are included herein. In at least one embodiment of the application. Therefore, “in one embodiment” or “in an embodiment” or “a possible implementation” appearing in various places throughout this specification do not necessarily refer to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Small-Scale Networks (AREA)
  • Selective Calling Equipment (AREA)

Abstract

A communication method in a vehicle and a related apparatus. The method comprises: a first control unit sends a first packet by means of a first transmission interface; and the first control unit sends a second packet by means of a second transmission interface, wherein data in the first packet and data in the second packet are associated, and communication protocols followed by the first transmission interface and the second transmission interface are different (S301). The present application can meet safe communications of a control unit having an increasing requirement on functional safety.

Description

车辆中的通信方法及相关装置Communication method and related device in vehicle 技术领域Technical field
本申请涉及智能汽车技术领域,尤其涉及一种车辆中的通信方法及相关装置。The present application relates to the field of smart car technology, and in particular, to a communication method and related devices in a vehicle.
背景技术Background technique
随着智能汽车技术的发展,特别是随着无人驾驶技术的发展,车辆中各个单元之间需要交互通信的数据越来越多,对车辆中单元的功能安全要求也越来越高。车辆中现有的控制器区域网络(controller area network,CAN)已无法满足功能安全要求越来越高的车辆控制单元的安全通信需求。With the development of smart car technology, especially with the development of driverless technology, more and more data needs to be interactively communicated between various units in the vehicle, and the functional safety requirements of the units in the vehicle are also getting higher and higher. The existing controller area network (CAN) in vehicles can no longer meet the secure communication needs of vehicle control units with increasingly higher functional safety requirements.
发明内容Contents of the invention
本申请实施例公开了一种车辆中的通信方法及相关装置,能够满足功能安全要求越来越高的车辆控制单元的安全通信。The embodiment of the present application discloses a communication method and related devices in a vehicle, which can meet the safe communication of vehicle control units with increasingly higher functional safety requirements.
第一方面,本申请提供一种车辆中的通信方法,该方法包括:In a first aspect, this application provides a communication method in a vehicle, which method includes:
第一控制单元通过第一传输接口发送第一报文;The first control unit sends the first message through the first transmission interface;
前述第一控制单元通过第二传输接口发送第二报文;The aforementioned first control unit sends the second message through the second transmission interface;
前述第一报文中的数据和前述第二报文中的数据是相关联的,前述第一传输接口和前述第二传输接口遵循的通信协议不同。The data in the first message and the data in the second message are related, and the communication protocols followed by the first transmission interface and the second transmission interface are different.
可选的,前述第一传输接口为控制器区域网CAN接口,前述第二传输接口为车载以太网接口。Optionally, the aforementioned first transmission interface is a controller area network CAN interface, and the aforementioned second transmission interface is a vehicle-mounted Ethernet interface.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:该第一报文中的数据和该第二报文中的数据相同。Optionally, the correlation between the data in the first message and the data in the second message may include the following situation: the data in the first message and the data in the second message are the same.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:该第二报文中包括的数据为第一目标数据,该第一报文中包括的数据为校验信息,该校验信息用于校验该第一目标数据。Optionally, the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the first target data, and the first message includes The data is verification information, and the verification information is used to verify the first target data.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:该第二报文中包括的数据为第二目标数据,该第一报文中包括的数据为第一数据,该第一数据为该第二目标数据中的部分数据。Optionally, the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the second target data, and the first message includes The data of is the first data, and the first data is part of the data in the second target data.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:第一报文的数据为第二数据,第二报文的数据为第三数据,第二数据和第三数据分别为第三目标数据中的部分数据,第三目标数据为第一控制单元在一个或多个时钟周期内所要发送的数据。该第二数据和该第三数据用于还原第三目标数据。Optionally, the correlation between the data in the first message and the data in the second message may include the following situations: the data in the first message is the second data, and the data in the second message is the third data, The second data and the third data are respectively part of the third target data, and the third target data is the data to be sent by the first control unit within one or more clock cycles. The second data and the third data are used to restore the third target data.
本申请中,第一控制单元可以通过两种遵循不同通信协议的传输接口来传输数据,该两个传输接口传输的数据是相关联的,即采用异构的冗余通信方式,可以解决因为同种传输技术下的缺陷导致控制单元对外交互失效的问题,提升了控制单元的交互性能,也提高了控制单元的通信安全可靠性。从而满足功能安全要求越来越高的车辆控制单元的安全通信。In this application, the first control unit can transmit data through two transmission interfaces following different communication protocols. The data transmitted by the two transmission interfaces are related, that is, using a heterogeneous redundant communication method, which can solve the problem of simultaneous transmission. Defects in this transmission technology lead to the failure of external interaction of the control unit, which improves the interactive performance of the control unit and also improves the communication security and reliability of the control unit. Thereby meeting the secure communication of vehicle control units with increasingly higher functional safety requirements.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N1个报文,前述第二报文包括对应于前述第二传输接口的M1个报文,封装到前述N1个报文中的数据和封装到前述M1个报文中的数据相同,前述N1和前述M1均为大于0的整数。In a possible embodiment, the aforementioned first message includes N1 messages corresponding to the aforementioned first transmission interface, and the aforementioned second message includes M1 messages corresponding to the aforementioned second transmission interface, and is encapsulated into the aforementioned N1 The data in each packet is the same as the data encapsulated in the aforementioned M1 packets, and both the aforementioned N1 and the aforementioned M1 are integers greater than 0.
本申请中,第一传输接口和第二传输接口传输的数据是相同的,确保接收这些数据的单元(后续简称为第二控制单元)能够接收到这些数据。并且,该两个传输接口遵循的通信协议不同,可以解决因为同种传输技术下的缺陷导致控制单元对外交互失效的问题。In this application, the data transmitted by the first transmission interface and the second transmission interface are the same, ensuring that the unit that receives these data (hereinafter referred to as the second control unit for short) can receive these data. Moreover, the two transmission interfaces follow different communication protocols, which can solve the problem of external interaction failure of the control unit due to defects in the same transmission technology.
一种可能的实施例中,在第一种情况下,前述M1=1,前述第二报文中的数据包括前述第一控制单元在一个或多个时钟周期内所要发送的数据;或者,In a possible embodiment, in the first case, the aforementioned M1=1, the data in the aforementioned second message includes the data to be sent by the aforementioned first control unit within one or more clock cycles; or,
在第二种情况下,前述N1=M1;In the second case, the aforementioned N1=M1;
前述第一种情况包括以下至少一种情况:前述第二报文为前述第一控制单元响应于数据采集单元的数据采集请求发送的报文,前述第二报文为广播报文或组播报文,或前述第二报文为前述第一控制单元响应于车辆状态监控单元的请求发送的报文;The aforementioned first situation includes at least one of the following situations: the aforementioned second message is a message sent by the aforementioned first control unit in response to the data collection request of the data collection unit, and the aforementioned second message is a broadcast message or a multicast message. message, or the aforementioned second message is a message sent by the aforementioned first control unit in response to a request from the vehicle status monitoring unit;
前述第二种情况包括前述第二报文中的数据为控制前述车辆驾驶操作的信息。The aforementioned second situation includes that the data in the aforementioned second message is information for controlling the aforementioned vehicle driving operation.
本申请中,虽然上述第一传输接口和第二传输接口各自传输的报文中的数据是相同的,但是对于不同的应用场景,封装的报文的数量可以不同。例如由于第二传输接口传输的报文的长度较大,可以一次性封装较多的数据。因此对于上述第一种情况的场景,由于对数据的实时性要求不高,可以一次性将一个或多个时钟周期内所要发送的数据封装在一个报文中发送。而对于上述第二种情况的场景,对数据的实时性要求较高,则可以将通过两个接口发送的报文封装成同样数量的报文,降低数据封装的时间,保证数据的传输效率。可见,本申请中可以利用异构的传输网络灵活地对不同的应用场景进行不同方式的报文传输。In this application, although the data in the packets transmitted by the first transmission interface and the second transmission interface are the same, the number of encapsulated packets may be different for different application scenarios. For example, because the length of the message transmitted by the second transmission interface is relatively large, more data can be encapsulated at one time. Therefore, for the first scenario mentioned above, since the real-time requirements of the data are not high, the data to be sent within one or more clock cycles can be encapsulated and sent in one message at a time. For the second scenario mentioned above, which has high real-time requirements for data, the packets sent through the two interfaces can be encapsulated into the same number of packets to reduce the data encapsulation time and ensure data transmission efficiency. It can be seen that in this application, heterogeneous transmission networks can be used to flexibly transmit messages in different ways for different application scenarios.
一种可能的实施例中,前述第二报文中包括扩展信息,前述扩展信息包括以下的一项或多项:前述第一控制单元所在子系统的状态信息,前述第一控制单元发出的控制指令,或前述第一控制单元采集到的传感器数据。In a possible embodiment, the aforementioned second message includes extended information, and the aforementioned extended information includes one or more of the following: status information of the subsystem where the aforementioned first control unit is located, control information issued by the aforementioned first control unit. instructions, or the sensor data collected by the aforementioned first control unit.
本申请中,由于第二传输接口传输的报文的长度较大,可以一次性封装较多的数据。因此,可以额外封装一些扩展信息进行传输,可以响应各种不同的应用需求来传输数据,提高通信网络的灵活性和实用性。In this application, since the length of the message transmitted by the second transmission interface is relatively large, more data can be encapsulated at one time. Therefore, some additional extended information can be encapsulated for transmission, data can be transmitted in response to various application requirements, and the flexibility and practicality of the communication network can be improved.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N2个报文,前述第二报文包括对应于前述第二传输接口的M2个报文,前述M2个报文中包括的数据为第一目标数据,前述N2个报文的数据为校验信息,前述校验信息用于校验前述第一目标数据,前述N2和前述M2均为大于0的整数。In a possible embodiment, the aforementioned first message includes N2 messages corresponding to the aforementioned first transmission interface, the aforementioned second message includes M2 messages corresponding to the aforementioned second transmission interface, and the aforementioned M2 messages The data included in the text is the first target data, and the data of the aforementioned N2 messages is verification information. The aforementioned verification information is used to verify the aforementioned first target data. The aforementioned N2 and the aforementioned M2 are both integers greater than 0.
相比于上述第一传输接口和第二传输接口传输相同数据的实现方式,本申请中,通过第一传输接口传输数据的校验信息,通过第二传输接口传输该数据,这种数据传输的差异处理机制,在第二传输接口的传输带宽较大时,可以显著缩短数据传输的时间,可以使用较短的时间内完成数据的传输,并有效完成了数据的校验。从而降低控制单元之间共同交互的时间开销,减少车辆部件之间直接的通信时间损耗,提升交互性能。Compared with the above-mentioned implementation of the first transmission interface and the second transmission interface transmitting the same data, in this application, the verification information of the data is transmitted through the first transmission interface, and the data is transmitted through the second transmission interface. This kind of data transmission The difference processing mechanism can significantly shorten the data transmission time when the transmission bandwidth of the second transmission interface is large, complete the data transmission in a shorter time, and effectively complete the data verification. This reduces the time cost of joint interaction between control units, reduces the time loss of direct communication between vehicle components, and improves interaction performance.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N3个报文,前述第二报文包括对应于前述第二传输接口的M3个报文,前述M3个报文中包括的数据为第二目标数据,前述N3个报文的数据为第一数据,前述第一数据为前述第二目标数据中的部分数据,前述N3和前述M3均为大于0的整数。In a possible embodiment, the aforementioned first message includes N3 messages corresponding to the aforementioned first transmission interface, the aforementioned second message includes M3 messages corresponding to the aforementioned second transmission interface, and the aforementioned M3 messages The data included in the text is the second target data, the data of the aforementioned N3 messages is the first data, the aforementioned first data is part of the aforementioned second target data, and the aforementioned N3 and the aforementioned M3 are both integers greater than 0.
本申请中,通过第一传输接口传输整体数据的一部分,通过第二传输接口传输该整体数据,这种数据传输的差异处理机制,在第二传输接口的传输带宽较大时,可以显著缩短数据传输的时间,可以使用较短的时间内完成数据的传输。另外,该第一传输接口传输的数据可以用于校验第二接口传输的整体数据,从而有效完成了数据的校验。从而降低控制单元之间共同交互的时间开销,减少车辆部件之间直接的通信时间损耗,提升交互性能。In this application, a part of the entire data is transmitted through the first transmission interface, and the entire data is transmitted through the second transmission interface. This differential processing mechanism of data transmission can significantly shorten the data transmission time when the transmission bandwidth of the second transmission interface is large. The transmission time can be used to complete the data transmission in a shorter time. In addition, the data transmitted by the first transmission interface can be used to verify the overall data transmitted by the second interface, thereby effectively completing the data verification. This reduces the time cost of joint interaction between control units, reduces the time loss of direct communication between vehicle components, and improves interaction performance.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N4个报文,前述第二报文包括对应于前述第二传输接口的M4个报文,前述第一报文的数据为第二数据,前述第二报文的数据为第三数据,前述第二数据和前述第三数据分别为第三目标数据中的部分数据,前述第三目标数据为前述第一控制单元在一个或多个时钟周期内所要发送的数据,前述N4和前述M4均为大于0的整数。In a possible embodiment, the aforementioned first message includes N4 messages corresponding to the aforementioned first transmission interface, the aforementioned second message includes M4 messages corresponding to the aforementioned second transmission interface, and the aforementioned first message The data in the message is the second data, the data in the second message is the third data, the second data and the third data are part of the third target data respectively, and the third target data is the first control data. The data to be sent by the unit in one or more clock cycles, the aforementioned N4 and the aforementioned M4 are both integers greater than 0.
可选的,前述第二数据和前述第三数据用于还原前述第三目标数据。Optionally, the aforementioned second data and the aforementioned third data are used to restore the aforementioned third target data.
本申请中,通过上述的设计,即使某个传输接口发送的报文中的信息被截取,也无法还原出全部的数据,从而起到了对数据加密保护的作用。另外,这种差异化加密传输方式可以降低传输加密对加密算法的依赖,不需要复杂的加密算法即可以实现高等级的密文传输。本申请实施例可以显著降低设备在密文传输的开销。In this application, through the above design, even if the information in the message sent by a certain transmission interface is intercepted, all the data cannot be restored, thus playing a role in data encryption and protection. In addition, this differentiated encryption transmission method can reduce the dependence of transmission encryption on encryption algorithms, and can achieve high-level ciphertext transmission without the need for complex encryption algorithms. The embodiments of this application can significantly reduce the device's overhead in ciphertext transmission.
一种可能的实施例中,前述第一报文中包括校验报文,前述校验报文和前述第二报文中包括同步校验信息,前述校验报文和前述同步校验信息用于校验前述第二报文的实时性,前述同步校验信息包括前述校验报文的标识ID、前述校验报文发送时所在的时钟周期的序号和前述第二报文中数据的校验值。In a possible embodiment, the aforementioned first message includes a verification message, the aforementioned verification message and the aforementioned second message include synchronization verification information, and the aforementioned verification message and the aforementioned synchronization verification information are denoted by In order to verify the real-time nature of the aforementioned second message, the aforementioned synchronization verification information includes the identification ID of the aforementioned verification message, the sequence number of the clock cycle when the aforementioned verification message is sent, and the verification of the data in the aforementioned second message. test value.
本申请中,可以利用两个传输接口之间的传输的报文来互相修正约束通信的实时性,完成传输网络的实时性约束可通信方案,实现网络的实时通信改造。从而构建冗余通信场景下的实时性功能。In this application, the transmitted messages between the two transmission interfaces can be used to modify the real-time constrained communication of each other, complete the real-time constrained communication solution of the transmission network, and realize the real-time communication transformation of the network. This builds real-time functionality in redundant communication scenarios.
一种可能的实施例中,前述第一控制单元为前述车辆中的转向系统包括的控制单元,前述车辆中的制动系统包括的控制单元,前述车辆中的动力系统包括的控制单元,前述车辆中的车身域控制器VDC系统包括的控制单元,前述车辆中的整车控制单元VCU,或前述车辆中的自主驾驶和辅助系统ADAS包括的控制单元。In a possible embodiment, the first control unit is a control unit included in the steering system in the aforementioned vehicle, a control unit included in the braking system in the aforementioned vehicle, a control unit included in the power system in the aforementioned vehicle, the aforementioned vehicle The control unit included in the body domain controller VDC system, the vehicle control unit VCU in the aforementioned vehicle, or the control unit included in the autonomous driving and assistance system ADAS in the aforementioned vehicle.
本申请中,上述的控制单元属于功能安全等级要求较高的单元,通过对这些单元设计异构冗余通信网络,可以保证这些单元的数据可以准确快速传输,以满足对应功能安全等级的需求。In this application, the above-mentioned control units are units with high functional safety level requirements. By designing a heterogeneous redundant communication network for these units, it can be ensured that the data of these units can be transmitted accurately and quickly to meet the requirements of the corresponding functional safety level.
一种可能的实施例中,前述第一控制单元为前述车辆中的VDC系统包括的控制单元,前述VDC系统中的整车控制单元VCU,或自主驾驶和辅助系统ADAS的控制单元;In a possible embodiment, the aforementioned first control unit is a control unit included in the VDC system in the aforementioned vehicle, a vehicle control unit VCU in the aforementioned VDC system, or a control unit of the autonomous driving and assistance system ADAS;
前述第一控制单元通过前述第一传输接口与前述车辆中的P个第二控制单元通信;The aforementioned first control unit communicates with the P second control units in the aforementioned vehicle through the aforementioned first transmission interface;
前述第一控制单元通过P个前述第二传输接口分别与前述P个第二控制单元通信;The aforementioned first control unit communicates with the aforementioned P second control units respectively through the P aforementioned second transmission interfaces;
其中,前述P为大于0的整数。Wherein, the aforementioned P is an integer greater than 0.
本申请中,第一传输接口接入的通信网络为总线型拓扑结构,第二传输接口接入的通信网络为星型拓扑结构。In this application, the communication network connected to the first transmission interface has a bus topology structure, and the communication network connected to the second transmission interface has a star topology structure.
一种可能的实施例中,前述第一控制单元为前述车辆中的VDC系统的控制单元,前述VDC系统中的整车控制单元VCU,或自主驾驶和辅助系统ADAS的控制单元;In a possible embodiment, the aforementioned first control unit is the control unit of the VDC system in the aforementioned vehicle, the vehicle control unit VCU in the aforementioned VDC system, or the control unit of the autonomous driving and assistance system ADAS;
前述第一控制单元通过前述第一传输接口与前述车辆中的P个第二控制单元通信;前述P为大于0的整数;The aforementioned first control unit communicates with the P second control units in the aforementioned vehicle through the aforementioned first transmission interface; the aforementioned P is an integer greater than 0;
前述第一控制单元通过前述第二传输接口与前述P个第二控制单元通信。The aforementioned first control unit communicates with the aforementioned P second control units through the aforementioned second transmission interface.
本申请中,第一传输接口和第二传输接口接入的通信网络均为总线型拓扑结构。In this application, the communication network connected to the first transmission interface and the second transmission interface is a bus topology.
一种可能的实施例中,前述第一控制单元为前述车辆中的VDC系统的控制单元,前述VDC系统中的整车控制单元VCU,或自主驾驶和辅助系统ADAS的控制单元;In a possible embodiment, the aforementioned first control unit is the control unit of the VDC system in the aforementioned vehicle, the vehicle control unit VCU in the aforementioned VDC system, or the control unit of the autonomous driving and assistance system ADAS;
前述第一控制单元通过前述第一传输接口与前述车辆中的P个第二控制单元通信;前述P为大于0的整数;The aforementioned first control unit communicates with the P second control units in the aforementioned vehicle through the aforementioned first transmission interface; the aforementioned P is an integer greater than 0;
前述第一控制单元通过前述第二传输接口与前述车辆中的交换单元通信,前述交换单元用于转发前述第一控制单元通过前述第二传输接口向前述第二控制单元发送的报文。The first control unit communicates with the switching unit in the vehicle through the second transmission interface, and the switching unit is used to forward messages sent by the first control unit to the second control unit through the second transmission interface.
本申请中,第一传输接口接入的通信网络为总线型拓扑结构,第二传输接口接入的通信网络为交换式网络结构。In this application, the communication network connected to the first transmission interface has a bus topology structure, and the communication network connected to the second transmission interface has a switched network structure.
第二方面,本申请提供一种车辆中的通信方法,该方法包括:In a second aspect, this application provides a communication method in a vehicle, which method includes:
第二控制单元通过第一传输接口接收第一报文;The second control unit receives the first message through the first transmission interface;
前述第二控制单元通过第二传输接口接收第二报文;The aforementioned second control unit receives the second message through the second transmission interface;
前述第一报文中的数据和前述第二报文中的数据是相关联的,前述第一传输接口和前述第二传输接口遵循的通信协议不同。The data in the first message and the data in the second message are related, and the communication protocols followed by the first transmission interface and the second transmission interface are different.
可选的,前述第一传输接口为控制器区域网CAN接口,前述第二传输接口为车载以太网接口。Optionally, the aforementioned first transmission interface is a controller area network CAN interface, and the aforementioned second transmission interface is a vehicle-mounted Ethernet interface.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:该第二报文中包括的数据为第一目标数据,该第一报文中包括的数据为校验信息,该校验信息用于校验该第一目标数据。Optionally, the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the first target data, and the first message includes The data is verification information, and the verification information is used to verify the first target data.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:该第二报文中包括的数据为第二目标数据,该第一报文中包括的数据为第一数据,该第一数据为该第二目标数据中的部分数据。Optionally, the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the second target data, and the first message includes The data of is the first data, and the first data is part of the data in the second target data.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:第一报文的数据为第二数据,第二报文的数据为第三数据,第二数据和第三数据分别为第三目标数据中的部分数据,第三目标数据为第二控制单元在一个或多个时钟周期内所要接收的数据。该第二数据和该第三数据用于还原第三目标数据。Optionally, the correlation between the data in the first message and the data in the second message may include the following situations: the data in the first message is the second data, and the data in the second message is the third data, The second data and the third data are respectively part of the third target data, and the third target data is the data to be received by the second control unit within one or more clock cycles. The second data and the third data are used to restore the third target data.
本申请中,上述第一报文和第二报文可以来自第一控制单元,第一控制单元和第二控制单元之间可以通过两种遵循不同通信协议的传输接口来传输数据,该两个传输接口传输的数据是相关联的,即采用异构的冗余通信方式,可以解决因为同种传输技术下的缺陷导致控制单元对外交互失效的问题,提升了控制单元的交互性能,也提高了控制单元的通信安全可靠性。In this application, the above-mentioned first message and second message can come from the first control unit, and data can be transmitted between the first control unit and the second control unit through two transmission interfaces following different communication protocols. The two The data transmitted by the transmission interface is related, that is, using heterogeneous redundant communication methods, which can solve the problem of external interaction failure of the control unit due to defects in the same transmission technology, improve the interaction performance of the control unit, and also improve the Communication security and reliability of the control unit.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N1个报文,前述第二报文包括对应于前述第二传输接口的M1个报文,封装到前述N1个报文中的数据和封装到前述M1个报文中的数据相同,前述N1和前述M1均为大于0的整数。In a possible embodiment, the aforementioned first message includes N1 messages corresponding to the aforementioned first transmission interface, and the aforementioned second message includes M1 messages corresponding to the aforementioned second transmission interface, and is encapsulated into the aforementioned N1 The data in each packet is the same as the data encapsulated in the aforementioned M1 packets, and both the aforementioned N1 and the aforementioned M1 are integers greater than 0.
本申请中,第一传输接口和第二传输接口传输的数据是相同的,确保接收这些数据的单元(后续简称为第二控制单元)能够接收到这些数据。并且,该两个传输接口遵循的通信协议不同,可以解决因为同种传输技术下的缺陷导致控制单元对外交互失效的问题。In this application, the data transmitted by the first transmission interface and the second transmission interface are the same, ensuring that the unit that receives these data (hereinafter referred to as the second control unit for short) can receive these data. Moreover, the two transmission interfaces follow different communication protocols, which can solve the problem of external interaction failure of the control unit due to defects in the same transmission technology.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N2个报文,前述第二报文包括对应于前述第二传输接口的M2个报文,前述M2个报文中包括的数据为第一目标数据,前述N2个报文的数据为校验信息,前述校验信息用于校验前述第一目标数据,前述N2和前述M2均为大于0的整数。In a possible embodiment, the aforementioned first message includes N2 messages corresponding to the aforementioned first transmission interface, the aforementioned second message includes M2 messages corresponding to the aforementioned second transmission interface, and the aforementioned M2 messages The data included in the text is the first target data, and the data of the aforementioned N2 messages is verification information. The aforementioned verification information is used to verify the aforementioned first target data. The aforementioned N2 and the aforementioned M2 are both integers greater than 0.
相比于上述第一传输接口和第二传输接口传输相同数据的实现方式,本申请中,通过第一传输接口传输数据的校验信息,通过第二传输接口传输该数据,这种数据传输的差异处理机制,在第二传输接口的传输带宽较大时,可以显著缩短数据传输的时间,可以使用较短的时间内完成数据的传输,并有效完成了数据的校验。从而降低控制单元之间共同交互的时间开销,减少车辆部件之间直接的通信时间损耗,提升交互性能。Compared with the above-mentioned implementation of the first transmission interface and the second transmission interface transmitting the same data, in this application, the verification information of the data is transmitted through the first transmission interface, and the data is transmitted through the second transmission interface. This kind of data transmission The difference processing mechanism can significantly shorten the data transmission time when the transmission bandwidth of the second transmission interface is large, complete the data transmission in a shorter time, and effectively complete the data verification. This reduces the time cost of joint interaction between control units, reduces the time loss of direct communication between vehicle components, and improves interaction performance.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N3个报文,前述第二报文包括对应于前述第二传输接口的M3个报文,前述M3个报文中包括的数据为第二目标数据,前述N3个报文的数据为第一数据,前述第一数据为前述第二目标数据中的部分数据,前述N3和前述M3均为大于0的整数。In a possible embodiment, the aforementioned first message includes N3 messages corresponding to the aforementioned first transmission interface, the aforementioned second message includes M3 messages corresponding to the aforementioned second transmission interface, and the aforementioned M3 messages The data included in the text is the second target data, the data of the aforementioned N3 messages is the first data, the aforementioned first data is part of the aforementioned second target data, and the aforementioned N3 and the aforementioned M3 are both integers greater than 0.
本申请中,通过第一传输接口传输整体数据的一部分,通过第二传输接口传输该整体数据,这种数据传输的差异处理机制,在第二传输接口的传输带宽较大时,可以显著缩短数据传输的时间,可以使用较短的时间内完成数据的传输。另外,该第一传输接口传输的数据可以用于校验第二接口传输的整体数据,从而有效完成了数据的校验。从而降低控制单元之间共同交互的时间开销,减少车辆部件之间直接的通信时间损耗,提升交互性能。In this application, a part of the entire data is transmitted through the first transmission interface, and the entire data is transmitted through the second transmission interface. This differential processing mechanism of data transmission can significantly shorten the data transmission time when the transmission bandwidth of the second transmission interface is large. The transmission time can be used to complete the data transmission in a shorter time. In addition, the data transmitted by the first transmission interface can be used to verify the overall data transmitted by the second interface, thereby effectively completing the data verification. This reduces the time cost of joint interaction between control units, reduces the time loss of direct communication between vehicle components, and improves interaction performance.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N4个报文,前述第二报文包括对应于前述第二传输接口的M4个报文,前述第一报文的数据为第二数据,前述第二报文的数据为第三数据,前述第二数据和前述第三数据分别为第三目标数据中的部分数据,前述第三目标数据为前述第一控制单元一个或多个时钟周期内所要发送的数据,前述N4和前述M4均为大于0的整数。In a possible embodiment, the aforementioned first message includes N4 messages corresponding to the aforementioned first transmission interface, the aforementioned second message includes M4 messages corresponding to the aforementioned second transmission interface, and the aforementioned first message The data in the message is the second data, the data in the second message is the third data, the second data and the third data are part of the third target data respectively, and the third target data is the first control data. The data to be sent by the unit within one or more clock cycles, the aforementioned N4 and the aforementioned M4 are both integers greater than 0.
可选的,前述第二数据和前述第三数据用于还原前述第三目标数据。Optionally, the aforementioned second data and the aforementioned third data are used to restore the aforementioned third target data.
本申请中,通过上述的设计,即使某个传输接口发送的报文中的信息被截取,也无法还原出全部的数据,从而起到了对数据加密保护的作用。另外,这种差异化加密传输方式可以降低传输加密对加密算法的依赖,不需要复杂的加密算法即可以实现高等级的密文传输。本申请实施例可以显著降低设备在密文传输的开销。In this application, through the above design, even if the information in the message sent by a certain transmission interface is intercepted, all the data cannot be restored, thus playing a role in data encryption and protection. In addition, this differentiated encryption transmission method can reduce the dependence of transmission encryption on encryption algorithms, and can achieve high-level ciphertext transmission without the need for complex encryption algorithms. The embodiments of this application can significantly reduce the device's overhead in ciphertext transmission.
一种可能的实施例中,前述第一报文中包括校验报文;In a possible embodiment, the first message includes a verification message;
前述第二报文是在前述第二控制单元接收前述校验报文后的预设时长内被前述第二控制单元接收的情况下,前述第二报文被确定是有效的;When the aforementioned second message is received by the aforementioned second control unit within a preset time period after the aforementioned second control unit receives the aforementioned verification message, the aforementioned second message is determined to be valid;
或者,or,
前述第二报文是在超过前述预设时长后被前述第二控制单元接收的情况下,前述第二报文被确定是无效的。If the second message is received by the second control unit after exceeding the preset time period, the second message is determined to be invalid.
一种可能的实施例中,前述校验报文和前述第二报文中包括同步校验信息,前述同步校验信息包括前述校验报文的标识ID、前述校验报文发送时所在的时钟周期的序号和前述第二报文中数据的校验值;In a possible embodiment, the aforementioned verification message and the aforementioned second message include synchronization verification information, and the aforementioned synchronization verification information includes the identification ID of the aforementioned verification message, the location where the aforementioned verification message is sent, and The sequence number of the clock cycle and the check value of the data in the aforementioned second message;
前述第二报文是在前述第二控制单元接收前述校验报文后的预设时长内被前述第二控制单元接收的情况下,前述第二报文被确定是有效的,包括:When the aforementioned second message is received by the aforementioned second control unit within a preset time period after the aforementioned second control unit receives the aforementioned verification message, the aforementioned second message is determined to be valid, including:
前述第二报文在前述第二控制单元接收前述校验报文后的预设时长内被前述第二控制单元接收,并且前述第二报文中的前述同步校验信息与前述校验报文中的前述同步校验信息相同的情况下,前述第二报文被确定是有效的。The aforementioned second message is received by the aforementioned second control unit within a preset time period after the aforementioned second control unit receives the aforementioned verification message, and the aforementioned synchronization verification information in the aforementioned second message is consistent with the aforementioned verification message. If the synchronization check information in the two messages is the same, the second message is determined to be valid.
本申请中,可以利用两个传输接口之间的传输的报文来互相修正约束通信的实时性,完成传输网络的实时性约束可通信方案,实现网络的实时通信改造。从而构建冗余通信场景下的实时性功能。In this application, the transmitted messages between the two transmission interfaces can be used to modify the real-time constrained communication of each other, complete the real-time constrained communication solution of the transmission network, and realize the real-time communication transformation of the network. This builds real-time functionality in redundant communication scenarios.
一种可能的实施例中,前述第一报文被前述第二控制单元接收的时间晚于前述第二报文被前述第二控制单元接收的时间;In a possible embodiment, the time when the aforementioned first message is received by the aforementioned second control unit is later than the time when the aforementioned second message is received by the aforementioned second control unit;
前述第二控制单元通过第二传输接口接收第二报文之后,还包括:After the aforementioned second control unit receives the second message through the second transmission interface, it also includes:
前述第二控制单元根据前述第二报文中的数据进行计算。The aforementioned second control unit performs calculation based on the data in the aforementioned second message.
一种可能的实施例中,前述第二控制单元通过第一传输接口接收第一报文之后,还包括:In a possible embodiment, after receiving the first message through the first transmission interface, the second control unit further includes:
前述第二控制单元对前述第一报文和前述第二报文中的数据进行校验处理。The aforementioned second control unit performs verification processing on the data in the aforementioned first message and the aforementioned second message.
一种可能的实施例中,前述第二控制单元对前述第一报文和前述第二报文中的数据进行校验处理,包括:In a possible embodiment, the aforementioned second control unit performs verification processing on the data in the aforementioned first message and the aforementioned second message, including:
在确定前述第一报文中的数据与前述第二报文中的数据不同的情况下,前述第二控制单元基于重传机制通过前述第二传输接口接收第三报文;When it is determined that the data in the first message is different from the data in the second message, the second control unit receives the third message through the second transmission interface based on a retransmission mechanism;
在前述第三报文中的数据与前述第二报文中的数据相同的情况下,前述第二控制单元对前述第一报文中的数据执行纠错策略。When the data in the third message is the same as the data in the second message, the second control unit executes an error correction strategy on the data in the first message.
本申请中,第二传输接口所在的通信网络的传输带宽较大,可以较快地将上述第二报文传输给第二控制单元,那么,第二控制单元可以先基于接收到的第二报文中的数据进行计算。等接收到第一报文中的数据后进行校验。相比于现有的多路冗余的CAN通信方式的接收数据和处理计算数据的模式,本申请实例可以在原先接收数据的时间内完成接收与数据处理两步操作,显著提升了通信与数据处理效率。In this application, the communication network where the second transmission interface is located has a larger transmission bandwidth and can transmit the above-mentioned second message to the second control unit quickly. Then, the second control unit can first based on the received second message. Calculations were performed using the data in the text. Verify after receiving the data in the first message. Compared with the existing multi-channel redundant CAN communication mode of receiving data and processing calculation data, the example of this application can complete the two-step operation of receiving and data processing within the original time of receiving data, significantly improving communication and data processing efficiency.
一种可能的实施例中,前述第二控制单元为前述车辆中的转向系统包括的控制单元,前述车辆中的制动系统包括的控制单元,前述车辆中的动力系统包括的控制单元,前述车辆中的车身域控制器VDC系统包括的控制单元,前述车辆中的整车控制单元VCU,或前述车辆中的自主驾驶和辅助系统ADAS包括的控制单元。In a possible embodiment, the aforementioned second control unit is a control unit included in the steering system in the aforementioned vehicle, a control unit included in the braking system in the aforementioned vehicle, a control unit included in the power system in the aforementioned vehicle, the aforementioned vehicle The control unit included in the body domain controller VDC system, the vehicle control unit VCU in the aforementioned vehicle, or the control unit included in the autonomous driving and assistance system ADAS in the aforementioned vehicle.
本申请中,上述的控制单元属于功能安全等级要求较高的单元,通过对这些单元设计异构冗余通信网络,可以保证这些单元的数据可以准确快速传输,以满足对应功能安全等级的需求。In this application, the above-mentioned control units are units with high functional safety level requirements. By designing a heterogeneous redundant communication network for these units, it can be ensured that the data of these units can be transmitted accurately and quickly to meet the requirements of the corresponding functional safety level.
一种可能的实施例中,前述第二控制单元为前述车辆中的转向系统包括的控制单元,前述车辆中的制动系统包括的控制单元,或前述车辆中的动力系统包括的控制单元;In a possible embodiment, the aforementioned second control unit is a control unit included in the steering system in the aforementioned vehicle, a control unit included in the braking system in the aforementioned vehicle, or a control unit included in the power system in the aforementioned vehicle;
前述第二控制单元通过前述第一传输接口与第一控制单元通信,前述第二控制单元还通过前述第二传输接口与前述第一控制单元通信,前述第一控制单元为前述车辆中的车身域控制器VDC系统包括的控制单元,前述车辆中的整车控制单元VCU,或前述车辆中的自主驾驶和辅助系统ADAS包括的控制单元。The aforementioned second control unit communicates with the aforementioned first control unit through the aforementioned first transmission interface. The aforementioned second control unit also communicates with the aforementioned first control unit through the aforementioned second transmission interface. The aforementioned first control unit is a body domain in the aforementioned vehicle. The control unit included in the controller VDC system, the vehicle control unit VCU in the aforementioned vehicle, or the control unit included in the autonomous driving and assistance system ADAS in the aforementioned vehicle.
一种可能的实施例中,前述第二控制单元通过前述第二传输接口与前述车辆中的交换单元通信,前述交换单元用于转发前述第二控制单元通过前述第二传输接口向前述第一控制单元发送的报文。In a possible embodiment, the second control unit communicates with the switching unit in the vehicle through the second transmission interface, and the switching unit is used to forward the data from the second control unit to the first control unit through the second transmission interface. messages sent by the unit.
第三方面,本申请实施例一种控制单元,包括:In a third aspect, a control unit according to an embodiment of the present application includes:
发送单元,用于通过第一传输接口发送第一报文;A sending unit, configured to send the first message through the first transmission interface;
前述发送单元,还用于通过第二传输接口发送第二报文;The aforementioned sending unit is also used to send the second message through the second transmission interface;
前述第一报文中的数据和前述第二报文中的数据是相关联的,前述第一传输接口和前述第二传输接口遵循的通信协议不同。The data in the first message and the data in the second message are related, and the communication protocols followed by the first transmission interface and the second transmission interface are different.
可选的,前述第一传输接口为控制器区域网CAN接口,前述第二传输接口为车载以太网接口。Optionally, the aforementioned first transmission interface is a controller area network CAN interface, and the aforementioned second transmission interface is a vehicle-mounted Ethernet interface.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:该第一报文中的数据和该第二报文中的数据相同。Optionally, the correlation between the data in the first message and the data in the second message may include the following situation: the data in the first message and the data in the second message are the same.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:该第二报文中包括的数据为第一目标数据,该第一报文中包括的数据为校验信息,该校验信息用于校验该第一目标数据。Optionally, the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the first target data, and the first message includes The data is verification information, and the verification information is used to verify the first target data.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:该第 二报文中包括的数据为第二目标数据,该第一报文中包括的数据为第一数据,该第一数据为该第二目标数据中的部分数据。Optionally, the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the second target data, and the first message includes The data of is the first data, and the first data is part of the data in the second target data.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:第一报文的数据为第二数据,第二报文的数据为第三数据,第二数据和第三数据分别为第三目标数据中的部分数据,第三目标数据为第一控制单元在一个或多个时钟周期内所要发送的数据。该第二数据和该第三数据用于还原第三目标数据。Optionally, the correlation between the data in the first message and the data in the second message may include the following situations: the data in the first message is the second data, and the data in the second message is the third data, The second data and the third data are respectively part of the third target data, and the third target data is the data to be sent by the first control unit within one or more clock cycles. The second data and the third data are used to restore the third target data.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N1个报文,前述第二报文包括对应于前述第二传输接口的M1个报文,封装到前述N1个报文中的数据和封装到前述M1个报文中的数据相同,前述N1和前述M1均为大于0的整数。In a possible embodiment, the aforementioned first message includes N1 messages corresponding to the aforementioned first transmission interface, and the aforementioned second message includes M1 messages corresponding to the aforementioned second transmission interface, and is encapsulated into the aforementioned N1 The data in each packet is the same as the data encapsulated in the aforementioned M1 packets, and both the aforementioned N1 and the aforementioned M1 are integers greater than 0.
一种可能的实施例中,在第一种情况下,前述M1=1,前述第二报文中的数据包括前述第一控制单元在一个或多个时钟周期内所要发送的数据;或者,In a possible embodiment, in the first case, the aforementioned M1=1, the data in the aforementioned second message includes the data to be sent by the aforementioned first control unit within one or more clock cycles; or,
在第二种情况下,前述N1=M1;In the second case, the aforementioned N1=M1;
前述第一种情况包括以下至少一种情况:前述第二报文为前述第一控制单元响应于数据采集单元的数据采集请求发送的报文,前述第二报文为广播报文或组播报文,或前述第二报文为前述第一控制单元响应于车辆状态监控单元的请求发送的报文;The aforementioned first situation includes at least one of the following situations: the aforementioned second message is a message sent by the aforementioned first control unit in response to the data collection request of the data collection unit, and the aforementioned second message is a broadcast message or a multicast message. message, or the aforementioned second message is a message sent by the aforementioned first control unit in response to a request from the vehicle status monitoring unit;
前述第二种情况包括前述第二报文中的数据为控制前述车辆驾驶操作的信息。The aforementioned second situation includes that the data in the aforementioned second message is information for controlling the aforementioned vehicle driving operation.
一种可能的实施例中,前述第二报文中包括扩展信息,前述扩展信息包括以下的一项或多项:前述第一控制单元所在子系统的状态信息,前述第一控制单元发出的控制指令,或前述第一控制单元采集到的传感器数据。In a possible embodiment, the aforementioned second message includes extended information, and the aforementioned extended information includes one or more of the following: status information of the subsystem where the aforementioned first control unit is located, control information issued by the aforementioned first control unit. instructions, or the sensor data collected by the aforementioned first control unit.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N2个报文,前述第二报文包括对应于前述第二传输接口的M2个报文,前述M2个报文中包括的数据为第一目标数据,前述N2个报文的数据为校验信息,前述校验信息用于校验前述第一目标数据,前述N2和前述M2均为大于0的整数。In a possible embodiment, the aforementioned first message includes N2 messages corresponding to the aforementioned first transmission interface, the aforementioned second message includes M2 messages corresponding to the aforementioned second transmission interface, and the aforementioned M2 messages The data included in the text is the first target data, and the data of the aforementioned N2 messages is verification information. The aforementioned verification information is used to verify the aforementioned first target data. The aforementioned N2 and the aforementioned M2 are both integers greater than 0.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N3个报文,前述第二报文包括对应于前述第二传输接口的M3个报文,前述M3个报文中包括的数据为第二目标数据,前述N3个报文的数据为第一数据,前述第一数据为前述第二目标数据中的部分数据,前述N3和前述M3均为大于0的整数。In a possible embodiment, the aforementioned first message includes N3 messages corresponding to the aforementioned first transmission interface, the aforementioned second message includes M3 messages corresponding to the aforementioned second transmission interface, and the aforementioned M3 messages The data included in the text is the second target data, the data of the aforementioned N3 messages is the first data, the aforementioned first data is part of the aforementioned second target data, and the aforementioned N3 and the aforementioned M3 are both integers greater than 0.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N4个报文,前述第二报文包括对应于前述第二传输接口的M4个报文,前述第一报文的数据为第二数据,前述第二报文的数据为第三数据,前述第二数据和前述第三数据分别为第三目标数据中的部分数据,前述第三目标数据为前述第一控制单元在一个或多个时钟周期内所要发送的数据,前述N4和前述M4均为大于0的整数。In a possible embodiment, the aforementioned first message includes N4 messages corresponding to the aforementioned first transmission interface, the aforementioned second message includes M4 messages corresponding to the aforementioned second transmission interface, and the aforementioned first message The data in the message is the second data, the data in the second message is the third data, the second data and the third data are part of the third target data respectively, and the third target data is the first control data. The data to be sent by the unit in one or more clock cycles, the aforementioned N4 and the aforementioned M4 are both integers greater than 0.
可选的,前述第二数据和前述第三数据用于还原前述第三目标数据。Optionally, the aforementioned second data and the aforementioned third data are used to restore the aforementioned third target data.
一种可能的实施例中,前述第一报文中包括校验报文,前述校验报文和前述第二报文中包括同步校验信息,前述校验报文和前述同步校验信息用于校验前述第二报文的实时性,前述同步校验信息包括前述校验报文的标识ID、前述校验报文发送时所在的时钟周期的序号和前述第二报文中数据的校验值。In a possible embodiment, the aforementioned first message includes a verification message, the aforementioned verification message and the aforementioned second message include synchronization verification information, and the aforementioned verification message and the aforementioned synchronization verification information are denoted by In order to verify the real-time nature of the aforementioned second message, the aforementioned synchronization verification information includes the identification ID of the aforementioned verification message, the sequence number of the clock cycle when the aforementioned verification message is sent, and the verification of the data in the aforementioned second message. test value.
一种可能的实施例中,前述第一控制单元为前述车辆中的转向系统包括的控制单元,前述车辆中的制动系统包括的控制单元,前述车辆中的动力系统包括的控制单元,前述车辆中的车身域控制器VDC系统包括的控制单元,前述车辆中的整车控制单元VCU,或前述车辆中的自主驾驶和辅助系统ADAS包括的控制单元。In a possible embodiment, the first control unit is a control unit included in the steering system in the aforementioned vehicle, a control unit included in the braking system in the aforementioned vehicle, a control unit included in the power system in the aforementioned vehicle, the aforementioned vehicle The control unit included in the body domain controller VDC system, the vehicle control unit VCU in the aforementioned vehicle, or the control unit included in the autonomous driving and assistance system ADAS in the aforementioned vehicle.
一种可能的实施例中,前述第一控制单元为前述车辆中的VDC系统包括的控制单元,前述VDC系统中的整车控制单元VCU,或自主驾驶和辅助系统ADAS的控制单元;In a possible embodiment, the aforementioned first control unit is a control unit included in the VDC system in the aforementioned vehicle, a vehicle control unit VCU in the aforementioned VDC system, or a control unit of the autonomous driving and assistance system ADAS;
前述第一控制单元通过前述第一传输接口与前述车辆中的P个第二控制单元通信;The aforementioned first control unit communicates with the P second control units in the aforementioned vehicle through the aforementioned first transmission interface;
前述第一控制单元通过P个前述第二传输接口分别与前述P个第二控制单元通信;The aforementioned first control unit communicates with the aforementioned P second control units respectively through the P aforementioned second transmission interfaces;
其中,前述P为大于0的整数。Wherein, the aforementioned P is an integer greater than 0.
一种可能的实施例中,前述第一控制单元为前述车辆中的VDC系统的控制单元,前述VDC系统中的整车控制单元VCU,或自主驾驶和辅助系统ADAS的控制单元;In a possible embodiment, the aforementioned first control unit is the control unit of the VDC system in the aforementioned vehicle, the vehicle control unit VCU in the aforementioned VDC system, or the control unit of the autonomous driving and assistance system ADAS;
前述第一控制单元通过前述第一传输接口与前述车辆中的P个第二控制单元通信;前述P为大于0的整数;The aforementioned first control unit communicates with the P second control units in the aforementioned vehicle through the aforementioned first transmission interface; the aforementioned P is an integer greater than 0;
前述第一控制单元通过前述第二传输接口与前述P个第二控制单元通信。The aforementioned first control unit communicates with the aforementioned P second control units through the aforementioned second transmission interface.
一种可能的实施例中,前述第一控制单元为前述车辆中的VDC系统的控制单元,前述VDC系统中的整车控制单元VCU,或自主驾驶和辅助系统ADAS的控制单元;In a possible embodiment, the aforementioned first control unit is the control unit of the VDC system in the aforementioned vehicle, the vehicle control unit VCU in the aforementioned VDC system, or the control unit of the autonomous driving and assistance system ADAS;
前述第一控制单元通过前述第一传输接口与前述车辆中的P个第二控制单元通信;前述P为大于0的整数;The aforementioned first control unit communicates with the P second control units in the aforementioned vehicle through the aforementioned first transmission interface; the aforementioned P is an integer greater than 0;
前述第一控制单元通过前述第二传输接口与前述车辆中的交换单元通信,前述交换单元用于转发前述第一控制单元通过前述第二传输接口向前述第二控制单元发送的报文。The first control unit communicates with the switching unit in the vehicle through the second transmission interface, and the switching unit is used to forward messages sent by the first control unit to the second control unit through the second transmission interface.
第四方面,本申请提供一种控制单元,包括:In a fourth aspect, this application provides a control unit including:
接收单元,用于通过第一传输接口接收第一报文;A receiving unit, configured to receive the first message through the first transmission interface;
前述接收单元,还用于通过第二传输接口接收第二报文;The aforementioned receiving unit is also used to receive the second message through the second transmission interface;
前述第一报文中的数据和前述第二报文中的数据是相关联的,前述第一传输接口和前述第二传输接口遵循的通信协议不同。The data in the first message and the data in the second message are related, and the communication protocols followed by the first transmission interface and the second transmission interface are different.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:该第二报文中包括的数据为第一目标数据,该第一报文中包括的数据为校验信息,该校验信息用于校验该第一目标数据。Optionally, the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the first target data, and the first message includes The data is verification information, and the verification information is used to verify the first target data.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:该第二报文中包括的数据为第二目标数据,该第一报文中包括的数据为第一数据,该第一数据为该第二目标数据中的部分数据。Optionally, the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the second target data, and the first message includes The data of is the first data, and the first data is part of the data in the second target data.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:第一报文的数据为第二数据,第二报文的数据为第三数据,第二数据和第三数据分别为第三目标数据中的部分数据,第三目标数据为第一控制单元在一个或多个时钟周期内所要发送的数据。该第二数据和该第三数据用于还原第三目标数据。Optionally, the correlation between the data in the first message and the data in the second message may include the following situations: the data in the first message is the second data, and the data in the second message is the third data, The second data and the third data are respectively part of the third target data, and the third target data is the data to be sent by the first control unit within one or more clock cycles. The second data and the third data are used to restore the third target data.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N1个报文,前述第二报文包括对应于前述第二传输接口的M1个报文,封装到前述N1个报文中的数据和封装到前述M1个报文中的数据相同,前述N1和前述M1均为大于0的整数。In a possible embodiment, the aforementioned first message includes N1 messages corresponding to the aforementioned first transmission interface, and the aforementioned second message includes M1 messages corresponding to the aforementioned second transmission interface, and is encapsulated into the aforementioned N1 The data in each packet is the same as the data encapsulated in the aforementioned M1 packets, and both the aforementioned N1 and the aforementioned M1 are integers greater than 0.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N2个报文,前述第二报文包括对应于前述第二传输接口的M2个报文,前述M2个报文中包括的数据为第一目标数据,前述N2个报文的数据为校验信息,前述校验信息用于校验前述第一目标数据,前述N2和前述M2均为大于0的整数。In a possible embodiment, the aforementioned first message includes N2 messages corresponding to the aforementioned first transmission interface, the aforementioned second message includes M2 messages corresponding to the aforementioned second transmission interface, and the aforementioned M2 messages The data included in the text is the first target data, and the data of the aforementioned N2 messages is verification information. The aforementioned verification information is used to verify the aforementioned first target data. The aforementioned N2 and the aforementioned M2 are both integers greater than 0.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N3个报文,前述第二报文包括对应于前述第二传输接口的M3个报文,前述M3个报文中包括的数据为第二目标数据,前述N3个报文的数据为第一数据,前述第一数据为前述第二目标数据中的部分 数据,前述N3和前述M3均为大于0的整数。In a possible embodiment, the aforementioned first message includes N3 messages corresponding to the aforementioned first transmission interface, the aforementioned second message includes M3 messages corresponding to the aforementioned second transmission interface, and the aforementioned M3 messages The data included in the text is the second target data, the data of the aforementioned N3 messages is the first data, the aforementioned first data is part of the aforementioned second target data, and the aforementioned N3 and the aforementioned M3 are both integers greater than 0.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N4个报文,前述第二报文包括对应于前述第二传输接口的M4个报文,前述第一报文的数据为第二数据,前述第二报文的数据为第三数据,前述第二数据和前述第三数据分别为第三目标数据中的部分数据,前述第三目标数据为前述第一控制单元一个或多个时钟周期内所要发送的数据,前述N4和前述M4均为大于0的整数。In a possible embodiment, the aforementioned first message includes N4 messages corresponding to the aforementioned first transmission interface, the aforementioned second message includes M4 messages corresponding to the aforementioned second transmission interface, and the aforementioned first message The data in the message is the second data, the data in the second message is the third data, the second data and the third data are part of the third target data respectively, and the third target data is the first control data. The data to be sent by the unit within one or more clock cycles, the aforementioned N4 and the aforementioned M4 are both integers greater than 0.
可选的,前述第二数据和前述第三数据用于还原前述第三目标数据。Optionally, the aforementioned second data and the aforementioned third data are used to restore the aforementioned third target data.
一种可能的实施例中,前述第一报文中包括校验报文;In a possible embodiment, the first message includes a verification message;
前述第二报文是在前述第二控制单元接收前述校验报文后的预设时长内被前述第二控制单元接收的情况下,前述第二报文被确定是有效的;When the aforementioned second message is received by the aforementioned second control unit within a preset time period after the aforementioned second control unit receives the aforementioned verification message, the aforementioned second message is determined to be valid;
或者,or,
前述第二报文是在超过前述预设时长后被前述第二控制单元接收的情况下,前述第二报文被确定是无效的。If the second message is received by the second control unit after exceeding the preset time period, the second message is determined to be invalid.
一种可能的实施例中,前述校验报文和前述第二报文中包括同步校验信息,前述同步校验信息包括前述校验报文的标识ID、前述校验报文发送时所在的时钟周期的序号和前述第二报文中数据的校验值;前述第二报文是在前述第二控制单元接收前述校验报文后的预设时长内被前述第二控制单元接收的情况下,前述第二报文被确定是有效的,包括:In a possible embodiment, the aforementioned verification message and the aforementioned second message include synchronization verification information, and the aforementioned synchronization verification information includes the identification ID of the aforementioned verification message, the location where the aforementioned verification message is sent, and The sequence number of the clock cycle and the verification value of the data in the second message; the second message is received by the second control unit within a preset time after the second control unit receives the verification message. Next, the aforementioned second message was determined to be valid, including:
前述第二报文在前述第二控制单元接收前述校验报文后的预设时长内被前述第二控制单元接收,并且前述第二报文中的前述同步校验信息与前述校验报文中的前述同步校验信息相同的情况下,前述第二报文被确定是有效的。The aforementioned second message is received by the aforementioned second control unit within a preset time period after the aforementioned second control unit receives the aforementioned verification message, and the aforementioned synchronization verification information in the aforementioned second message is consistent with the aforementioned verification message. If the synchronization check information in the two messages is the same, the second message is determined to be valid.
一种可能的实施例中,前述第一报文被前述第二控制单元接收的时间晚于前述第二报文被前述第二控制单元接收的时间;In a possible embodiment, the time when the aforementioned first message is received by the aforementioned second control unit is later than the time when the aforementioned second message is received by the aforementioned second control unit;
上述第二控制单元还包括计算单元,用于在前述接收单元通过第二传输接口接收第二报文之后,根据前述第二报文中的数据进行计算。The above-mentioned second control unit also includes a calculation unit, configured to perform calculations based on the data in the above-mentioned second message after the above-mentioned receiving unit receives the second message through the second transmission interface.
一种可能的实施例中,上述第二控制单元还包括校验单元,用于在前述接收单元通过第一传输接口接收第一报文之后,对前述第一报文和前述第二报文中的数据进行校验处理。In a possible embodiment, the above-mentioned second control unit further includes a verification unit, configured to perform verification on the above-mentioned first message and the above-mentioned second message after the aforementioned receiving unit receives the first message through the first transmission interface. The data is verified.
一种可能的实施例中,前述校验单元具体用于:In a possible embodiment, the aforementioned verification unit is specifically used for:
在确定前述第一报文中的数据与前述第二报文中的数据不同的情况下,基于重传机制通过前述第二传输接口接收第三报文;When it is determined that the data in the first message is different from the data in the second message, receiving the third message through the second transmission interface based on the retransmission mechanism;
在前述第三报文中的数据与前述第二报文中的数据相同的情况下,对前述第一报文中的数据执行纠错策略。When the data in the third message is the same as the data in the second message, an error correction strategy is performed on the data in the first message.
一种可能的实施例中,前述第二控制单元为前述车辆中的转向系统包括的控制单元,前述车辆中的制动系统包括的控制单元,前述车辆中的动力系统包括的控制单元,前述车辆中的车身域控制器VDC系统包括的控制单元,前述车辆中的整车控制单元VCU,或前述车辆中的自主驾驶和辅助系统ADAS包括的控制单元。In a possible embodiment, the aforementioned second control unit is a control unit included in the steering system in the aforementioned vehicle, a control unit included in the braking system in the aforementioned vehicle, a control unit included in the power system in the aforementioned vehicle, the aforementioned vehicle The control unit included in the body domain controller VDC system, the vehicle control unit VCU in the aforementioned vehicle, or the control unit included in the autonomous driving and assistance system ADAS in the aforementioned vehicle.
一种可能的实施例中,前述第二控制单元为前述车辆中的转向系统包括的控制单元,前述车辆中的制动系统包括的控制单元,或前述车辆中的动力系统包括的控制单元;In a possible embodiment, the aforementioned second control unit is a control unit included in the steering system in the aforementioned vehicle, a control unit included in the braking system in the aforementioned vehicle, or a control unit included in the power system in the aforementioned vehicle;
前述第二控制单元通过前述第一传输接口与第一控制单元通信,前述第二控制单元还通过前述第二传输接口与前述第一控制单元通信,前述第一控制单元为前述车辆中的车身域控制器VDC系统包括的控制单元,前述车辆中的整车控制单元VCU,或前述车辆中的自主驾驶和辅助系统ADAS包括的控制单元。The aforementioned second control unit communicates with the aforementioned first control unit through the aforementioned first transmission interface. The aforementioned second control unit also communicates with the aforementioned first control unit through the aforementioned second transmission interface. The aforementioned first control unit is a body domain in the aforementioned vehicle. The control unit included in the controller VDC system, the vehicle control unit VCU in the aforementioned vehicle, or the control unit included in the autonomous driving and assistance system ADAS in the aforementioned vehicle.
一种可能的实施例中,前述第二控制单元通过前述第二传输接口与前述车辆中的交换单元通信,前述交换单元用于转发前述第二控制单元通过前述第二传输接口向前述第一控制单元发送的报文。In a possible embodiment, the second control unit communicates with the switching unit in the vehicle through the second transmission interface, and the switching unit is used to forward the data from the second control unit to the first control unit through the second transmission interface. Messages sent by the unit.
一种可能的实施例中,前述第一传输接口为控制器区域网CAN接口,前述第二传输接口为车载以太网接口。In a possible embodiment, the first transmission interface is a controller area network CAN interface, and the second transmission interface is a vehicle Ethernet interface.
第五方面,本申请实施例提供一种通信系统,该通信系统包括第一控制单元和第二控制单元,前述第一控制单元用于执行上述第一方面任一项所述的方法,前述第二控制单元用于执行上述第二方面任一项所述的方法。In a fifth aspect, embodiments of the present application provide a communication system. The communication system includes a first control unit and a second control unit. The aforementioned first control unit is used to execute the method described in any one of the above-mentioned first aspects. The aforementioned third control unit The two control units are used to execute the method described in any one of the above second aspects.
第六方面,本申请实施例提供一种控制器,该控制器包括控制单元和存储器。该存储器与控制单元耦合,控制单元执行存储器中存储的计算机程序或计算机指令时,可以实现上述第一方面任一项描述的方法。该设备还可以包括传输接口,传输接口用于该设备与其它设备进行通信,示例性的,传输接口可以是收发器、电路、总线、模块或其它类型的传输接口。In a sixth aspect, embodiments of the present application provide a controller, which includes a control unit and a memory. The memory is coupled to the control unit. When the control unit executes the computer program or computer instructions stored in the memory, the method described in any one of the above first aspects can be implemented. The device may also include a transmission interface, which is used for the device to communicate with other devices. For example, the transmission interface may be a transceiver, a circuit, a bus, a module, or other types of transmission interfaces.
在一种可能的实现中,该设备可以包括:In one possible implementation, the device may include:
存储器,用于存储计算机程序或计算机指令;Memory for storing computer programs or computer instructions;
控制单元,用于:Control unit for:
通过第一传输接口发送第一报文;Send the first message through the first transmission interface;
通过第二传输接口发送第二报文;Send the second message through the second transmission interface;
前述第一报文中的数据和前述第二报文中的数据是相关联的,前述第一传输接口和前述第二传输接口遵循的通信协议不同。The data in the first message and the data in the second message are related, and the communication protocols followed by the first transmission interface and the second transmission interface are different.
需要说明的是,本申请中存储器中的计算机程序或计算机指令可以预先存储也可以使用该设备时从互联网下载后存储,本申请对于存储器中计算机程序或计算机指令的来源不进行具体限定。本申请实施例中的耦合是装置、单元或模块之间的间接耦合或连接,其可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。It should be noted that the computer program or computer instructions in the memory in this application can be stored in advance or downloaded from the Internet when using the device. This application does not specifically limit the source of the computer program or computer instructions in the memory. The coupling in the embodiment of this application is an indirect coupling or connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information interaction between devices, units or modules.
第七方面,本申请实施例提供一种控制器,该控制器包括控制单元和存储器。该存储器与控制单元耦合,控制单元执行存储器中存储的计算机程序或计算机指令时,可以实现上述第二方面任一项描述的方法。该设备还可以包括传输接口,传输接口用于该设备与其它设备进行通信,示例性的,传输接口可以是收发器、电路、总线、模块或其它类型的传输接口。In a seventh aspect, embodiments of the present application provide a controller, which includes a control unit and a memory. The memory is coupled to the control unit. When the control unit executes the computer program or computer instructions stored in the memory, the method described in any one of the above second aspects can be implemented. The device may also include a transmission interface, which is used for the device to communicate with other devices. For example, the transmission interface may be a transceiver, a circuit, a bus, a module, or other types of transmission interfaces.
在一种可能的实现中,该设备可以包括:In one possible implementation, the device may include:
存储器,用于存储计算机程序或计算机指令;Memory for storing computer programs or computer instructions;
控制单元,用于:Control unit for:
通过第一传输接口接收第一报文;Receive the first message through the first transmission interface;
通过第二传输接口接收第二报文;Receive the second message through the second transmission interface;
前述第一报文中的数据和前述第二报文中的数据是相关联的,前述第一传输接口和前述第二传输接口遵循的通信协议不同。The data in the first message and the data in the second message are related, and the communication protocols followed by the first transmission interface and the second transmission interface are different.
需要说明的是,本申请中存储器中的计算机程序或计算机指令可以预先存储也可以使用该设备时从互联网下载后存储,本申请对于存储器中计算机程序或计算机指令的来源不进行具体限定。本申请实施例中的耦合是装置、单元或模块之间的间接耦合或连接,其可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。It should be noted that the computer program or computer instructions in the memory in this application can be stored in advance or downloaded from the Internet when using the device. This application does not specifically limit the source of the computer program or computer instructions in the memory. The coupling in the embodiment of this application is an indirect coupling or connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information interaction between devices, units or modules.
第八方面,本申请实施例提供一种芯片,该芯片包括处理器和存储器,其中,前述存储器用于存储计算机程序或计算机指令,前述处理器用于执行前述存储器中存储的计算机程序或计算机指令,使得前述芯片执行上述第一方面任一项所述的方法。In an eighth aspect, embodiments of the present application provide a chip, which includes a processor and a memory, wherein the memory is used to store computer programs or computer instructions, and the processor is used to execute the computer program or computer instructions stored in the memory, The aforementioned chip is caused to perform the method described in any one of the above first aspects.
第九方面,本申请实施例提供一种芯片,该芯片包括处理器和存储器,其中,前述存储器用于存储计算机程序或计算机指令,前述处理器用于执行前述存储器中存储的计算机程序或计算机指令,使得前述芯片执行上述第二方面任一项所述的方法。In a ninth aspect, embodiments of the present application provide a chip, which includes a processor and a memory, wherein the memory is used to store computer programs or computer instructions, and the processor is used to execute the computer program or computer instructions stored in the memory, The aforementioned chip is caused to perform the method described in any one of the above second aspects.
第十方面,本申请实施例一种车辆,该车辆包括第一控制单元和/或第二控制单元,前述第一控制单元用于执行上述第一方面任一项所述的方法,前述第二控制单元用于执行上述第二方面任一项所述的方法。In a tenth aspect, an embodiment of the present application provides a vehicle. The vehicle includes a first control unit and/or a second control unit. The first control unit is used to execute the method described in any one of the first aspects. The second control unit The control unit is configured to execute the method described in any one of the above second aspects.
第十一方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序或计算机指令,前述计算机程序或计算机指令被处理器执行以实现上述第一方面任一项所述的方法。In an eleventh aspect, the present application provides a computer-readable storage medium that stores a computer program or computer instructions. The computer program or computer instructions are executed by a processor to implement any one of the above-mentioned first aspects. method described.
第十二方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序或计算机指令,前述计算机程序或计算机指令被处理器执行以实现上述第二方面任一项所述的方法。In a twelfth aspect, the present application provides a computer-readable storage medium that stores a computer program or computer instructions. The computer program or computer instructions are executed by a processor to implement any one of the above-mentioned second aspects. method described.
第十三方面,本申请提供一种计算机程序产品,该计算机程序产品被处理器执行时,上述第一方面任一项所述的方法将被执行。In a thirteenth aspect, the present application provides a computer program product. When the computer program product is executed by a processor, any of the methods described in the first aspect will be executed.
第十四方面,本申请提供一种计算机程序产品,该计算机程序产品被处理器执行时,上述第二方面任一项所述的方法将被执行。In a fourteenth aspect, the present application provides a computer program product. When the computer program product is executed by a processor, any of the methods described in the second aspect will be executed.
第十五方面,本申请实施例提供一种芯片,该芯片包括处理器,其中,前述处理器用于执行存储器中存储的计算机程序或计算机指令,使得前述芯片执行上述第一方面任一项所述的方法。In a fifteenth aspect, embodiments of the present application provide a chip, which includes a processor, wherein the processor is used to execute a computer program or computer instructions stored in a memory, so that the chip executes any one of the above first aspects. Methods.
第十六方面,本申请实施例提供一种芯片,该芯片包括处理器,其中,前述处理器用于执行存储器中存储的计算机程序或计算机指令,使得前述芯片执行上述第二方面任一项所述的方法。In a sixteenth aspect, embodiments of the present application provide a chip, which includes a processor, wherein the processor is used to execute a computer program or computer instructions stored in a memory, so that the chip executes any one of the above second aspects. Methods.
上述第三方面至第十六方面提供的方案,用于实现或配合实现上述第一方面或第二方面中对应提供的方法,因此可以与第一方面或第二方面中对应的方法达到相同或相应的有益效果,此处不再进行赘述。The solutions provided by the above-mentioned third aspect to the sixteenth aspect are used to implement or cooperate with the corresponding methods provided in the above-mentioned first or second aspect, and therefore can achieve the same or better results as the corresponding methods in the first or second aspect. The corresponding beneficial effects will not be described again here.
附图说明Description of drawings
图1A所示为本申请实施例提供的通信系统架构示意图;Figure 1A shows a schematic diagram of the communication system architecture provided by an embodiment of the present application;
图1B所示为本申请实施例提供的通信系统架构示意图;Figure 1B shows a schematic diagram of the communication system architecture provided by an embodiment of the present application;
图1C所示为本申请实施例提供的通信系统架构示意图;Figure 1C shows a schematic diagram of the communication system architecture provided by the embodiment of the present application;
图2A所示为本申请实施例提供的转向系统架构示意图;Figure 2A shows a schematic diagram of the steering system architecture provided by an embodiment of the present application;
图2B所示为本申请实施例提供的制动系统架构示意图;Figure 2B shows a schematic diagram of the braking system architecture provided by the embodiment of the present application;
图3所示为本申请实施例提供的通信方法流程示意图;Figure 3 shows a schematic flow chart of the communication method provided by the embodiment of the present application;
图4所示为本申请实施例提供的报文发送示意图;Figure 4 shows a schematic diagram of message sending provided by the embodiment of the present application;
图5所示为本申请实施例提供的报文发送流程示意图;Figure 5 shows a schematic diagram of the message sending process provided by the embodiment of the present application;
图6所示为本申请实施例提供的一个报文发送示意图;Figure 6 shows a schematic diagram of message sending provided by the embodiment of the present application;
图7所示为本申请实施例提供的另一个报文发送示意图;Figure 7 shows another message sending schematic diagram provided by the embodiment of the present application;
图8所示为本申请实施例提供的报文格式示意图;Figure 8 shows a schematic diagram of the message format provided by the embodiment of this application;
图9和图10所示为本申请实施例提供的控制单元的一种结构示意图;Figures 9 and 10 show a schematic structural diagram of a control unit provided by an embodiment of the present application;
图11和图12所示为本申请实施例提供的控制单元的另一种结构示意图。Figures 11 and 12 show another structural schematic diagram of a control unit provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例中,“多个”是指两个或两个以上。本申请实施例中,“和/或”用于描述关联对象的关联关系,表示可以独立存在的三种关系,例如,A和/或B,可以表示:单独存在A,单独存在B,或同时存在A和B。本申请实施例中采用的诸如“a1、a2、……和an中的至少一项(或至少一个)”等的描述方式,包括了a1、a2、……和an中任意一个单独存在的情况,也包括了a1、a2、……和an中任意多个的任意组合情况,每种情况可以单独存在;例如,“a、b和c中的至少一项”的描述方式,包括了单独a、单独b、单独c、a和b组合、a和c组合、b和c组合,或abc三者组合的情况。In the embodiment of this application, "multiple" refers to two or more. In the embodiment of this application, "and/or" is used to describe the association of associated objects, indicating three relationships that can exist independently. For example, A and/or B can mean: A exists alone, B exists alone, or both. There are A and B. Descriptions such as "at least one (or at least one) of a1, a2, ... and an" used in the embodiments of this application include the situation where any one of a1, a2, ... and an exists alone. , also includes any combination of any more of a1, a2,... and an, each situation can exist alone; for example, the description of "at least one of a, b, and c" includes a single a , b alone, c alone, a and b combination, a and c combination, b and c combination, or a combination of abc.
在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,各个实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。In the various embodiments of this application, if there is no special explanation or logical conflict, the terms and/or descriptions between the various embodiments are consistent and can be referenced to each other. The technical features in different embodiments are based on their inherent logic. Relationships can be combined to form new embodiments.
下面将对本申请实施例中所需要使用的附图作介绍。The drawings needed to be used in the embodiments of this application will be introduced below.
参见图1A、图1B和图1C,示例性示出了本申请提供的车辆内的通信系统的示意图。Referring to FIG. 1A , FIG. 1B and FIG. 1C , a schematic diagram of an in-vehicle communication system provided by the present application is exemplarily shown.
一种可能的实施方式中,本申请实施例提供的一种车辆内的通信系统可以如图1A所示。该通信系统包括多个控制单元,图中示例性地以n个控制单元为例示出,其中,n为大于1的整数。在图中可以看到,每个控制单元均包括第一通信网络接口和第二通信网络接口。控制单元包括的该第一通信网络接口和第二通信网络接口对于该控制单元是互为冗余的通信接口。即控制单元既可以通过第一通信网络接口与另一个控制单元通信,也可以通过第二通信网络接口与该另一个控制单元通信。控制单元通过第一通信网络接口接入第一通信网络,通过第二通信网络接口接入第二通信网络。控制单元既是第一通信网络的网络节点,又是第二通信网络的网络节点。该第一通信网络和该第二通信网络对于该控制单元是互为冗余的通信网络。即控制单元既可以通过第一通信网络与另一个控制单元通信,也可以通过第二通信网络与该另一个控制单元通信。In a possible implementation, an in-vehicle communication system provided by the embodiment of the present application may be as shown in Figure 1A. The communication system includes multiple control units, and n control units are exemplarily shown in the figure, where n is an integer greater than 1. As can be seen in the figure, each control unit includes a first communication network interface and a second communication network interface. The first communication network interface and the second communication network interface included in the control unit are mutually redundant communication interfaces for the control unit. That is, the control unit can communicate with another control unit through the first communication network interface, and can also communicate with the other control unit through the second communication network interface. The control unit accesses the first communication network through the first communication network interface and accesses the second communication network through the second communication network interface. The control unit is both a network node of the first communication network and a network node of the second communication network. The first communication network and the second communication network are mutually redundant communication networks for the control unit. That is, the control unit can communicate with another control unit through the first communication network or communicate with the other control unit through the second communication network.
图1A所示的第一通信网络为总线型拓扑结构的网络。图1A所示的第二通信网络为星型拓扑结构的网络,控制单元1为该星型拓扑结构的中心节点。可以看到,在第一通信网络中,每个控制单元均包括一个第一通信网络接口,这些第一通信网络接口均连接到一条第一通信网络总线上,通过第一通信网络总线传输数据。即控制单元可以通过该一条第一通信网络总线与另外的一个或多个控制单元通信。在第二通信网络中,控制单元1为中心网络节点,包括多个第二通信网络接口,每个第二通信网络接口通过第二通信网络总线与另一个控制单元连接。控制单元1的第一通信网络接口与控制单元1的每一个第二通信网络接口均是互为冗余的通信接口。The first communication network shown in FIG. 1A is a network with a bus topology. The second communication network shown in FIG. 1A is a network with a star topology, and the control unit 1 is the central node of the star topology. It can be seen that in the first communication network, each control unit includes a first communication network interface, and these first communication network interfaces are connected to a first communication network bus to transmit data through the first communication network bus. That is, the control unit can communicate with one or more other control units through the first communication network bus. In the second communication network, the control unit 1 is a central network node and includes a plurality of second communication network interfaces. Each second communication network interface is connected to another control unit through a second communication network bus. The first communication network interface of the control unit 1 and each second communication network interface of the control unit 1 are mutually redundant communication interfaces.
一种可能的实施方式中,本申请实施例提供的一种车辆内的通信系统可以如图1B所示。图1B所示的通信系统和图1A所示的通信系统不同的是第二通信网络的拓扑结构。图1B所示的通信系统的第二通信网络是总线型拓扑结构的网络。可以看到,在第二通信网络中,每个控制单元均包括一个第二通信网络接口,这些第二通信网络接口均连接到一条第二通信网络总线上,通过第二通信网络总线传输数据。即控制单元可以通过该一条第二通信网络总线与另外的一个或多个控制单元通信。关于图1B其余的相关介绍可以参见上述图1A的介绍,此处不赘述。In a possible implementation, an in-vehicle communication system provided by the embodiment of the present application may be as shown in Figure 1B. The difference between the communication system shown in FIG. 1B and the communication system shown in FIG. 1A is the topological structure of the second communication network. The second communication network of the communication system shown in FIG. 1B is a network with a bus topology. It can be seen that in the second communication network, each control unit includes a second communication network interface, and these second communication network interfaces are connected to a second communication network bus, and data is transmitted through the second communication network bus. That is, the control unit can communicate with one or more other control units through the second communication network bus. For the rest of the relevant introduction to Figure 1B, please refer to the introduction of Figure 1A above, and will not be described again here.
一种可能的实施方式中,本申请实施例提供的一种车辆内的通信系统可以如图1C所示。图1C所示的通信系统和图1A所示的通信系统不同的是第二通信网络的拓扑结构。图1C所示的通信系统的第二通信网络是交换式网络结构。可以看到,在第二通信网络中,除了控制单元还包括多个交换单元。这些交换单元用于转发控制单元之间的数据。每个交换单元都可 以通过第二通信网络接口与至少两个控制单元连接,以用于转发该至少两个控制单元之间的数据。一个交换单元也可以通过第二通信网络接口与另一个交换单元连接,该通过第二通信网络接口连接的两个交换单元可以互相转发来自对方的数据。可选的,该第二通信网络中的网络接口也可以提供给车辆中其它的装置、单元或设备单点接入进行通信,即控制单元可以不通过交换单元,而是通过第二通信网络接口与其它的装置、单元或设备直连进行通信。关于图1C其余的相关介绍可以参见上述图1A的介绍,此处不赘述。In a possible implementation, an in-vehicle communication system provided by the embodiment of the present application may be as shown in Figure 1C. The communication system shown in FIG. 1C is different from the communication system shown in FIG. 1A in the topological structure of the second communication network. The second communication network of the communication system shown in Figure 1C is a switched network structure. It can be seen that in the second communication network, in addition to the control unit, a plurality of switching units are also included. These switching units are used to forward data between control units. Each switching unit can be connected to at least two control units through a second communication network interface for forwarding data between the at least two control units. One switching unit can also be connected to another switching unit through the second communication network interface, and the two switching units connected through the second communication network interface can forward data from each other to each other. Optionally, the network interface in the second communication network can also provide a single point of access for other devices, units or equipment in the vehicle to communicate. That is, the control unit may not pass through the switching unit, but through the second communication network interface. Communicates directly with other devices, units or equipment. For the rest of the relevant introduction of Figure 1C, please refer to the introduction of Figure 1A above, and will not be described again here.
一种可能的实施例中,上述交换单元中包括局域网交换芯片(LAN switch,LSW)。示例性地,该交换单元可以是网关或车辆集成单元(vehicle integration unit,VIU)。在具体实现中,VIU可以为多个控制单元提供部分或全部的数据处理功能或控制功能。下面示例性介绍VIU具有的功能,应理解,上述VIU可以具有以下多种功能中的一种或多种:In a possible embodiment, the above-mentioned switching unit includes a local area network switch chip (LAN switch, LSW). For example, the switching unit may be a gateway or a vehicle integration unit (VIU). In specific implementation, VIU can provide some or all of the data processing functions or control functions for multiple control units. The following is an example of the functions of VIU. It should be understood that the above VIU can have one or more of the following functions:
①电子控制功能,即VIU用于实现部分或全部上述控制单元内部的电子控制单元(electronic control unit,ECU)提供的电子控制功能。例如,某一控制单元所需的控制功能,又例如,某一控制单元所需的数据处理功能。① Electronic control function, that is, VIU is used to realize the electronic control functions provided by the electronic control unit (ECU) inside some or all of the above control units. For example, the control functions required by a certain control unit, or the data processing functions required by a certain control unit.
②与网关相同的功能,即VIU还可以具有部分或全部与网关相同的功能,例如,协议转换功能、协议封装并转发功能以及数据格式转换功能。② The same functions as the gateway, that is, the VIU can also have some or all of the same functions as the gateway, such as protocol conversion function, protocol encapsulation and forwarding function, and data format conversion function.
③跨控制单元的数据的处理功能,即对从多个控制单元的执行器获取的数据进行处理或计算等功能。③The processing function of data across control units, that is, the function of processing or calculating data obtained from the actuators of multiple control units.
需要说明的是,上述功能中涉及的数据,可以包括控制单元中执行器的运行数据,例如,执行器的运动参数,执行器的工作状态等。上述功能中涉及的数据还可以是通过控制单元的数据采集单元(例如,敏感元件或传感器)采集的数据。例如,通过车辆的敏感元件采集的车辆所行驶的道路信息,或者天气信息等,本申请实施例对此不做具体限定。It should be noted that the data involved in the above functions may include the operating data of the actuator in the control unit, for example, the motion parameters of the actuator, the working status of the actuator, etc. The data involved in the above functions may also be data collected through the data acquisition unit of the control unit (for example, a sensitive element or sensor). For example, the road information on which the vehicle is traveling or weather information collected through the vehicle's sensitive components are not specifically limited in the embodiments of the present application.
在本申请实施例中,上述第一通信网络接口和上述第二通信网络接口遵循的通信协议不同,即上述第一通信网络和第二通信网络遵循的通信协议不同。In this embodiment of the present application, the communication protocols followed by the first communication network interface and the second communication network interface are different, that is, the communication protocols followed by the first communication network and the second communication network are different.
一种可能的实施方式中,上述第一通信网络可以是CAN网络。上述第一通信网络接口可以是CAN接口。该第一通信网络和该第一通信网络接口遵循的是CAN网络的通信协议。上述第二通信网络可以是车载以太网。上述第二通信网络接口可以是车载以太网接口。该第二通信网络和该第二通信网络接口遵循的是车载以太网的通信协议。In a possible implementation, the first communication network may be a CAN network. The above-mentioned first communication network interface may be a CAN interface. The first communication network and the first communication network interface follow the communication protocol of the CAN network. The above-mentioned second communication network may be vehicle Ethernet. The above-mentioned second communication network interface may be a vehicle-mounted Ethernet interface. The second communication network and the second communication network interface follow the communication protocol of the vehicle Ethernet.
一种可能的实施方式中,上述CAN网络可以是弹性数据波特率的控制器区域网络(CAN with flexible data-rate,CANFD)。上述控制单元的CAN接口可以是CANFD总线接口。或者,另一种可能的实施方式中,上述CAN网络可以是第三代CAN通信技术网络(CAN extra large,CANXL)。上述控制单元的CAN接口可以是CANXL总线接口。In a possible implementation, the above-mentioned CAN network may be a controller area network with flexible data-rate (CAN with flexible data-rate, CANFD). The CAN interface of the above control unit may be a CANFD bus interface. Or, in another possible implementation, the above-mentioned CAN network may be a third-generation CAN communication technology network (CAN extra large, CANXL). The CAN interface of the above control unit may be a CANXL bus interface.
一种可能的实施方式中,上述车载以太网接口可以是10BASE-T1S、10BASE-T1、100Base-T1或1000Base-T1等快速以太网标准的以太网接口。In a possible implementation, the above-mentioned vehicle Ethernet interface may be an Ethernet interface of a Fast Ethernet standard such as 10BASE-T1S, 10BASE-T1, 100Base-T1 or 1000Base-T1.
一种可能的实施例中,上述第一通信网络可以是CAN网络。上述第一通信网络接口可以是CAN接口。该第一通信网络和该第一通信网络接口遵循的是CAN网络的通信协议。上述第二通信网络可以是车载无线网络。上述第二通信网络接口可以是车载无线网络接口。该第二通信网络和该第二通信网络接口遵循的是车载无线网络的通信协议。In a possible embodiment, the first communication network may be a CAN network. The above-mentioned first communication network interface may be a CAN interface. The first communication network and the first communication network interface follow the communication protocol of the CAN network. The above-mentioned second communication network may be a vehicle-mounted wireless network. The above-mentioned second communication network interface may be a vehicle-mounted wireless network interface. The second communication network and the second communication network interface follow the communication protocol of the vehicle wireless network.
上述第二通信网络不限于上述介绍的网络,例如还可以是蓝牙网络或未来定义的车载网络。上述第二通信网络接口也不限于上述介绍的网络接口,例如还可以是蓝牙接口或未来定义的车载网路接口,本申请实施例对此不做限制。The above-mentioned second communication network is not limited to the network introduced above. For example, it may also be a Bluetooth network or a vehicle-mounted network defined in the future. The above-mentioned second communication network interface is not limited to the network interface introduced above. For example, it may also be a Bluetooth interface or a vehicle-mounted network interface defined in the future. The embodiments of the present application are not limited to this.
一种可能的实施方式中,上述图1A、图1B和图1C中的控制单元可以是功能安全较高的 单元。示例性地,该功能安全较高的单元可以是汽车安全完整性等级(automotive safety integration level,ASIL)达到C级或D级或更高等级的控制单元。功能安全较高的单元均会要求对主要的控制和系统交互的通信链路进行冗余备份机制,以防止单一通信链路失效造成的控制失效等风险。示例性地,上述图1A、图1B和图1C中的控制单元1可以是车辆中的车身域控制器(vehicle domain controller,VDC)系统包括的控制单元,或者可以是车辆中的整车控制器(vehicle control unit,VCU),或者可以是车辆中自主驾驶和辅助系统(advanced driver assistance system,ADAS)包括的控制单元。示例性地,上述图1A、图1B和图1C所示的通信系统中除了控制单元1之外的控制单元可以包括车辆中的转向系统包括的控制单元,制动系统包括的控制单元,或动力系统包括的控制单元等。其中动力系统可以包括前驱动电机和后驱动电机等装置。需要说明的是,此处仅为示例,不构成对本申请实施例的限制。上述通信系统中的控制单元可以是车辆中任意需要冗余接入的子系统或控制器,本申请实施例对此不做限制。In a possible implementation, the control unit in Figure 1A, Figure 1B and Figure 1C can be a unit with high functional safety. For example, the unit with higher functional safety may be a control unit with an automotive safety integrity level (ASIL) reaching level C or level D or higher. Units with high functional safety will require a redundant backup mechanism for the main control and system interaction communication links to prevent risks such as control failure caused by the failure of a single communication link. For example, the control unit 1 in the above-mentioned Figures 1A, 1B and 1C can be a control unit included in a vehicle domain controller (vehicle domain controller, VDC) system, or can be a whole vehicle controller in the vehicle. (vehicle control unit, VCU), or it can be a control unit included in the autonomous driving and assistance system (advanced driver assistance system, ADAS) in the vehicle. For example, the control unit other than the control unit 1 in the communication system shown in FIG. 1A, FIG. 1B and FIG. 1C may include a control unit included in the steering system in the vehicle, a control unit included in the braking system, or a power unit. The system includes control units, etc. The power system may include front drive motors and rear drive motors. It should be noted that this is only an example and does not constitute a limitation on the embodiments of the present application. The control unit in the above communication system can be any subsystem or controller in the vehicle that requires redundant access, and the embodiment of the present application does not limit this.
上述图1A、图1B和图1C所示的通信系统的结构仅为示例,不构成对本申请实施例的限制。The structure of the communication system shown in FIG. 1A, FIG. 1B and FIG. 1C is only an example and does not constitute a limitation on the embodiments of the present application.
本申请实施例实现不同通信协议的双网络下的异构通信技术,通过构建异构网络通信,提升功能安全特性,可以解决共因失效问题和系统因通信交互效率引起的时延开销过大问题,以及网络接入点扩容难等一系列问题。该共因失效是指因为同一个设计缺陷或者质量问题,而导致采用相关的技术实现的单元产生相同因素的失效风险。例如在CAN总线中如果发现严重的逻辑缺陷,或者存在其他的未知设计缺陷,一旦造成失效,则所有使用此技术的接口,将均可能失效。从而导致系统交互失效,存在因为一个共同的因素而使系统失效。The embodiments of this application implement heterogeneous communication technology under dual networks with different communication protocols. By constructing heterogeneous network communication and improving functional safety features, it can solve the problem of common cause failure and the problem of excessive delay overhead caused by communication interaction efficiency in the system. , as well as a series of problems such as the difficulty in expanding the capacity of network access points. This common cause failure refers to the risk of failure of units implemented using related technologies due to the same design defect or quality problem due to the same factor. For example, if serious logic flaws are found in the CAN bus, or there are other unknown design flaws, once the failure occurs, all interfaces using this technology may fail. This leads to system interaction failure, and there is a common factor that causes the system to fail.
基于上述的描述,在本申请实施例提供的通信系统中,控制单元包括互为冗余的第一通信网络接口和第二通信网络接口。下面以控制单元为转向系统或制动系统包括的控制单元为例介绍控制单元的冗余通信接口设计方案。可以示例性地参见图2A和图2B。Based on the above description, in the communication system provided by the embodiment of the present application, the control unit includes a first communication network interface and a second communication network interface that are redundant to each other. The following takes the control unit included in the steering system or braking system as an example to introduce the redundant communication interface design scheme of the control unit. See FIG. 2A and FIG. 2B for example.
图2A示例性示出了转向系统的结构示意图。可以看到,转向系统包括转向控制器1和转向控制器2。该转向控制器1和转向控制器2即为上述转向系统包括的控制单元。转向控制器1和转向控制器2连接,可以实现互相通信。转向系统还包括功率模块1、功率模块2、电源1和电源2等。其中,功率模块1与转向控制器1连接,用于向转向控制器1提供转向控制指示信号等。功率模块2与转向控制器2连接,用于向转向控制器2提供转向控制指示信号等。电源1分别与转向控制器1和功率模块1连接,用于为转向控制器1和功率模块1供电。电源2分别与转向控制器2和功率模块2连接,用于为转向控制器2和功率模块2供电。另外,转向控制器1与第一通信网络接口连接,通过第一通信网络接口接入第一通信网络。转向控制器2与第二通信网络接口连接,通过第二通信网络接口接入第二通信网络。FIG. 2A exemplarily shows a schematic structural diagram of the steering system. It can be seen that the steering system includes steering controller 1 and steering controller 2. The steering controller 1 and the steering controller 2 are the control units included in the above-mentioned steering system. Steering controller 1 and steering controller 2 are connected and can communicate with each other. The steering system also includes power module 1, power module 2, power supply 1, power supply 2, etc. The power module 1 is connected to the steering controller 1 and is used to provide steering control instruction signals to the steering controller 1 . The power module 2 is connected to the steering controller 2 and is used to provide steering control indication signals to the steering controller 2 . The power supply 1 is connected to the steering controller 1 and the power module 1 respectively, and is used to supply power to the steering controller 1 and the power module 1. The power supply 2 is connected to the steering controller 2 and the power module 2 respectively, and is used to supply power to the steering controller 2 and the power module 2 . In addition, the steering controller 1 is connected to the first communication network interface and accesses the first communication network through the first communication network interface. The steering controller 2 is connected to the second communication network interface and accesses the second communication network through the second communication network interface.
可以看到,上述图2A中,转向系统包括两个转向控制器,一个转向控制器与第一通信网络接口连接,另一个转向控制器与第二通信网络接口连接,从而实现了转向系统的异构冗余通信接口的设计。It can be seen that in Figure 2A above, the steering system includes two steering controllers, one steering controller is connected to the first communication network interface, and the other steering controller is connected to the second communication network interface, thus realizing the differentiation of the steering system. Design of redundant communication interface.
示例性地,上述第一通信网络接口可以是CAN收发器。示例性地,上述第二通信网络接口可以是基于车载以太网物理层(physical layer,PHY)实现,或者是车载以太网收发器。示例性地,转向控制器可以为微控制单元(micro control unit,MCU)、ECU或其它处理单元等,本申请实施例对此不做限制。By way of example, the above-mentioned first communication network interface may be a CAN transceiver. For example, the above-mentioned second communication network interface may be implemented based on a vehicle Ethernet physical layer (PHY), or may be a vehicle Ethernet transceiver. For example, the steering controller may be a micro control unit (MCU), ECU or other processing unit, etc., and the embodiment of the present application does not limit this.
另一种可能的实施例中,可以是在上述两个转向控制器中的一个转向控制器上设计该第 一通信网络接口和该第二通信网络接口。即该第一通信网络接口和该第二通信网络接口可以连接到一个转向控制器上。In another possible embodiment, the first communication network interface and the second communication network interface may be designed on one of the above-mentioned two steering controllers. That is, the first communication network interface and the second communication network interface can be connected to a steering controller.
另一种可能的实施方式中,转向系统也可以是包括一个转向控制器或两个以上的转向控制器。然后,该第一通信网络接口可以是连接在该转向系统中的任意一个转向控制器上,该第二通信网络接口也可以是连接在该转向系统中的任意一个转向控制器上。In another possible implementation, the steering system may also include one steering controller or two or more steering controllers. Then, the first communication network interface may be connected to any steering controller in the steering system, and the second communication network interface may also be connected to any steering controller in the steering system.
图2B示例性示出了制动系统的结构示意图。可以看到,制动系统包括制动控制器1和制动控制器2。该制动控制器1和制动控制器2即为该制动系统包括的控制单元。制动控制器1和制动控制器2连接,可以实现互相通信。制动系统还包括电机驱动单元1、电机驱动单元2、踏板行程传感器、轮速传感器和减速度传感器等。其中,电机驱动单元1与制动控制器1连接,用于基于制动控制器1的指令驱动电机。电机驱动单元2与制动控制器2连接,用于基于制动控制器2的指令驱动电机。踏板行程传感器、轮速传感器和减速度传感器均与两个制动控制器连接,用于提供对应的传感数据给制动控制器。另外,制动控制器1与第一通信网络接口连接,通过第一通信网络接口接入第一通信网络。制动控制器2与第二通信网络接口连接,通过第二通信网络接口接入第二通信网络。Figure 2B illustrates a schematic structural diagram of the braking system. It can be seen that the braking system includes brake controller 1 and brake controller 2. The brake controller 1 and the brake controller 2 are the control units included in the brake system. Brake controller 1 and brake controller 2 are connected and can communicate with each other. The braking system also includes motor drive unit 1, motor drive unit 2, pedal stroke sensor, wheel speed sensor, deceleration sensor, etc. The motor drive unit 1 is connected to the brake controller 1 and is used to drive the motor based on instructions from the brake controller 1 . The motor drive unit 2 is connected to the brake controller 2 and is used to drive the motor based on instructions from the brake controller 2 . The pedal stroke sensor, wheel speed sensor and deceleration sensor are all connected to the two brake controllers to provide corresponding sensing data to the brake controllers. In addition, the brake controller 1 is connected to the first communication network interface and accesses the first communication network through the first communication network interface. The brake controller 2 is connected to the second communication network interface and accesses the second communication network through the second communication network interface.
可以看到,上述图2B中,制动系统包括两个制动控制器,一个制动控制器与第一通信网络接口连接,另一个制动控制器与第二通信网络接口连接,从而实现了制动系统的异构冗余通信接口的设计。示例性地,上述第一通信网络接口可以是第一传输收发器。示例性地,上述第二通信网络接口可以是基于第二通信网络PHY实现,或者是第二通信网络收发器。示例性地,制动控制器可以为MCU、ECU或其它处理单元等,本申请实施例对此不做限制。It can be seen that in the above Figure 2B, the braking system includes two brake controllers, one brake controller is connected to the first communication network interface, and the other brake controller is connected to the second communication network interface, thereby realizing Design of heterogeneous redundant communication interfaces for braking systems. For example, the above-mentioned first communication network interface may be a first transmission transceiver. For example, the above-mentioned second communication network interface may be implemented based on the second communication network PHY, or may be a second communication network transceiver. For example, the brake controller may be an MCU, an ECU, or other processing unit, which is not limited in the embodiment of the present application.
另一种可能的实施例中,可以是在该两个制动控制器中的一个制动控制器上设计该第一通信网络接口和该第二通信网络接口。即该第一通信网络接口和该第二通信网络接口可以连接到一个制动控制器上。In another possible embodiment, the first communication network interface and the second communication network interface may be designed on one of the two brake controllers. That is, the first communication network interface and the second communication network interface can be connected to a brake controller.
另一种可能的实施方式中,制动系统也可以是包括一个制动控制器或两个以上的制动控制器。然后,该第一通信网络接口可以是连接在该制动系统中的任意一个制动控制器上,该第二通信网络接口也可以是连接在该制动系统中的任意一个制动控制器上。In another possible implementation, the braking system may also include one brake controller or two or more brake controllers. Then, the first communication network interface can be connected to any brake controller in the braking system, and the second communication network interface can also be connected to any brake controller in the braking system. .
其它控制单元,例如动力系统包括的控制单元、VDC包括的控制单元、VCU或ADAS包括的控制单元等的异构冗余通信接口的设计可以参考上述转向系统或制动系统的冗余通信接口设计,本申请实施例不赘述。The design of heterogeneous redundant communication interfaces of other control units, such as the control unit included in the power system, the control unit included in VDC, the control unit included in VCU or ADAS, etc. can refer to the redundant communication interface design of the steering system or braking system mentioned above. , no details will be given in the embodiments of this application.
本申请实施例通过在控制单元中设置互为冗余的异构网络通信接口,使得可以利用第一传输总线和第二通信网络总线的不同物理传输特性,可以解决因为同种传输技术下的缺陷导致控制单元对外交互失效的问题。提升了控制单元的交互性能,也提高了控制单元的通信安全可靠性。另外,若第二通信网络为车载以太网,还可以利用第二通信网络大带宽的特性,提高数据的传输效率。The embodiments of the present application set up mutually redundant heterogeneous network communication interfaces in the control unit, so that the different physical transmission characteristics of the first transmission bus and the second communication network bus can be utilized, and the defects caused by the same transmission technology can be solved. A problem that causes the external interaction of the control unit to fail. It improves the interactive performance of the control unit and also improves the communication security and reliability of the control unit. In addition, if the second communication network is a vehicle-mounted Ethernet, the large bandwidth characteristics of the second communication network can also be used to improve data transmission efficiency.
下面介绍本申请实施例提供的车辆中的通信方法,该方法可以示例性地应用于上述通信系统的控制单元中。示例性地,可以参见图3,该通信方法包括但不限于如下步骤:The communication method in the vehicle provided by the embodiment of the present application is introduced below. This method can be exemplarily applied to the control unit of the above communication system. For example, referring to Figure 3, the communication method includes but is not limited to the following steps:
S301、第一控制单元通过第一传输接口发送第一报文,并通过第二传输接口发送第二报文,该第一报文中的数据和该第二报文中的数据是相关联的,该第一传输接口和该第二传输接口遵循的通信协议不同。S301. The first control unit sends a first message through the first transmission interface, and sends a second message through the second transmission interface. The data in the first message and the data in the second message are related. , the first transmission interface and the second transmission interface follow different communication protocols.
示例性地,上述第一控制单元可以是车辆中的转向系统包括的控制单元,制动系统包括的控制单元,动力系统包括的控制单元,车身域控制器VDC系统包括的控制单元,该车辆中 的整车控制单元VCU,或自主驾驶和辅助系统ADAS包括的控制单元等。For example, the above-mentioned first control unit may be a control unit included in the steering system, a control unit included in the braking system, a control unit included in the power system, and a control unit included in the body domain controller VDC system in the vehicle. The vehicle control unit VCU, or the control unit included in the autonomous driving and assistance system ADAS, etc.
该第一控制单元中设置有互为冗余的第一传输接口和第二传输接口。示例性地,该第一传输接口可以是上述第一通信网络接口,该第二传输接口可以是上述第二通信网络接口。关于第一控制单元中第一传输接口和第二传输接口的设计可以参考上述图2A或图2B及其可能的实施方式中的设计,此处不赘述。The first control unit is provided with a first transmission interface and a second transmission interface that are redundant to each other. For example, the first transmission interface may be the above-mentioned first communication network interface, and the second transmission interface may be the above-mentioned second communication network interface. Regarding the design of the first transmission interface and the second transmission interface in the first control unit, reference may be made to the design in the above-mentioned FIG. 2A or FIG. 2B and its possible implementations, and will not be described again here.
需要说明的是,本申请实例不限制第一控制单元的具体形态,设置了互为冗余的第一传输接口和第二传输接口的控制单元均可以是本申请实施例所述的第一控制单元。It should be noted that the examples of this application do not limit the specific form of the first control unit. The control unit provided with the first transmission interface and the second transmission interface that are redundant to each other can be the first control unit described in the embodiments of this application. unit.
具体的,第一控制单元可以通过该互为冗余的第一传输接口和第二传输接口向另一个控制单元(简称为第二控制单元)发送报文。第一控制单元通过该第一传输接口向第二控制单元发送的报文可以简称为第一报文。第一控制单元通过该第二传输接口向第二控制单元发送的报文可以简称为第二报文。该第一报文中的数据和该第二报文中的数据是相关联的,后续会进一步介绍该第一报文和第二报文中的数据的关联性,此处暂不详述。示例性地,该第一报文中的数据指的是该第一报文中的有效负载(payload),该第二报文中的数据指的是该第二报文中的有效负载。Specifically, the first control unit may send a message to another control unit (referred to as the second control unit for short) through the mutually redundant first transmission interface and the second transmission interface. The message sent by the first control unit to the second control unit through the first transmission interface may be referred to as the first message for short. The message sent by the first control unit to the second control unit through the second transmission interface may be referred to as the second message for short. The data in the first message and the data in the second message are related. The correlation between the data in the first message and the second message will be further introduced later, which will not be described in detail here. For example, the data in the first message refers to the payload in the first message, and the data in the second message refers to the payload in the second message.
S302、第二控制单元通过第三传输接口接收第一报文,并通过第四传输接口接收第二报文,该第三传输接口和该第四传输接口遵循的通信协议不同。S302. The second control unit receives the first message through the third transmission interface, and receives the second message through the fourth transmission interface. The third transmission interface and the fourth transmission interface follow different communication protocols.
示例性地,若上述第一控制单元是车辆中的转向系统包括的控制单元、制动系统包括的控制单元或动力系统包括的控制单元等,则第二控制单元可以是车辆中的VDC系统包括的控制单元、车辆中的VCU或自主驾驶和辅助系统ADAS包括的控制单元等。这种情况下,示例性地,第一控制单元向第二控制单元发送的第一报文和第二报文中可以包括控制信息或指令信息等。本申请实施例对第一报文和第二报文中包括的信息不做限制。For example, if the above-mentioned first control unit is a control unit included in the steering system in the vehicle, a control unit included in the braking system, or a control unit included in the power system, etc., then the second control unit may be a control unit included in the VDC system in the vehicle. The control unit, the VCU in the vehicle or the control unit included in the autonomous driving and assistance system ADAS, etc. In this case, for example, the first message and the second message sent by the first control unit to the second control unit may include control information or instruction information. The embodiment of the present application does not limit the information included in the first message and the second message.
或者,示例性地,若上述第一控制单元是车辆中的VDC系统包括的控制单元、车辆中的VCU或自主驾驶和辅助系统ADAS包括的控制单元等,则第二控制单元可以是车辆中的转向系统包括的控制单元、制动系统包括的控制单元或动力系统包括的控制单元等。这种情况下,示例性地,第一控制单元向第二控制单元发送的第一报文和第二报文中可以包括第一控制单元采集到的传感器数据等。本申请实施例对第一报文和第二报文中包括的信息不做限制。Or, for example, if the above-mentioned first control unit is a control unit included in the VDC system in the vehicle, a VCU in the vehicle or a control unit included in the autonomous driving and assistance system ADAS, etc., then the second control unit may be a control unit included in the vehicle. A control unit included in the steering system, a control unit included in the braking system, or a control unit included in the power system, etc. In this case, for example, the first message and the second message sent by the first control unit to the second control unit may include sensor data collected by the first control unit, etc. The embodiment of the present application does not limit the information included in the first message and the second message.
该第二控制单元中设置有互为冗余的第三传输接口和第四传输接口。示例性地,该第三传输接口可以是上述第一通信网络接口,该第四传输接口可以是上述第二通信网络接口。关于第二控制单元中第三传输接口和第四传输接口的设计可以参考上述图2A或图2B及其可能的实施方式中的设计,此处不赘述。The second control unit is provided with a third transmission interface and a fourth transmission interface that are redundant to each other. For example, the third transmission interface may be the above-mentioned first communication network interface, and the fourth transmission interface may be the above-mentioned second communication network interface. Regarding the design of the third transmission interface and the fourth transmission interface in the second control unit, reference may be made to the design in the above-mentioned FIG. 2A or FIG. 2B and its possible implementations, and will not be described again here.
需要说明的是,本申请实例不限制第二控制单元的具体形态,设置了互为冗余的第三传输接口和第四传输接口的控制单元均可以是本申请实施例所述的第二控制单元。It should be noted that the examples of this application do not limit the specific form of the second control unit. The control unit provided with the third transmission interface and the fourth transmission interface that are mutually redundant can be the second control unit described in the embodiments of this application. unit.
在具体实现中,上述第一控制单元通过第一传输接口发送第一报文后,该第一报文由该第一传输接口传输到第一通信网络,通过第一通信网络将第一报文传输到第二控制单元。示例性地,该第一通信网络例如可以是上述图1A、图1B或图1C中的第一通信网络。第二控制单元通过第三传输接口接收该第一报文。In a specific implementation, after the above-mentioned first control unit sends the first message through the first transmission interface, the first message is transmitted to the first communication network through the first transmission interface, and the first message is transmitted through the first communication network. transmitted to the second control unit. For example, the first communication network may be the first communication network in the above-mentioned FIG. 1A, FIG. 1B or FIG. 1C. The second control unit receives the first message through the third transmission interface.
同理,上述第一控制单元通过第二传输接口发送第二报文后,该第二报文由该第二传输接口传输到第二通信网络,通过第二通信网络将第二报文传输到第二控制单元。示例性地,该第二通信网络例如可以是上述图1A、图1B或图1C中的第二通信网络。第二控制单元通过第四传输接口接收该第二报文。Similarly, after the above-mentioned first control unit sends the second message through the second transmission interface, the second message is transmitted to the second communication network through the second transmission interface, and the second message is transmitted to the second communication network through the second communication network. Second control unit. For example, the second communication network may be the second communication network in the above-mentioned FIG. 1A, FIG. 1B or FIG. 1C. The second control unit receives the second message through the fourth transmission interface.
可以看到,第一控制单元通过第一传输接口接入第一通信网络,通过第二传输接口接入 第二通信网络。第二控制单元通过第三传输接口接入第一通信网络,通过第四传输接口接入第二通信网络。该第一通信网络和该第二通信网络互为冗余。It can be seen that the first control unit accesses the first communication network through the first transmission interface and accesses the second communication network through the second transmission interface. The second control unit is connected to the first communication network through the third transmission interface, and is connected to the second communication network through the fourth transmission interface. The first communication network and the second communication network are mutually redundant.
一种可能的实施例中,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:该第一报文中的数据和该第二报文中的数据相同。In a possible embodiment, the correlation between the data in the first message and the data in the second message may include the following situation: the data in the first message and the data in the second message are the same. .
在具体实现中,上述第一报文包括N1个遵循上述第一通信网络的通信协议的报文,为了便于描述,后续将该遵循第一通信网络的通信协议的报文简称为第一通信网络报文。该N1个第一通信网络报文是通过上述第一传输接口发送,又可以将该N1个第一通信网络报文称为对应于该第一传输接口的N1个报文。上述第二报文包括M1个遵循上述第二通信网络的通信协议的报文,为了便于描述,后续将该遵循第二通信网络的通信协议的报文简称为第二通信网络报文。该M1个第二通信网络报文是通过上述第二传输接口发送,又可以将该M1个第二通信网络报文称为对应于该第二传输接口的M1个报文。该N1和M1均为大于0的整数。那么,该N1个第一通信网络报文中包括的数据和该M1个第二通信网络报文包括的数据相同。In a specific implementation, the above-mentioned first message includes N1 messages that comply with the communication protocol of the above-mentioned first communication network. For the convenience of description, the messages that comply with the communication protocol of the first communication network will be referred to as the first communication network for short. message. The N1 first communication network messages are sent through the above-mentioned first transmission interface, and the N1 first communication network messages can also be called N1 messages corresponding to the first transmission interface. The above-mentioned second message includes M1 messages complying with the communication protocol of the above-mentioned second communication network. For convenience of description, the messages complying with the communication protocol of the second communication network will be referred to as the second communication network message for short. The M1 second communication network messages are sent through the above-mentioned second transmission interface, and the M1 second communication network messages can also be called M1 messages corresponding to the second transmission interface. Both N1 and M1 are integers greater than 0. Then, the data included in the N1 first communication network packets and the data included in the M1 second communication network packets are the same.
一种可能的实施例中,第二通信网络的传输带宽大于第一通信网络的传输带宽,第二通信网络报文的数据长度大于第一通信网络报文的数据长度。因此,传输同样的数据时,相比于第一通信网络,通过第二通信网络可以以更少的传输时间和更少的报文完成数据的传输。为了便于理解,下面以第一通信网络为CAN网络(第一通信网络报文为CAN报文),第二通信网络为车载以太网络(第二通信网络报文为以太报文)为例介绍。In a possible embodiment, the transmission bandwidth of the second communication network is greater than the transmission bandwidth of the first communication network, and the data length of the second communication network message is greater than the data length of the first communication network message. Therefore, when transmitting the same data, compared with the first communication network, the data transmission can be completed through the second communication network in less transmission time and fewer messages. For ease of understanding, the following takes the first communication network as the CAN network (the first communication network messages are CAN messages) and the second communication network as the vehicle Ethernet network (the second communication network messages are Ethernet messages) as an example.
示例性的,由于以太报文的payload长度较大,可以装载较多字节(Byte)的数据。例如,一个以太报文最长为1518个字节,其中Payload最长可以装载1476个字节。使用不同的以太网通信协议,以太报文的payload长度可能会有所不同。而CAN报文的payload长度较小,装载的数据量较少。例如,一个CAN报文大约11个字节,其中Payload最多装载8个字节。例如,对于CAN FD网络的报文即CAN FD报文的Payload最多也只能够装载64个字节。因此,若要分别通过CAN网络和车载以太网络传输相同的数据,则需要用较多的CAN报文来装载这些数据,而只需要用较少的以太报文来装载这些数据。For example, since the payload length of the Ethernet message is larger, more bytes of data can be loaded. For example, the longest length of an Ethernet message is 1518 bytes, and the longest payload can be 1476 bytes. Using different Ethernet communication protocols, the payload length of the Ethernet packet may be different. The payload length of CAN messages is smaller and the amount of data loaded is smaller. For example, a CAN message is about 11 bytes, of which the Payload can hold up to 8 bytes. For example, for CAN FD network messages, the Payload of the CAN FD message can only load up to 64 bytes. Therefore, if you want to transmit the same data through the CAN network and the vehicle Ethernet network respectively, you need to use more CAN messages to load the data, and only need to use fewer Ethernet messages to load the data.
一种可能的实施方式中,上述CAN网络的通信带宽较小(例如为1Mbps等),而上述车载以太网络的通信带宽较大(例如为10Mbps、100Mbps或1000Mbps等),那么,在相同的时钟周期内传输相同数据量的情况下,上述M1个第二通信网络报文即M1个以太报文比上述N1个第一通信网络报文即N1个CAN报文先被第二控制单元接收。即通过车载以太网络来传输数据的传输效率更高,传输时间开销更小。那么,在第二控制单元接收到该M1个以太报文之后,即可以根据该M1个以太报文中的数据进行计算,无需等接收到N1个CAN报文之后再计算,从而提高了数据的传输和处理效率。为了便于理解,可以示例性地参见图4。In a possible implementation, the communication bandwidth of the above-mentioned CAN network is small (for example, 1Mbps, etc.), and the communication bandwidth of the above-mentioned vehicle Ethernet network is large (for example, 10Mbps, 100Mbps, or 1000Mbps, etc.), then, at the same clock When the same amount of data is transmitted within a cycle, the M1 second communication network messages, that is, the M1 Ethernet messages, are received by the second control unit earlier than the N1 first communication network messages, that is, the N1 CAN messages. That is to say, the transmission efficiency of data transmission through the vehicle Ethernet network is higher and the transmission time overhead is smaller. Then, after the second control unit receives the M1 Ethernet messages, it can perform calculations based on the data in the M1 Ethernet messages without waiting for N1 CAN messages to be received before calculating, thereby improving the accuracy of the data. Transmission and processing efficiency. For ease of understanding, reference may be made to FIG. 4 as an example.
图4以一个时钟周期(cycling)为例,时钟周期也称为振荡周期,定义为时钟频率的倒数。时钟周期是计算机中最基本的、最小的时间单位。一个时钟周期例如可以是10毫秒或10毫秒的倍数等,本申请实施例对此不做限制。在该时钟周期内第一控制单元要将数据发送到第二控制单元。第一控制单元可以通过互为冗余的CAN网络和车载以太网络将该数据发送到第二控制单元。Figure 4 takes a clock cycle as an example. The clock cycle is also called the oscillation cycle and is defined as the reciprocal of the clock frequency. A clock cycle is the most basic and smallest unit of time in a computer. One clock cycle may be, for example, 10 milliseconds or a multiple of 10 milliseconds, etc. This is not limited in the embodiment of the present application. During this clock cycle, the first control unit sends data to the second control unit. The first control unit can send this data to the second control unit via the mutually redundant CAN network and the vehicle Ethernet network.
通过CAN网络发送该数据时,第一控制单元可以将该数据封装成CAN报文。由于CAN报文的payload的长度较小,因此,用多个CAN报文(图4中以5个CAN报文来装载该数据为例)才能够装载完该数据。然后,第一控制单元通过第一传输接口将该多个CAN报文发送出去,该多个CAN报文经过CAN网络传输到第二控制单元。传输到第二控制单元即为被该第二控制 单元接收。When sending the data through the CAN network, the first control unit can encapsulate the data into a CAN message. Since the payload length of the CAN message is small, multiple CAN messages (in Figure 4, five CAN messages are used to load the data as an example) can be used to load the data. Then, the first control unit sends the multiple CAN messages through the first transmission interface, and the multiple CAN messages are transmitted to the second control unit through the CAN network. Transmitted to the second control unit is received by the second control unit.
通过车载以太网发送该数据时,第一控制单元可以将该数据封装成以太报文。由于以太报文的payload的长度较大,因此,用较少数量的以太报文(图4中以1个以太报文来装载该数据为例)即可装载完该数据。然后,第一控制单元通过第二传输接口将该以太报文发送出去,该以太报文经过车载以太网络传输到第二控制单元。When sending the data through the vehicle Ethernet, the first control unit can encapsulate the data into an Ethernet message. Since the payload length of the Ethernet packet is large, the data can be loaded with a smaller number of Ethernet packets (in Figure 4, one Ethernet packet is used to load the data as an example). Then, the first control unit sends the Ethernet message through the second transmission interface, and the Ethernet message is transmitted to the second control unit through the vehicle Ethernet network.
上述第一控制单元通过CAN网络和车载以太网发送数据的处理流程可以示例性地参见图5。首先,第一控制单元开始组织数据,示例性地可以是一个或多个时钟周期内的数据。确定要发送的数据之后,一方面,第一控制单元可以基于CAN协议将该数据进行拆分成几份,并将拆分之后的数据进行装载,并打包生成多个CAN报文。然后,将该多个CAN报文通过CAN网络发送出去。另一方面,第一控制单元可以基于车载以太网协议将要发送的数据装载并打包封装为一个以太报文,然后,通过车载以太网将该以太报文发送出去。The processing flow of the above-mentioned first control unit sending data through the CAN network and the vehicle-mounted Ethernet can be exemplarily shown in Figure 5 . First, the first control unit begins to organize data, which may be data within one or more clock cycles, for example. After determining the data to be sent, on the one hand, the first control unit can split the data into several parts based on the CAN protocol, load the split data, and package it to generate multiple CAN messages. Then, the multiple CAN messages are sent through the CAN network. On the other hand, the first control unit can load and package the data to be sent into an Ethernet message based on the vehicle Ethernet protocol, and then send the Ethernet message through the vehicle Ethernet.
CAN网络的传输速率比车载以太网的传输速率小,在图4中可以看到,传输一个CAN报文的时间比传输一个以太报文的时间长。例如,以CAN网络的传输速率为500kbps,CAN报文长度为11字节,车载以太网的传输速率为100Mbps,以太报文的长度为360字节为例,则通过CAN网络发送一个CAN报文大约需要0.26毫秒(ms),即图4中的T1、T2、T3、T4和T5示例性地大约为0.26ms。而通过车载以太网发送一个以太报文仅需要0.028ms,即图4中的T1’示例性地大约为0.028ms。并且,需要传输多个CAN报文而只需要传输一个以太报文,可见通过车载以太网传输数据可以极大地提高传输效率。The transmission rate of the CAN network is smaller than that of the automotive Ethernet. As can be seen in Figure 4, the time to transmit a CAN message is longer than the time to transmit an Ethernet message. For example, if the transmission rate of the CAN network is 500kbps, the length of the CAN message is 11 bytes, the transmission rate of the vehicle Ethernet is 100Mbps, and the length of the Ethernet message is 360 bytes, then a CAN message is sent through the CAN network. It takes approximately 0.26 milliseconds (ms), that is, T1, T2, T3, T4, and T5 in FIG. 4 are approximately 0.26 ms. However, it only takes 0.028ms to send an Ethernet message through the vehicle Ethernet, that is, T1' in Figure 4 is approximately 0.028ms. Moreover, multiple CAN messages need to be transmitted but only one Ethernet message needs to be transmitted. It can be seen that transmitting data through vehicle Ethernet can greatly improve the transmission efficiency.
在图4中可以看到,通过车载以太网发送的以太报文花费T1’的时间即可传输到第二控制单元,即数据通过车载以太网传输到第二控制单元只需T1’。通过CAN网络发送的多个CAN报文需要(T1+T2+T3+T4+T5)的时间才能全部传输到第二控制单元,即数据通过CAN网络全部传输到第二控制单元需要(T1+T2+T3+T4+T5)的时间。那么,在第二控制单元通过车载以太网接收到以太报文获得数据之后,可以先基于获得的数据进行计算,获得第一计算结果。As can be seen in Figure 4, the Ethernet message sent through the vehicle Ethernet takes T1’ to be transmitted to the second control unit, that is, it only takes T1’ to transmit the data to the second control unit through the vehicle Ethernet. Multiple CAN messages sent through the CAN network require (T1+T2+T3+T4+T5) time to be fully transmitted to the second control unit, that is, it takes (T1+T2 +T3+T4+T5) time. Then, after the second control unit receives the Ethernet message through the vehicle Ethernet and obtains the data, it can first perform calculations based on the obtained data to obtain the first calculation result.
示例性的,第二控制单元接收到上述以太报文之后,可以解析该以太报文获取报文中的数据。并可以将获得的数据缓存到本地缓冲区。然后,第二控制单元可以采取优先计算策略,将获得的数据导入到应用或算法模块进行计算,获得上述第一计算结果。该计算结果可以作为另一个控制单元或应用或模块的计算输入,本申请实施例对此不做限制。For example, after receiving the above-mentioned Ethernet message, the second control unit can parse the Ethernet message to obtain the data in the message. And can cache the obtained data to the local buffer. Then, the second control unit can adopt a priority calculation strategy, import the obtained data into the application or algorithm module for calculation, and obtain the above-mentioned first calculation result. The calculation result can be used as a calculation input for another control unit or application or module, and the embodiment of the present application does not limit this.
在上述计算的过程中,第二控制单元可以继续接收CAN报文。一种可能的实施例中,在上述图4中,第二控制单元在接收到上述多个CAN报文并获得CAN报文中的数据之后,可以对CAN报文中的数据和前述接收的以太报文中的数据进行校验。关于校验的具体实现后面会详细描述,此处暂不详述。During the above calculation process, the second control unit can continue to receive CAN messages. In a possible embodiment, in the above-mentioned Figure 4, after receiving the above-mentioned multiple CAN messages and obtaining the data in the CAN messages, the second control unit can compare the data in the CAN messages and the aforementioned received Ethernet. The data in the message is verified. The specific implementation of the verification will be described in detail later and will not be detailed here.
可见,相比于现有的多路冗余的CAN通信方式的接收数据和处理计算数据的模式,本申请实例可以在原先接收数据的时间内完成接收与数据处理两步操作,显著提升了通信与数据处理效率。It can be seen that compared with the existing multi-channel redundant CAN communication mode of receiving data and processing calculation data, the example of this application can complete the two-step operation of receiving and data processing within the original time of receiving data, significantly improving communication. and data processing efficiency.
一种可能的实施例中,基于前面的描述可知,第二控制单元接收到上述第一报文(例如上述图4中的多个CAN报文)和上述第二报文(例如上述图4中的以太报文)之后,可以基于第一报文和第二报文中的数据进行校验。In a possible embodiment, based on the previous description, it can be known that the second control unit receives the above-mentioned first message (such as the multiple CAN messages in the above-mentioned FIG. 4) and the above-mentioned second message (such as the above-mentioned CAN messages in FIG. 4). After the Ethernet message), verification can be performed based on the data in the first message and the second message.
一种可能的实施方式中,可以直接比较该第一报文中的数据和该第二报文中的数据,如果两份数据相同,则表明数据在传输过程中没有出错或没有被篡改,接收到的数据为安全的数据。如果该两份数据不同,则表明至少有一份数据出现异常。In a possible implementation, the data in the first message and the data in the second message can be directly compared. If the two data are the same, it means that the data has not been erroneously or tampered with during the transmission process. The data received is safe data. If the two data are different, it indicates that at least one of the data is abnormal.
一种可能的实施方式中,由于上述第二控制单元已经基于上述第二报文中的数据计算得 到第一计算结果。那么,第二控制单元可以基于上述第一报文中的数据以同样的计算方式进行计算获得第二计算结果。如果该两个计算结果相同,则表明数据在传输过程中没有出错或没有被篡改,接收到的数据为安全的数据。如果该两个计算结果不同,则表明至少有一份数据出现异常。In a possible implementation, the second control unit has calculated the first calculation result based on the data in the second message. Then, the second control unit can perform calculations in the same calculation method based on the data in the first message to obtain the second calculation result. If the two calculation results are the same, it means that the data has not been errored or tampered with during the transmission process, and the received data is safe data. If the results of these two calculations are different, it indicates that at least one piece of data is abnormal.
一种可能的实施方式中,上述传输的第一报文中可以包括数据校验码,第二报文中也包括同样的数据校验码。第二控制单元可以比较第一报文中的数据校验码和第二报文中的数据校验码。如果该两种报文中的数据校验码相同,则表明数据在传输过程中没有出错或没有被篡改,接收到的数据为安全的数据。如果该两种报文中的数据校验码不同,则表明至少有一份数据出现异常。示例性地,该数据校验码例如可以是采用哈希算法对封装到该第一报文或者第二报文中的数据计算得到的哈希值等。In a possible implementation, the first message transmitted above may include a data check code, and the second message may also include the same data check code. The second control unit may compare the data check code in the first message with the data check code in the second message. If the data check codes in the two messages are the same, it means that the data did not make errors or was tampered with during the transmission process, and the received data is safe data. If the data check codes in the two packets are different, it indicates that at least one piece of data is abnormal. For example, the data check code may be a hash value calculated by using a hash algorithm on the data encapsulated in the first message or the second message.
示例性地,上述数据校验码可以是第一控制单元对封装到第一报文或者第二报文中的数据计算得到的一个数据校验码。由于该第一报文包括N1个第一通信网络报文(例如上述图4中的5个CAN报文),那么,可以是该N1个第一通信网络报文中的任意一个报文携带该数据校验码。或者,示例性地,上述数据校验码包括N1个校验码。该N1个校验码是对N1个第一通信网络报文中的每一个报文封装的数据分别计算获得的校验码。这种情况下,每个第一通信网络报文包括一个校验码,该校验码即为该报文中封装的数据的校验码。然后,第二报文中可以包括该N1个校验码。For example, the above-mentioned data check code may be a data check code calculated by the first control unit for the data encapsulated in the first message or the second message. Since the first message includes N1 first communication network messages (for example, the 5 CAN messages in Figure 4 above), any one of the N1 first communication network messages may carry the Data check code. Or, for example, the above data check code includes N1 check codes. The N1 check codes are check codes calculated separately for the data encapsulated in each of the N1 first communication network messages. In this case, each first communication network message includes a check code, and the check code is the check code of the data encapsulated in the message. Then, the second message may include the N1 check codes.
一种可能的实施方式中,上述传输的第一报文中可以包括数据签名,第二报文中也包括同样的数据签名。第二控制单元可以比较第一报文中的数据签名和第二报文中的数据签名。如果该两种报文中的数据签名相同,则表明数据在传输过程中没有出错或没有被篡改,接收到的数据为安全的数据。如果该两种报文中的数据签名不同,则表明至少有一份数据出现异常。In a possible implementation, the first message transmitted above may include a data signature, and the second message may also include the same data signature. The second control unit may compare the data signature in the first message with the data signature in the second message. If the data signatures in the two messages are the same, it means that the data did not make errors or was tampered with during the transmission process, and the received data is safe. If the data signatures in the two packets are different, it indicates that at least one piece of data is abnormal.
同理,示例性地,上述数据签名可以是第一控制单元对封装到第一报文或者第二报文中的数据计算得到的一个数据签名。由于该第一报文包括N1个第一通信网络报文(例如上述图4中的5个CAN报文),那么,可以是该N1个第一通信网络报文中的任意一个报文携带该数据签名。或者,示例性地,上述数据签名包括N1个数据签名。该N1个数据签名是对N1个第一通信网络报文中的每一个报文封装的数据分别计算获得的数据签名。这种情况下,每个第一通信网络报文包括一个数据签名,该数据签名即为该报文中封装数据的数据签名。然后,第二报文中可以包括该N1个数据签名。Similarly, for example, the above-mentioned data signature may be a data signature calculated by the first control unit on the data encapsulated in the first message or the second message. Since the first message includes N1 first communication network messages (for example, the 5 CAN messages in Figure 4 above), any one of the N1 first communication network messages may carry the Data signature. Or, for example, the above data signature includes N1 data signatures. The N1 data signatures are data signatures obtained by separately calculating the data encapsulated in each of the N1 first communication network messages. In this case, each first communication network message includes a data signature, which is the data signature of the encapsulated data in the message. Then, the N1 data signatures may be included in the second message.
一种可能的实施方式中,第二控制单元可以采用哈希算法对上述第一报文中的数据进行计算获得一个哈希值,然后,采用同样的哈希算法对上述第二报文中的数据进行计算获得另一个哈希值。如果该两个哈希值相同,则表明数据在传输过程中没有出错或没有被篡改,接收到的数据为安全的数据。如果该两个哈希值不同,则表明至少有一份数据出现异常。In a possible implementation, the second control unit can use a hash algorithm to calculate the data in the first message to obtain a hash value, and then use the same hash algorithm to calculate the data in the second message. The data is calculated to obtain another hash value. If the two hash values are the same, it means that the data has not been errored or tampered with during transmission, and the received data is safe. If the two hash values are different, it indicates that at least one piece of data is abnormal.
一种可能的实施方式中,如果上述确定至少有一份数据出现异常,那么,第二控制单元可以向第一控制单元发送重传数据的请求,并可以在请求中指示通过传输带宽较大的第二通信网络例如车载以太网来重传数据。第一控制单元可以基于该请求,重新封装该数据以生成新的第二通信网络报文(简称为第三报文),然后通过第二通信网络快速将该第三报文发送给第二控制单元。第二控制单元接收到该第三报文之后,解析获取该第三报文中的数据,并将该获得的数据与上述第二报文中的数据进行比较。如果该第二报文和第三报文中的数据相同,则表明第二报文中的数据是正常的,而上述第一报文中的数据是异常的。那么,第二控制单元可以丢弃该第一报文的数据,或者可以请求第一控制单元通过第一通信网络例如CAN网络 重传该数据。In a possible implementation, if it is determined that at least one piece of data is abnormal, the second control unit may send a request to retransmit the data to the first control unit, and may indicate in the request that the second control unit transmits the data through the third data transmission unit with a larger transmission bandwidth. A second communication network such as automotive Ethernet is used to retransmit the data. Based on the request, the first control unit can re-encapsulate the data to generate a new second communication network message (referred to as the third message for short), and then quickly send the third message to the second control unit through the second communication network. unit. After receiving the third message, the second control unit parses and obtains the data in the third message, and compares the obtained data with the data in the second message. If the data in the second message and the third message are the same, it means that the data in the second message is normal, and the data in the first message is abnormal. Then, the second control unit may discard the data of the first message, or may request the first control unit to retransmit the data through the first communication network, such as a CAN network.
一种可能的实施例中,由于上述第一控制单元和第二控制单元之间出现传输拥塞而导致通信抖动,使得上述第一报文和/或第二报文传输的时延增加,无法按时全部传输到第二控制单元。这种情况下,若按照预设的时间对接收到的数据进行计算,此时接收到的可能是部分的数据,导致计算得到的结果不正确。为了避免这种情况的发生,则需要消除由于通信抖动带来的传输时延增加的影响。In one possible embodiment, communication jitter occurs due to transmission congestion between the first control unit and the second control unit, which increases the transmission delay of the first message and/or the second message, making it impossible to transmit the message on time. All are transferred to the second control unit. In this case, if the received data is calculated according to the preset time, partial data may be received at this time, resulting in incorrect calculation results. In order to avoid this situation from happening, it is necessary to eliminate the impact of increased transmission delay caused by communication jitter.
示例性地,可以通过通信收发过程中预留时间间隙的方式来消除通信抖动带来的影响。具体的,上述第二控制单元可以在接收到上述第二报文和第一报文之后,先进行数据校验。若数据校验不通过,则可能是因为通信抖动导致该第二报文和/或第一报文没有完全被接收,那么,可以等待预设的时长。然后,再对接收到的第一报文和第二报文中的数据进行校验。校验通过后再对数据进行计算。这种实现方式中,通过数据校验的调整和等待机制进行任务处理时间的调配,保证接收到全部的数据之后再进行计算,从而确保计算结果的正确性,消除了通信抖动带来的影响。For example, the impact of communication jitter can be eliminated by reserving time gaps during the communication sending and receiving process. Specifically, the above-mentioned second control unit may first perform data verification after receiving the above-mentioned second message and the first message. If the data verification fails, it may be due to communication jitter that the second message and/or the first message are not completely received. In this case, you can wait for a preset time period. Then, the data in the received first message and the second message are verified. The data will be calculated after passing the verification. In this implementation, the task processing time is allocated through the adjustment of data verification and the waiting mechanism to ensure that all data is received before calculation is performed, thereby ensuring the correctness of the calculation results and eliminating the impact of communication jitter.
或者,示例性地,在上述第二通信网络为车载以太网的情况下,可以通过车载以太网实现高精度时间同步,以消除通信抖动带来的影响。具体的,在车载以太网中,可以利用精确时钟协议(general precise time protocol,gPTP)实现上述第一控制单元和第二控制单元之间的高精度时间同步。另外,可以在第一控制单元和第二控制单元工作的过程中,通过时间敏感网络(time-sensitive networking,TSN)协议和电气与电子工程师协会(institute of electrical and electronics engineers,IEEE)802.1Qbv标准实现基于时隙分配的传输协议,以实现周期任务同步。从而可以在报文的传输过程中通过严格的时间线与时间同步,消除通信抖动。这种实现方式中,第一控制单元和第二控制单元之间完成高精度时间同步后,在第一控制单元向第二控制单元发送报文时,可以根据时间的先后顺序,错开报文发送时间,控制报文发送时间点,从源头解决因为时间不同步而造成的通信冲突的问题,从而避免了通信抖动。Or, for example, when the second communication network is a vehicle-mounted Ethernet, high-precision time synchronization can be achieved through the vehicle-mounted Ethernet to eliminate the impact of communication jitter. Specifically, in vehicle Ethernet, the general precise time protocol (gPTP) can be used to achieve high-precision time synchronization between the above-mentioned first control unit and the second control unit. In addition, during the operation of the first control unit and the second control unit, the time-sensitive network (TSN) protocol and the Institute of Electrical and Electronics Engineers (IEEE) 802.1Qbv standard can be used. Implement a transmission protocol based on time slot allocation to achieve periodic task synchronization. This enables strict timeline and time synchronization during message transmission to eliminate communication jitter. In this implementation, after high-precision time synchronization is completed between the first control unit and the second control unit, when the first control unit sends a message to the second control unit, the message sending can be staggered according to the order of time. Time, control the time point when messages are sent, and solve the problem of communication conflicts caused by time synchronization from the source, thus avoiding communication jitter.
一种可能的实施例中,在一个时钟周期内,上述第一控制单元有多次发送机会可以给上述第二控制单元发送报文。该发送机会指的是发送时机,每一个发送时机都预先配置了传输资源(时域资源和/或频域资源)用于发送数据。这种情况下,对于上述第一控制单元通过第二通信网络(例如车载以太网)向第二控制单元发送报文时,可以将一个时钟周期内所要发送的数据分成几次发送,而无需将这些数据全部封装到一个报文中发送。例如,假设在一个时钟周期内,第一控制单元有3次发送机会可以给上述第二控制单元发送报文。那么,第一控制单元可以将需要发送的数据分成三份,在每次发送机会到来时将其中的一份数据封装成一个报文(例如以太报文)向第二控制单元发送。即在该时钟周期内,第一控制单元可以分三次,每次发送一个报文来完成数据的传输。可选的,每次发送机会不限于发送一个报文,也可以发送多个报文,本申请实施例对此不做限制。In a possible embodiment, within one clock cycle, the first control unit has multiple sending opportunities to send messages to the second control unit. The sending opportunity refers to a sending opportunity, and each sending opportunity is pre-configured with transmission resources (time domain resources and/or frequency domain resources) for sending data. In this case, when the above-mentioned first control unit sends a message to the second control unit through the second communication network (such as vehicle Ethernet), the data to be sent in one clock cycle can be divided into several transmissions without having to All these data are encapsulated into a message and sent. For example, assume that within one clock cycle, the first control unit has three sending opportunities to send messages to the above-mentioned second control unit. Then, the first control unit can divide the data that needs to be sent into three parts, and encapsulate one part of the data into a message (for example, an Ethernet message) and send it to the second control unit every time a sending opportunity comes. That is, within this clock cycle, the first control unit can send one message three times to complete the data transmission. Optionally, each sending opportunity is not limited to sending one message, but may also send multiple messages. This embodiment of the present application does not limit this.
一种可能的实施例中,第一控制单元通过第一通信网络和第二通信网络向第二控制单元发送报文时,通过第一通信网络发送报文的发送触发信号可以和通过第二通信网络发送报文的发送触发信号相同。即通过同一个发送触发信号来控制该两路报文的发送。示例性地,上述第一报文和第二报文的发送触发信号相同。In a possible embodiment, when the first control unit sends a message to the second control unit through the first communication network and the second communication network, the sending trigger signal for sending the message through the first communication network may be the same as the sending trigger signal through the second communication network. The sending trigger signal of the network sending message is the same. That is, the same sending trigger signal is used to control the sending of the two messages. For example, the sending trigger signals of the first message and the second message are the same.
一种可能的实施例中,若上述第二控制单元用于采集第一控制单元中的数据,此时可以 将该第二控制单元看成是数据采集单元。那么,上述第二报文为上述第一控制单元应于第二控制单元的数据采集请求向第二控制单元发送的一个报文(例如可以是一个通过上述车载以太网传输的以太报文)。这种情况下,若第二控制单元要求采集的数据为第一控制单元在一个或多个时钟周期内的数据,那么第一控制单元可以将该一个或多个周期内所要发送的数据全部封装在上述第二报文内进行发送。即该第二报文中的数据可以包括第一控制单元在一个或多个时钟周期内所要发送的数据。本申请实施例通过将一个或多个周期的数据封装到一个报文中传输,可以减小报文封装发送开销,降低系统复杂度,提高数据采集的效率。In a possible embodiment, if the above-mentioned second control unit is used to collect data in the first control unit, the second control unit can be regarded as a data collection unit. Then, the above-mentioned second message is a message sent by the above-mentioned first control unit to the second control unit in response to the data collection request of the second control unit (for example, it may be an Ethernet message transmitted through the above-mentioned vehicle Ethernet). In this case, if the data that the second control unit requires to be collected is the data of the first control unit in one or more clock cycles, then the first control unit can encapsulate all the data to be sent in the one or more cycles. It is sent within the above-mentioned second message. That is, the data in the second message may include data to be sent by the first control unit within one or more clock cycles. By encapsulating one or more cycles of data into one message for transmission, the embodiments of the present application can reduce the message encapsulation and transmission overhead, reduce system complexity, and improve the efficiency of data collection.
一种可能的实施例中,上述第一控制单元除了向上述第二控制单元发送数据,还可以向其它的一个或多个控制单元发送数据。这种情况下,上述第二报文可以是一个组播报文或者广播报文,即第一控制单元基于上述第二通信网络(例如可以是车载以太网)通过组播或广播的方式将该第二报文发送给第二控制单元及其它的一个或多个控制单元。该组播报文或者广播报文中的数据可以包括第一控制单元在一个或多个时钟周期内所要发送的数据。通过组播报文或广播报文的方式实现数据分发,可以有效降低在一对多通信时要维护多个重复有效通信通道的开销。在第二通信网络为车载以太网的情况下,可以利用车载以太网的二层组播或广播机制,有效的实现一对多通信。In a possible embodiment, in addition to sending data to the second control unit, the first control unit may also send data to one or more other control units. In this case, the above-mentioned second message may be a multicast message or a broadcast message, that is, the first control unit transmits the message through multicast or broadcast based on the above-mentioned second communication network (for example, it may be a vehicle-mounted Ethernet). The second message is sent to the second control unit and one or more other control units. The data in the multicast message or broadcast message may include data to be sent by the first control unit within one or more clock cycles. Data distribution is achieved through multicast messages or broadcast messages, which can effectively reduce the overhead of maintaining multiple duplicate effective communication channels during one-to-many communication. When the second communication network is vehicle Ethernet, the Layer 2 multicast or broadcast mechanism of vehicle Ethernet can be used to effectively implement one-to-many communication.
一种可能的实施例中,若上述第二控制单元用于监控第一控制单元所在系统的状态,此时可以将该第二控制单元看成是车辆状态监控单元。那么,上述第二报文为上述第一控制单元应于第二控制单元的状态数据采集请求向第二控制单元发送的一个报文(例如可以是一个通过上述车载以太网传输的以太报文)。这种情况下,第一控制单元可以将一个或多个周期内所要的数据全部封装在上述第二报文内向第二控制单元发送。即该第二报文中的数据可以包括第一控制单元在一个或多个时钟周期内所要发送的数据。本申请实施例通过将一个或多个周期的数据封装到一个报文中传输,可以减小报文封装发送开销,降低系统复杂度,提高数据采集的效率。In a possible embodiment, if the above-mentioned second control unit is used to monitor the status of the system where the first control unit is located, the second control unit can be regarded as a vehicle status monitoring unit. Then, the above-mentioned second message is a message sent by the above-mentioned first control unit to the second control unit in response to the status data collection request of the second control unit (for example, it may be an Ethernet message transmitted through the above-mentioned vehicle Ethernet) . In this case, the first control unit can encapsulate all the data required within one or more cycles in the above-mentioned second message and send it to the second control unit. That is, the data in the second message may include data to be sent by the first control unit within one or more clock cycles. By encapsulating one or more cycles of data into one message for transmission, the embodiments of the present application can reduce the message encapsulation and transmission overhead, reduce system complexity, and improve the efficiency of data collection.
一种可能的实施例中,上述第二控制单元用于具体控制车辆驾驶的操作(例如紧急制动操作、车辆行驶稳定性控制操作(例如控制车辆避免打滑的操作)等),上述第一控制单元用于向第二控制单元发送控制该车辆驾驶操作的具体信息,即发送操作控制的指示信息。该发送的操作控制的指示信息的实时性要求高,并且要求保证信息的准确性。这种情况下,在一个时钟周期内,第一控制单元通过上述第一通信网络发送的报文的数量(例如上述N1),和通过上述第二通信网络发送的报文的数量(例如上述M1)相同。以第一通信网络为CAN网络,第二通信网络为车载以太网为例,上述第一报文包括N1个CAN报文,上述第二报文包括M1个以太报文,N1=M1。此时,该N1个CAN报文和该M1个以太报文一一对应,一个CAN报文和该CAN报文对应的以太报文可以同步发送,以保证报文的实时性。并且CAN报文和以太报文之间一一对应,也可以便于进行报文中的数据的校验,提高报文中数据的准确性。In a possible embodiment, the above-mentioned second control unit is used to specifically control vehicle driving operations (such as emergency braking operations, vehicle driving stability control operations (such as operations to control the vehicle to avoid skidding), etc.), and the above-mentioned first control unit The unit is configured to send specific information for controlling the driving operation of the vehicle to the second control unit, that is, sending instruction information for operation control. The operation control instruction information sent has high real-time requirements, and the accuracy of the information must be ensured. In this case, within one clock cycle, the number of messages sent by the first control unit through the above-mentioned first communication network (such as the above-mentioned N1), and the number of messages sent through the above-mentioned second communication network (such as the above-mentioned M1 )same. Taking the first communication network as the CAN network and the second communication network as the vehicle Ethernet as an example, the above-mentioned first message includes N1 CAN messages, the above-mentioned second message includes M1 Ethernet messages, N1=M1. At this time, the N1 CAN messages and the M1 Ethernet messages correspond one to one, and a CAN message and the Ethernet message corresponding to the CAN message can be sent synchronously to ensure the real-time nature of the messages. Moreover, the one-to-one correspondence between CAN messages and Ethernet messages can also facilitate the verification of data in the messages and improve the accuracy of the data in the messages.
一种可能的实施例中,对于上述第二报文(例如可以是车载以太报文),由于其报文长度较长,可以装载较多的数据,因此该第二报文中还可以扩展信息。该扩展信息例如可以包括:第一控制单元所在系统的系统状态、第一控制单元发送的控制指令、第一控制单元采集到的传感器数据或第一控制单元计算得到的中间计算量等信息中的一个或多个信息。关于该扩展 信息,此处仅为示例,不构成对本申请实施例的限制,具体实现中该扩展信息还可以包括其它信息,本申请实施例对此不作限制。In a possible embodiment, for the above-mentioned second message (for example, it can be a vehicle-mounted Ethernet message), since the message length is longer, more data can be loaded, so the second message can also be extended with information. . The extended information may include, for example: the system status of the system where the first control unit is located, the control instructions sent by the first control unit, the sensor data collected by the first control unit, or the intermediate calculation amount calculated by the first control unit. one or more messages. Regarding the extended information, this is only an example and does not constitute a limitation on the embodiments of the present application. In specific implementation, the extended information may also include other information, which is not limited by the embodiments of the present application.
一种可能的实施例中,上述第一控制单元和第二控制单元之间可以利用第一通信网络和第二通信网络这两种网络不同的传输特性实现数据传输的差异处理机制。这种情况下,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:该第二报文中包括的数据为第一目标数据,该第一报文中包括的数据为校验信息,该校验信息用于校验该第一目标数据。In a possible embodiment, the first control unit and the second control unit may utilize different transmission characteristics of the first communication network and the second communication network to implement a differential processing mechanism for data transmission. In this case, the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the first target data, and the data in the first message The included data is verification information, and the verification information is used to verify the first target data.
具体的,上述第一报文包括N2个第一通信网络报文。该N2个第一通信网络报文是通过上述第一传输接口发送,又可以将该N2个第一通信网络报文称为对应于该第一传输接口的N2个报文。上述第二报文包括M2个第二通信网络报文。该M2个第二通信网络报文是通过上述第二传输接口发送,又可以将该M2个第二通信网络报文称为对应于该第二传输接口的M2个报文。该N2和M2均为大于0的整数。那么,该M2个报文中包括的数据为上述第一目标数据,该N2个报文的数据为用于校验第一目标数据的校验信息。为了便于理解,下面以第一通信网络为CAN网络(第一通信网络报文为CAN报文),第二通信网络为车载以太网络(第二通信网络报文为以太报文)为例介绍。可以示例性地参见图6。Specifically, the above-mentioned first message includes N2 first communication network messages. The N2 first communication network messages are sent through the above-mentioned first transmission interface, and the N2 first communication network messages can also be called N2 messages corresponding to the first transmission interface. The above-mentioned second message includes M2 second communication network messages. The M2 second communication network messages are sent through the above-mentioned second transmission interface, and the M2 second communication network messages can also be called M2 messages corresponding to the second transmission interface. Both N2 and M2 are integers greater than 0. Then, the data included in the M2 messages is the above-mentioned first target data, and the data in the N2 messages is verification information used to verify the first target data. For ease of understanding, the following takes the first communication network as the CAN network (the first communication network messages are CAN messages) and the second communication network as the vehicle Ethernet network (the second communication network messages are Ethernet messages) as an example. See Figure 6 for example.
图6以一个时钟周期(cycling)为例,在该时钟周期内第一控制单元要将上述第一目标数据发送到第二控制单元。第一控制单元可以通过互为冗余的CAN网络和车载以太网络将该第一目标数据发送到第二控制单元,并实现第一目标数据的校验。该第一目标数据可以是任意数据,本申请实施例对此不做限制。FIG. 6 takes one clock cycle as an example. During this clock cycle, the first control unit sends the above-mentioned first target data to the second control unit. The first control unit can send the first target data to the second control unit through the mutually redundant CAN network and the vehicle-mounted Ethernet network, and implement verification of the first target data. The first target data can be any data, and the embodiment of the present application does not limit this.
具体的,第一控制单元可以通过车载以太网络向上述第二控制单元发送该第一目标数据,然后,通过CAN网络向上述第二控制单元发送该第一目标数据的校验信息。通过车载以太网发送该第一目标数据时,第一控制单元可以将该第一目标数据封装成以太报文。由于以太报文的payload的长度较大,因此,用较少数量的以太报文(图6中以1个以太报文来装载该第一目标数据为例)即可装载完该第一目标数据。然后,第一控制单元通过第二传输接口将该以太报文(例如可以是上述第二报文)发送出去,该以太报文经过车载以太网络传输到第二控制单元。Specifically, the first control unit may send the first target data to the second control unit through the vehicle Ethernet network, and then send the verification information of the first target data to the second control unit through the CAN network. When sending the first target data through the vehicle Ethernet, the first control unit may encapsulate the first target data into an Ethernet message. Since the payload length of the Ethernet packet is relatively large, the first target data can be loaded with a smaller number of Ethernet packets (in Figure 6, one Ethernet packet is used as an example to load the first target data). . Then, the first control unit sends the Ethernet message (for example, the above-mentioned second message) through the second transmission interface, and the Ethernet message is transmitted to the second control unit through the vehicle-mounted Ethernet network.
上述第一目标数据的校验信息可以是第一控制单元基于该第一目标数据计算得到的校验值。例如,第一控制单元可以通过哈希算法对该第一目标数据进行计算获得一个哈希值,该哈希值即为该第一目标数据的校验信息。或者,例如第一控制单元可以通过MD5算法对该第一目标数据进行计算获得一个散列值,该散列值即为该第一目标数据的校验信息。本申请实施例对该具体的校验计算算法不做限制。然后,第一控制单元可以将该第一目标数据的校验信息封装成CAN报文。由于CAN报文的payload的长度较小,因此,可以根据校验信息数据量来确定使用一个或多个CAN报文(图6中以1个CAN报文来装载该第一目标数据的校验信息为例)装载该第一目标数据的校验信息。然后,第一控制单元通过第一传输接口将该CAN报文(例如可以是上述第一报文)发送出去,该CAN报文经过CAN网络传输到第二控制单元。The above-mentioned verification information of the first target data may be a verification value calculated by the first control unit based on the first target data. For example, the first control unit can calculate the first target data through a hash algorithm to obtain a hash value, and the hash value is the verification information of the first target data. Alternatively, for example, the first control unit can calculate the first target data through the MD5 algorithm to obtain a hash value, and the hash value is the verification information of the first target data. The embodiment of this application does not limit the specific verification calculation algorithm. Then, the first control unit may encapsulate the verification information of the first target data into a CAN message. Since the length of the payload of the CAN message is small, one or more CAN messages can be determined based on the amount of verification information (in Figure 6, one CAN message is used to load the verification of the first target data). Information (for example) loads the verification information of the first target data. Then, the first control unit sends the CAN message (for example, the above-mentioned first message) through the first transmission interface, and the CAN message is transmitted to the second control unit through the CAN network.
CAN网络的传输速率比车载以太网的传输速率小,在图6中可以看到,传输一个CAN报文的时间比传输一个以太报文的时间长。例如,以CAN网络的传输速率为500kbps,CAN报文长度为11字节,车载以太网的传输速率为100Mbps,以太报文的长度为1200字节为例,则通过CAN网络发送一个CAN报文大约需要0.26毫秒(ms),即图6中的T1示例性地大约为0.26ms。而通过车载以太网发送一个以太报文仅需要0.112ms,即图6中的T2示例性地大约 为0.112ms。可见通过车载以太网传输第一目标数据可以极大地提高传输效率。The transmission rate of the CAN network is smaller than that of the automotive Ethernet. As can be seen in Figure 6, the time to transmit a CAN message is longer than the time to transmit an Ethernet message. For example, if the transmission rate of the CAN network is 500kbps, the length of the CAN message is 11 bytes, the transmission rate of the vehicle Ethernet is 100Mbps, and the length of the Ethernet message is 1200 bytes, then a CAN message is sent through the CAN network. It takes approximately 0.26 milliseconds (ms), that is, T1 in FIG. 6 is approximately 0.26 ms. However, it only takes 0.112ms to send an Ethernet message through the vehicle Ethernet, that is, T2 in Figure 6 is approximately 0.112ms. It can be seen that transmitting the first target data through the vehicle Ethernet can greatly improve the transmission efficiency.
由于该以太报文先于该CAN报文传输到第二控制单元,那么,在第二控制单元接收到该以太报文之后,可以先对该以太报文中的数据进行预处理等操作。示例性的,第二控制单元接收到上述以太报文之后,可以解析该以太报文获取报文中的数据。并可以将获得的数据缓存到本地缓冲区。然后,第二控制单元可以基于该获得的数据进行一些预处理操作。例如可以对该数据进行循环冗余校验(cyclic redundancy check,CRC),或通过校验和(checksum)的方式进行校验等,以查看数据在传输过程中是否出现差错,例如是否出现比特差错(0变为1,或者1变为0)等。例如,可以采用与上述第一控制单元相同的校验计算算法对该获得的数据进行计算,获得另一个校验值,以用于与CAN报文中的校验信息比较。此处仅为示例,本申请实施例不限制该预处理的操作。Since the Ethernet message is transmitted to the second control unit before the CAN message, after receiving the Ethernet message, the second control unit can first perform preprocessing and other operations on the data in the Ethernet message. For example, after receiving the above-mentioned Ethernet message, the second control unit can parse the Ethernet message to obtain the data in the message. And can cache the obtained data to the local buffer. The second control unit can then perform some preprocessing operations based on the obtained data. For example, a cyclic redundancy check (CRC) can be performed on the data, or a checksum can be used to check whether there are errors during the transmission of the data, such as whether there are bit errors. (0 becomes 1, or 1 becomes 0) etc. For example, the same verification calculation algorithm as the above-mentioned first control unit can be used to calculate the obtained data to obtain another verification value for comparison with the verification information in the CAN message. This is only an example, and the embodiment of the present application does not limit the preprocessing operation.
然后,在第二控制单元接收到上述CAN报文之后,获取该CAN报文中的校验信息。基于上述的描述可知,该校验信息可以是一个校验值。若第二控制单元在对上述获得的以太报文中的数据的预处理中已经计算出该数据的校验值,那么,可以直接将从CAN报文中获得的校验值与该计算得到的校验值进行比较。如果该两个校验值相同,则表明数据在传输过程中没有出错或没有被篡改,接收到的数据为安全的数据。如果该两个校验值不同,则表明以太报文中的数据和CAN报文中的校验信息至少有一个出现异常。Then, after the second control unit receives the above-mentioned CAN message, it obtains the verification information in the CAN message. Based on the above description, it can be known that the verification information may be a verification value. If the second control unit has calculated the check value of the data in the preprocessing of the data in the Ethernet message obtained above, then the check value obtained from the CAN message can be directly compared with the calculated value. Check value is compared. If the two check values are the same, it means that the data has not been tampered with during transmission, and the received data is safe. If the two check values are different, it indicates that at least one of the data in the Ethernet message and the check information in the CAN message is abnormal.
另一种可能的实现中,若第二控制单元在对上述获得的以太报文中的数据的预处理中没有计算该数据的校验值,那么,可以在获取上述CAN报文中的校验值后,采用与上述第一控制单元相同的校验计算算法对该以太报文中的数据进行计算,获得另一个校验值。然后,比较该两个校验值。如果该两个校验值相同,则表明数据在传输过程中没有出错或没有被篡改,接收到的数据为安全的数据。如果该两个校验值不同,则表明以太报文中的数据和CAN报文中的校验信息至少有一个出现异常。In another possible implementation, if the second control unit does not calculate the check value of the data in the preprocessing of the data in the Ethernet message obtained above, then it can obtain the check value in the CAN message. After the value is calculated, the data in the Ethernet message is calculated using the same verification calculation algorithm as the above-mentioned first control unit to obtain another verification value. Then, compare the two check values. If the two check values are the same, it means that the data has not been tampered with during transmission, and the received data is safe. If the two check values are different, it indicates that at least one of the data in the Ethernet message and the check information in the CAN message is abnormal.
一种可能的实施方式中,如果上述第二控制单元接收到的以太报文中的数据和CAN报文中的校验信息至少有一个出现异常,那么,第二控制单元可以向第一控制单元发送重传数据的请求,并可以在请求中指示通过车载以太网来重传数据。第一控制单元可以基于该请求,重新封装上述第一目标数据以生成新的以太报文,然后通过车载以太网快速将该新的以太报文发送给第二控制单元。第二控制单元接收到该新的以太报文之后,解析获取该新的以太报文中的数据,并将该获得的数据与上述以太报文中的数据进行比较。如果该以太报文和新的以太报文中的数据相同,则表明该以太报文中的数据是正常的,而上述CAN报文中的校验信息是异常的。那么,第二控制单元可以丢弃该CAN报文的校验信息,或者可以请求第一控制单元通过CAN网络重传该校验信息。In a possible implementation, if at least one of the data in the Ethernet message and the verification information in the CAN message received by the second control unit is abnormal, then the second control unit can report to the first control unit Sends a request to retransmit the data and can indicate in the request that the data is to be retransmitted via automotive Ethernet. Based on the request, the first control unit can re-encapsulate the above-mentioned first target data to generate a new Ethernet message, and then quickly send the new Ethernet message to the second control unit through the vehicle Ethernet. After receiving the new Ethernet message, the second control unit parses and obtains the data in the new Ethernet message, and compares the obtained data with the data in the above-mentioned Ethernet message. If the data in the Ethernet message and the new Ethernet message are the same, it means that the data in the Ethernet message is normal, but the verification information in the above-mentioned CAN message is abnormal. Then, the second control unit may discard the verification information of the CAN message, or may request the first control unit to retransmit the verification information through the CAN network.
相比于上述CAN网络和车载以太网络传输相同数据的实现方式,本申请实施例的数据传输的差异处理机制显著缩短了数据传输的时间,可以使用较短的时间内完成数据的传输,并有效完成了数据的校验。从而降低控制单元之间共同交互的时间开销,减少车辆部件之间直接的通信时间损耗,提升交互性能。Compared with the above implementation method of transmitting the same data between the CAN network and the vehicle-mounted Ethernet network, the difference processing mechanism of data transmission in the embodiment of the present application significantly shortens the data transmission time, and can complete the data transmission in a shorter time, and effectively Data verification is completed. This reduces the time cost of joint interaction between control units, reduces the time loss of direct communication between vehicle components, and improves interaction performance.
一种可能的实施例中,上述第一控制单元和第二控制单元之间可以利用第一通信网络和第二通信网络这两种网络不同的传输特性实现数据传输的差异处理机制。这种情况下,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:该第二报文中包括的数据为第二目标数据,该第一报文中包括的数据为第一数据,该第一数据为该第二目标数据中的部分数据。In a possible embodiment, the first control unit and the second control unit may utilize different transmission characteristics of the first communication network and the second communication network to implement a differential processing mechanism for data transmission. In this case, the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the second target data, and the data in the first message The included data is first data, and the first data is part of the second target data.
具体的,上述第一报文包括N3个第一通信网络报文。该N3个第一通信网络报文是通过上述第一传输接口发送,又可以将该N3个第一通信网络报文称为对应于该第一传输接口的N3个报文。上述第二报文包括M3个第二通信网络报文。该M3个第二通信网络报文是通过上述第二传输接口发送,又可以将该M3个第二通信网络报文称为对应于该第二传输接口的M3个报文。该N3和M3均为大于0的整数。那么,该M3个报文中包括的数据为上述第二目标数据,该N3个报文中的数据为第二目标数据中的部分数据即上述第一数据。为了便于理解,下面以第一通信网络为CAN网络(第一通信网络报文为CAN报文),第二通信网络为车载以太网络(第二通信网络报文为以太报文)为例介绍。可以示例性地参见图7。Specifically, the above-mentioned first message includes N3 first communication network messages. The N3 first communication network messages are sent through the above-mentioned first transmission interface, and the N3 first communication network messages can also be called N3 messages corresponding to the first transmission interface. The above-mentioned second message includes M3 second communication network messages. The M3 second communication network messages are sent through the above-mentioned second transmission interface, and the M3 second communication network messages can also be called M3 messages corresponding to the second transmission interface. Both N3 and M3 are integers greater than 0. Then, the data included in the M3 messages is the above-mentioned second target data, and the data in the N3 messages is part of the second target data, that is, the above-mentioned first data. For ease of understanding, the following takes the first communication network as the CAN network (the first communication network messages are CAN messages) and the second communication network as the vehicle Ethernet network (the second communication network messages are Ethernet messages) as an example. See Figure 7 for an example.
图7以一个时钟周期(cycling)为例,在该时钟周期内第一控制单元要将上述第二目标数据发送到第二控制单元。第一控制单元可以通过互为冗余的CAN网络和车载以太网络将该第二目标数据发送到第二控制单元。该第二目标数据可以是任意数据,本申请实施例对此不做限制。上述第一报文中包括的第一数据可以是该第二目标数据中的任意一部分。示例性地,该第一报文被第二控制单元接收之后,可以用第一报文中的第一数据校验接收到的第二报文中的第二目标数据,具体可以参考后面的描述。FIG. 7 takes one clock cycle as an example. During this clock cycle, the first control unit sends the above-mentioned second target data to the second control unit. The first control unit may send the second target data to the second control unit through the mutually redundant CAN network and the vehicle Ethernet network. The second target data can be any data, and the embodiment of the present application does not limit this. The first data included in the first message may be any part of the second target data. For example, after the first message is received by the second control unit, the first data in the first message can be used to verify the second target data in the received second message. For details, please refer to the following description. .
具体的,第一控制单元可以通过车载以太网络向上述第二控制单元发送该第二目标数据,然后,通过CAN网络向上述第二控制单元发送该第二目标数据中的第一数据。通过车载以太网发送该第二目标数据时,第一控制单元可以将该第二目标数据封装成以太报文。由于以太报文的payload的长度较大,因此,用较少数量的以太报文(图7中以1个以太报文来装载该第二目标数据为例)即可装载完该第二目标数据。然后,第一控制单元通过第二传输接口将该以太报文(例如可以是上述第二报文)发送出去,该以太报文经过车载以太网络传输到第二控制单元。Specifically, the first control unit may send the second target data to the second control unit through the vehicle-mounted Ethernet network, and then send the first data of the second target data to the second control unit through the CAN network. When sending the second target data through the vehicle Ethernet, the first control unit may encapsulate the second target data into an Ethernet message. Since the payload length of the Ethernet packet is relatively large, the second target data can be loaded with a smaller number of Ethernet packets (in Figure 7, one Ethernet packet is used as an example to load the second target data). . Then, the first control unit sends the Ethernet message (for example, the above-mentioned second message) through the second transmission interface, and the Ethernet message is transmitted to the second control unit through the vehicle-mounted Ethernet network.
第一控制单元可以将该第二目标数据的第一数据封装成CAN报文。由于CAN报文的payload的长度较小,因此,可以根据第一数据的数据量来确定使用一个或多个CAN报文(图7中以1个CAN报文来装载该第二目标数据的第一数据为例)装载该第二目标数据的第一数据。然后,第一控制单元通过第一传输接口将该CAN报文(例如可以是上述第一报文)发送出去,该CAN报文经过CAN网络传输到第二控制单元。The first control unit may encapsulate the first data of the second target data into a CAN message. Since the length of the payload of the CAN message is small, one or more CAN messages can be determined based on the data amount of the first data (in Figure 7, one CAN message is used to load the second target data). One data (for example) loads the first data of the second target data. Then, the first control unit sends the CAN message (for example, the above-mentioned first message) through the first transmission interface, and the CAN message is transmitted to the second control unit through the CAN network.
CAN网络的传输速率比车载以太网的传输速率小,在图7中可以看到,传输一个CAN报文的时间比传输一个以太报文的时间长。例如,以CAN网络的传输速率为500kbps,CAN报文长度为11字节,车载以太网的传输速率为100Mbps,以太报文的长度为1200字节为例,则通过CAN网络发送一个CAN报文大约需要0.26毫秒(ms),即图7中的T1示例性地大约为0.26ms。而通过车载以太网发送一个以太报文仅需要0.112ms,即图7中的T2示例性地大约为0.112ms。可见通过车载以太网传输第二目标数据可以极大地提高传输效率。The transmission rate of the CAN network is smaller than that of the automotive Ethernet. As can be seen in Figure 7, the time to transmit a CAN message is longer than the time to transmit an Ethernet message. For example, if the transmission rate of the CAN network is 500kbps, the length of the CAN message is 11 bytes, the transmission rate of the vehicle Ethernet is 100Mbps, and the length of the Ethernet message is 1200 bytes, then a CAN message is sent through the CAN network. It takes approximately 0.26 milliseconds (ms), that is, T1 in FIG. 7 is approximately 0.26 ms. However, it only takes 0.112ms to send an Ethernet message through the vehicle Ethernet, that is, T2 in Figure 7 is approximately 0.112ms. It can be seen that transmitting the second target data through the vehicle Ethernet can greatly improve the transmission efficiency.
由于该以太报文先于该CAN报文传输到第二控制单元,那么,在第二控制单元接收到该以太报文之后,可以先对该以太报文中的第二目标数据进行预处理等操作。示例性的,第二控制单元接收到上述以太报文之后,可以解析该以太报文获取报文中的数据。并可以将获得的数据缓存到本地缓冲区。然后,第二控制单元可以基于该获得的数据进行一些预处理操作。例如可以对该数据进行CRC校验或通过checksum校验的方式进行校验等,以查看数据在传输过程中是否出现差错,例如是否出现比特差错(0变为1,或者1变为0)等。此处仅为示例,本申请实施例不限制该预处理的操作。Since the Ethernet message is transmitted to the second control unit before the CAN message, after the second control unit receives the Ethernet message, it can first preprocess the second target data in the Ethernet message, etc. operate. For example, after receiving the above-mentioned Ethernet message, the second control unit can parse the Ethernet message to obtain the data in the message. And can cache the obtained data to the local buffer. The second control unit can then perform some preprocessing operations based on the obtained data. For example, the data can be checked by CRC check or checksum check to check whether there are errors in the data during transmission, such as whether there are bit errors (0 becomes 1, or 1 becomes 0), etc. . This is only an example, and the embodiment of the present application does not limit the preprocessing operation.
然后,在第二控制单元接收到上述CAN报文之后,获取该CAN报文中的第一数据。基于上述的描述可知,该第一数据可以用于校验上述接收到的第二目标数据。示例性地,上述第 一控制单元可以对封装到第二报文即上述以太报文的第二目标数据中的第一数据做标记,例如可以标记该第一数据在以太报文中占用的比特位等,本申请实施例对此不做限制。在第二控制单元接收到该以太报文后,基于该预设的标记可以获取到以太报文中第二目标数据中的第一数据。然后,可以将该获取的第一数据与第一报文即上述CAN报文中的第一数据比较来实现数据的校验。若该两份数据相同,则表明数据在传输过程中没有出错或没有被篡改,接收到的数据为安全的数据。如果该两份数据不同,则表明以太报文中的数据和CAN报文中的数据至少有一个出现异常。Then, after the second control unit receives the above-mentioned CAN message, it obtains the first data in the CAN message. Based on the above description, it can be known that the first data can be used to verify the above-received second target data. For example, the first control unit may mark the first data encapsulated in the second target data of the second message, that is, the Ethernet message. For example, the first data may mark the bits occupied by the first data in the Ethernet message. bits, etc., the embodiments of this application do not limit this. After the second control unit receives the Ethernet message, the first data in the second target data in the Ethernet message can be obtained based on the preset mark. Then, the obtained first data can be compared with the first data in the first message, that is, the above-mentioned CAN message, to implement data verification. If the two pieces of data are the same, it means that there were no errors or tampering with the data during transmission, and the received data is safe. If the two pieces of data are different, it means that at least one of the data in the Ethernet message and the data in the CAN message is abnormal.
一种可能的实施方式中,如果上述第二控制单元接收到的以太报文中的数据和CAN报文中的第一数据至少有一个出现异常,那么,第二控制单元可以向第一控制单元发送重传数据的请求,并可以在请求中指示通过车载以太网来重传数据。第一控制单元可以基于该请求,重新封装上述第二目标数据以生成新的以太报文,然后通过车载以太网快速将该新的以太报文发送给第二控制单元。第二控制单元接收到该新的以太报文之后,解析获取该新的以太报文中的数据,并将该获得的数据与上述以太报文中的数据进行比较。如果该以太报文和新的以太报文中的数据相同,则表明该以太报文中的数据是正常的,而上述CAN报文中的第一数据是异常的。那么,第二控制单元可以丢弃该CAN报文的第一数据,或者可以请求第一控制单元通过CAN网络重传该第一数据。In a possible implementation, if at least one of the data in the Ethernet message and the first data in the CAN message received by the second control unit is abnormal, then the second control unit may report to the first control unit Sends a request to retransmit the data and can indicate in the request that the data is to be retransmitted via automotive Ethernet. Based on the request, the first control unit can re-encapsulate the second target data to generate a new Ethernet message, and then quickly send the new Ethernet message to the second control unit through the vehicle Ethernet. After receiving the new Ethernet message, the second control unit parses and obtains the data in the new Ethernet message, and compares the obtained data with the data in the above-mentioned Ethernet message. If the data in the Ethernet message and the new Ethernet message are the same, it means that the data in the Ethernet message is normal, and the first data in the above-mentioned CAN message is abnormal. Then, the second control unit may discard the first data of the CAN message, or may request the first control unit to retransmit the first data through the CAN network.
相比于上述CAN网络和车载以太网络传输相同数据的实现方式,本申请实施例的数据传输的差异处理机制显著缩短了数据传输的时间,可以使用较短的时间内完成数据的传输,并有效完成了数据的校验。从而降低控制单元之间共同交互的时间开销,减少车辆部件之间直接的通信时间损耗,提升交互性能。Compared with the above implementation method of transmitting the same data between the CAN network and the vehicle-mounted Ethernet network, the difference processing mechanism of data transmission in the embodiment of the present application significantly shortens the data transmission time, and can complete the data transmission in a shorter time, and effectively Data verification is completed. This reduces the time cost of joint interaction between control units, reduces the time loss of direct communication between vehicle components, and improves interaction performance.
一种可能的实施例中,上述第一控制单元和第二控制单元之间可以利用第一通信网络和第二通信网络这两种网络不同的传输特性实现数据传输的差异处理机制,并通过该差异处理机制可以起到数据加密传输的效果。这种情况下,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:第一报文的数据为第二数据,第二报文的数据为第三数据,第二数据和第三数据分别为第三目标数据中的部分数据,第三目标数据为第一控制单元在一个或多个时钟周期内所要发送的数据。该第二数据和该第三数据用于还原第三目标数据。示例性地,该第二数据和该第三数据合起来即为该第三目标数据。In a possible embodiment, the first control unit and the second control unit can utilize different transmission characteristics of the first communication network and the second communication network to implement a differential processing mechanism for data transmission, and through this The difference processing mechanism can achieve the effect of encrypted data transmission. In this case, the correlation between the data in the first message and the data in the second message may include the following situations: the data in the first message is the second data, and the data in the second message is the third data. , the second data and the third data are respectively partial data in the third target data, and the third target data is the data to be sent by the first control unit within one or more clock cycles. The second data and the third data are used to restore the third target data. For example, the second data and the third data together are the third target data.
具体的,上述第一报文包括N4个第一通信网络报文。该N4个第一通信网络报文是通过上述第一传输接口发送,又可以将该N4个第一通信网络报文称为对应于该第一传输接口的N4个报文。上述第二报文包括M4个第二通信网络报文。该M4个第二通信网络报文是通过上述第二传输接口发送,又可以将该M4个第二通信网络报文称为对应于该第二传输接口的M4个报文。该N4和M4均为大于0的整数。那么,该M4个报文中包括的数据为上述第二目标数据,该N4个报文中的数据为第二目标数据中的部分数据即上述第一数据。为了便于理解,下面以第一通信网络为CAN网络(第一通信网络报文为CAN报文),第二通信网络为车载以太网络(第二通信网络报文为以太报文)为例介绍。Specifically, the above-mentioned first message includes N4 first communication network messages. The N4 first communication network messages are sent through the above-mentioned first transmission interface, and the N4 first communication network messages can also be called N4 messages corresponding to the first transmission interface. The above-mentioned second message includes M4 second communication network messages. The M4 second communication network messages are sent through the above-mentioned second transmission interface, and the M4 second communication network messages can also be called M4 messages corresponding to the second transmission interface. Both N4 and M4 are integers greater than 0. Then, the data included in the M4 messages is the above-mentioned second target data, and the data in the N4 messages is part of the second target data, that is, the above-mentioned first data. For ease of understanding, the following takes the first communication network as the CAN network (the first communication network messages are CAN messages) and the second communication network as the vehicle Ethernet network (the second communication network messages are Ethernet messages) as an example.
在具体实现中,上述第一控制单元和第二控制单元之间可以利用CAN网络和车载以太网实现起到数据加密效果的数据传输。具体的,可以通过利用CAN网络和车载以太网络传输的报文格式、报文协议和物理特性的差异,实现报文的高等级加密传输。由于以太报文的通用性和网络化属性,很容易被抓取、破解或拷贝,从而发生信息被截取。基于此,可以利用本申请实施例的异构冗余网络进行高等级的加密安全传输。In a specific implementation, the CAN network and the vehicle-mounted Ethernet can be used to realize data transmission between the first control unit and the second control unit, which has a data encryption effect. Specifically, high-level encrypted transmission of messages can be achieved by taking advantage of the differences in message formats, message protocols and physical characteristics transmitted by the CAN network and the vehicle-mounted Ethernet network. Due to the versatility and networked nature of Ethernet messages, they are easily captured, cracked, or copied, resulting in information interception. Based on this, the heterogeneous redundant network in the embodiment of the present application can be used to perform high-level encrypted and secure transmission.
示例性地,第一控制单元确定要发送给第二控制单元的数据之后,可以按照预设规则将该数据分成两份,一份通过CAN网络传输,另一份通过车载以太网传输。该预设规则例如可以是将数据随机划分为两份,或者可以是按照预设的字节长度间隔抽取数据,抽取出来的数据为一份,剩余的数据为另一份等等,本申请实施例对该预设规则不做限制。示例性地,该第一控制单元发送给第二控制单元的数据可以是第一控制单元一个或多个时钟周期内要发送的数据,本申请实施例对此不做限制。For example, after the first control unit determines the data to be sent to the second control unit, the data can be divided into two parts according to preset rules, one part is transmitted through the CAN network, and the other part is transmitted through the vehicle Ethernet. For example, the preset rule can be to randomly divide the data into two parts, or it can be to extract data according to a preset byte length interval, and the extracted data is one part, and the remaining data is another part, etc. This application implements For example, there are no restrictions on this default rule. For example, the data sent by the first control unit to the second control unit may be data to be sent by the first control unit within one or more clock cycles, and this embodiment of the present application does not limit this.
通过CAN网络发送数据时,第一控制单元可以将该数据封装成N4个CAN报文。然后,第一控制单元通过第一传输接口将该N4个CAN报文发送出去,该N4个CAN报文经过CAN网络传输到第二控制单元。通过车载以太网发送该数据时,第一控制单元可以将该数据封装成M4个以太报文。然后,第一控制单元通过第二传输接口将该M4个以太报文发送出去,该M4个以太报文经过车载以太网络传输到第二控制单元。When sending data through the CAN network, the first control unit can encapsulate the data into N4 CAN messages. Then, the first control unit sends the N4 CAN messages through the first transmission interface, and the N4 CAN messages are transmitted to the second control unit through the CAN network. When sending the data through the vehicle Ethernet, the first control unit can encapsulate the data into M4 Ethernet messages. Then, the first control unit sends the M4 Ethernet messages through the second transmission interface, and the M4 Ethernet messages are transmitted to the second control unit through the vehicle-mounted Ethernet network.
上述第二控制单元接收到上述N4个CAN报文和M4个以太报文之后,可以获取这些报文中的数据以完成后续的计算和处理,本申请实施例对该具体的计算和处理不做限制。After the above-mentioned second control unit receives the above-mentioned N4 CAN messages and M4 Ethernet messages, it can obtain the data in these messages to complete subsequent calculations and processing. This embodiment of the present application does not perform this specific calculation and processing. limit.
通过上述的设计,即使以太报文中的信息被截取,也无法还原出全部的数据,从而起到了对数据加密保护的作用。另外,这种差异化加密传输方式可以降低传输加密对加密算法的依赖,不需要复杂的加密算法即可以实现高等级的密文传输。本申请实施例可以显著降低设备在密文传输的开销。Through the above design, even if the information in the Ethernet message is intercepted, all the data cannot be restored, thus playing a role in data encryption and protection. In addition, this differentiated encryption transmission method can reduce the dependence of transmission encryption on encryption algorithms, and can achieve high-level ciphertext transmission without the need for complex encryption algorithms. The embodiments of this application can significantly reduce the device's overhead in ciphertext transmission.
一种可能的实施例中,上述第一通信网络为硬实时性系统,第二通信网络为非实时性系统。由于第二通信网络中的通信是非实时性的,这样可能出现第一控制单元向第二控制单元发送的第二通信网络报文无法按时送达,导致处理结果出错。例如,对于第一控制单元和第二控制单元,当前的时钟周期为时钟周期2,正常情况下第二控制单元接收到的是第一控制单元在时钟周期2中发送的第二通信网络报文。但是由于第二通信网络的非实时性,若第二通信网络出现拥塞的情况下,第一控制单元发送的第二通信网络报文延迟,导致第二控制单元在时钟周期2内接收到的是第一控制单元在时钟周期1发送的第二通信网络报文。若第二控制单元按照接收到钟周期1发送来的第二通信网络报文进行后续的处理,会出现处理结果出错。那么,为了提高整个通信系统的通信实时性,可以利用第一通信网络的硬实时性和传输时延的确定性来对第二通信网络报文的实时性进行校验。示例性地,上述第一通信网络为CAN网络,第二通信网络为车载以太网。In a possible embodiment, the first communication network is a hard real-time system, and the second communication network is a non-real-time system. Since the communication in the second communication network is non-real-time, it may happen that the second communication network message sent by the first control unit to the second control unit cannot be delivered on time, resulting in an error in the processing result. For example, for the first control unit and the second control unit, the current clock cycle is clock cycle 2. Under normal circumstances, the second control unit receives the second communication network message sent by the first control unit in clock cycle 2. . However, due to the non-real-time nature of the second communication network, if the second communication network is congested, the second communication network message sent by the first control unit is delayed, resulting in the second control unit receiving within clock cycle 2. The second communication network message sent by the first control unit in clock cycle 1. If the second control unit performs subsequent processing according to receiving the second communication network message sent in clock cycle 1, an error in the processing result will occur. Then, in order to improve the communication real-time performance of the entire communication system, the hard real-time performance of the first communication network and the certainty of transmission delay can be used to verify the real-time performance of the second communication network message. For example, the above-mentioned first communication network is a CAN network, and the second communication network is a vehicle-mounted Ethernet.
具体的,上述第一报文中可以包括校验报文,该校验报文可以用于校验上述第二报文的实时性。示例性地,该校验报文和该第二报文可以使用同一个发送触发信号,该发送触发信号产生时,则同时触发该校验报文和该第二报文的发送操作。然后,该校验报文是通过第一通信网络传输到第二控制单元,该第二报文是通过第二通信网络传输到该第二控制单元。Specifically, the first message may include a verification message, and the verification message may be used to verify the real-time nature of the second message. For example, the verification message and the second message may use the same sending trigger signal. When the sending trigger signal is generated, the sending operations of the verifying message and the second message are simultaneously triggered. Then, the verification message is transmitted to the second control unit through the first communication network, and the second message is transmitted to the second control unit through the second communication network.
基于前面的描述,在第二通信网络出现拥塞的情况下,该第二报文在传输的过程中出现堵塞导致延迟发送到第二控制单元。这种情况下,上述校验报文会先于第二报文被第二控制单元接收。在具体实现中,可以设定一个预设时长。该第二报文在该校验报文被接收后的该预设时长内被第二控制单元接收,则确定该第二报文有效。若该第二报文在该校验报文被接收后的超过该预设时长仍没有被第二控制单元接收,则确定该第二报文无效。该第二报文有效指的是可以正常用于参与后续的处理。该第二报文无效指的是该第二报文不是当前时钟周期内要接收的报文。对于无效的报文可以做丢弃等处理,本申请实施例对此不做限制。Based on the previous description, when the second communication network is congested, the second message is blocked during the transmission process, resulting in a delay in sending the second message to the second control unit. In this case, the above verification message will be received by the second control unit before the second message. In specific implementation, a preset duration can be set. If the second message is received by the second control unit within the preset time period after the verification message is received, it is determined that the second message is valid. If the second message is not received by the second control unit for more than the preset time period after the verification message is received, the second message is determined to be invalid. The fact that the second message is valid means that it can be used normally to participate in subsequent processing. The invalidity of the second message means that the second message is not a message to be received in the current clock cycle. Invalid packets can be discarded, and the embodiment of the present application does not limit this.
上述预设时长不超出传输该校验报文所在的时钟周期。例如,假设一个时钟周期为10秒, 该校验报文在该时钟周期的第3秒被第二控制单元接收到。那么,该预设时长可以是0秒至7秒之间的任意一个时长。本申请实施例对该预设时长的具体取值不做限制。The above preset time period does not exceed the clock cycle in which the verification message is transmitted. For example, assume that a clock cycle is 10 seconds, and the verification message is received by the second control unit at the 3rd second of the clock cycle. Then, the preset duration can be any duration between 0 seconds and 7 seconds. The embodiment of this application does not limit the specific value of the preset time period.
在具体实现中,由于第一控制单元会不断地给第二控制单元发送很多个报文,要在这么多的报文中确定上述校验报文和第二报文的关系,才能进一步通过该校验报文来校验第二报文的实时性。示例性地,可以在校验报文和第二报文中设置相同的同步校验信息,第二控制单元可以基于该相同的同步校验信息确定该校验报文和该第二报文的关系。该同步校验信息可以包括校验报文的标识ID、校验报文发送时所在的时钟周期的序号和第二报文中数据的校验值。为了便于理解,以上述第一通信网络为CAN网络,该校验保温为CAN报文,第二通信网络为车载以太网,该第二报文为以太报文为例。可以示例性地参见图8。In specific implementation, since the first control unit will continuously send many messages to the second control unit, it is necessary to determine the relationship between the above-mentioned verification message and the second message in so many messages before further passing the verification message. The verification message is used to verify the real-time nature of the second message. For example, the same synchronization verification information can be set in the verification message and the second message, and the second control unit can determine the verification message and the second message based on the same synchronization verification information. relation. The synchronization verification information may include the identification ID of the verification message, the sequence number of the clock cycle in which the verification message is sent, and the verification value of the data in the second message. For ease of understanding, the above-mentioned first communication network is a CAN network, the verification insulation is a CAN message, the second communication network is a vehicle-mounted Ethernet, and the second message is an Ethernet message. See Figure 8 for example.
在图8中可以看到,报文标识指的是生成检验报文时产生的标识,该标识可以是帧标识,该帧标识用于标识该报文所在的帧的序号,也是标识该报文的序号。时钟周期序号指的是校验报文即CAN报文发送时所在的时钟周期的序号,也是第二报文即以太报文发送时所在的时钟周期的序号。该时钟周期序号可以表示为序列计数器(Sequence Counter)。数据校验值则是以太报文中实际发送的数据即图8中的数据1的校验值。示例性地,该数据校验值可以是通过CRC校验,或通过checksum校验的方式对该数据1进行计算获得校验值。该数据1可以为用户定义的发送数据(User define Data)。该报文标识、时钟周期序号和数据校验值即为上述同步校验信息。在CAN报文中,该同步校验信息被装载在CAN报文的负载(payload)的字节中。示例性地,该时钟周期序号和数据校验值均可以占用4个字节。在以太报文中,报文标识可以是装载在报文头中。然后,时钟周期序号、数据1和数据校验值可以装载在以太报文的payload的字节中。在第一控制单元封装该校验报文和以太报文时,封装到该校验报文和以太报文中的同步校验信息相同。在第二控制单元接收到该校验报文后,可以先获取该校验报文中的同步校验信息并保存。然后,第二控制单元可以在后续接收到的以太报文中查看对应的同步校验信息。若某个以太报文中的同步校验信息与该校验报文中的同步校验信息相同,并且接收该某个以太报文的时间在该校验报文被接收后的预设时长的范围内,则可以确定该某个以太报文有效。As can be seen in Figure 8, the message identifier refers to the identifier generated when the verification message is generated. The identifier can be a frame identifier. The frame identifier is used to identify the sequence number of the frame in which the message is located, and also identifies the message. serial number. The clock cycle sequence number refers to the sequence number of the clock cycle in which the verification message, that is, the CAN message is sent, and is also the sequence number of the clock cycle in which the second message, that is, the Ethernet message is sent. This clock cycle number can be expressed as a sequence counter (Sequence Counter). The data check value is the data actually sent in the Ethernet message, that is, the check value of data 1 in Figure 8. For example, the data check value may be calculated through CRC check or checksum check on the data 1 to obtain the check value. The data 1 can be user-defined sending data (User define Data). The message identifier, clock cycle sequence number and data check value are the above-mentioned synchronization check information. In the CAN message, the synchronization check information is loaded in the bytes of the payload of the CAN message. For example, both the clock cycle sequence number and the data check value can occupy 4 bytes. In Ethernet packets, the packet identifier can be loaded in the packet header. Then, the clock cycle sequence number, data 1 and data check value can be loaded in the bytes of the payload of the Ethernet message. When the first control unit encapsulates the verification message and the Ethernet message, the synchronization verification information encapsulated in the verification message and the Ethernet message is the same. After receiving the verification message, the second control unit can first obtain the synchronization verification information in the verification message and save it. Then, the second control unit can check the corresponding synchronization verification information in the subsequently received Ethernet message. If the synchronization check information in an Ethernet message is the same as the synchronization check information in the verification message, and the time of receiving the certain Ethernet message is within the preset time after the verification message is received, Within the range, it can be determined that the certain Ethernet message is valid.
一种可能的实施方式中,上述数据校验值不限于是对数据1的校验,还可以是对整个以太报文的校验。这种情况下,上述数据校验值可以是该整个以太报文的校验值。示例性地,该数据校验值可以是通过CRC校验,或通过checksum校验的方式对整个报文进行计算获得校验值。In a possible implementation, the above data check value is not limited to the check of data 1, but can also be the check of the entire Ethernet message. In this case, the above data check value may be the check value of the entire Ethernet message. For example, the data check value may be calculated through CRC check or checksum check on the entire message to obtain the check value.
在上述实施例中,由于第一通信网络为硬实时性系统,那么在该网络的总线上传输的报文的传输时延是确定的,不会出现上述第二通信网络中拥塞到时报文延迟传输的问题。因此,通过该第一通信网络的硬实时性和传输时延的确定性来对第二通信网络报文的实时性进行校验,通过此方式确保传输数据的确定性和时效性,提升通信系统之间的通信实时性。本申请实施例可以应用在对业务信息敏感和时延敏感的数据传输的场景中。In the above embodiment, since the first communication network is a hard real-time system, the transmission delay of messages transmitted on the bus of the network is certain, and there will be no message delay when congestion occurs in the second communication network. Transmission issues. Therefore, the real-time nature of the second communication network message is verified through the hard real-time nature of the first communication network and the certainty of transmission delay. In this way, the certainty and timeliness of the transmitted data are ensured, and the communication system is improved. real-time communication. The embodiments of this application can be applied in data transmission scenarios that are sensitive to business information and sensitive to delay.
综上所述,本申请方案利用上述第一通信网络和第二通信网络构建了异构冗余的通信网络,实现了异构的通信方式,解决了系统之间的高功能安全通信存在的共因失效的问题。In summary, the solution of this application uses the above-mentioned first communication network and the second communication network to construct a heterogeneous and redundant communication network, realizes heterogeneous communication methods, and solves the common problems of high-function secure communication between systems. due to failure issues.
本申请方案,使用了新的通信传输机制,有效的提升了传输效率,通过传输效率的提升,可以传输更多的信息,也可以显著的缩短传输时间,利用传输的时间缩短可以改变计算方式。通过计算提前和对传输结果的校验,可以实现对正系统的交互计算效率的提升,带来系统收益。改变了传统传输与计算的模式。This application solution uses a new communication transmission mechanism, which effectively improves the transmission efficiency. Through the improvement of transmission efficiency, more information can be transmitted, and the transmission time can also be significantly shortened. The calculation method can be changed by shortening the transmission time. By calculating in advance and verifying the transmission results, the interactive computing efficiency of the alignment system can be improved, bringing system benefits. Changed the traditional transmission and calculation model.
本申请使能了新的数据传输方式,可以实现高可靠的车载通信下,对数据加密传输需求,可以通过将数据分别放在不同的总线完成传输。通过差异传输的方式,可以增强数据传输的安全性,降低对复杂加密算法的依赖,降低安全通信和加密传输的成本。This application enables a new data transmission method, which can realize highly reliable in-vehicle communication. For data encryption transmission requirements, the transmission can be completed by placing the data on different buses. Through differential transmission, the security of data transmission can be enhanced, the dependence on complex encryption algorithms can be reduced, and the cost of secure communication and encrypted transmission can be reduced.
此外,通过强实时性第一通信网络例如CAN网络与非实时性的第二通信网络例如车载以太网构建的冗余通信网络,可以实现通过CAN网络的实时性,来修正约束车载以太网通信的实时性,完成高速传输网络的实时性约束可通信方案,实现以太网络的实时通信改造。从而构建冗余通信场景下的实时性。In addition, through a redundant communication network constructed by a strong real-time first communication network such as the CAN network and a non-real-time second communication network such as vehicle Ethernet, it is possible to correct and constrain the vehicle Ethernet communication through the real-time nature of the CAN network. Real-time, complete the real-time constrained communication solution of high-speed transmission network, and realize the real-time communication transformation of Ethernet. This builds real-time performance in redundant communication scenarios.
上述主要对本申请实施例提供的车辆中的通信方法进行了介绍。可以理解的是,各个控制单元或设备为了实现上述对应的功能,其包含了执行各个功能相应的硬件结构和/或软件模块。结合本文中所公开的实施例描述的各示例的单元及步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但这种实现不应认为超出本申请的范围。The above mainly introduces the communication method in the vehicle provided by the embodiment of the present application. It can be understood that, in order to implement the above corresponding functions, each control unit or device includes a corresponding hardware structure and/or software module for executing each function. In conjunction with the units and steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法示例对设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。Embodiments of the present application can divide the device into functional modules according to the above method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods.
在采用对应各个功能划分各个功能模块的情况下,本申请实施例还提供用于实现以上任一种方法的装置,例如,提供一种装置包括用以实现以上任一种方法中第一控制单元所执行的各步骤的单元(或手段)。再如,还提供另一种装置,包括用以实现以上任一种方法中第二控制单元所执行的各步骤的单元(或手段)。In the case where each functional module is divided corresponding to each function, the embodiment of the present application also provides a device for implementing any of the above methods. For example, a device is provided including a first control unit for implementing any of the above methods. The unit (or means) of each step performed. As another example, another device is provided, including a unit (or means) for implementing each step performed by the second control unit in any of the above methods.
例如,请参考图9,其为本申请实施例提供的一种控制单元的结构示意图,图9所示的控制单元900可以是上述方法实施例中的第一控制单元。该控制单元900包括发送单元901。其中:For example, please refer to FIG. 9 , which is a schematic structural diagram of a control unit provided by an embodiment of the present application. The control unit 900 shown in FIG. 9 may be the first control unit in the above method embodiment. The control unit 900 includes a sending unit 901. in:
发送单元901,用于通过第一传输接口发送第一报文;Sending unit 901, configured to send the first message through the first transmission interface;
前述发送单元901,还用于通过第二传输接口发送第二报文;The aforementioned sending unit 901 is also used to send the second message through the second transmission interface;
前述第一报文中的数据和前述第二报文中的数据是相关联的,前述第一传输接口和前述第二传输接口遵循的通信协议不同。该发送单元901可以用于实现上述图3中所示的S301的发送操作。The data in the first message and the data in the second message are related, and the communication protocols followed by the first transmission interface and the second transmission interface are different. The sending unit 901 may be used to implement the sending operation of S301 shown in FIG. 3 above.
可选的,前述第一传输接口为控制器区域网CAN接口,前述第二传输接口为车载以太网接口。Optionally, the aforementioned first transmission interface is a controller area network CAN interface, and the aforementioned second transmission interface is a vehicle-mounted Ethernet interface.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:该第一报文中的数据和该第二报文中的数据相同。Optionally, the correlation between the data in the first message and the data in the second message may include the following situation: the data in the first message and the data in the second message are the same.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:该第二报文中包括的数据为第一目标数据,该第一报文中包括的数据为校验信息,该校验信息用于校验该第一目标数据。Optionally, the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the first target data, and the first message includes The data is verification information, and the verification information is used to verify the first target data.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:该第二报文中包括的数据为第二目标数据,该第一报文中包括的数据为第一数据,该第一数据为该第二目标数据中的部分数据。Optionally, the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the second target data, and the first message includes The data of is the first data, and the first data is part of the data in the second target data.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:第一报文的数据为第二数据,第二报文的数据为第三数据,第二数据和第三数据分别为第三目标数据中的部分数据,第三目标数据为第一控制单元在一个或多个时钟周期内所要发送的数据。该第二数据和该第三数据用于还原第三目标数据。Optionally, the correlation between the data in the first message and the data in the second message may include the following situations: the data in the first message is the second data, and the data in the second message is the third data, The second data and the third data are respectively part of the third target data, and the third target data is the data to be sent by the first control unit within one or more clock cycles. The second data and the third data are used to restore the third target data.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N1个报文,前述第二报文包括对应于前述第二传输接口的M1个报文,封装到前述N1个报文中的数据和封装到前述M1个报文中的数据相同,前述N1和前述M1均为大于0的整数。In a possible embodiment, the aforementioned first message includes N1 messages corresponding to the aforementioned first transmission interface, and the aforementioned second message includes M1 messages corresponding to the aforementioned second transmission interface, and is encapsulated into the aforementioned N1 The data in each packet is the same as the data encapsulated in the aforementioned M1 packets, and both the aforementioned N1 and the aforementioned M1 are integers greater than 0.
一种可能的实施例中,在第一种情况下,前述M1=1,前述第二报文中的数据包括前述第一控制单元在一个或多个时钟周期内所要发送的数据;或者,In a possible embodiment, in the first case, the aforementioned M1=1, the data in the aforementioned second message includes the data to be sent by the aforementioned first control unit within one or more clock cycles; or,
在第二种情况下,前述N1=M1;In the second case, the aforementioned N1=M1;
前述第一种情况包括以下至少一种情况:前述第二报文为前述第一控制单元响应于数据采集单元的数据采集请求发送的报文,前述第二报文为广播报文或组播报文,或前述第二报文为前述第一控制单元响应于车辆状态监控单元的请求发送的报文;The aforementioned first situation includes at least one of the following situations: the aforementioned second message is a message sent by the aforementioned first control unit in response to the data collection request of the data collection unit, and the aforementioned second message is a broadcast message or a multicast message. message, or the aforementioned second message is a message sent by the aforementioned first control unit in response to a request from the vehicle status monitoring unit;
前述第二种情况包括前述第二报文中的数据为控制前述车辆驾驶操作的信息。The aforementioned second situation includes that the data in the aforementioned second message is information for controlling the aforementioned vehicle driving operation.
一种可能的实施例中,前述第二报文中包括扩展信息,前述扩展信息包括以下的一项或多项:前述第一控制单元所在子系统的状态信息,前述第一控制单元发出的控制指令,或前述第一控制单元采集到的传感器数据。In a possible embodiment, the aforementioned second message includes extended information, and the aforementioned extended information includes one or more of the following: status information of the subsystem where the aforementioned first control unit is located, control information issued by the aforementioned first control unit. instructions, or the sensor data collected by the aforementioned first control unit.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N2个报文,前述第二报文包括对应于前述第二传输接口的M2个报文,前述M2个报文中包括的数据为第一目标数据,前述N2个报文的数据为校验信息,前述校验信息用于校验前述第一目标数据,前述N2和前述M2均为大于0的整数。In a possible embodiment, the aforementioned first message includes N2 messages corresponding to the aforementioned first transmission interface, the aforementioned second message includes M2 messages corresponding to the aforementioned second transmission interface, and the aforementioned M2 messages The data included in the text is the first target data, and the data of the aforementioned N2 messages is verification information. The aforementioned verification information is used to verify the aforementioned first target data. The aforementioned N2 and the aforementioned M2 are both integers greater than 0.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N3个报文,前述第二报文包括对应于前述第二传输接口的M3个报文,前述M3个报文中包括的数据为第二目标数据,前述N3个报文的数据为第一数据,前述第一数据为前述第二目标数据中的部分数据,前述N3和前述M3均为大于0的整数。In a possible embodiment, the aforementioned first message includes N3 messages corresponding to the aforementioned first transmission interface, the aforementioned second message includes M3 messages corresponding to the aforementioned second transmission interface, and the aforementioned M3 messages The data included in the text is the second target data, the data of the aforementioned N3 messages is the first data, the aforementioned first data is part of the aforementioned second target data, and the aforementioned N3 and the aforementioned M3 are both integers greater than 0.
一种可能的实施例中,前述第一报文包括对应于前述第一传输接口的N4个报文,前述第二报文包括对应于前述第二传输接口的M4个报文,前述第一报文的数据为第二数据,前述第二报文的数据为第三数据,前述第二数据和前述第三数据分别为第三目标数据中的部分数据,前述第三目标数据为前述第一控制单元在一个或多个时钟周期内所要发送的数据,前述N4和前述M4均为大于0的整数。In a possible embodiment, the aforementioned first message includes N4 messages corresponding to the aforementioned first transmission interface, the aforementioned second message includes M4 messages corresponding to the aforementioned second transmission interface, and the aforementioned first message The data in the message is the second data, the data in the second message is the third data, the second data and the third data are part of the third target data respectively, and the third target data is the first control data. The data to be sent by the unit in one or more clock cycles, the aforementioned N4 and the aforementioned M4 are both integers greater than 0.
可选的,前述第二数据和前述第三数据用于还原前述第三目标数据。Optionally, the aforementioned second data and the aforementioned third data are used to restore the aforementioned third target data.
一种可能的实施例中,前述第一报文中包括校验报文,前述校验报文和前述第二报文中包括同步校验信息,前述校验报文和前述同步校验信息用于校验前述第二报文的实时性,前述同步校验信息包括前述校验报文的标识ID、前述校验报文发送时所在的时钟周期的序号和前述第二报文中数据的校验值。In a possible embodiment, the aforementioned first message includes a verification message, the aforementioned verification message and the aforementioned second message include synchronization verification information, and the aforementioned verification message and the aforementioned synchronization verification information are denoted by In order to verify the real-time nature of the aforementioned second message, the aforementioned synchronization verification information includes the identification ID of the aforementioned verification message, the sequence number of the clock cycle when the aforementioned verification message is sent, and the verification of the data in the aforementioned second message. test value.
一种可能的实施例中,前述第一控制单元为前述车辆中的转向系统包括的控制单元,前述车辆中的制动系统包括的控制单元,前述车辆中的动力系统包括的控制单元,前述车辆中的车身域控制器VDC系统包括的控制单元,前述车辆中的整车控制单元VCU,或前述车辆中的自主驾驶和辅助系统ADAS包括的控制单元。In a possible embodiment, the first control unit is a control unit included in the steering system in the aforementioned vehicle, a control unit included in the braking system in the aforementioned vehicle, a control unit included in the power system in the aforementioned vehicle, the aforementioned vehicle The control unit included in the body domain controller VDC system, the vehicle control unit VCU in the aforementioned vehicle, or the control unit included in the autonomous driving and assistance system ADAS in the aforementioned vehicle.
一种可能的实施例中,前述第一控制单元为前述车辆中的VDC系统包括的控制单元,前述VDC系统中的整车控制单元VCU,或自主驾驶和辅助系统ADAS的控制单元;In a possible embodiment, the aforementioned first control unit is a control unit included in the VDC system in the aforementioned vehicle, a vehicle control unit VCU in the aforementioned VDC system, or a control unit of the autonomous driving and assistance system ADAS;
前述第一控制单元通过前述第一传输接口与前述车辆中的P个第二控制单元通信;The aforementioned first control unit communicates with the P second control units in the aforementioned vehicle through the aforementioned first transmission interface;
前述第一控制单元通过P个前述第二传输接口分别与前述P个第二控制单元通信;The aforementioned first control unit communicates with the aforementioned P second control units respectively through the P aforementioned second transmission interfaces;
其中,前述P为大于0的整数。Wherein, the aforementioned P is an integer greater than 0.
一种可能的实施例中,前述第一控制单元为前述车辆中的VDC系统的控制单元,前述VDC系统中的整车控制单元VCU,或自主驾驶和辅助系统ADAS的控制单元;In a possible embodiment, the aforementioned first control unit is the control unit of the VDC system in the aforementioned vehicle, the vehicle control unit VCU in the aforementioned VDC system, or the control unit of the autonomous driving and assistance system ADAS;
前述第一控制单元通过前述第一传输接口与前述车辆中的P个第二控制单元通信;前述P为大于0的整数;The aforementioned first control unit communicates with the P second control units in the aforementioned vehicle through the aforementioned first transmission interface; the aforementioned P is an integer greater than 0;
前述第一控制单元通过前述第二传输接口与前述P个第二控制单元通信。The aforementioned first control unit communicates with the aforementioned P second control units through the aforementioned second transmission interface.
一种可能的实施例中,前述第一控制单元为前述车辆中的VDC系统的控制单元,前述VDC系统中的整车控制单元VCU,或自主驾驶和辅助系统ADAS的控制单元;In a possible embodiment, the aforementioned first control unit is the control unit of the VDC system in the aforementioned vehicle, the vehicle control unit VCU in the aforementioned VDC system, or the control unit of the autonomous driving and assistance system ADAS;
前述第一控制单元通过前述第一传输接口与前述车辆中的P个第二控制单元通信;前述P为大于0的整数;The aforementioned first control unit communicates with the P second control units in the aforementioned vehicle through the aforementioned first transmission interface; the aforementioned P is an integer greater than 0;
前述第一控制单元通过前述第二传输接口与前述车辆中的交换单元通信,前述交换单元用于转发前述第一控制单元通过前述第二传输接口向前述第二控制单元发送的报文。The first control unit communicates with the switching unit in the vehicle through the second transmission interface, and the switching unit is used to forward messages sent by the first control unit to the second control unit through the second transmission interface.
图9所示控制单元900中各个单元的具体操作以及有益效果可以参见上述图3及其可能的实施例中对应的描述,此处不再赘述。For the specific operations and beneficial effects of each unit in the control unit 900 shown in Figure 9, please refer to the corresponding descriptions in Figure 3 and its possible embodiments, and will not be described again here.
例如,请参考图10,其为本申请实施例提供的另一种控制单元的结构示意图,图10所示的控制单元1000可以是上述方法实施例中的第二控制单元。该控制单元1000包括接收单元1001。其中:For example, please refer to FIG. 10 , which is a schematic structural diagram of another control unit provided by an embodiment of the present application. The control unit 1000 shown in FIG. 10 may be the second control unit in the above method embodiment. The control unit 1000 includes a receiving unit 1001. in:
接收单元1001,用于通过第三传输接口接收第一报文;The receiving unit 1001 is used to receive the first message through the third transmission interface;
前述接收单元1001,还用于通过第四传输接口接收第二报文;The aforementioned receiving unit 1001 is also used to receive the second message through the fourth transmission interface;
前述第一报文中的数据和前述第二报文中的数据是相关联的,前述第三传输接口和前述第四传输接口遵循的通信协议不同。该接收单元1001可以用于执行上述图3中的S302中的接收操作。The data in the first message and the data in the second message are related, and the communication protocols followed by the third transmission interface and the fourth transmission interface are different. The receiving unit 1001 may be used to perform the receiving operation in S302 in Figure 3 above.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:该第二报文中包括的数据为第一目标数据,该第一报文中包括的数据为校验信息,该校验信息用于校验该第一目标数据。Optionally, the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the first target data, and the first message includes The data is verification information, and the verification information is used to verify the first target data.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:该第二报文中包括的数据为第二目标数据,该第一报文中包括的数据为第一数据,该第一数据为该第二目标数据中的部分数据。Optionally, the correlation between the data in the first message and the data in the second message may include the following situation: the data included in the second message is the second target data, and the first message includes The data of is the first data, and the first data is part of the data in the second target data.
可选的,上述第一报文中的数据和该第二报文中的数据相关联可以包括如下情况:第一报文的数据为第二数据,第二报文的数据为第三数据,第二数据和第三数据分别为第三目标数据中的部分数据,第三目标数据为第一控制单元在一个或多个时钟周期内所要发送的数据。该第二数据和该第三数据用于还原第三目标数据。Optionally, the correlation between the data in the first message and the data in the second message may include the following situations: the data in the first message is the second data, and the data in the second message is the third data, The second data and the third data are respectively part of the third target data, and the third target data is the data to be sent by the first control unit within one or more clock cycles. The second data and the third data are used to restore the third target data.
一种可能的实施例中,前述第一报文包括对应于前述第三传输接口的N1个报文,前述第二报文包括对应于前述第四传输接口的M1个报文,封装到前述N1个报文中的数据和封装到前述M1个报文中的数据相同,前述N1和前述M1均为大于0的整数。In a possible embodiment, the aforementioned first message includes N1 messages corresponding to the aforementioned third transmission interface, and the aforementioned second message includes M1 messages corresponding to the aforementioned fourth transmission interface, and is encapsulated into the aforementioned N1 The data in each packet is the same as the data encapsulated in the aforementioned M1 packets, and both the aforementioned N1 and the aforementioned M1 are integers greater than 0.
一种可能的实施例中,前述第一报文包括对应于前述第三传输接口的N2个报文,前述第二报文包括对应于前述第四传输接口的M2个报文,前述M2个报文中包括的数据为第一目标数据,前述N2个报文的数据为校验信息,前述校验信息用于校验前述第一目标数据, 前述N2和前述M2均为大于0的整数。In a possible embodiment, the aforementioned first message includes N2 messages corresponding to the aforementioned third transmission interface, the aforementioned second message includes M2 messages corresponding to the aforementioned fourth transmission interface, and the aforementioned M2 messages The data included in the text is the first target data, and the data of the aforementioned N2 messages is verification information. The aforementioned verification information is used to verify the aforementioned first target data. The aforementioned N2 and the aforementioned M2 are both integers greater than 0.
一种可能的实施例中,前述第一报文包括对应于前述第三传输接口的N3个报文,前述第二报文包括对应于前述第四传输接口的M3个报文,前述M3个报文中包括的数据为第二目标数据,前述N3个报文的数据为第一数据,前述第一数据为前述第二目标数据中的部分数据,前述N3和前述M3均为大于0的整数。In a possible embodiment, the aforementioned first message includes N3 messages corresponding to the aforementioned third transmission interface, the aforementioned second message includes M3 messages corresponding to the aforementioned fourth transmission interface, and the aforementioned M3 messages The data included in the text is the second target data, the data of the aforementioned N3 messages is the first data, the aforementioned first data is part of the aforementioned second target data, and the aforementioned N3 and the aforementioned M3 are both integers greater than 0.
一种可能的实施例中,前述第一报文包括对应于前述第三传输接口的N4个报文,前述第二报文包括对应于前述第四传输接口的M4个报文,前述第一报文的数据为第二数据,前述第二报文的数据为第三数据,前述第二数据和前述第三数据分别为第三目标数据中的部分数据,前述第三目标数据为前述第一控制单元一个或多个时钟周期内所要发送的数据,前述N4和前述M4均为大于0的整数。In a possible embodiment, the first message includes N4 messages corresponding to the third transmission interface, the second message includes M4 messages corresponding to the fourth transmission interface, and the first message The data in the message is the second data, the data in the second message is the third data, the second data and the third data are part of the third target data respectively, and the third target data is the first control data. The data to be sent by the unit within one or more clock cycles, the aforementioned N4 and the aforementioned M4 are both integers greater than 0.
可选的,前述第二数据和前述第三数据用于还原前述第三目标数据。Optionally, the aforementioned second data and the aforementioned third data are used to restore the aforementioned third target data.
一种可能的实施例中,前述第一报文中包括校验报文;In a possible embodiment, the first message includes a verification message;
前述第二报文是在前述第二控制单元接收前述校验报文后的预设时长内被前述第二控制单元接收的情况下,前述第二报文被确定是有效的;或者,When the aforementioned second message is received by the aforementioned second control unit within a preset time period after the aforementioned second control unit receives the aforementioned verification message, the aforementioned second message is determined to be valid; or,
前述第二报文是在超过前述预设时长后被前述第二控制单元接收的情况下,前述第二报文被确定是无效的。If the second message is received by the second control unit after exceeding the preset time period, the second message is determined to be invalid.
一种可能的实施例中,前述校验报文和前述第二报文中包括同步校验信息,前述同步校验信息包括前述校验报文的标识ID、前述校验报文发送时所在的时钟周期的序号和前述第二报文中数据的校验值;前述第二报文是在前述第二控制单元接收前述校验报文后的预设时长内被前述第二控制单元接收的情况下,前述第二报文被确定是有效的,包括:In a possible embodiment, the aforementioned verification message and the aforementioned second message include synchronization verification information, and the aforementioned synchronization verification information includes the identification ID of the aforementioned verification message, the location where the aforementioned verification message is sent, and The sequence number of the clock cycle and the verification value of the data in the second message; the second message is received by the second control unit within a preset time after the second control unit receives the verification message. Next, the aforementioned second message was determined to be valid, including:
前述第二报文在前述第二控制单元接收前述校验报文后的预设时长内被前述第二控制单元接收,并且前述第二报文中的前述同步校验信息与前述校验报文中的前述同步校验信息相同的情况下,前述第二报文被确定是有效的。The aforementioned second message is received by the aforementioned second control unit within a preset time period after the aforementioned second control unit receives the aforementioned verification message, and the aforementioned synchronization verification information in the aforementioned second message is consistent with the aforementioned verification message. If the synchronization check information in the two messages is the same, the second message is determined to be valid.
一种可能的实施例中,前述第一报文被前述第二控制单元接收的时间晚于前述第二报文被前述第二控制单元接收的时间;In a possible embodiment, the time when the aforementioned first message is received by the aforementioned second control unit is later than the time when the aforementioned second message is received by the aforementioned second control unit;
上述第二控制单元还包括计算单元,用于在前述接收单元1001通过第四传输接口接收第二报文之后,根据前述第二报文中的数据进行计算。The above-mentioned second control unit also includes a calculation unit, configured to perform calculations based on the data in the above-mentioned second message after the above-mentioned receiving unit 1001 receives the second message through the fourth transmission interface.
一种可能的实施例中,上述第二控制单元还包括校验单元,用于在前述接收单元1001通过第三传输接口接收第一报文之后,对前述第一报文和前述第二报文中的数据进行校验处理。In a possible embodiment, the above-mentioned second control unit further includes a verification unit, configured to verify the above-mentioned first message and the above-mentioned second message after the foregoing receiving unit 1001 receives the first message through the third transmission interface. The data in the file is verified.
一种可能的实施例中,前述校验单元具体用于:In a possible embodiment, the aforementioned verification unit is specifically used for:
在确定前述第一报文中的数据与前述第二报文中的数据不同的情况下,基于重传机制通过前述第四传输接口接收第三报文;When it is determined that the data in the first message is different from the data in the second message, receiving the third message through the fourth transmission interface based on the retransmission mechanism;
在前述第三报文中的数据与前述第二报文中的数据相同的情况下,对前述第一报文中的数据执行纠错策略。When the data in the third message is the same as the data in the second message, an error correction strategy is performed on the data in the first message.
一种可能的实施例中,前述第二控制单元为前述车辆中的转向系统包括的控制单元,前述车辆中的制动系统包括的控制单元,前述车辆中的动力系统包括的控制单元,前述车辆中的车身域控制器VDC系统包括的控制单元,前述车辆中的整车控制单元VCU,或前述车辆中的自主驾驶和辅助系统ADAS包括的控制单元。In a possible embodiment, the aforementioned second control unit is a control unit included in the steering system in the aforementioned vehicle, a control unit included in the braking system in the aforementioned vehicle, a control unit included in the power system in the aforementioned vehicle, the aforementioned vehicle The control unit included in the body domain controller VDC system, the vehicle control unit VCU in the aforementioned vehicle, or the control unit included in the autonomous driving and assistance system ADAS in the aforementioned vehicle.
一种可能的实施例中,前述第二控制单元为前述车辆中的转向系统包括的控制单元,前述车辆中的制动系统包括的控制单元,或前述车辆中的动力系统包括的控制单元;In a possible embodiment, the aforementioned second control unit is a control unit included in the steering system in the aforementioned vehicle, a control unit included in the braking system in the aforementioned vehicle, or a control unit included in the power system in the aforementioned vehicle;
前述第二控制单元通过前述第三传输接口与第一控制单元通信,前述第二控制单元还通 过前述第四传输接口与前述第一控制单元通信,前述第一控制单元为前述车辆中的车身域控制器VDC系统包括的控制单元,前述车辆中的整车控制单元VCU,或前述车辆中的自主驾驶和辅助系统ADAS包括的控制单元。The aforementioned second control unit communicates with the aforementioned first control unit through the aforementioned third transmission interface. The aforementioned second control unit also communicates with the aforementioned first control unit through the aforementioned fourth transmission interface. The aforementioned first control unit is a body domain in the aforementioned vehicle. The control unit included in the controller VDC system, the vehicle control unit VCU in the aforementioned vehicle, or the control unit included in the autonomous driving and assistance system ADAS in the aforementioned vehicle.
一种可能的实施例中,前述第二控制单元通过前述第四传输接口与前述车辆中的交换单元通信,前述交换单元用于转发前述第二控制单元通过前述第四传输接口向前述第一控制单元发送的报文。In a possible embodiment, the second control unit communicates with the switching unit in the vehicle through the fourth transmission interface, and the switching unit is used to forward the information from the second control unit to the first control unit through the fourth transmission interface. Messages sent by the unit.
一种可能的实施例中,前述第三传输接口为控制器区域网CAN接口,前述第四传输接口为车载以太网接口。In a possible embodiment, the third transmission interface is a controller area network CAN interface, and the fourth transmission interface is a vehicle Ethernet interface.
图10所示控制单元1000中各个单元的具体操作以及有益效果可以参见上述图3及其可能的实施例中对应的描述,此处不再赘述。For the specific operations and beneficial effects of each unit in the control unit 1000 shown in Figure 10, please refer to the corresponding descriptions in Figure 3 and its possible embodiments, and will not be described again here.
应理解以上装置(例如上述控制单元900或控制单元1000)中各单元的划分仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。此外,装置中的单元可以以处理器调用软件的形式实现;例如装置包括处理器,处理器与存储器连接,存储器中存储有指令,处理器调用存储器中存储的指令,以实现以上任一种方法或实现该装置各单元的功能,其中处理器例如为通用处理器,例如中央处理单元(central processing unit,CPU)或微处理器,存储器为装置内的存储器或装置外的存储器。或者,装置中的单元可以以硬件电路的形式实现,可以通过对硬件电路的设计实现部分或全部单元的功能,该硬件电路可以理解为一个或多个处理器;例如,在一种实现中,该硬件电路为专用集成电路(application-specific integrated circuit,ASIC),通过对电路内元件逻辑关系的设计,实现以上部分或全部单元的功能;再如,在另一种实现中,该硬件电路为可以通过可编程逻辑器件(programmable logic device,PLD)实现,以现场可编程门阵列(field programmable gate array,FPGA)为例,其可以包括大量逻辑门电路,通过配置文件来配置逻辑门电路之间的连接关系,从而实现以上部分或全部单元的功能。以上装置的所有单元可以全部通过处理器调用软件的形式实现,或全部通过硬件电路的形式实现,或部分通过处理器调用软件的形式实现,剩余部分通过硬件电路的形式实现。It should be understood that the division of each unit in the above device (such as the above-mentioned control unit 900 or control unit 1000) is only a division of logical functions. In actual implementation, it can be fully or partially integrated into a physical entity, or it can also be physically separated. In addition, the unit in the device can be implemented in the form of a processor calling software; for example, the device includes a processor, the processor is connected to a memory, instructions are stored in the memory, and the processor calls the instructions stored in the memory to implement any of the above methods. Or realize the functions of each unit of the device, where the processor is, for example, a general-purpose processor, such as a central processing unit (CPU) or a microprocessor, and the memory is a memory within the device or a memory outside the device. Alternatively, the units in the device can be implemented in the form of hardware circuits, and some or all of the functions of the units can be implemented through the design of the hardware circuits, which can be understood as one or more processors; for example, in one implementation, The hardware circuit is an application-specific integrated circuit (ASIC), which realizes the functions of some or all of the above units through the design of the logical relationships of the components in the circuit; for another example, in another implementation, the hardware circuit is It can be realized by programmable logic device (PLD), taking field programmable gate array (FPGA) as an example, which can include a large number of logic gate circuits, and the logic gate circuits are configured through configuration files. connection relationships, thereby realizing the functions of some or all of the above units. All units of the above device may be fully realized by the processor calling software, or may be fully realized by hardware circuits, or part of the units may be realized by the processor calling software, and the remaining part may be realized by hardware circuits.
在本申请实施例中,处理器是一种具有信号的处理能力的电路,在一种实现中,处理器可以是具有指令读取与运行能力的电路,例如CPU、微处理器、图形处理器(graphics processing unit,GPU)(可以理解为一种微处理器)、或数字信号处理器(digital singnal processor,DSP)等;在另一种实现中,处理器可以通过硬件电路的逻辑关系实现一定功能,该硬件电路的逻辑关系是固定的或可以重构的,例如处理器为ASIC或PLD实现的硬件电路,例如FPGA。在可重构的硬件电路中,处理器加载配置文档,实现硬件电路配置的过程,可以理解为处理器加载指令,以实现以上部分或全部单元的功能的过程。此外,还可以是针对人工智能设计的硬件电路,其可以理解为一种ASIC,例如神经网络处理单元(Neural Network Processing Unit,NPU)张量处理单元(tensor processing unit,TPU)、深度学习处理单元(deep learning processing unit,DPU)等。In the embodiment of the present application, the processor is a circuit with signal processing capabilities. In one implementation, the processor may be a circuit with instruction reading and execution capabilities, such as a CPU, a microprocessor, and a graphics processor. (graphics processing unit, GPU) (can be understood as a microprocessor), or digital signal processor (digital signal processor, DSP), etc.; in another implementation, the processor can achieve certain functions through the logical relationship of the hardware circuit. Function, the logical relationship of the hardware circuit is fixed or can be reconstructed, such as the hardware circuit implemented by the processor for ASIC or PLD, such as FPGA. In a reconfigurable hardware circuit, the process of the processor loading the configuration file and realizing the hardware circuit configuration can be understood as the process of the processor loading instructions to realize the functions of some or all of the above units. In addition, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a neural network processing unit (Neural Network Processing Unit, NPU), a tensor processing unit (TPU), a deep learning processing unit (deep learning processing unit, DPU), etc.
可见,以上装置中的各单元可以是被配置成实施以上方法的一个或多个处理器(或处理电路),例如:CPU、GPU、NPU、TPU、DPU、微处理器、DSP、ASIC、FPGA,或这些处理器形式中至少两种的组合。It can be seen that each unit in the above device can be one or more processors (or processing circuits) configured to implement the above method, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA , or a combination of at least two of these processor forms.
此外,以上装置中的各单元可以全部或部分可以集成在一起,或者可以独立实现。在一种实现中,这些单元集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。该SOC 中可以包括至少一个处理器,用于实现以上任一种方法或实现该装置各单元的功能,该至少一个处理器的种类可以不同,例如包括CPU和FPGA,CPU和人工智能处理器,CPU和GPU等。In addition, each unit in the above device may be integrated together in whole or in part, or may be implemented independently. In one implementation, these units are integrated together and implemented as a system-on-a-chip (SOC). The SOC may include at least one processor for implementing any of the above methods or implementing the functions of each unit of the device. The at least one processor may be of different types, such as a CPU and an FPGA, a CPU and an artificial intelligence processor, CPU and GPU etc.
示例性地,参见图11,其为本申请提供的控制单元的一种可能的物理实体的结构示意图。图11所示的控制单元1100元可以是上述实施例所述方法中的第一控制单元。该控制单元1100包括:处理器1101、存储器1102和通信接口1103。处理器1101、通信接口1103以及存储器1102可以相互连接或者通过总线1104相互连接。该通信接口1103可以包括上述第一控制单元中的第一传输接口和第二传输接口。For example, see FIG. 11 , which is a schematic structural diagram of a possible physical entity of the control unit provided by this application. The control unit 1100 shown in FIG. 11 may be the first control unit in the method described in the above embodiment. The control unit 1100 includes: a processor 1101, a memory 1102 and a communication interface 1103. The processor 1101, the communication interface 1103, and the memory 1102 may be connected to each other or to each other via a bus 1104. The communication interface 1103 may include the first transmission interface and the second transmission interface in the above-mentioned first control unit.
示例性的,存储器1102用于存储控制单元1100的计算机程序和数据,存储器1102可以包括但不限于是随机存储记忆体(random access memory,RAM)、只读存储器(read-only memory,ROM)、可擦除可编程只读存储器(erasable programmable read only memory,EPROM)或便携式只读存储器(compact disc read-only memory,CD-ROM)等。Exemplarily, the memory 1102 is used to store computer programs and data of the control unit 1100. The memory 1102 may include, but is not limited to, random access memory (random access memory, RAM), read-only memory (read-only memory, ROM), Erasable programmable read-only memory (erasable programmable read only memory, EPROM) or portable read-only memory (compact disc read-only memory, CD-ROM), etc.
上述方法实施例中第一控制单元的全部或部分的功能所需的软件或程序代码存储在存储器1102中。Software or program codes required for all or part of the functions of the first control unit in the above method embodiment are stored in the memory 1102 .
一种可能的实施方式中,如果是部分功能所需的软件或程序代码存储在存储器1102中,则处理器1101除了调用存储器1102中的程序代码实现部分功能外,还可以配合其他部件(如通信接口1103)共同完成方法实施例描述的其他功能(如接收或发送数据的功能)。In a possible implementation, if the software or program code required for part of the functions is stored in the memory 1102, the processor 1101, in addition to calling the program code in the memory 1102 to implement part of the functions, can also cooperate with other components (such as communication interface 1103) together to complete other functions described in the method embodiment (such as the function of receiving or sending data).
通信接口1103的个数可以为多个,用于支持控制单元1100进行通信,例如接收或发送数据或信号等。The number of communication interfaces 1103 may be multiple, and are used to support the control unit 1100 to communicate, such as receiving or sending data or signals.
示例性的,处理器1101可以是上述介绍的CPU、GPU、NPU、TPU、DPU、微处理器、DSP、ASIC、FPGA,或这些处理器形式中至少两种的组合等等。处理器1101可以用于读取上述存储器1102中存储的程序,执行上述图3及其可能的实施例所述方法中第一控制单元所执行的操作。For example, the processor 1101 may be the above-described CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms, etc. The processor 1101 may be used to read the program stored in the above-mentioned memory 1102 and perform the operations performed by the first control unit in the method described in the above-mentioned Figure 3 and its possible embodiments.
图11所示控制单元1100中各个单元的具体操作以及有益效果可以参见上述方法实施例中对应的描述,此处不再赘述。For the specific operations and beneficial effects of each unit in the control unit 1100 shown in Figure 11, please refer to the corresponding descriptions in the above method embodiments, and will not be described again here.
示例性地,参见图12,其为本申请提供的控制单元的一种可能的物理实体的结构示意图。图12所示的控制单元1200可以是上述实施例所述方法中的第二控制单元。该控制单元1200包括:处理器1201、存储器1202和通信接口1203。处理器1201、通信接口1203以及存储器1202可以相互连接或者通过总线1204相互连接。该通信接口1203可以包括上述第二控制单元中的第三传输接口和第四传输接口。For example, see FIG. 12 , which is a schematic structural diagram of a possible physical entity of the control unit provided by this application. The control unit 1200 shown in FIG. 12 may be the second control unit in the method described in the above embodiment. The control unit 1200 includes: a processor 1201, a memory 1202 and a communication interface 1203. The processor 1201, the communication interface 1203, and the memory 1202 may be connected to each other or to each other via a bus 1204. The communication interface 1203 may include the third transmission interface and the fourth transmission interface in the above-mentioned second control unit.
示例性的,存储器1202用于存储控制单元1200的计算机程序和数据,存储器1202可以包括但不限于是RAM、ROM、EPROM或CD-ROM等。Exemplarily, the memory 1202 is used to store computer programs and data of the control unit 1200. The memory 1202 may include but is not limited to RAM, ROM, EPROM or CD-ROM, etc.
上述方法实施例中第二控制单元的全部或部分的功能所需的软件或程序代码存储在存储器1202中。Software or program codes required for all or part of the functions of the second control unit in the above method embodiment are stored in the memory 1202 .
一种可能的实施方式中,如果是部分功能所需的软件或程序代码存储在存储器1202中,则处理器1201除了调用存储器1202中的程序代码实现部分功能外,还可以配合其他部件(如通信接口1203)共同完成方法实施例描述的其他功能(如接收或发送数据的功能)。In a possible implementation, if the software or program code required for some functions is stored in the memory 1202, the processor 1201, in addition to calling the program code in the memory 1202 to implement some functions, can also cooperate with other components (such as communication interface 1203) together to complete other functions described in the method embodiment (such as the function of receiving or sending data).
通信接口1203的个数可以为多个,用于支持控制单元1200进行通信,例如接收或发送数据或信号等。The number of communication interfaces 1203 may be multiple, and are used to support the control unit 1200 to communicate, such as receiving or sending data or signals.
示例性的,处理器1201可以是上述介绍的CPU、GPU、NPU、TPU、DPU、微处理器、 DSP、ASIC、FPGA,或这些处理器形式中至少两种的组合等等。处理器1201可以用于读取上述存储器1202中存储的程序,执行上述图3及其可能的实施例所述方法中第二控制单元所执行的操作。For example, the processor 1201 may be the above-described CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms, etc. The processor 1201 may be used to read the program stored in the above-mentioned memory 1202 and perform the operations performed by the second control unit in the method described in the above-mentioned Figure 3 and its possible embodiments.
图12所示控制单元1200中各个单元的具体操作以及有益效果可以参见上述方法实施例中对应的描述,此处不再赘述。For the specific operations and beneficial effects of each unit in the control unit 1200 shown in Figure 12, please refer to the corresponding descriptions in the above method embodiments, and will not be described again here.
本申请实施例还提供一种通信系统,该通信系统包括上述方法实施例中的第一控制单元和第二控制单元。An embodiment of the present application also provides a communication system, which includes the first control unit and the second control unit in the above method embodiment.
本申请实施例还提供一种芯片,该芯片包括处理器和存储器,其中,前述存储器用于存储计算机程序或计算机指令,前述处理器用于执行前述存储器中存储的计算机程序或计算机指令,使得前述芯片执行上述第一控制单元所执行的操作。An embodiment of the present application also provides a chip, which includes a processor and a memory, wherein the memory is used to store computer programs or computer instructions, and the processor is used to execute the computer program or computer instructions stored in the memory, so that the chip Execute the operations performed by the above-mentioned first control unit.
本申请实施例还提供一种芯片,该芯片包括处理器和存储器,其中,前述存储器用于存储计算机程序或计算机指令,前述处理器用于执行前述存储器中存储的计算机程序或计算机指令,使得前述芯片执行上述第二控制单元所执行的操作。An embodiment of the present application also provides a chip, which includes a processor and a memory, wherein the memory is used to store computer programs or computer instructions, and the processor is used to execute the computer program or computer instructions stored in the memory, so that the chip Execute the operations performed by the above-mentioned second control unit.
本申请实施例还提供一种芯片,该芯片包括处理器,其中,前述处理器用于调用存储器中存储的计算机程序或计算机指令,使得前述芯片执行上述第一控制单元所执行的操作。An embodiment of the present application also provides a chip, which includes a processor, wherein the processor is used to call a computer program or computer instructions stored in a memory, so that the chip performs the operations performed by the first control unit.
本申请实施例还提供一种芯片,该芯片包括处理器,其中,前述处理器用于调用存储器中存储的计算机程序或计算机指令,使得前述芯片执行上述第二控制单元所执行的操作。An embodiment of the present application also provides a chip, which includes a processor, wherein the processor is used to call a computer program or computer instructions stored in a memory, so that the chip performs the operations performed by the second control unit.
本申请实施例还提供一种车辆,该车辆包括上述第一控制单元和/或第二控制单元。An embodiment of the present application also provides a vehicle, which includes the above-mentioned first control unit and/or second control unit.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序或计算机指令,该计算机程序或计算机指令被处理器执行以实现上述各个实施例及其可能的实施例中任意一个实施例的第一控制单元所做的操作。Embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores computer programs or computer instructions. The computer programs or computer instructions are executed by a processor to implement the above-mentioned embodiments and possible embodiments thereof. The operation performed by the first control unit in any embodiment.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序或计算机指令,该计算机程序或计算机指令被处理器执行以实现上述各个实施例及其可能的实施例中任意一个实施例的第二控制单元所做的操作。Embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores computer programs or computer instructions. The computer programs or computer instructions are executed by a processor to implement the above-mentioned embodiments and possible embodiments thereof. The operations performed by the second control unit in any embodiment.
本申请实施例还提供一种计算机程序产品,当该计算机程序产品被计算机读取并执行时,上述各个实施例及其可能的实施例中任意一个实施例的第一控制单元所做的操作将被执行。Embodiments of the present application also provide a computer program product. When the computer program product is read and executed by a computer, the operation performed by the first control unit in any of the above embodiments and possible embodiments will be be executed.
本申请实施例还提供一种计算机程序产品,当该计算机程序产品被计算机读取并执行时,上述各个实施例及其可能的实施例中任意一个实施例的第二控制单元所做的操作将被执行。Embodiments of the present application also provide a computer program product. When the computer program product is read and executed by a computer, the operation performed by the second control unit in any of the above embodiments and possible embodiments will be be executed.
综上所述,本申请中,第一控制单元和第二控制单元之间可以通过两种遵循不同通信协议的传输接口来传输数据,该两个传输接口传输的数据是相关联的,即采用异构的冗余通信方式,可以解决了因为同种传输技术下的缺陷导致控制单元对外交互失效的问题,提升了控制单元的交互性能,也提高了控制单元的通信安全可靠性。To sum up, in this application, data can be transmitted between the first control unit and the second control unit through two transmission interfaces that follow different communication protocols. The data transmitted by the two transmission interfaces are related, that is, using Heterogeneous redundant communication methods can solve the problem of external interaction failure of control units due to defects in the same transmission technology, improve the interactive performance of control units, and also improve the communication security and reliability of control units.
本申请中术语“第一”“第二”等字样用于对作用和功能基本相同的相同项或相似项进行区分,应理解,“第一”、“第二”、“第n”之间不具有逻辑或时序上的依赖关系,也不对数量和执行顺序进行限定。还应理解,尽管以下描述使用术语第一、第二等来描述各种元素,但这些元素不应受术语的限制。这些术语只是用于将一元素与另一元素区别分开。In this application, the terms "first", "second" and other words are used to distinguish the same or similar items with basically the same functions and functions. It should be understood that the terms "first", "second" and "nth" There is no logical or sequential dependency, and there is no limit on the number or execution order. It should also be understood that, although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another.
还应理解,在本申请的各个实施例中,各个过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should also be understood that in each embodiment of the present application, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not be determined by the execution order of the embodiments of the present application. The implementation process constitutes no limitation.
还应理解,术语“包括”(也称“includes”、“including”、“comprises”和/或“comprising”)当在本说明书中使用时指定存在所陈述的特征、整数、步骤、操作、元素、和/或部件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元素、部件、和/或其分组。It will also be understood that the term "includes" (also "includes," "including," "comprises," and/or "comprising") when used in this specification specifies the presence of stated features, integers, steps, operations, elements , and/or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groupings thereof.
还应理解,说明书通篇中提到的“一个实施例”、“一实施例”、“一种可能的实现方式”意味着与实施例或实现方式有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”、“一种可能的实现方式”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。It should also be understood that references throughout this specification to "one embodiment," "an embodiment," and "a possible implementation" mean that specific features, structures, or characteristics related to the embodiment or implementation are included herein. In at least one embodiment of the application. Therefore, “in one embodiment” or “in an embodiment” or “a possible implementation” appearing in various places throughout this specification do not necessarily refer to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application, but not to limit it; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features can be equivalently replaced; and these modifications or substitutions do not deviate from the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present application. scope.

Claims (36)

  1. 一种车辆中的通信方法,其特征在于,该方法包括:A communication method in a vehicle, characterized in that the method includes:
    第一控制单元通过第一传输接口发送第一报文;The first control unit sends the first message through the first transmission interface;
    所述第一控制单元通过第二传输接口发送第二报文;The first control unit sends the second message through the second transmission interface;
    所述第一报文中的数据和所述第二报文中的数据是相关联的,所述第一传输接口和所述第二传输接口遵循的通信协议不同。The data in the first message and the data in the second message are related, and the first transmission interface and the second transmission interface follow different communication protocols.
  2. 根据权利要求1所述的方法,其特征在于,所述第一报文包括对应于所述第一传输接口的N1个报文,所述第二报文包括对应于所述第二传输接口的M1个报文,封装到所述N1个报文中的数据和封装到所述M1个报文中的数据相同,所述N1和所述M1均为大于0的整数。The method of claim 1, wherein the first message includes N1 messages corresponding to the first transmission interface, and the second message includes N1 messages corresponding to the second transmission interface. M1 messages, the data encapsulated in the N1 messages are the same as the data encapsulated in the M1 messages, and both N1 and M1 are integers greater than 0.
  3. 根据权利要求2所述的方法,其特征在于,在第一种情况下,所述M1=1,所述第二报文中的数据包括所述第一控制单元在一个或多个时钟周期内所要发送的数据;或者,The method according to claim 2, characterized in that, in the first case, the M1=1, the data in the second message includes the first control unit’s response time within one or more clock cycles. the data to be sent; or,
    在第二种情况下,所述N1=M1;In the second case, the N1=M1;
    所述第一种情况包括以下至少一种情况:所述第二报文为所述第一控制单元响应于数据采集单元的数据采集请求发送的报文,所述第二报文为广播报文或组播报文,或所述第二报文为所述第一控制单元响应于车辆状态监控单元的请求发送的报文;The first situation includes at least one of the following situations: the second message is a message sent by the first control unit in response to the data collection request of the data collection unit, and the second message is a broadcast message Or a multicast message, or the second message is a message sent by the first control unit in response to a request from the vehicle status monitoring unit;
    所述第二种情况包括所述第二报文中的数据为控制所述车辆驾驶操作的信息。The second situation includes that the data in the second message is information for controlling the driving operation of the vehicle.
  4. 根据权利要求2或3所述的方法,其特征在于,所述第二报文中包括扩展信息,所述扩展信息包括以下的一项或多项:所述第一控制单元所在子系统的状态信息,所述第一控制单元发出的控制指令,或所述第一控制单元采集到的传感器数据。The method according to claim 2 or 3, characterized in that the second message includes extended information, and the extended information includes one or more of the following: the status of the subsystem where the first control unit is located Information, control instructions issued by the first control unit, or sensor data collected by the first control unit.
  5. 根据权利要求1所述的方法,其特征在于,所述第一报文包括对应于所述第一传输接口的N2个报文,所述第二报文包括对应于所述第二传输接口的M2个报文,所述M2个报文中包括的数据为第一目标数据,所述N2个报文的数据为校验信息,所述校验信息用于校验所述第一目标数据,所述N2和所述M2均为大于0的整数。The method of claim 1, wherein the first message includes N2 messages corresponding to the first transmission interface, and the second message includes N2 messages corresponding to the second transmission interface. M2 messages, the data included in the M2 messages is the first target data, the data of the N2 messages is verification information, and the verification information is used to verify the first target data, The N2 and the M2 are both integers greater than 0.
  6. 根据权利要求1所述的方法,其特征在于,所述第一报文包括对应于所述第一传输接口的N3个报文,所述第二报文包括对应于所述第二传输接口的M3个报文,所述M3个报文中包括的数据为第二目标数据,所述N3个报文的数据为第一数据,所述第一数据为所述第二目标数据中的部分数据,所述N3和所述M3均为大于0的整数。The method of claim 1, wherein the first message includes N3 messages corresponding to the first transmission interface, and the second message includes N3 messages corresponding to the second transmission interface. M3 messages, the data included in the M3 messages is the second target data, the data of the N3 messages is the first data, and the first data is part of the data in the second target data , the N3 and the M3 are both integers greater than 0.
  7. 根据权利要求1所述的方法,其特征在于,所述第一报文包括对应于所述第一传输接口的N4个报文,所述第二报文包括对应于所述第二传输接口的M4个报文,所述第一报文的数据为第二数据,所述第二报文的数据为第三数据,所述第二数据和所述第三数据分别为第三目标数据中的部分数据,所述第三目标数据为所述第一控制单元在一个或多个时钟周期内所要发送的数据,所述N4和所述M4均为大于0的整数。The method according to claim 1, characterized in that the first message includes N4 messages corresponding to the first transmission interface, and the second message includes N4 messages corresponding to the second transmission interface. M4 messages, the data of the first message is the second data, the data of the second message is the third data, the second data and the third data are respectively the third target data. Part of the data, the third target data is the data to be sent by the first control unit within one or more clock cycles, and both N4 and M4 are integers greater than 0.
  8. 根据权利要求7所述的方法,其特征在于,所述第二数据和所述第三数据用于还原所述第三目标数据。The method of claim 7, wherein the second data and the third data are used to restore the third target data.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述第一报文中包括校验报文,所述校验报文和所述第二报文中包括同步校验信息,所述校验报文和所述同步校验信息用于校验所述第二报文的实时性,所述同步校验信息包括所述校验报文的标识ID、所述校验报文发送时所在的时钟周期的序号和所述第二报文中数据的校验值。The method according to any one of claims 1 to 8, characterized in that the first message includes a verification message, and the verification message and the second message include synchronization verification information. , the verification message and the synchronization verification information are used to verify the real-time nature of the second message, and the synchronization verification information includes the identification ID of the verification message, the verification message The sequence number of the clock cycle in which the message is sent and the check value of the data in the second message.
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述第一控制单元为所述车辆中 的转向系统包括的控制单元,所述车辆中的制动系统包括的控制单元,所述车辆中的动力系统包括的控制单元,所述车辆中的车身域控制器VDC系统包括的控制单元,所述车辆中的整车控制单元VCU,或所述车辆中的自主驾驶和辅助系统ADAS包括的控制单元。The method according to any one of claims 1 to 9, characterized in that the first control unit is a control unit included in the steering system of the vehicle, and the braking system in the vehicle includes a control unit, The control unit included in the power system in the vehicle, the control unit included in the body domain controller VDC system in the vehicle, the vehicle control unit VCU in the vehicle, or the autonomous driving and assistance system in the vehicle ADAS included control unit.
  11. 根据权利要求1-10任一项所述的方法,其特征在于,所述第一控制单元为所述车辆中的VDC系统包括的控制单元,所述VDC系统中的整车控制单元VCU,或自主驾驶和辅助系统ADAS的控制单元;The method according to any one of claims 1 to 10, characterized in that the first control unit is a control unit included in the VDC system in the vehicle, a vehicle control unit VCU in the VDC system, or Control unit for autonomous driving and assistance systems ADAS;
    所述第一控制单元通过所述第一传输接口与所述车辆中的P个第二控制单元通信;The first control unit communicates with P second control units in the vehicle through the first transmission interface;
    所述第一控制单元通过P个所述第二传输接口分别与所述P个第二控制单元通信;The first control unit communicates with the P second control units respectively through P second transmission interfaces;
    其中,所述P为大于0的整数。Wherein, P is an integer greater than 0.
  12. 根据权利要求1-10任一项所述的方法,其特征在于,所述第一控制单元为所述车辆中的VDC系统的控制单元,所述VDC系统中的整车控制单元VCU,或自主驾驶和辅助系统ADAS的控制单元;The method according to any one of claims 1 to 10, characterized in that the first control unit is a control unit of the VDC system in the vehicle, a vehicle control unit VCU in the VDC system, or an autonomous Control units for driving and assistance systems ADAS;
    所述第一控制单元通过所述第一传输接口与所述车辆中的P个第二控制单元通信;所述P为大于0的整数;The first control unit communicates with P second control units in the vehicle through the first transmission interface; the P is an integer greater than 0;
    所述第一控制单元通过所述第二传输接口与所述P个第二控制单元通信。The first control unit communicates with the P second control units through the second transmission interface.
  13. 根据权利要求1-10任一项所述的方法,其特征在于,所述第一控制单元为所述车辆中的VDC系统的控制单元,所述VDC系统中的整车控制单元VCU,或自主驾驶和辅助系统ADAS的控制单元;The method according to any one of claims 1 to 10, characterized in that the first control unit is a control unit of the VDC system in the vehicle, a vehicle control unit VCU in the VDC system, or an autonomous Control units for driving and assistance systems ADAS;
    所述第一控制单元通过所述第一传输接口与所述车辆中的P个第二控制单元通信;所述P为大于0的整数;The first control unit communicates with P second control units in the vehicle through the first transmission interface; the P is an integer greater than 0;
    所述第一控制单元通过所述第二传输接口与所述车辆中的交换单元通信,所述交换单元用于转发所述第一控制单元通过所述第二传输接口向所述第二控制单元发送的报文。The first control unit communicates with the switching unit in the vehicle through the second transmission interface, and the switching unit is used to forward the information sent by the first control unit to the second control unit through the second transmission interface. sent message.
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述第一传输接口为控制器区域网CAN接口,所述第二传输接口为车载以太网接口。The method according to any one of claims 1-13, characterized in that the first transmission interface is a controller area network CAN interface, and the second transmission interface is a vehicle-mounted Ethernet interface.
  15. 一种车辆中的通信方法,其特征在于,该方法包括:A communication method in a vehicle, characterized in that the method includes:
    第二控制单元通过第一传输接口接收第一报文;The second control unit receives the first message through the first transmission interface;
    所述第二控制单元通过第二传输接口接收第二报文;The second control unit receives the second message through the second transmission interface;
    所述第一报文中的数据和所述第二报文中的数据是相关联的,所述第一传输接口和所述第二传输接口遵循的通信协议不同。The data in the first message and the data in the second message are related, and the first transmission interface and the second transmission interface follow different communication protocols.
  16. 根据权利要求15所述的方法,其特征在于,所述第一报文包括对应于所述第一传输接口的N1个报文,所述第二报文包括对应于所述第二传输接口的M1个报文,封装到所述N1个报文中的数据和封装到所述M1个报文中的数据相同,所述N1和所述M1均为大于0的整数。The method of claim 15, wherein the first message includes N1 messages corresponding to the first transmission interface, and the second message includes N1 messages corresponding to the second transmission interface. M1 messages, the data encapsulated in the N1 messages are the same as the data encapsulated in the M1 messages, and both N1 and M1 are integers greater than 0.
  17. 根据权利要求15所述的方法,其特征在于,所述第一报文包括对应于所述第一传输接口的N2个报文,所述第二报文包括对应于所述第二传输接口的M2个报文,所述M2个报文中包括的数据为第一目标数据,所述N2个报文的数据为校验信息,所述校验信息用于校验所述第一目标数据,所述N2和所述M2均为大于0的整数。The method of claim 15, wherein the first message includes N2 messages corresponding to the first transmission interface, and the second message includes N2 messages corresponding to the second transmission interface. M2 messages, the data included in the M2 messages is the first target data, the data of the N2 messages is verification information, and the verification information is used to verify the first target data, The N2 and the M2 are both integers greater than 0.
  18. 根据权利要求15所述的方法,其特征在于,所述第一报文包括对应于所述第一传输接口的N3个报文,所述第二报文包括对应于所述第二传输接口的M3个报文,所述M3个报文中包括的数据为第二目标数据,所述N3个报文的数据为第一数据,所述第一数据为所述第二目标数据中的部分数据,所述N3和所述M3均为大于0的整数。The method of claim 15, wherein the first message includes N3 messages corresponding to the first transmission interface, and the second message includes N3 messages corresponding to the second transmission interface. M3 messages, the data included in the M3 messages is the second target data, the data of the N3 messages is the first data, and the first data is part of the data in the second target data , the N3 and the M3 are both integers greater than 0.
  19. 根据权利要求15所述的方法,其特征在于,所述第一报文包括对应于所述第一传输接口的N4个报文,所述第二报文包括对应于所述第二传输接口的M4个报文,所述第一报文的数据为第二数据,所述第二报文的数据为第三数据,所述第二数据和所述第三数据分别为第三目标数据中的部分数据,所述第三目标数据为所述第二控制单元在一个或多个时钟周期内所要接收的数据,所述N4和所述M4均为大于0的整数。The method of claim 15, wherein the first message includes N4 messages corresponding to the first transmission interface, and the second message includes N4 messages corresponding to the second transmission interface. M4 messages, the data of the first message is the second data, the data of the second message is the third data, the second data and the third data are respectively the third target data. Part of the data, the third target data is the data to be received by the second control unit within one or more clock cycles, and both N4 and M4 are integers greater than 0.
  20. 根据权利要求19所述的方法,其特征在于,所述第二数据和所述第三数据用于还原所述第三目标数据。The method of claim 19, wherein the second data and the third data are used to restore the third target data.
  21. 根据权利要求15-20任一项所述的方法,其特征在于,所述第一报文中包括校验报文;The method according to any one of claims 15-20, characterized in that the first message includes a verification message;
    所述第二报文是在所述第二控制单元接收所述校验报文后的预设时长内被所述第二控制单元接收的情况下,所述第二报文被确定是有效的;If the second message is received by the second control unit within a preset time period after the second control unit receives the verification message, the second message is determined to be valid. ;
    或者,or,
    所述第二报文是在超过所述预设时长后被所述第二控制单元接收的情况下,所述第二报文被确定是无效的。If the second message is received by the second control unit after exceeding the preset time period, the second message is determined to be invalid.
  22. 根据权利要求21所述的方法,其特征在于,所述校验报文和所述第二报文中包括同步校验信息,所述同步校验信息包括所述校验报文的标识ID、所述校验报文发送时所在的时钟周期的序号和所述第二报文中数据的校验值;The method according to claim 21, characterized in that the verification message and the second message include synchronization verification information, and the synchronization verification information includes the identification ID of the verification message, The sequence number of the clock cycle in which the verification message is sent and the verification value of the data in the second message;
    所述第二报文是在所述第二控制单元接收所述校验报文后的预设时长内被所述第二控制单元接收的情况下,所述第二报文被确定是有效的,包括:If the second message is received by the second control unit within a preset time period after the second control unit receives the verification message, the second message is determined to be valid. ,include:
    所述第二报文在所述第二控制单元接收所述校验报文后的预设时长内被所述第二控制单元接收,并且所述第二报文中的所述同步校验信息与所述校验报文中的所述同步校验信息相同的情况下,所述第二报文被确定是有效的。The second message is received by the second control unit within a preset time period after the second control unit receives the verification message, and the synchronization verification information in the second message If the synchronization verification information in the verification message is the same, the second message is determined to be valid.
  23. 根据权利要求16所述的方法,其特征在于,所述第一报文被所述第二控制单元接收的时间晚于所述第二报文被所述第二控制单元接收的时间;The method according to claim 16, characterized in that the time when the first message is received by the second control unit is later than the time when the second message is received by the second control unit;
    所述第二控制单元通过第二传输接口接收第二报文之后,还包括:After receiving the second message through the second transmission interface, the second control unit also includes:
    所述第二控制单元根据所述第二报文中的数据进行计算。The second control unit performs calculations based on the data in the second message.
  24. 根据权利要求23所述的方法,其特征在于,所述第二控制单元通过第一传输接口接收第一报文之后,还包括:The method according to claim 23, characterized in that, after the second control unit receives the first message through the first transmission interface, it further includes:
    所述第二控制单元对所述第一报文和所述第二报文中的数据进行校验处理。The second control unit performs verification processing on the data in the first message and the second message.
  25. 根据权利要求24所述的方法,其特征在于,所述第二控制单元对所述第一报文和所述第二报文中的数据进行校验处理,包括:The method according to claim 24, characterized in that the second control unit performs verification processing on the data in the first message and the second message, including:
    在确定所述第一报文中的数据与所述第二报文中的数据不同的情况下,所述第二控制单元基于重传机制通过所述第二传输接口接收第三报文;When it is determined that the data in the first message is different from the data in the second message, the second control unit receives the third message through the second transmission interface based on a retransmission mechanism;
    在所述第三报文中的数据与所述第二报文中的数据相同的情况下,所述第二控制单元对所述第一报文中的数据执行纠错策略。When the data in the third message is the same as the data in the second message, the second control unit executes an error correction strategy on the data in the first message.
  26. 根据权利要求15-25任一项所述的方法,其特征在于,所述第二控制单元为所述车辆中的转向系统包括的控制单元,所述车辆中的制动系统包括的控制单元,所述车辆中的动力系统包括的控制单元,所述车辆中的车身域控制器VDC系统包括的控制单元,所述车辆中的整车控制单元VCU,或所述车辆中的自主驾驶和辅助系统ADAS包括的控制单元。The method according to any one of claims 15 to 25, characterized in that the second control unit is a control unit included in the steering system in the vehicle, and the braking system in the vehicle includes a control unit, The control unit included in the power system in the vehicle, the control unit included in the body domain controller VDC system in the vehicle, the vehicle control unit VCU in the vehicle, or the autonomous driving and assistance system in the vehicle ADAS included control unit.
  27. 根据权利要求15-26任一项所述的方法,其特征在于,所述第二控制单元为所述车辆中的转向系统包括的控制单元,所述车辆中的制动系统包括的控制单元,或所述车辆中的动力系统包括的控制单元;The method according to any one of claims 15 to 26, characterized in that the second control unit is a control unit included in the steering system in the vehicle, and the braking system in the vehicle includes a control unit, or a control unit included in the power system in the vehicle;
    所述第二控制单元通过所述第一传输接口与第一控制单元通信,所述第二控制单元还通过所述第二传输接口与所述第一控制单元通信,所述第一控制单元为所述车辆中的车身域控制器VDC系统包括的控制单元,所述车辆中的整车控制单元VCU,或所述车辆中的自主驾驶和辅助系统ADAS包括的控制单元。The second control unit communicates with the first control unit through the first transmission interface. The second control unit also communicates with the first control unit through the second transmission interface. The first control unit is The control unit included in the body domain controller VDC system in the vehicle, the vehicle control unit VCU in the vehicle, or the control unit included in the autonomous driving and assistance system ADAS in the vehicle.
  28. 根据权利要求27所述的方法,其特征在于,所述第二控制单元通过所述第二传输接口与所述车辆中的交换单元通信,所述交换单元用于转发所述第二控制单元通过所述第二传输接口向所述第一控制单元发送的报文。The method according to claim 27, characterized in that the second control unit communicates with a switching unit in the vehicle through the second transmission interface, and the switching unit is used to forward the second control unit through A message sent by the second transmission interface to the first control unit.
  29. 根据权利要求15-28任一项所述的方法,其特征在于,所述第一传输接口为控制器区域网CAN接口,所述第二传输接口为车载以太网接口。The method according to any one of claims 15 to 28, characterized in that the first transmission interface is a controller area network CAN interface, and the second transmission interface is a vehicle Ethernet interface.
  30. 一种通信系统,其特征在于,所述通信系统包括第一控制单元和第二控制单元,所述第一控制单元用于执行上述权利要求1-14任一项所述的方法,所述第二控制单元用于执行上述权利要求15-29任一项所述的方法。A communication system, characterized in that the communication system includes a first control unit and a second control unit, the first control unit is used to execute the method according to any one of the above claims 1-14, and the third control unit Two control units are used to execute the method described in any one of the above claims 15-29.
  31. 一种控制单元,其特征在于,包括:A control unit, characterized by including:
    发送单元,用于通过第一传输接口发送第一报文;A sending unit, configured to send the first message through the first transmission interface;
    所述发送单元,还用于通过第二传输接口发送第二报文;The sending unit is also used to send the second message through the second transmission interface;
    所述第一报文中的数据和所述第二报文中的数据是相关联的,所述第一传输接口和所述第二传输接口遵循的通信协议不同。The data in the first message and the data in the second message are related, and the first transmission interface and the second transmission interface follow different communication protocols.
  32. 一种控制单元,其特征在于,包括:A control unit, characterized by including:
    接收单元,用于通过第一传输接口接收第一报文;A receiving unit, configured to receive the first message through the first transmission interface;
    所述接收单元,还用于通过第二传输接口接收第二报文;The receiving unit is also configured to receive the second message through the second transmission interface;
    所述第一报文中的数据和所述第二报文中的数据是相关联的,所述第一传输接口和所述第二传输接口遵循的通信协议不同。The data in the first message and the data in the second message are related, and the first transmission interface and the second transmission interface follow different communication protocols.
  33. 一种控制器,其特征在于,所述控制器包括控制单元和存储器,其中,所述存储器用于存储计算机程序或计算机指令,所述控制单元用于执行所述存储器中存储的计算机程序或计算机指令,使得所述控制器执行如权利要求1-13任一项所述的方法;或者,使得所述控制器执行如权利要求15-29任一项所述的方法。A controller, characterized in that the controller includes a control unit and a memory, wherein the memory is used to store computer programs or computer instructions, and the control unit is used to execute the computer program or computer instructions stored in the memory. Instructions to cause the controller to perform the method as described in any one of claims 1-13; or to cause the controller to perform the method as described in any one of claims 15-29.
  34. 一种芯片,其特征在于,所述芯片包括处理器和存储器,其中,所述存储器用于存储计算机程序或计算机指令,所述处理器用于执行所述存储器中存储的计算机程序或计算机指令,使得所述芯片执行如权利要求1-13任一项所述的方法;或者,使得所述控制器执行如权利要求15-29任一项所述的方法。A chip, characterized in that the chip includes a processor and a memory, wherein the memory is used to store computer programs or computer instructions, and the processor is used to execute the computer program or computer instructions stored in the memory, so that The chip performs the method according to any one of claims 1-13; or, causes the controller to perform the method according to any one of claims 15-29.
  35. 一种车辆,其特征在于,所述车辆包括第一控制单元和/或第二控制单元,所述第一控制单元用于执行上述权利要求1-14任一项所述的方法,所述第二控制单元用于执行上述权利要求15-29任一项所述的方法。A vehicle, characterized in that the vehicle includes a first control unit and/or a second control unit, the first control unit is used to execute the method according to any one of the above claims 1-14, and the third control unit Two control units are used to execute the method described in any one of the above claims 15-29.
  36. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序或计算机指令,所述计算机程序或计算机指令被处理器执行以实现权利要求1至14任意一项所述的方法;A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program or computer instructions, and the computer program or computer instructions are executed by a processor to implement any one of claims 1 to 14 Methods;
    或者,所述计算机可读存储介质存储有计算机程序或计算机指令,所述计算机程序或计算机指令被处理器执行以实现权利要求15至29任意一项所述的方法。Alternatively, the computer-readable storage medium stores a computer program or computer instructions, and the computer program or computer instructions are executed by a processor to implement the method described in any one of claims 15 to 29.
PCT/CN2022/102139 2022-06-29 2022-06-29 Communication method in vehicle and related apparatus WO2024000214A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/102139 WO2024000214A1 (en) 2022-06-29 2022-06-29 Communication method in vehicle and related apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/102139 WO2024000214A1 (en) 2022-06-29 2022-06-29 Communication method in vehicle and related apparatus

Publications (1)

Publication Number Publication Date
WO2024000214A1 true WO2024000214A1 (en) 2024-01-04

Family

ID=89383383

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/102139 WO2024000214A1 (en) 2022-06-29 2022-06-29 Communication method in vehicle and related apparatus

Country Status (1)

Country Link
WO (1) WO2024000214A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130138830A1 (en) * 2011-11-28 2013-05-30 Huawei Technologies Co., Ltd. Method and network device for controlling transmission rate of communication interface
CN105207967A (en) * 2014-05-30 2015-12-30 中兴通讯股份有限公司 Separating method and system of hybrid communication data
CN109361419A (en) * 2018-11-05 2019-02-19 四川神坤电液控制技术有限公司 Satellite communication vehicle module control unit, vehicle module and vehicle-mounted type system terminal
CN110708352A (en) * 2019-09-02 2020-01-17 上海商米科技集团股份有限公司 Data backup method for Internet of things equipment and Internet of things equipment
CN111601285A (en) * 2020-05-19 2020-08-28 江苏徐工工程机械研究院有限公司 Communication method, apparatus, system, and computer-readable storage medium
CN113676875A (en) * 2021-09-10 2021-11-19 湖北亿咖通科技有限公司 Communication method of vehicle-mounted equipment, communication system of vehicle-mounted equipment and vehicle

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130138830A1 (en) * 2011-11-28 2013-05-30 Huawei Technologies Co., Ltd. Method and network device for controlling transmission rate of communication interface
CN105207967A (en) * 2014-05-30 2015-12-30 中兴通讯股份有限公司 Separating method and system of hybrid communication data
CN109361419A (en) * 2018-11-05 2019-02-19 四川神坤电液控制技术有限公司 Satellite communication vehicle module control unit, vehicle module and vehicle-mounted type system terminal
CN110708352A (en) * 2019-09-02 2020-01-17 上海商米科技集团股份有限公司 Data backup method for Internet of things equipment and Internet of things equipment
CN111601285A (en) * 2020-05-19 2020-08-28 江苏徐工工程机械研究院有限公司 Communication method, apparatus, system, and computer-readable storage medium
CN113676875A (en) * 2021-09-10 2021-11-19 湖北亿咖通科技有限公司 Communication method of vehicle-mounted equipment, communication system of vehicle-mounted equipment and vehicle

Similar Documents

Publication Publication Date Title
CN107819736B (en) Communication method and device based on automobile safety integrity level in vehicle network
US11233750B2 (en) Method and apparatus for allocating transmission opportunities in vehicle network
Zeng et al. In-vehicle networks outlook: Achievements and challenges
EP3169021B1 (en) Vehicle-mounted network system, electronic control unit, reception method, and transmission method
US11343117B2 (en) Method for transmitting data via a serial communication bus, correspondingly designed bus interface, and correspondingly designed computer program
US20150124839A1 (en) Method of Packaging and Unpackaging Packet and Appartuses Using the Same
CN106453148B (en) Method of operating a communication node in a network
KR20190134337A (en) Method and apparatus for selective wakeup of communication node in automotive network
US10749738B2 (en) Method and apparatus for diagnosing network
CN105388858A (en) Operation method of communication node in network
US10122580B2 (en) Operation methods of communication node in network
KR102352527B1 (en) Method for communication based on automotive safety integrity level in automotive network and apparatus for the same
Cummings et al. Exploring use of Ethernet for in-vehicle control applications: AFDX, TTEthernet, EtherCAT, and AVB
CN114270328B (en) Intelligent controller and sensor network bus and system and method including multi-layered platform security architecture
WO2023030336A1 (en) Data transmission method, tsn node, and computer readable storage medium
US20210105174A1 (en) Communications device and method of communications
KR102452615B1 (en) Method for transmitting data based on priority in network
WO2024000214A1 (en) Communication method in vehicle and related apparatus
US11337184B2 (en) Method and apparatus for transmitting and receiving data stream performed in vehicle network
CN116112523A (en) Vehicle-mounted transmission system, data transmission method and vehicle
CN114208258B (en) Intelligent controller and sensor network bus and system and method including message retransmission mechanism
Lee et al. A novel FlexRay/Ethernet gateway for in-vehicle networks
KR102362611B1 (en) Method for transmitting and receiving data in automotive network and apparatus for the same
KR102342000B1 (en) Method and apparatus for playing contents based on presentation time in automotive network
KR102228331B1 (en) Operation method of communication node in network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22948334

Country of ref document: EP

Kind code of ref document: A1