CN115277773A - Vehicle message processing method and device, vehicle and storage medium - Google Patents

Vehicle message processing method and device, vehicle and storage medium Download PDF

Info

Publication number
CN115277773A
CN115277773A CN202210899986.5A CN202210899986A CN115277773A CN 115277773 A CN115277773 A CN 115277773A CN 202210899986 A CN202210899986 A CN 202210899986A CN 115277773 A CN115277773 A CN 115277773A
Authority
CN
China
Prior art keywords
message
whole vehicle
vehicle
configuration file
whole
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202210899986.5A
Other languages
Chinese (zh)
Other versions
CN115277773B (en
Inventor
肖心刚
刘超
李长龙
南洋
孔祥明
马天龙
祁明阳
王天骄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Group Corp
Original Assignee
FAW Group Corp
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 FAW Group Corp filed Critical FAW Group Corp
Priority to CN202210899986.5A priority Critical patent/CN115277773B/en
Publication of CN115277773A publication Critical patent/CN115277773A/en
Application granted granted Critical
Publication of CN115277773B publication Critical patent/CN115277773B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/2895Intermediate processing functionally located close to the data provider application, e.g. reverse proxies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40234Local Interconnect Network LIN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle

Landscapes

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

Abstract

The embodiment of the invention discloses a vehicle message processing method, a vehicle message processing device, a vehicle and a storage medium. The method comprises the following steps: acquiring a configuration file; acquiring a whole vehicle message to be analyzed according to the data range, and generating a first whole vehicle message according to the whole vehicle message to be analyzed and the storage format; determining a second whole vehicle message with a normal message period according to the timestamp of the first whole vehicle message with the same message identification; and for a second whole vehicle message with the same message identification and a normal message period, compressing the second whole vehicle message according to data information in the message to obtain a whole vehicle compressed message. According to the embodiment of the invention, the whole vehicle message is acquired based on the data range specified by the configuration file, and the acquired whole vehicle message is stored according to the storage format specified by the configuration file, so that the data acquisition efficiency is improved; and the whole vehicle message with a normal message period is compressed, and the compressed message is uploaded or stored, so that the data transmission efficiency is improved.

Description

Vehicle message processing method and device, vehicle and storage medium
Technical Field
The invention relates to the technical field of vehicle communication, in particular to a vehicle message processing method, a vehicle message processing device, a vehicle and a storage medium.
Background
With the increasing functions of the whole vehicle, a lot of whole vehicle data are generated in the running process of the vehicle, so that the data volume of the vehicle body communication network is larger and larger, and the bugs of the whole vehicle are more and more, which leads to the complaint of customers. The general solution is to analyze the recording and storage of the data of the whole vehicle, but for the message data of the vehicle body, the bus number of the vehicle body is large, the data volume of the message sent by the controller is huge, and the data uploading efficiency is low.
Therefore, how to ensure the efficiency of data uploading becomes an urgent problem to be solved.
Disclosure of Invention
The invention provides a vehicle message processing method and device, a vehicle and a storage medium, which are used for improving the data uploading efficiency.
According to an aspect of the present invention, a method for processing a vehicle message is provided, including:
acquiring a configuration file, wherein the configuration file is used for configuring a data range and a storage format of a vehicle message to be analyzed;
acquiring a whole vehicle message to be analyzed according to the data range, and generating a first whole vehicle message according to the whole vehicle message to be analyzed and a storage format;
determining a second whole vehicle message with a normal message period according to the timestamp of the first whole vehicle message with the same message identification;
and for a second whole vehicle message with the same message identification and normal message period, compressing the second whole vehicle message according to data information in the message to obtain a whole vehicle compressed message.
According to another aspect of the present invention, a device for processing a vehicle message is provided, which includes:
the file acquisition module is used for acquiring a configuration file, wherein the configuration file is used for configuring the data range and the storage format of the vehicle message to be analyzed;
the message generating module is used for acquiring a whole vehicle message to be analyzed according to the data range and generating a first whole vehicle message according to the whole vehicle message to be analyzed and a storage format;
the message determining module is used for determining a second vehicle-finishing message with a normal message period according to the timestamp of the first vehicle-finishing message with the same message identifier;
and the message compression module is used for compressing a second whole vehicle message with the same message identification and normal message period according to data information in the message to obtain a whole vehicle compressed message.
According to another aspect of the present invention, there is provided a vehicle including:
the vehicle-mounted gateway controller comprises a vehicle-mounted gateway controller, a first controller, a second controller and a third controller, wherein the first controller is connected with the vehicle-mounted gateway controller through a CAN bus, the second controller is connected with the vehicle-mounted gateway controller through a LIN bus, and the third controller is connected with the vehicle-mounted gateway controller through an Eth bus;
the first controller is used for sending CAN type whole vehicle messages to be analyzed to the vehicle-mounted gateway controller through a CAN bus;
the second controller is used for sending an LIN type whole vehicle message to be analyzed to the vehicle-mounted gateway controller through an LIN bus;
the third controller is used for sending an Eth type vehicle message to be analyzed to the vehicle-mounted gateway controller through an Eth bus;
the on-board gateway controller comprises at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the vehicle message processing method according to any embodiment of the invention.
According to another aspect of the present invention, a computer-readable storage medium is provided, where the computer-readable storage medium stores computer instructions, and the computer instructions are used for enabling a processor to implement the entire vehicle message processing method according to any embodiment of the present invention when the computer instructions are executed.
According to the technical scheme of the embodiment of the invention, the whole vehicle message is collected based on the data range specified by the configuration file, and the collected whole vehicle message is stored according to the storage format specified by the configuration file, so that the data acquisition efficiency is improved; the whole vehicle message with normal message period is compressed, and the compressed message is uploaded or stored, so that the data transmission efficiency is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a vehicle message processing method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a gateway server connection provided according to an embodiment of the present invention;
fig. 3 is a flowchart of a vehicle message processing method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a vehicle message processing apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a vehicle implementing the method for processing a complete vehicle message according to the fourth embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a vehicle message processing method according to an embodiment of the present invention, where the present embodiment is applicable to a situation of acquiring vehicle data, and the method may be executed by a vehicle message processing apparatus, where the vehicle message processing apparatus may be implemented in a form of hardware and/or software, and the vehicle message processing apparatus may be configured in a vehicle. As shown in fig. 1, the method includes:
s110, obtaining a configuration file, wherein the configuration file is used for configuring a data range and a storage format of the vehicle message to be analyzed.
The configuration file may be stored in a removable storage medium, and the removable storage medium in this embodiment may be a usb disk, which is not limited in this embodiment. The configuration file may include configuration information such as a communication type, a communication number, a filtering storage type, a message identifier list, and a communication Name, where the communication Name is used when the configuration file is stored.
In this embodiment, the mobile storage medium is connected to the vehicle-mounted gateway controller through a USB hardware interface, and as shown in fig. 2, the vehicle-mounted gateway controller is used as a terminal node for vehicle communication, and is responsible for connecting all controllers and networks on the entire vehicle and requiring transmission of communication information of the CAN/LIN/Eth network. The vehicle-mounted gateway controller is integrated with a saving component, and the component is used for detecting whether a specific cfg file exists in a mobile storage medium in real time; when a saving component operated by the gateway controller detects a configuration file, analyzing the cfg file; after the analysis is passed, the communication name ID data specified in the cancontrollllerreraanetwork, control area network/LIN (local interconnect network)/Eth (Ethernet) network corresponding to the entire vehicle message to be analyzed is stored according to the configuration file described by the cfg file, and the ID data is stored in the mobile storage medium according to a specific storage format.
The vehicle-mounted gateway controller in this embodiment is provided with a USB interface, and then completes storage and uploading of a vehicle message through a local or remote configuration mode by using an internet access function of a TBox (Telematics, car box). The configuration mode can be divided into two modes, one mode is that the configuration file is directly placed in the U disk through a local USB; another way is to download the configuration file remotely, and download the configuration file through the cloud. The data of the whole vehicle message can be configured to be acquired by a local USB flash disk and uploaded to a remote TSP (telematics service provider) platform. Through a local or remote configuration mode, the gateway controller can finish the storage and uploading of the message of the whole vehicle.
Specifically, when the gateway controller is in an offline state, a user may perform local configuration in a manner of placing a configuration file on the usb disk, where the local configuration includes the following specific steps: firstly, a user obtains a configuration file through a local PC (personal computer) end, secondly, the user can upload a corresponding vehicle encryption configuration file through a PC webpage end of a TSP (short message service) platform, the TSP platform encrypts the obtained configuration file and provides a download link, then, after the user obtains the encrypted configuration file, the configuration file is placed in a U (universal serial bus) packing directory and connected with a gateway controller, the gateway controller identifies that a U disk is inserted and reads a root directory file, decrypts the root directory file by adopting a private key of a certificate in the gateway controller, after the legality of the configuration file is confirmed, a message recording function is started, finally, in the message recording process, message data are temporarily stored in a flash of the gateway controller, after 128k (temporary) data are recorded, the data are transferred to the U disk, and the encryption is carried out through the private key of the certificate before the storage.
Correspondingly, the steps of acquiring the local data in this embodiment are as follows: 1. and directly pulling out the USB flash disk to obtain encrypted data. 2. And uploading the obtained encrypted message data file to the platform through an uploading message interface provided by a page end of the TSP platform. 3. And decrypting the platform message data, and providing analysis and viewing functions.
Accordingly, the process of remote configuration is as follows: 1. the platform confirms whether the operated gateway controller is the gateway controller in the legal authentication list in the TSP platform. 2. And the user edits the configuration file at the TSP platform end. 3. The user uploads the configuration file to the platform, the platform encrypts the configuration file after receiving the configuration file, and the encryption key is encrypted by a public key in the platform. And issued to the gateway controller. 4. And after receiving the configuration file issued by the platform, the gateway controller decrypts by using a private key in a certificate in the gateway controller. And after the legality of the configuration file is confirmed, the message recording function is started to be executed. 5. In the process of recording the message, the message data is temporarily stored in a flash of a gateway controller, the data is transferred to a U disk after 128k (temporary) data is recorded, and the data is encrypted by a private key of a certificate before being stored.
Correspondingly, the steps of remotely acquiring data are as follows: and 1, the TSP platform issues a remote acquisition instruction. 2. And after receiving the instruction and verifying the validity of the instruction, the gateway controller starts to upload the data stored in the U disk. The pages of the tsp platform provide decryption of the data and provide parsing and viewing functions.
Optionally, S110 may include: carrying out platform validity authentication according to the frame number, the gateway controller serial number and a random code with a preset length in the certificate; if the platform passes the legality authentication, acquiring an encrypted configuration file issued by the platform; and decrypting the encrypted configuration file according to a private key in the certificate to obtain the configuration file.
The certificate is a local certificate issued after identity confirmation is carried out when a PKI technology is adopted to establish communication connection between the TSP platform and the gateway controller, and the certificate is configured in the gateway controller.
In this embodiment, the platform legitimacy authentication process of the certificate is performed after the gateway controller is started, and first, whether the certificate exists needs to be verified, if so, whether the certificate is consistent with the information of the frame number VIN and the gateway controller serial number SN of the actual vehicle is judged according to the information of the frame number VIN and the gateway controller serial number SN in the certificate, and if so, message data is encrypted through a private key in the certificate and is reported to the TSP platform through a TBox. And then, confirming whether the message comprises the vehicle frame number VIN, the SN number of the gateway controller and the random code 16Byte, if so, the legality authentication of the platform passes, decrypting the data by a public key reserved by the TSP platform, confirming whether the vehicle information and the information recorded in the background are correct and valid, identifying the gateway controller connected this time as a valid controller after confirmation, encrypting the 16Byte random code reported by the previous gateway controller by the public key, sending the encrypted 16Byte random code to the gateway controller to serve as a confirmation message of the TSP platform, finally, decrypting the received feedback information by the gateway controller by using a local private key, comparing whether the 16Byte random code is consistent with the previously sent random code, and if so, the gateway controller considers the platform to be legal and can carry out normal communication to obtain a configuration file.
Optionally, S110 may include: after the set storage medium is accessed, acquiring an encrypted configuration file under a set directory of the set storage medium; and decrypting the encrypted configuration file according to a private key in the certificate to obtain the configuration file.
In this embodiment, the setting storage medium may be a usb disk with cfg configuration files, and after the usb disk is inserted into the vehicle-mounted gateway, the encrypted configuration files in the setting directory of the usb disk are obtained, the vehicle-mounted gateway controller detects the correctness of the format of the files in real time, decrypts the encrypted configuration files according to a private key in the certificate, and obtains the configuration files, and the vehicle-mounted gateway controller stores the configuration files according to the cfg information.
In this embodiment, the reported and downloaded data are encrypted and decrypted by using the key in the certificate, so as to ensure that the data is not stolen, and improve the security of the data while ensuring the privacy of the data.
S120, acquiring a whole vehicle message to be analyzed according to the data range, and generating a first whole vehicle message according to the whole vehicle message to be analyzed and the storage format.
The storage format of the vehicle message to be analyzed can be a file format for message storage.
In this embodiment, the storage format may be "GW" + "CANName" + "date" + "time". Log, where "GW" is english abbreviation of Gateway, i.e., gateway. "CANName" is a communication name set in the cfg file in the usb disk. The "date" + "time" CAN be programmed according to the current GPS time acquired by the gateway controller from the CAN bus. Further, the file may be recorded and saved simultaneously according to the number of communication numbers in the configuration file, for example, when CAN =2,lin =1, the 3 buses may be recorded and saved in parallel.
Optionally, S120 may include: acquiring a whole vehicle message to be analyzed according to the communication type, the communication number, the filtering storage type and the message identification list which are included by the configuration file; and generating a first whole vehicle message corresponding to the whole vehicle message to be analyzed according to the timestamp, the message identifier and the data information storage format.
The communication Type CAN be Section _ Type, and CAN be configured to network types such as CAN/LIN/Eth; the communication Number can be Number, and the numeric range of the Number is 1-255; the filter save Type may be Receive _ Type, which is used to set the current data filter save Type, such as: the ConfigList represents filtering according to the message identification list ReceivIDList; ALL indicates that ALL IDs of communication types are saved; none indicates that the communication types are not all saved; when None and ALL are set, the message identification list may be empty.
Specifically, when the obtained analysis vehicle message is Section _ Type = CAN, it indicates that the communication Type is CAN, number =1 indicates that the first communication is performed under the CAN communication Type (a total of six communication numbers are arranged by 1-6), name = ComfortCAN indicates the communication Name (the communication Name may also be Comfort _ CAN, info _ CAN, PT _ CAN, and the like), receive _ Type = ConfigList indicates that filtering is performed according to the message identification list, receiveIDList = {0x101,0x201,0x112} indicates that the item list is a received saved communication Type information list when Receive _ Type = ConfigList is valid.
In this embodiment, the timestamp is information of time, minute, second, and millisecond of the current time, such as: 09; the message identification and data information storage format is ID information and data information, such as: 0x20132339a19C2BC783A represents the ID of this data and the corresponding real-time packet data. Therefore, the 09.
S130, determining a second whole vehicle message with a normal message period according to the timestamp of the first whole vehicle message with the same message identification.
In this embodiment, the timestamp of the first entire vehicle message is accurate to milliseconds, so that the accuracy of the timestamp can be reduced to one or more units. And searching the first whole vehicle message according to the same message identifier, determining whether the timestamp of the same message identifier of each frame is within a preset deviation threshold value, and if so, determining a second whole vehicle message with a normal message period.
Optionally, S130 may include obtaining a first entire vehicle message set with the same message identifier; acquiring a target first whole vehicle message in the first whole vehicle message set and a next frame whole vehicle message of the target first whole vehicle message according to the timestamp; and if the timestamp deviation of the next frame of whole vehicle message and the target first whole vehicle message is smaller than a set deviation threshold value, determining that the first whole vehicle message in the first whole vehicle message set is a second whole vehicle message with a normal message period.
In this embodiment, a first whole vehicle message may be retrieved according to the same message identifier, and it is determined whether a timestamp of the same message identifier is greater than 5%, if the period of the first whole vehicle message is 100ms, it is detected whether a deviation between a timestamp of a next frame and a current frame is within 5%, if so, the timestamp of the next frame is considered to be within 95ms to 105ms in an approximate manner, and the timestamp is not recorded during reporting of a subsequent message, so that a storage space of the timestamp is saved, the timestamp of the subsequent message is 100ms by default, and the message period at this time is a normal second whole vehicle message. In this embodiment, the preset deviation threshold may be flexibly set as needed, and this embodiment does not specifically limit this.
And S140, for a second whole vehicle message with the same message identification and a normal message period, compressing the second whole vehicle message according to data information in the message to obtain a whole vehicle compressed message.
Optionally, S140 may include: for a second whole vehicle message with the same message identification and normal message period, keeping the timestamp of the earliest frame of the second whole vehicle message, and deleting the timestamps of the rest second whole vehicle messages in the first whole vehicle message set to obtain a whole vehicle compressed message; and/or for continuous and repeated second whole vehicle messages in the second whole vehicle messages, representing the repeated second whole vehicle messages according to the continuous starting time of the messages, message identifiers, data information in the messages, the period and the number of the repeated messages, and obtaining whole vehicle compressed messages; and/or for a second whole vehicle message which is changed continuously and has different set data information, the second whole vehicle message is changed according to the changed byte sequence number and the changed data information, and a whole vehicle compressed message is obtained.
The messages with the same message identification and normal message period are compressed, namely, the timestamps with the same message identification data in the continuous messages are deleted. Compressing the continuous and repeated second vehicle message by using the starting time, the message identification ID, the data information in the message, the period and the number of the repeated messages, and setting the maximum compressed message data to be less than 100 so as to prevent excessive continuous data from generating excessive deviation in time; and continuously changing the second whole vehicle message according to different set data information, wherein the changed second whole vehicle message is represented according to the changed Byte sequence number and the changed data information, namely, only one Byte of Byte data in the same message identifier may be changed in the continuous message. And the changed message is represented according to the changed byte sequence number and the changed byte value, so that the time stamp and the storage space of the rest bytes can be saved. Recording the byte position corresponding to the data change by using one byte; and storing the changed data according to a data format.
According to the embodiment, two configuration modes, namely remote configuration and local configuration, are provided, so that the acquired whole vehicle message can be stored based on the storage format specified by the configuration file, and the data acquisition efficiency is improved; the configuration file and the operation method are sent to the user, so that the vehicle data to be analyzed can be remotely obtained, and the labor and time cost is saved; and the whole vehicle message with a normal whole vehicle message period is compressed, and the compressed message is uploaded or stored, so that the data transmission efficiency is improved.
Example two
Fig. 3 is a flowchart of a method for processing a whole vehicle message according to a second embodiment of the present invention, where after the step "compress a second whole vehicle message according to data information in the message to obtain a whole vehicle compressed message", the embodiment further includes encrypting a whole vehicle uncompressed message and a whole vehicle compressed message. The same terms as those of the above embodiments are not described herein. As shown in fig. 3, the method includes:
s310, obtaining a configuration file, wherein the configuration file is used for configuring the data range and the storage format of the vehicle message to be analyzed.
S320, acquiring a whole vehicle message to be analyzed according to the data range, and generating a first whole vehicle message according to the whole vehicle message to be analyzed and the storage format.
And S330, determining a second whole vehicle message with a normal message period according to the timestamp of the first whole vehicle message with the same message identifier.
And S340, for a second whole vehicle message with the same message identification and a normal message period, compressing the second whole vehicle message according to data information in the message to obtain a whole vehicle compressed message.
And S350, determining the first whole vehicle message with the same message identification and abnormal message period as a whole vehicle non-compressed message.
In this embodiment, a second vehicle-finished message with the same message identifier and an abnormal message period may also be determined as a vehicle-finished non-compressed message.
And S360, encrypting the whole vehicle non-compressed message and the whole vehicle compressed message by using the private key in the certificate.
The embodiment of the invention further improves the data security while ensuring the data privacy by encrypting the whole vehicle uncompressed message and the whole vehicle compressed message.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a vehicle message processing apparatus according to a third embodiment of the present invention. As shown in fig. 4, the apparatus includes:
the file acquisition module 401 is configured to acquire a configuration file, where the configuration file is used to configure a data range and a storage format of a vehicle message to be analyzed;
the message generating module 402 is configured to obtain a whole vehicle message to be analyzed according to a data range, and generate a first whole vehicle message according to the whole vehicle message to be analyzed and a storage format;
the message determining module 403 is configured to determine, according to the timestamp of the first vehicle information with the same message identifier, a second vehicle information with a normal message period;
the message compression module 404 is configured to, for a second vehicle-mounted message with the same message identifier and a normal message period, compress the second vehicle-mounted message according to data information in the message to obtain a vehicle-mounted compressed message.
Optionally, after the message compressing module 404, the method further includes:
the uncompressed message determining module is used for determining a first whole vehicle message with the same message identifier and an abnormal message period as a whole vehicle uncompressed message;
and the uncompressed message encryption module is used for encrypting the whole vehicle uncompressed message and the whole vehicle compressed message by adopting a private key in the certificate.
Optionally, the file acquiring module 401 includes:
an authentication unit: carrying out platform validity authentication according to the frame number, the gateway controller serial number and a random code with a preset length in the certificate; if the platform passes the legality authentication, acquiring an encrypted configuration file issued by the platform;
and the decryption unit is used for decrypting the encrypted configuration file according to the private key in the certificate to obtain the configuration file.
Optionally, the file obtaining module 401 includes:
the encryption unit is used for acquiring an encrypted configuration file under a set directory of a set storage medium after the set storage medium is accessed;
and the decryption unit is used for decrypting the encrypted configuration file according to the private key in the certificate to obtain the configuration file.
Optionally, the message generating module 402 includes:
the whole vehicle message acquisition unit to be analyzed is used for acquiring a whole vehicle message to be analyzed according to the communication type, the communication number, the filtering storage type and the message identification list which are included by the configuration file;
and the first vehicle message generating unit is used for generating a first vehicle message corresponding to the vehicle message to be analyzed according to the timestamp, the message identifier and the data information storage format.
Optionally, the message determining module 403 includes:
the set determining unit is used for acquiring a first whole vehicle message set with the same message identification;
the vehicle message acquisition unit is used for acquiring a target first vehicle message in the first vehicle message set and a next frame vehicle message of the target first vehicle message according to the timestamp;
and if the timestamp deviation of the next frame of whole vehicle message and the target first whole vehicle message is smaller than a set deviation threshold value, determining that the first whole vehicle message in the first whole vehicle message set is a second whole vehicle message with a normal message period.
Optionally, the message compressing module 404 includes:
the deleting unit is used for keeping the timestamp of the second whole vehicle message of the earliest frame for the second whole vehicle message with the same message identification and normal message period, and deleting the timestamps of the rest second whole vehicle messages in the first whole vehicle message set to obtain a whole vehicle compressed message; and/or the presence of a gas in the gas,
the repeated message acquiring unit is used for expressing a repeated second whole vehicle message in the second whole vehicle message according to the continuous starting time of the message, the message identification, the data information in the message, the period and the number of the repeated messages to obtain a whole vehicle compressed message; and/or the presence of a gas in the gas,
and the second whole vehicle message acquisition unit is used for representing and changing a second whole vehicle message according to the changed byte sequence number and the changed data information to obtain a whole vehicle compressed message for the changed second whole vehicle message which is continuous in the second whole vehicle message and has different set data information.
The vehicle message processing device provided by the embodiment of the invention can execute the vehicle message processing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example four
FIG. 5 illustrates a schematic block diagram of a vehicle 10 that may be used to implement an embodiment of the present invention. The vehicle is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the vehicle 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM13, various programs and data required for the operation of the vehicle 10 can also be stored. The processor 11, the ROM12, and the RAM13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to the bus 14.
Various components in the vehicle 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the vehicle 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The processor 11 performs the various methods and processes described above, such as a vehicle message processing method.
In some embodiments, a full vehicle message processing method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed on the vehicle 10 via the ROM12 and/or the communication unit 19. When loaded into RAM13 and executed by processor 11, the computer program may perform one or more of the steps of a method for overall vehicle message processing described above. Alternatively, in other embodiments, the processor 11 may be configured to perform a full vehicle message processing method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described herein may be implemented on a vehicle having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the vehicle. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired result of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for processing messages of a whole vehicle is characterized by comprising the following steps:
acquiring a configuration file, wherein the configuration file is used for configuring a data range and a storage format of a vehicle message to be analyzed;
acquiring a whole vehicle message to be analyzed according to the data range, and generating a first whole vehicle message according to the whole vehicle message to be analyzed and a storage format;
determining a second whole vehicle message with a normal message period according to the timestamp of the first whole vehicle message with the same message identification;
and for a second whole vehicle message with the same message identification and normal message period, compressing the second whole vehicle message according to data information in the message to obtain a whole vehicle compressed message.
2. The method of claim 1, wherein after compressing the second full vehicle message according to data information in the message to obtain a full vehicle compressed message, further comprising:
determining a first whole vehicle message with the same message identification and abnormal message period as a whole vehicle non-compressed message;
and encrypting the whole vehicle uncompressed message and the whole vehicle compressed message by adopting a private key in the certificate.
3. The method of claim 1, wherein obtaining the configuration file comprises:
carrying out platform validity authentication according to the frame number, the gateway controller serial number and a random code with a preset length in the certificate;
if the platform passes the legality authentication, acquiring an encrypted configuration file issued by the platform;
and decrypting the encrypted configuration file according to a private key in the certificate to obtain the configuration file.
4. The method of claim 1, wherein obtaining the configuration file comprises:
after a set storage medium is accessed, acquiring an encrypted configuration file under a set directory of the set storage medium;
and decrypting the encrypted configuration file according to a private key in the certificate to obtain the configuration file.
5. The method of claim 1, wherein the obtaining the vehicle message to be analyzed according to the data range and generating a first vehicle message according to the vehicle message to be analyzed and a storage format comprises:
acquiring a whole vehicle message to be analyzed according to the communication type, the communication number, the filtering storage type and the message identification list which are included in the configuration file;
and generating a first whole vehicle message corresponding to the whole vehicle message to be analyzed according to the timestamp, the message identifier and the data information storage format.
6. The method according to claim 1, wherein the determining a second vehicle-mounted message with a normal message cycle according to the timestamp of the first vehicle-mounted message with the same message identifier comprises:
acquiring a first whole vehicle message set with the same message identification;
acquiring a target first whole vehicle message in the first whole vehicle message set and a next frame whole vehicle message of the target first whole vehicle message according to a timestamp;
and if the timestamp deviation of the next frame of whole vehicle message and the target first whole vehicle message is smaller than a set deviation threshold value, determining that the first whole vehicle message in the first whole vehicle message set is a second whole vehicle message with a normal message period.
7. The method according to claim 1, wherein for a second entire vehicle message with the same message identifier and a normal message period, compressing the second entire vehicle message according to data information in the message to obtain an entire vehicle compressed message comprises:
for a second whole vehicle message with the same message identification and normal message period, keeping the timestamp of the earliest frame of the second whole vehicle message, and deleting the timestamps of the rest second whole vehicle messages in the first whole vehicle message set to obtain a whole vehicle compressed message; and/or the presence of a gas in the gas,
for continuous and repeated second whole vehicle messages in the second whole vehicle messages, expressing the repeated second whole vehicle messages according to the continuous starting time of the messages, message identifiers, data information in the messages, periods and the number of the repeated messages, and obtaining whole vehicle compressed messages; and/or the presence of a gas in the gas,
and for the changed second whole vehicle messages which are continuous and have different set data information in the second whole vehicle messages, representing the changed second whole vehicle messages according to the changed byte sequence numbers and the changed data information to obtain whole vehicle compressed messages.
8. A whole vehicle message processing device is characterized by comprising:
the file acquisition module is used for acquiring a configuration file, wherein the configuration file is used for configuring the data range and the storage format of the vehicle message to be analyzed;
the message generating module is used for acquiring a whole vehicle message to be analyzed according to the data range and generating a first whole vehicle message according to the whole vehicle message to be analyzed and a storage format;
the message determining module is used for determining a second whole vehicle message with a normal message period according to the timestamp of the first whole vehicle message with the same message identification;
and the message compression module is used for compressing a second whole vehicle message with the same message identification and normal message period according to data information in the message to obtain a whole vehicle compressed message.
9. A vehicle, characterized in that the vehicle comprises: the vehicle-mounted gateway controller comprises a vehicle-mounted gateway controller, a first controller, a second controller and a third controller, wherein the first controller is connected with the vehicle-mounted gateway controller through a CAN bus, the second controller is connected with the vehicle-mounted gateway controller through a LIN bus, and the third controller is connected with the vehicle-mounted gateway controller through an Eth bus;
the first controller is used for sending CAN type whole vehicle messages to be analyzed to the vehicle-mounted gateway controller through a CAN bus;
the second controller is used for sending an LIN type whole vehicle message to be analyzed to the vehicle-mounted gateway controller through an LIN bus;
the third controller is used for sending an Eth type vehicle message to be analyzed to the vehicle-mounted gateway controller through an Eth bus;
the on-board gateway controller comprises at least one processor; and a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of vehicle message processing of any of claims 1-7.
10. A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions for causing a processor to implement the vehicle message processing method according to any one of claims 1-7 when the computer instructions are executed.
CN202210899986.5A 2022-07-28 2022-07-28 Whole vehicle message processing method and device, vehicle and storage medium Active CN115277773B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210899986.5A CN115277773B (en) 2022-07-28 2022-07-28 Whole vehicle message processing method and device, vehicle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210899986.5A CN115277773B (en) 2022-07-28 2022-07-28 Whole vehicle message processing method and device, vehicle and storage medium

Publications (2)

Publication Number Publication Date
CN115277773A true CN115277773A (en) 2022-11-01
CN115277773B CN115277773B (en) 2023-09-26

Family

ID=83770827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210899986.5A Active CN115277773B (en) 2022-07-28 2022-07-28 Whole vehicle message processing method and device, vehicle and storage medium

Country Status (1)

Country Link
CN (1) CN115277773B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190304225A1 (en) * 2018-03-28 2019-10-03 Denso International America, Inc. Systems And Methods For Communication Bus Security In A Vehicle
CN113051112A (en) * 2021-03-16 2021-06-29 北京经纬恒润科技股份有限公司 Method and system for acquiring ECU fault information
CN113079072A (en) * 2020-01-06 2021-07-06 广州汽车集团股份有限公司 Vehicle data acquisition method and system, computer equipment and storage medium
CN113242139A (en) * 2021-03-24 2021-08-10 江铃汽车股份有限公司 Vehicle network signal platform design method
CN113467417A (en) * 2021-06-28 2021-10-01 东风汽车集团股份有限公司 Vehicle test control method, device, equipment and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190304225A1 (en) * 2018-03-28 2019-10-03 Denso International America, Inc. Systems And Methods For Communication Bus Security In A Vehicle
CN113079072A (en) * 2020-01-06 2021-07-06 广州汽车集团股份有限公司 Vehicle data acquisition method and system, computer equipment and storage medium
CN113051112A (en) * 2021-03-16 2021-06-29 北京经纬恒润科技股份有限公司 Method and system for acquiring ECU fault information
CN113242139A (en) * 2021-03-24 2021-08-10 江铃汽车股份有限公司 Vehicle network signal platform design method
CN113467417A (en) * 2021-06-28 2021-10-01 东风汽车集团股份有限公司 Vehicle test control method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN115277773B (en) 2023-09-26

Similar Documents

Publication Publication Date Title
CN110532168B (en) Full-link interface pressure measurement method and device, computer equipment and storage medium
CN110932918B (en) Log data acquisition method and device and storage medium
JP2009017298A (en) Data analysis apparatus
CN113225339B (en) Network security monitoring method and device, computer equipment and storage medium
CN110347694B (en) Equipment monitoring method, device and system based on Internet of things
CN112291724A (en) 5G signaling visualization method and device
CN112395187A (en) Test method, test system, computer device and storage medium
CN113449339A (en) Log collection method, system, computer device and computer readable storage medium
CN103716209A (en) Tunnel concurrent testing system and device
CN112187513A (en) Medical Internet of things cloud platform method and system based on big data and storage medium
CN112241345A (en) PCIE test method, system, terminal and storage medium
CN110177024B (en) Monitoring method of hotspot equipment, client, server and system
CN113886870A (en) Data processing method, device, equipment and storage medium
CN115277773B (en) Whole vehicle message processing method and device, vehicle and storage medium
CN115774707B (en) Object attribute-based data processing method and device, electronic equipment and storage medium
CN104065505A (en) Monitoring System, Monitoring Server And Monitoring Method
CN107172165B (en) Data synchronization method and device
CN111488253A (en) Configuration method, device and system of monitoring equipment and intelligent terminal
CN114915566B (en) Application identification method, device, equipment and computer readable storage medium
CN113485902B (en) Method, device, equipment and computer readable medium for testing service platform
CN114118440A (en) Model iteration method, model iteration device, electronic equipment and computer readable storage medium
CN115001967A (en) Data acquisition method and device, electronic equipment and storage medium
CN114416420A (en) Equipment problem feedback method and system
CN114244726A (en) Visualization method and device for signaling interaction of 5G NR base station
CN110119337B (en) Data analysis method and device and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant