Search

CN-122001914-A - Vehicle state data processing method and related equipment

CN122001914ACN 122001914 ACN122001914 ACN 122001914ACN-122001914-A

Abstract

The application discloses a processing method of vehicle state data and related equipment, the method comprises the steps of obtaining vehicle state messages transmitted by a vehicle controller local area network, storing each frame of vehicle state messages and corresponding obtaining time thereof into a cache area, determining current absolute time as a packet-level timestamp when a preset data packaging period arrives, calculating a time difference value between the packet-level timestamp and the obtaining time of each frame of vehicle state messages in the cache area to obtain a time offset corresponding to each frame of vehicle state messages, constructing a vehicle state data packet containing the packet-level timestamp, each frame of vehicle state messages and the time offset corresponding to each frame of vehicle state messages, and uploading the vehicle state data packet to a cloud end for the cloud end to analyze the actual generation time of each frame of vehicle state messages based on the vehicle state data packet. The technical scheme provided by the application can improve the accuracy of the vehicle state data in the time dimension.

Inventors

  • XU PENGTAO
  • JIN WEI
  • YANG YANG
  • YU JUNYANG
  • CAI YANBO

Assignees

  • 东风汽车集团股份有限公司

Dates

Publication Date
20260508
Application Date
20260319

Claims (10)

  1. 1. A method for processing vehicle state data, the method being performed at a vehicle end, the method comprising: Acquiring a vehicle state message transmitted by a vehicle controller local area network, and storing each frame of vehicle state message and the corresponding acquisition time thereof into a cache area; When a preset data packing period arrives, determining the current absolute time as a packet-level time stamp; Calculating a time difference value between the packet-level timestamp and the acquisition time of each frame of vehicle state message in the buffer area to obtain a time offset corresponding to each frame of vehicle state message; and constructing a vehicle state data packet comprising the packet-level time stamp, each frame of vehicle state message and a time offset corresponding to each frame of vehicle state message, and uploading the vehicle state data packet to a cloud end so that the cloud end can analyze the actual generation time of each frame of vehicle state message based on the vehicle state data packet.
  2. 2. The method of claim 1, wherein the obtaining a vehicle status message transmitted by a vehicle controller area network comprises: receiving a vehicle state message transmitted by a local network of a vehicle controller in real time through an interrupt service routine; and reading the timing value of the timer in the chip at the moment of successfully receiving the vehicle state message of each frame, and taking the timing value as the corresponding acquisition time of the vehicle state message of each frame.
  3. 3. The method of claim 1, wherein storing each frame of vehicle status message and its corresponding acquisition time in the buffer area comprises: Forming triple data by the message identification of each frame of vehicle state message, the message content of each frame of vehicle state message and the acquisition time of each frame of vehicle state message; And storing the triplet data into a first-in first-out annular cache area.
  4. 4. The method of claim 1, wherein constructing a vehicle state data packet including the packet-level timestamp, each frame of vehicle state message, and a time offset corresponding to each frame of vehicle state message, comprises: acquiring a path feature code corresponding to each frame of vehicle state message by inquiring a preset vehicle communication matrix according to the message identification of each frame of vehicle state message in the buffer area; And constructing a vehicle state data packet comprising the packet-level time stamp, each frame of vehicle state message, the path feature code and the time offset corresponding to each frame of vehicle state message, and the vehicle state data packet.
  5. 5. The method of claim 4, wherein said constructing a vehicle status data packet including said packet-level timestamp, each frame of vehicle status message, said path feature code and said time offset corresponding to each frame of vehicle status message, and comprising: generating a data packet header, wherein the data packet header comprises the packet-level time stamp and a data packet serial number; generating a time matrix, wherein the time matrix sequentially records index information corresponding to each frame of vehicle state message, the path feature code and the time offset; generating a data load, wherein the data load stores the message content of each frame of vehicle state message in the same sequence as the time matrix; And combining the data packet header, the time matrix and the data load into a vehicle state data packet.
  6. 6. A method for processing vehicle state data, the method being performed at a cloud end, the method comprising: receiving a vehicle state data packet uploaded by a vehicle end; analyzing the vehicle state data packet to obtain a packet-level time stamp, vehicle state messages of each frame and time offset corresponding to the vehicle state messages of each frame; And calculating the acquisition time of each frame of vehicle state message according to the time offset corresponding to the packet-level time stamp and each frame of vehicle state message aiming at each frame of vehicle state message.
  7. 7. The method of claim 6, wherein the calculating, for each frame of the vehicle state message, the acquisition time of each frame of the vehicle state message according to the time offset corresponding to the each frame of the vehicle state message by the packet-level timestamp comprises: And carrying out difference calculation on the packet-level timestamp and the time offset corresponding to each frame of vehicle state message to obtain the acquisition time of each frame of vehicle state message.
  8. 8. The method of claim 6, wherein the vehicle status data packet further includes a path feature code corresponding to each frame of the vehicle status message, the method further comprising: Inquiring the path transmission delay corresponding to each frame of vehicle state message in a preset path delay feature library by taking the path feature code corresponding to each frame of vehicle state message as a retrieval key; Calculating the actual generation time of each frame of vehicle state message according to the acquisition time and the path transmission delay; and generating a vehicle state message sequence sequenced in time sequence according to the actual generation time corresponding to each frame of vehicle state message.
  9. 9. The method of claim 8, wherein the method further comprises: acquiring initial path transmission delays corresponding to different path feature codes in a bench test calibration mode, and constructing an initial path delay feature library; And updating the path transmission delay in the path delay feature library in a big data statistical analysis mode according to the vehicle state message corresponding to the vehicle state data packet received in the preset period.
  10. 10. An electronic device comprising one or more processors and one or more memories, the one or more memories having stored therein at least one piece of program code that is loaded and executed by the one or more processors to implement the method of any of claims 1-5 or any of claims 6-9.

Description

Vehicle state data processing method and related equipment Technical Field The application belongs to the technical fields of Internet of vehicles and vehicle data processing, and particularly relates to a vehicle state data processing method and related equipment. Background Along with the rapid development of the intelligent and networking of automobiles, the functional boundary of the cloud application of the Internet of vehicles is continuously expanded, and the cloud application of the Internet of vehicles is expanded from traditional remote state monitoring and fault alarming of the vehicles to high-order scenes such as collaborative optimization of a power system of the whole vehicle, accurate tracing of a fault event chain, intelligent driving control logic verification, health management of the whole life cycle of the vehicles and the like, so that the intelligent level and the driving safety of the vehicles can be obviously improved greatly. However, the continuous upgrade of cloud high-order application functions also puts extremely high demands on the time dimension accuracy of the vehicle state data. In the current general vehicle state data transmission scheme, a vehicle-mounted terminal generally aggregates multi-frame vehicle state messages transmitted by a local network of an in-vehicle controller in a fixed packing period, marks a unified package-level timestamp for the aggregated whole data package, and then uploads the integrated package-level timestamp to a cloud. The processing mode forcibly smears out inherent millisecond-level or even microsecond-level time differences among different vehicle state messages in the same data packet, so that the cloud can only identify all messages in the same data packet as data generated simultaneously, the serious time blurring problem of the vehicle state data is directly caused, and the time resolution is strictly limited by the coarse-granularity packing period. The accuracy loss of the time dimension can directly cause the great reduction of the accuracy and the reliability of the analysis result of the cloud high-order analysis scene, and the core requirement of intelligent network-connected automobile development on the vehicle state data can not be met. Based on this, how to improve the accuracy of the vehicle state data in the time dimension has become a technical problem to be solved. Disclosure of Invention Embodiments of the present application provide a method, an apparatus, a computer program product, a computer readable storage medium, and an electronic device for processing vehicle state data, so that accuracy of the vehicle state data in a time dimension can be improved at least to some extent. Other features and advantages of the application will be apparent from the following detailed description, or may be learned by the practice of the application. According to a first aspect of the embodiment of the present application, a method for processing vehicle state data is provided, where the method is executed at a vehicle end, and the method includes obtaining vehicle state messages transmitted by a local network of a vehicle controller, storing each frame of vehicle state messages and corresponding obtaining time thereof in a buffer area, determining current absolute time as a packet-level timestamp when a preset data packing period arrives, calculating a time difference between the packet-level timestamp and the obtaining time of each frame of vehicle state messages in the buffer area, obtaining a time offset corresponding to each frame of vehicle state messages, constructing a vehicle state data packet including the packet-level timestamp, each frame of vehicle state messages, and a time offset corresponding to each frame of vehicle state messages, and uploading the vehicle state data packet to a cloud end for analyzing actual generation time of each frame of vehicle state messages based on the vehicle state data packet. In some embodiments of the present application, based on the foregoing solutions, the acquiring the vehicle status message transmitted by the vehicle controller local area network includes receiving, in real time, the vehicle status message transmitted by the vehicle controller local area network through the interrupt service routine, and reading, at a time of successfully receiving each frame of the vehicle status message, a timing value of an internal timer of the chip as an acquisition time corresponding to the each frame of the vehicle status message. In some embodiments of the present application, based on the foregoing scheme, storing each frame of vehicle status message and its corresponding acquisition time in the buffer area includes forming a triplet of a message identifier of each frame of vehicle status message, a message content of each frame of vehicle status message, and an acquisition time of each frame of vehicle status message, and storing the triplet of data in the first-in-first-out annular buff