Search

CN-121984996-A - Multilink diagnostic data processing method, device, medium, and program product

CN121984996ACN 121984996 ACN121984996 ACN 121984996ACN-121984996-A

Abstract

The embodiment of the application provides a method, equipment, medium and program product for processing multilink diagnosis data, and relates to the technical field of data processing. The method comprises the steps of receiving a data packet through a multi-link communication interface, adding a system time tag to the data packet under the condition that the data packet is determined to be the data packet for diagnosis, wherein the system time tag is used for indicating the system time corresponding to the time of receiving the data packet, and carrying out data packet sending sequencing on the data packet through a sequencing processing module according to the system time tag so as to send the data packet according to the sequence after sequencing. Based on the method, the sequence of receiving each data packet by the application layer is consistent with the original sending sequence, and further the time sequence consistency of data packet processing can be improved.

Inventors

  • LIU SHAOWEI
  • LIU LIHUA
  • WANG MIAN

Assignees

  • 亿咖通(湖北)技术有限公司

Dates

Publication Date
20260505
Application Date
20260115

Claims (10)

  1. 1. A method of processing multilink diagnostic data, the method comprising: Receiving a data packet through a multi-link communication interface; Adding a system time tag to the data packet under the condition that the data packet is determined to be the data packet for diagnosis, wherein the system time tag is used for indicating the system time corresponding to the moment of receiving the data packet; And carrying out data packet sending sequencing on the data packets according to the system time labels through a sequencing processing module so as to send the data packets according to the sequenced sequence.
  2. 2. The method of claim 1, wherein said adding a system time tag to said data packet comprises: after the communication service layer acquires the data packet, acquiring the system time corresponding to the moment of receiving the data packet; The system time is added to the data packet in a time-stamp manner.
  3. 3. The method of claim 1, wherein the sorting the packets according to the system time stamp by the sorting module comprises: acquiring system time labels of at least two data packets received by the multi-link communication interface through the sequencing processing module; comparing the system time sequence of the system time labels of the at least two data packets; and according to the time sequence of the system, arranging the data packet sending sequences of the at least two data packets in a queue.
  4. 4. A method according to any one of claims 1-3, wherein after said ordering of said data packets for data packet transmission according to said system time stamp by said ordering processing module, said method further comprises: Acquiring the processing state of whether a destination module can process data currently, wherein the destination module is a module which is positioned at the upper layer of the sequencing processing module and is used for receiving and processing the data packet; and transmitting the data packet to the destination module in a synchronous transmission mode or an asynchronous transmission mode according to the current processing state of the destination module, wherein the synchronous transmission mode is used for transmitting data in real time when the destination module can process the data, and the asynchronous transmission mode is used for delaying data transmission when the destination module cannot process the data so as to avoid data loss.
  5. 5. The method of claim 4, wherein prior to said asynchronously sending said data packets to said destination module, said method further comprises: under the condition that a system platform corresponding to the target module is a fixed platform, presetting the depth and the size of a cache queue according to the hardware memory and the data bandwidth of the platform; or dynamically distributing the memory space of the buffer queue according to the size of the data packet under the condition that the platform corresponding to the destination module is an adaptive platform, and destroying the memory space after the buffer queue is empty.
  6. 6. A method according to any one of claims 1-3, wherein the method further comprises: acquiring the system time at the current moment; calculating the time difference between the system time of the current moment and the system time of the system time tag of the data packet; Comparing the time difference with the normal maximum software processing time of the multilink, and determining that the transmission mode of transmitting the data packet to the destination module is synchronous transmission or asynchronous transmission according to the comparison result, wherein the normal maximum software processing time of the multilink is the maximum time required by receiving the data packet from the data packet to be transmitted to the sequencing processing module through the multilink under the condition of normal transmission.
  7. 7. A method according to any one of claims 1-3, wherein the method further comprises: determining an index value according to the communication links receiving the data packet, wherein the index value is used for distinguishing different communication links in the multilink; And adding the index value into the data packet to indicate a communication link adopted by a reply data packet in reply transmission through the index value, wherein the reply data packet is a data packet obtained after responding to the data packet.
  8. 8. An electronic device is characterized by comprising a memory and a processor; the memory stores computer-executable instructions; the processor executing computer-executable instructions stored in the memory, causing the processor to perform the method of any one of claims 1-7.
  9. 9. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-7.
  10. 10. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1-7.

Description

Multilink diagnostic data processing method, device, medium, and program product Technical Field The present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, a medium, and a program product for processing multilink diagnostic data. Background Along with the evolution of the automobile electronic and electric architecture to the intelligent and networking directions, the functional complexity and the data interaction requirement of an on-board electronic control unit (Electronic Control Unit, ECU for short) are remarkably improved. Under the standardized development framework based on an automobile open system architecture (AUTomotive Open System Architecture, abbreviated as AUTOSAR), an ECU needs to realize high-frequency and high-capacity diagnosis data interaction through multiple physical links such as Ethernet (ETH), a local interconnection network (Local Interconnect Network, LIN), a controller area network (Controller Area Network, CAN) bus, flexible Ray (FlexRay) and the like. In some scenarios, for example, when a vehicle is in an Over-The-Air (OTA) condition, firmware packets and diagnostic instructions are transmitted Over both ethernet and CAN buses. For another example, advanced driving assistance system (ADVANCED DRIVER ASSISTANCE SYSTEMS, abbreviated as ADAS) functions require acquisition of multiple sensor data in real time and diagnostic verification. For another example, in a complex network environment, a vehicle needs to process diagnostic requests and responses synchronously through different links. The existing single link diagnosis communication is easy to have transmission congestion, time sequence disorder and other problems in the scenes of limited bandwidth, time delay sensitivity or rapid increase of data volume, and the existing single link expansion or simple protocol superposition and other solutions are difficult to meet the diagnosis requirements of multi-link coordination, high real-time performance and high reliability. Therefore, there is a need for a data processing method that enables efficient routing of diagnostic data between multiple links with accurate timing to support the diagnostic communication requirements of vehicle-mounted systems for high bandwidth, low latency, and strong scalability. Disclosure of Invention The embodiment of the application provides a method, equipment, medium and program product for processing multilink diagnostic data, which are used for improving the time sequence consistency of data packet processing when the multilink diagnostic data are transmitted. In a first aspect, an embodiment of the present application provides a method for processing multilink diagnostic data, where the method includes: Receiving a data packet through a multi-link communication interface; If the data packet is determined to be the data packet for diagnosis, adding a system time tag to the data packet, wherein the system time tag is used for indicating the system time corresponding to the time of receiving the data packet; and carrying out data packet sending sequencing on the data packets according to the system time labels by a sequencing processing module so as to send the data packets according to the sequenced sequence. In one possible implementation, adding a system time stamp to a data packet includes: after the communication service layer acquires the data packet, acquiring the system time corresponding to the moment of receiving the data packet; the system time is added to the data packet in the form of a time stamp. In one possible implementation manner, the sorting processing module performs packet sending sorting on the packets according to the system time tag, including: Acquiring system time labels of at least two data packets received by a multi-link communication interface through an ordering processing module; comparing the system time sequence of the system time labels of at least two data packets; and according to the time sequence of the system, arranging the data packet sending ordering of at least two data packets in the queue. In one possible implementation manner, after the sorting processing module sorts the data packets according to the system time tag, the method further includes: Acquiring the processing state of whether the destination module can process the data currently, wherein the destination module is a module which is positioned at the upper layer of the sorting processing module and is used for receiving and processing the data packet; and transmitting the data packet to the destination module in a synchronous transmission mode or an asynchronous transmission mode according to the current processing state of the destination module, wherein the synchronous transmission mode is used for transmitting the data in real time when the destination module can process the data, and the asynchronous transmission mode is used for delaying the data transmission when the desti