Search

CN-121984801-A - Data processing method and device for communication data frame

CN121984801ACN 121984801 ACN121984801 ACN 121984801ACN-121984801-A

Abstract

The invention relates to the technical field of data processing and discloses a data processing method of a communication data frame, namely a device, wherein the method comprises the steps of determining data flow information of the target data frame according to a first bit machine and the target data frame when an intermediate entity receives the target data frame sent by the first bit machine, and determining a first target type based on the data flow information; and determining a second target type based on the log record information and the target data frame, generating data frame content based on the second target type, and transmitting the data frame content to a second bit machine. Therefore, the invention can be beneficial to improving the data processing efficiency of the bus communication data frame and improving the data processing intelligence of the bus communication data frame.

Inventors

  • ZHOU ZHENBIN
  • LOU KE
  • LI JIANFENG
  • BIN CHAOLIN
  • YANG FANFAN

Assignees

  • 深圳鼎匠科技有限公司

Dates

Publication Date
20260505
Application Date
20251226

Claims (10)

  1. 1. A data processing method of a communication data frame, the method comprising: When an intermediate entity receives a target data frame sent by a first bit machine, determining data flow information of the target data frame according to the first bit machine and the target data frame, and determining a first target type based on the data flow information; Generating log record information corresponding to the target data frame according to the target data frame and the first target type; And determining a second target type based on the log record information and the target data frame, generating data frame content based on the second target type, and transmitting the data frame content to a second bit machine.
  2. 2. The method for processing data of a communication data frame according to claim 1, wherein before generating log record information corresponding to the target data frame according to the target data frame and the first target type, the method further comprises: Determining the byte length of the data frame of the target data frame, and judging whether the byte length of the data frame is matched with a preset data frame length threshold value or not; when the byte length of the data frame is judged to be matched with the preset data frame length threshold, triggering and executing the operation of generating log record information corresponding to the target data frame according to the target data frame and the first target type.
  3. 3. The data processing method of a communication data frame according to claim 2, characterized in that the method further comprises: when the byte length of the data frame is not matched with the preset data frame length threshold, generating abnormal frame information of the target data frame according to the byte length of the data frame and the preset data frame length threshold, and generating an abnormal identification field according to the abnormal frame information; The generating, according to the target data frame and the first target type, log record information corresponding to the target data frame includes: And generating log record information corresponding to the target data frame according to the target data frame, the first target type and the abnormal identification field.
  4. 4. The method of claim 1, wherein said transmitting the data frame content to a second bit machine comprises: Determining a communication priority parameter of a bus communication entity of a second bit machine, and determining a transmission priority of each data frame to be transmitted, which is included in the data frame content, based on the communication priority parameter of the second bit machine; Generating a data transmission sequence based on the transmission priority of each data frame to be transmitted; And transmitting each transmission data frame included in the data frame content to the second bit machine according to the data transmission sequence.
  5. 5. The data processing method of a communication data frame according to claim 1, characterized in that the method further comprises: acquiring a data transmission result of the target data frame, and generating a target log record according to the data transmission result; And extracting characteristic log information of the target log record, generating associated index information according to the characteristic log information, and executing data tracing operation on the data of the first bit machine and the second bit machine according to the key index information to obtain a data tracing result.
  6. 6. The method for processing data of a communication data frame according to claim 5, wherein before generating the association index information based on the feature log information, the method further comprises: Acquiring a first clock parameter corresponding to the first bit machine, a second clock parameter corresponding to the second bit machine and a third clock parameter corresponding to the intermediate entity; Determining clock deviation values of the first clock parameter, the second clock parameter and the third clock parameter, and executing clock compensation calibration operation on the characteristic log information according to the clock deviation values to obtain a clock calibration result; and according to the clock calibration result, executing updating operation on the characteristic log information.
  7. 7. The method for processing data of a communication data frame according to claim 5, further comprising: Determining a frame type field of the content of each data frame according to the target log record; determining a classification database table corresponding to each data frame content according to the frame type field of each data frame content; For each data frame content, storing the data frame content into a classification database table corresponding to the data frame content according to the classification database table corresponding to the data frame content; wherein the table name of the classification database table is matched with the frame type field of each data frame content.
  8. 8. A data processing apparatus for communicating a data frame, the apparatus comprising: The determining module is used for determining data flow information of a target data frame according to the first bit machine and the target data frame when the intermediate entity receives the target data frame sent by the first bit machine, and determining a first target type based on the data flow information; The generation module is used for generating log record information corresponding to the target data frame according to the target data frame and the first target type; The determining module is further configured to determine a second target type based on the log record information and the target data frame; the generating module is further configured to generate data frame content based on the second target type; and the transmission module is used for transmitting the data frame content to a second position machine.
  9. 9. A data processing apparatus for communicating a data frame, the apparatus comprising: A memory storing executable program code; A processor coupled to the memory; the processor invokes the executable program code stored in the memory to perform the data processing method of the communication data frame as claimed in any one of claims 1 to 7.
  10. 10. A computer storage medium storing computer instructions which, when invoked, are operable to perform a data processing method of a communication data frame according to any one of claims 1 to 7.

Description

Data processing method and device for communication data frame Technical Field The present invention relates to the field of data processing technologies, and in particular, to a data processing method and apparatus for a communication data frame. Background At present, bus communication is used as a core carrier for data interaction, is widely applied to the technical fields of industrial control, intelligent equipment and the like, and along with the improvement of the complexity of a communication system, the data interaction frequency between an upper computer and a lower computer is obviously increased, the transmission quantity, the type diversity and the flow complexity of data frames are synchronously increased, and higher requirements are provided for the traceability, the analyzability and the problem positioning efficiency of bus communication data. At present, most of log records of bus communication data frames are of different bus types (such as CAN buses and USB buses) or log record rules corresponding to different connection modes (such as wireless Bluetooth and wired serial ports) have large differences, so that log data of cross buses and cross scenes are difficult to integrate and compare and analyze uniformly, and the efficiency of data processing is low. It is important to provide a data processing method for bus communication data frames to improve the efficiency and intelligence of data processing. Disclosure of Invention The invention provides a data processing method and a data processing device for a communication data frame, which can improve the data processing efficiency of the bus communication data frame and are beneficial to improving the data processing intelligence of the bus communication data frame. The first aspect of the invention discloses a data processing method of a communication data frame, which comprises the following steps: When an intermediate entity receives a target data frame sent by a first bit machine, determining data flow information of the target data frame according to the first bit machine and the target data frame, and determining a first target type based on the data flow information; Generating log record information corresponding to the target data frame according to the target data frame and the first target type; And determining a second target type based on the log record information and the target data frame, generating data frame content based on the second target type, and transmitting the data frame content to a second bit machine. As an optional implementation manner, before the generating, according to the first aspect of the present invention, the log record information corresponding to the target data frame according to the target data frame and the first target type, the method further includes: Determining the byte length of the data frame of the target data frame, and judging whether the byte length of the data frame is matched with a preset data frame length threshold value or not; when the byte length of the data frame is judged to be matched with the preset data frame length threshold, triggering and executing the operation of generating log record information corresponding to the target data frame according to the target data frame and the first target type. As an alternative embodiment, in the first aspect of the present invention, the method further includes: when the byte length of the data frame is not matched with the preset data frame length threshold, generating abnormal frame information of the target data frame according to the byte length of the data frame and the preset data frame length threshold, and generating an abnormal identification field according to the abnormal frame information; The generating, according to the target data frame and the first target type, log record information corresponding to the target data frame includes: And generating log record information corresponding to the target data frame according to the target data frame, the first target type and the abnormal identification field. As an optional implementation manner, in the first aspect of the present invention, the transmitting the content of the data frame to the second bit machine includes: Determining a communication priority parameter of a bus communication entity of a second bit machine, and determining a transmission priority of each data frame to be transmitted, which is included in the data frame content, based on the communication priority parameter of the second bit machine; Generating a data transmission sequence based on the transmission priority of each data frame to be transmitted; And transmitting each transmission data frame included in the data frame content to the second bit machine according to the data transmission sequence. As an alternative embodiment, in the first aspect of the present invention, the method further includes: acquiring a data transmission result of the target data frame, and generating a target log rec