CN115277773B - Whole vehicle message processing method and device, vehicle and storage medium - Google Patents

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

Info

Publication number
CN115277773B
CN115277773B CN202210899986.5A CN202210899986A CN115277773B CN 115277773 B CN115277773 B CN 115277773B CN 202210899986 A CN202210899986 A CN 202210899986A CN 115277773 B CN115277773 B CN 115277773B
Authority
CN
China
Prior art keywords
message
whole vehicle
whole
configuration file
vehicle message
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.)
Active
Application number
CN202210899986.5A
Other languages
Chinese (zh)
Other versions
CN115277773A (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

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 method and a device for processing a whole vehicle message, a vehicle and a storage medium. Comprising the following steps: acquiring a configuration file; acquiring a whole vehicle message to be analyzed according to a 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 time stamp of the first whole vehicle message with the same message identifier; and for the second whole vehicle message with the same message identifier and normal message period, compressing the second whole vehicle message according to the 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 normal message period is compressed, and the compressed message is uploaded or stored, so that the data transmission efficiency is improved.

Description

Whole vehicle message processing method and device, vehicle and storage medium
Technical Field
The present invention relates to the field of vehicle communication technologies, and in particular, to a method and apparatus for processing a vehicle message, a vehicle, and a storage medium.
Background
Along with the increasing functions of the whole vehicle, a lot of whole vehicle data can be generated in the running process of the vehicle, so that the data volume of a vehicle body communication network is larger and larger, the bug of the whole vehicle is larger and larger, and the customer complains about the bug. The common solution is to record and store the whole vehicle data, but for the message data of the vehicle body, the data volume of the message sent by the controller is huge due to the large number of buses of the vehicle body, and the data uploading efficiency is lower.
Therefore, how to ensure the efficiency of data uploading is a problem to be solved.
Disclosure of Invention
The invention provides a whole vehicle message processing method, a whole vehicle message processing device, a vehicle and a storage medium, so as to improve data uploading efficiency.
According to one aspect of the invention, a method for processing a whole vehicle message is provided, which comprises the following steps:
acquiring a configuration file, wherein the configuration file is used for configuring a data range and a storage format of a whole 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 time stamp of the first whole vehicle message with the same message identifier;
and for a second whole vehicle message with the same message identifier and normal message period, compressing the second whole vehicle message according to the data information in the message to obtain a whole vehicle compressed message.
According to another aspect of the present invention, there is provided a whole vehicle message processing apparatus, including:
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 whole vehicle message to be analyzed;
the message generation 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 time stamp of the first whole vehicle message with the same message identifier;
and the message compression module is used for compressing the second whole vehicle message according to the data information in the message to obtain a whole vehicle compression message for the second whole vehicle message with the same message identifier and normal message period.
According to another aspect of the present invention, there is provided a vehicle including:
the system comprises a vehicle-mounted gateway controller, a first controller connected with the vehicle-mounted gateway controller through a CAN bus, a second controller connected with the vehicle-mounted gateway controller through a LIN bus and a third controller connected with the vehicle-mounted gateway controller through an Eth bus;
the first controller is used for sending a CAN type whole vehicle message 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 whole vehicle message to be analyzed to the vehicle-mounted gateway controller through an Eth bus;
the vehicle-mounted gateway controller comprises at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
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 whole vehicle message processing method according to any embodiment of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium, where the computer readable storage medium stores computer instructions, where the computer instructions are configured to cause a processor to implement the whole vehicle message processing method according to any embodiment of the present invention when executed.
According to the technical scheme, 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; and 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 description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for processing a whole vehicle message according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a gateway server connection according to a first embodiment of the present invention;
FIG. 3 is a flowchart of a method for processing a whole vehicle message according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a whole vehicle message processing device according to a third embodiment of the present invention;
fig. 5 is a schematic diagram of a vehicle for implementing a method for processing a whole vehicle message according to a fourth embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, 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 1
Fig. 1 is a flowchart of a method for processing a whole vehicle message according to an embodiment of the present invention, where the method may be performed by a whole vehicle message processing device, and the whole vehicle message processing device may be implemented in hardware and/or software, and the whole vehicle message processing device may be configured in a vehicle. As shown in fig. 1, the method includes:
s110, acquiring a configuration file, wherein the configuration file is used for configuring a data range and a storage format of the whole vehicle message to be analyzed.
The configuration file may be stored in a mobile storage medium, which may be a usb disk in this embodiment, and this embodiment is not particularly limited. The configuration file may include configuration information such as a communication type, a communication number, a filter save type, a message identifier list, and a communication Name, where the communication Name is used when storing the configuration file.
In this embodiment, the mobile storage medium is connected to the vehicle gateway controller through a USB hardware interface, as shown in fig. 2, where the vehicle gateway controller is used as a terminal node for vehicle communication, and is responsible for connecting all controllers and networks on the whole vehicle, and needs to transmit communication information of the CAN/LIN/Eth network. The vehicle-mounted gateway controller is integrated with a saving component which is used for detecting whether a specific cfg file exists in a mobile storage medium or not in real time; after a configuration file is detected by a saving component operated by the gateway controller, resolving the cfg file; after analysis, according to the configuration file described by the cfg file, the communication name ID data specified in the CANController rAREANet (control area network)/LIN (local interconnect protocol)/Eth (Ethernet) network corresponding to the whole vehicle message to be analyzed is stored, and the ID data is stored in a mobile storage medium according to a specific storage format.
The vehicle-mounted gateway controller in the embodiment is provided with a USB interface, and then the internet surfing function of TBox (Telematics) is utilized, and the storage and uploading of the whole vehicle message are completed through a local or remote configuration mode. The configuration modes can be divided into two modes, wherein one mode is that configuration files are directly placed in a USB flash disk through a local USB; another way is to download the configuration file remotely, entering through a cloud download. 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 (TelematicsServiceProvider) platform. Through a local or remote configuration mode, the gateway controller can finish the storage and uploading of the whole vehicle message.
Specifically, when the gateway controller is in an offline state, the user can perform local configuration by placing a configuration file on the usb disk, and the specific steps of the local configuration are as follows: firstly, a user acquires a configuration file through a local PC terminal, secondly, the user can upload a corresponding vehicle encryption configuration file through a PC webpage terminal of a TSP platform, the TSP platform encrypts the acquired configuration file and provides a downloading link, then, after the user acquires the encrypted configuration file, the configuration file is placed in a U disk root directory and is connected with a gateway controller, the gateway controller recognizes that the U disk is inserted and then reads the root directory file, a private key of a certificate in the gateway controller is adopted for decryption, after validity of the configuration file is confirmed, a message recording function is started, finally, in the message recording process, message data is temporarily stored in the flash of the gateway controller, data are transferred into the U disk after 128k (tentative) data are recorded, and encryption is carried out through the private key of the certificate before storage.
Correspondingly, the steps of acquiring local data in this embodiment are as follows: 1. the USB flash disk is directly pulled out, and the encrypted data can be obtained. 2. And uploading the obtained encrypted message data file to the platform through an uploading message Wen Jiemian provided by the page end of the TSP platform. 3. And decrypting the platform message data and providing analysis and viewing functions.
Correspondingly, the remote configuration process is as follows: 1. the platform confirms whether the gateway controller that is operated is the gateway controller that is already in the legal authentication list in the TSP platform. 2. And editing the configuration file at the TSP platform end by a user. 3. The user uploads the configuration file to the platform, and after the platform receives the configuration file, the configuration file is encrypted, and the encryption key is encrypted by adopting a public key in the platform. And issued to the gateway controller. 4. And after the gateway controller receives the configuration file issued by the platform, decrypting by adopting a private key in the certificate in the gateway controller. After the validity 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 the flash of the gateway controller, the data is transferred to the U disk after 128k (temporary) data are recorded, and the data are encrypted by the private key of the certificate before being stored.
Correspondingly, the steps of remotely acquiring data are as follows: the TSP platform issues remotely acquired instructions. 2. After receiving the instruction and verifying the validity of the instruction, the gateway controller starts uploading the data stored in the U disk. The page of the tsp platform provides decryption of data and parsing and viewing functions.
Optionally, S110 may include: carrying out platform validity authentication according to the frame number, the gateway controller serial number and the random code with preset length in the certificate; if the platform legitimacy authentication is passed, acquiring an encrypted configuration file issued by the platform; and decrypting the encrypted configuration file according to the private key in the certificate to obtain the configuration file.
The certificate is a local certificate issued after identity confirmation when the TSP platform and the gateway controller are in communication connection by adopting PKI technology, and the certificate is configured in the gateway controller.
In this embodiment, the platform validity authentication process of the certificate is performed after the gateway controller is started, first, whether the certificate exists needs to be verified, if yes, 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, if yes, the message data is encrypted through a private key in the certificate, and the message data is reported to the TSP platform through the TBox. And then, confirming whether the message comprises a frame number VIN, a gateway controller SN number and a random code 16Byte, if so, decrypting the data by the platform validity authentication through a public key reserved by the platform, confirming whether the vehicle information and the information recorded by the background are correct and valid, recognizing the confirmed message as the gateway controller connected this time as a valid controller, encrypting the 16Byte random code reported by the previous gateway controller through the public key, sending the encrypted 16Byte random code to the gateway controller as a confirmation message of the TSP platform, and finally, decrypting the received feedback information by the gateway controller through a local private key, comparing whether the 16Byte random code is consistent with the previously sent data, if so, judging that the platform is legal by the gateway controller, and normally communicating 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 the private key in the certificate to obtain the configuration file.
In this embodiment, the set storage medium may be a usb disk with a cfg configuration file, when the usb disk is inserted into the vehicle-mounted gateway, the encrypted configuration file under the set directory of the usb disk is obtained, the vehicle-mounted gateway controller detects the correctness of the format of the file in real time, decrypts the encrypted configuration file according to the private key in the certificate to obtain the configuration file, and the vehicle-mounted gateway controller stores the configuration file according to the cfg information.
In the embodiment, the reported and downloaded data are encrypted and decrypted by adopting the secret key in the certificate so as to ensure that the data are not stolen, ensure the privacy of the data and improve the safety 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 whole vehicle message to be analyzed can be a file format stored in the message.
In this embodiment, the storage format may be "GW" + "channel" + "date" + "time". Log, where "GW" is an english abbreviation of Gateway, i.e., gateway. "CANName" is a communication name set in the cfg file in the U disk. The "date" + "time" may be written based on 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 and lin=1, the 3 buses may be recorded and saved in parallel.
Optionally, S120 may include: obtaining a whole vehicle message to be analyzed according to a communication type, a communication number, a filtering and storing type and a 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 time stamp, the message identifier and the data information storage format.
The communication Type CAN be section_type, which CAN be configured as network types such as CAN/LIN/Eth; the communication Number can be Number, and the value range of the Number is 1-255; the filter save Type may be a receive_type, which is used to set the current data filter save Type, such as: configList means filtering according to the message identification list receiveIDList; ALL IDs representing communication types are stored; none indicates that the communication type is not preserved; when set to None and ALL, the message identification list may be empty.
Specifically, when the acquired analysis whole vehicle message is section_type=can, it indicates that the communication Type is CAN, number=1 indicates that the first communication is the first communication (a total of six communication numbers are arranged by 1-6) under the CAN communication Type, name=comfortcan indicates the communication Name (the communication Name may also be comfort_can, info_can, pt_can, etc.), and receival_type=configlist indicates that filtering is performed according to the message identification list, where receival_idlist= {0x101,0x201,0x112} indicates that if the receival_type=configlist is valid, this list is a list of information about the communication Type stored by receiving.
In this embodiment, the time stamp is the time, minute, second and millisecond information of the current time, such as: 09:32:25:187 means that the time for this message data to be acquired by the gateway controller is 09 minutes 25 seconds 187 milliseconds; 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 message data. Therefore, 09:32:25:187, 0x20132399A 19C2BC783A is the first whole vehicle message corresponding to the whole vehicle message to be analyzed.
S130, determining a second whole vehicle message with a normal message period according to the time stamp of the first whole vehicle message with the same message identifier.
In this embodiment, since the timestamp of the first whole vehicle message is accurate to be millisecond, 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 identification, determining whether the time stamp of the same message identification of each frame is within a preset deviation threshold value, and if so, determining the second whole vehicle message with normal message period.
Optionally, S130 may include obtaining a first whole vehicle message set with the same message identifier; acquiring a target first whole vehicle message and a next frame whole vehicle message of the target first whole vehicle message in the first whole vehicle message set according to the time stamp; if the time stamp deviation between the next frame of whole car message and the target first whole car message is smaller than the set deviation threshold value, determining that the first whole car message in the first whole car message set is a second whole car message with a normal message period.
In this embodiment, the first whole vehicle message may be searched according to the same message identifier, whether the timestamp of the same message identifier is greater than 5% may be determined, if the period of the first whole vehicle message is 100ms, then whether the deviation between the timestamp of the next frame and the current frame is within 5% may be detected, if yes, the timestamp of the next frame is approximately considered to be within 95ms-105ms, and the timestamp is not recorded when the subsequent message is reported, so that the storage space of the timestamp is saved, and the timestamp of the subsequent message is 100ms by default, where the message period is the normal second whole vehicle message. In this embodiment, the preset deviation threshold may be flexibly set as required, which is not specifically limited in this embodiment.
And S140, for a second whole vehicle message with the same message identifier and normal message period, compressing the second whole vehicle message according to the 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 identifier and normal message period, reserving the timestamp of the earliest frame of the second whole vehicle message, and deleting the timestamp of the rest second whole vehicle messages in the first whole vehicle message set to obtain a whole vehicle compressed message; and/or for the repeated second whole vehicle message which is continuous and repeated in the second whole vehicle message, the repeated second whole vehicle message is represented 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 message, and the whole vehicle compressed message is obtained; and/or, for the changed second whole vehicle message which is continuous in the second whole vehicle message and has different set data information, representing the changed second whole vehicle message according to the changed byte serial number and the changed data information, and obtaining the whole vehicle compressed message.
And compressing the messages with the same message identification and normal message period, namely deleting the time stamps with the same message identification data in the continuous messages. Compressing the continuous and repeated second whole vehicle message with the starting time, the message identification ID, the data information in the message, the period and the repeated message number, and setting the maximum compressed message data <100 so as to prevent excessive continuous data from generating excessive deviation in time; and continuously setting a changed second whole vehicle message with different data information in the second whole vehicle message, and representing the changed second whole vehicle message according to the changed Byte sequence number and the changed data information, namely, in the continuous message, the same message identifier may only change one Byte of data. According to the changed byte sequence number and the changed byte value, the changed message is represented, and the time stamp and the storage space of the rest bytes can be saved. Recording a byte position corresponding to the data change by using one byte; the changed data is stored in a data format.
According to the embodiment, two configuration modes, namely remote configuration and local configuration, can be provided, so that the collected whole vehicle message can be stored based on a storage format specified by a 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 obtained remotely, and the labor and time cost are saved; and the whole vehicle message with normal cycle 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 whole vehicle message processing method according to a second embodiment of the present invention, where after the step of compressing the second whole vehicle message according to the data information in the message to obtain the whole vehicle compressed message, the method further includes encrypting the whole vehicle non-compressed message and the whole vehicle compressed message. The same terms as those of the above embodiments are not repeated herein. As shown in fig. 3, the method includes:
s310, acquiring a configuration file, wherein the configuration file is used for configuring a data range and a storage format of the whole 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.
S330, determining a second whole vehicle message with a normal message period according to the time stamp of the first whole vehicle message with the same message identifier.
S340, for a second whole vehicle message with the same message identification and normal message period, compressing the second whole vehicle message according to the data information in the message to obtain a whole vehicle compressed message.
S350, determining the first whole vehicle message with the same message identifier and abnormal message period as a whole vehicle non-compressed message.
In this embodiment, the second whole vehicle message with the same message identifier and abnormal message period may also be determined as a whole vehicle non-compressed message.
S360, encrypting the whole vehicle non-compression message and the whole vehicle compression message by adopting a private key in the certificate.
According to the embodiment of the invention, the non-compressed message of the whole vehicle and the compressed message of the whole vehicle are encrypted, so that the data privacy is ensured, and the data safety is further improved.
Example III
Fig. 4 is a schematic structural diagram of a whole vehicle message processing device 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 the whole vehicle message to be analyzed;
the message generating module 402 is configured to obtain a whole vehicle message to be analyzed according to the data range, and generate a first whole vehicle message according to the whole vehicle message to be analyzed and the storage format;
the message determining module 403 is configured to determine, according to the time stamp of the first whole vehicle message with the same identifier of each message, a second whole vehicle message with a normal message period;
the message compression module 404 is configured to compress the second whole vehicle message according to the data information in the message to obtain a whole vehicle compressed message for the second whole vehicle message with the same message identifier and a normal message period.
Optionally, after the message compression module 404, the method further includes:
the non-compressed message determining module is used for determining a first whole vehicle message with the same message identifier and abnormal message period as a whole vehicle non-compressed message;
and the non-compressed message encryption module is used for encrypting the whole vehicle non-compressed message and the whole vehicle compressed message by adopting a private key in the certificate.
Optionally, the file obtaining module 401 includes:
an authentication unit: carrying out platform validity authentication according to the frame number, the gateway controller serial number and the random code with preset length in the certificate; if the platform legitimacy authentication is passed, acquiring an encrypted configuration file issued by the platform;
and the decryption unit decrypts 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 the 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 to be analyzed is obtained according to the communication type, the communication number, the filtering and storing type and the message identification list which are included in the configuration file;
the first whole vehicle message generating unit is used for generating a first whole vehicle message corresponding to the whole vehicle message to be analyzed according to the time stamp, the message identification and the data information storage format.
Optionally, the message determining module 403 includes:
the set determining unit is used for obtaining a first whole vehicle message set with the same message identifier;
the whole vehicle message acquisition unit is used for acquiring a target first whole vehicle message and a next frame whole vehicle message of the target first whole vehicle message in the first whole vehicle message set according to the time stamp;
if the time stamp deviation between the next frame of whole car message and the target first whole car message is smaller than the set deviation threshold value, determining that the first whole car message in the first whole car message set is a second whole car message with a normal message period.
Optionally, the packet compression module 404 includes:
the deleting unit is used for reserving the timestamp of the earliest frame of the second whole vehicle message for the second whole vehicle message with the same message identifier and normal message period, and deleting the timestamp of the rest second whole vehicle messages in the first whole vehicle message set to obtain a whole vehicle compressed message; and/or the number of the groups of groups,
the repeated message acquisition unit is used for continuously and repeatedly repeating the second whole vehicle message in the second whole vehicle message, and representing the repeated 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 message to obtain a whole vehicle compressed message; and/or the number of the groups of groups,
the second whole vehicle message obtaining unit is used for continuously setting a changed second whole vehicle message with different data information in the second whole vehicle message, and representing the changed second whole vehicle message according to the changed byte serial number and the changed data information to obtain a whole vehicle compressed message.
The whole vehicle message processing device provided by the embodiment of the invention can execute the whole 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 IV
Fig. 5 shows a schematic structural diagram of a vehicle 10 that may be used to implement an embodiment of the present invention. Vehicles are 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, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which 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 the 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 may 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 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, etc.; 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 telecommunications 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 specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a whole vehicle message processing method.
In some embodiments, an overall vehicle message processing method may be implemented as a computer program tangibly embodied on 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 onto the vehicle 10 via the ROM12 and/or the communication unit 19. When the computer program is loaded into RAM13 and executed by processor 11, one or more steps of an overall vehicle message handling method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform a whole vehicle message processing method in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above can be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On 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, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out 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 implemented. The computer program may execute entirely on the 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. The 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 portable 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 here can 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 pointing device (e.g., a mouse or a trackball) by which a user can 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 may 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 input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background 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 background, 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. The client and server are typically 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 hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (7)

1. The whole vehicle message processing method 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 whole 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 time stamp of the first whole vehicle message with the same message identifier;
for a second whole vehicle message with the same message identifier and normal message period, compressing the second whole vehicle message according to data information in the message to obtain a whole vehicle compressed message;
the acquiring the configuration file comprises the following steps:
carrying out platform validity authentication according to the frame number, the gateway controller serial number and the random code with preset length in the certificate;
if the platform legitimacy authentication is passed, acquiring an encrypted configuration file issued by the platform;
decrypting the encrypted configuration file according to a private key in the certificate to obtain the configuration file;
the step of obtaining the 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 comprises the following steps:
obtaining a whole vehicle message to be analyzed according to a communication type, a communication number, a filtering and storing type and a message identification list which are included in the configuration file;
generating a first whole vehicle message corresponding to the whole vehicle message to be analyzed according to the time stamp, the message identifier and the data information storage format;
the method for determining the second whole vehicle message with the normal message period according to the time stamp of the first whole vehicle message with the same message identifier comprises the following steps:
acquiring a first whole vehicle message set with the same message identifier;
acquiring a target first whole vehicle message and a next frame whole vehicle message of the target first whole vehicle message in the first whole vehicle message set according to the time stamp;
and if the timestamp deviation of the next frame of whole car message and the target first whole car message is smaller than a set deviation threshold value, determining that the first whole car message in the first whole car message set is a second whole car message with a normal message period.
2. The method of claim 1, further comprising, after compressing the second whole message according to the data information in the message to obtain a whole compressed message:
determining a first whole vehicle message with the same message identifier and abnormal message period as a whole vehicle non-compressed message;
and encrypting the whole vehicle non-compressed message and the whole vehicle compressed message by adopting a private key in the certificate.
3. The method of claim 1, wherein the 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 the private key in the certificate to obtain the configuration file.
4. The method according to claim 1, wherein the compressing the second whole vehicle message according to the data information in the message to obtain the whole vehicle compressed message includes:
for a second whole vehicle message with the same message identifier and normal message period, reserving the timestamp of the earliest frame of the second whole vehicle message, and deleting the timestamp of the rest second whole vehicle messages in the first whole vehicle message set to obtain a whole vehicle compressed message; and/or the number of the groups of groups,
for a repeated second whole vehicle message which is continuous and repeated in the second whole vehicle message, representing the repeated 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 message, and obtaining a whole vehicle compression message; and/or the number of the groups of groups,
and for the changed second whole vehicle message which is continuous in the second whole vehicle message and has different set data information, representing the changed second whole vehicle message according to the changed byte sequence number and the changed data information, and obtaining a whole vehicle compression message.
5. The utility model provides a whole car message processing device which characterized in that 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 whole vehicle message to be analyzed;
the message generation 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 time stamp of the first whole vehicle message with the same message identifier;
the message compression module is used for compressing a second whole vehicle message with the same message identifier and normal message period according to the data information in the message to obtain a whole vehicle compression message;
the authentication unit is used for carrying out platform validity authentication according to the frame number, the gateway controller serial number and the random code with the preset length in the certificate; if the platform legitimacy authentication is passed, acquiring an encrypted configuration file issued by the platform;
the decryption unit is used for decrypting the encrypted configuration file according to the private key in the certificate to obtain the configuration file;
the whole vehicle message to be analyzed is obtained according to the communication type, the communication number, the filtering and storing type and the message identification list which are included in the configuration file;
the first whole vehicle message generating unit is used for generating a first whole vehicle message corresponding to the whole vehicle message to be analyzed according to the time stamp, the message identifier and the data information storage format;
the message determining module comprises:
the set determining unit is used for obtaining a first whole vehicle message set with the same message identifier;
the whole vehicle message acquisition unit is used for acquiring a target first whole vehicle message and a next frame whole vehicle message of the target first whole vehicle message in the first whole vehicle message set according to the time stamp;
if the time stamp deviation between the next frame of whole car message and the target first whole car message is smaller than the set deviation threshold value, determining that the first whole car message in the first whole car message set is a second whole car message with a normal message period.
6. A vehicle, characterized in that the vehicle comprises: the system comprises a vehicle-mounted gateway controller, a first controller connected with the vehicle-mounted gateway controller through a CAN bus, a second controller connected with the vehicle-mounted gateway controller through a LIN bus and a third controller connected with the vehicle-mounted gateway controller through an Eth bus;
the first controller is used for sending a CAN type whole vehicle message 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 whole vehicle message to be analyzed to the vehicle-mounted gateway controller through an Eth bus;
the vehicle-mounted gateway controller comprises at least one processor; and a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the whole vehicle message processing method according to any one of claims 1-4.
7. A computer readable storage medium, wherein the computer readable storage medium stores computer instructions for causing a processor to implement the whole vehicle message processing method according to any one of claims 1 to 4 when 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 CN115277773A (en) 2022-11-01
CN115277773B true 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10706651B2 (en) * 2018-03-28 2020-07-07 Denso International America, Inc. Systems and methods for communication bus security in a vehicle

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN115277773A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
CN110532168B (en) Full-link interface pressure measurement method and device, computer equipment and storage medium
CN111182525A (en) Method and device for storing data
CN113225339B (en) Network security monitoring method and device, computer equipment and storage medium
CN112486878A (en) Vehicle data acquisition and uploading method, device, equipment, storage medium and system
CN113448817A (en) Page screen recording method and device and storage medium
CN115001967B (en) Data acquisition method and device, electronic equipment and storage medium
CN112241345A (en) PCIE test method, system, terminal and storage medium
CN115277773B (en) Whole vehicle message processing method and device, vehicle and storage medium
CN107315672B (en) Method and device for monitoring server
CN113067802A (en) User identification method, device, equipment and computer readable storage medium
CN114915566A (en) Application identification method, device, equipment and computer readable storage medium
CN115314227B (en) Charging pile access authentication method, system and equipment
CN111427923A (en) Vehicle information query method and device based on block chain and storage medium
CN107681749B (en) Identification method and system for safe charging of mobile terminal
CN110673507A (en) Data simulation method and device for Internet of things equipment
CN111488253A (en) Configuration method, device and system of monitoring equipment and intelligent terminal
CN107172165B (en) Data synchronization method and device
CN112559546B (en) Database synchronization method, database synchronization device, computer equipment and readable storage medium
CN112948195B (en) Interface testing method, device, electronic equipment and storage medium
CN114118440A (en) Model iteration method, model iteration device, electronic equipment and computer readable storage medium
CN112463480A (en) ARM architecture-based pressure test method, system, terminal and storage medium
CN116682195A (en) Vehicle data acquisition method, device, equipment and medium
CN111865725B (en) Flow consumption analysis method and system based on log
CN111324586A (en) Image display method and device based on cache, electronic equipment and medium
CN115694874B (en) Vehicle-mounted big data transmission method, system, equipment and medium

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