Vehicle information recording and playback method, device, computer equipment and storage medium

By acquiring and screening the vehicle's CAN signals and analog signals in real time, the synchronous recording and playback of vehicle information is realized, solving the problem of signal integration and playback in the existing technology, and improving the efficiency of data processing and monitoring.

CN117792821BActive Publication Date: 2024-09-03镁佳(北京)科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410070627.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-17
Publication Date
2024-09-03
Estimated Expiration
2044-01-17

AI Technical Summary

Technical Problem

Existing technology is difficult to achieve synchronous recording and playback of vehicle information, especially the lack of effective solutions for integrated playback of different types of signals (CAN signals and analog signals).

Method used

By acquiring the CAN signal and analog signal of the vehicle in real time, storing and filtering the signals corresponding to the playback requirement based on the pre-acquired playback requirement information, the integrated playback of the CAN signal and analog signal is realized.

Benefits of technology

It improves the efficiency of data processing and playback, can detect vehicle conditions in real time, provides a data basis for subsequent analysis and data monitoring, and enhances the certainty of vehicle data within a certain period of time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117792821B
    Figure CN117792821B
Patent Text Reader

Abstract

The present invention relates to the field of computer technology, and discloses a vehicle information recording and playback method, device, computer equipment and storage medium. The present invention obtains vehicle information of a vehicle in real time and stores it in a preset position, wherein the vehicle information includes a CAN signal and an analog signal, so as to realize real-time detection of the vehicle status and provide a data basis for subsequent data analysis and playback; the playback CAN signal and the playback analog signal corresponding to the playback demand information are screened according to playback demand information, so as to improve the efficiency of data processing and playback efficiency, and help determine the data of the vehicle within a certain time period; on this basis, the CAN signal and the playback analog signal are played back according to the playback demand information, so that the CAN signal and the analog signal can be integrated together for playback, thereby improving the efficiency of data monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a vehicle information recording and playback method, device, computer equipment and storage medium. Background Art

[0002] The bus messages and analog signals in the actual vehicle signals are important signals for the interaction between the vehicle computer and the vehicle status. The location of some problems in the vehicle computer also requires recording these two types of signals for analysis and setting up a bench environment to playback and reproduce the problems. In the actual vehicle computer system development and version maintenance process, there is a demand for equipment for real vehicle signal collection and playback.

[0003] However, although there are software and hardware support solutions for different types of signal acquisition and playback, there is a relative lack of solutions that are integrated together to support synchronous recording and playback. Summary of the invention

[0004] In view of this, the present invention provides a vehicle information recording and playback method, device, computer equipment and storage medium to solve the problem of difficulty in existing vehicle information recording and playback.

[0005] In a first aspect, the present invention provides a vehicle information recording and playback method, the method comprising:

[0006] Get the vehicle information of the vehicle in real time, including CAN signal and analog signal;

[0007] After storing the CAN signal and the analog signal in a preset position, the playback CAN signal and the playback analog signal corresponding to the playback requirement information are screened according to the pre-acquired playback requirement information;

[0008] According to the playback requirement information, replay the CAN signal and the analog signal.

[0009] Beneficial effect: real-time acquisition of vehicle information of the vehicle and storage in a preset location, wherein the vehicle information includes CAN signals and analog signals, which can realize real-time detection of the vehicle condition and provide a data basis for subsequent data analysis and playback; screening the playback CAN signals and playback analog signals corresponding to the playback demand information according to the playback demand information, thereby improving the efficiency of data processing, improving the playback efficiency, and helping to determine the data of the vehicle within a certain time period; on this basis, according to the playback demand information, playback of CAN signals and playback of analog signals can be performed, and the CAN signals and analog signals can be integrated together for playback, thereby improving the efficiency of data monitoring.

[0010] In an optional implementation, obtaining vehicle information of a vehicle in real time specifically includes:

[0011] Get CAN signals in real time;

[0012] When the analog signal at the current moment and the analog signal at the previous moment are greater than a preset threshold, the analog signal at the current moment is stored;

[0013] When the analog signal at the current moment and the analog signal at the previous moment are less than the preset threshold, the analog signal at the previous moment is used as the analog signal at the current moment.

[0014] In an optional implementation, the CAN signal includes CAN identification information and CAN signal information, the analog signal includes analog identification information and analog signal information, and storing the CAN signal and the analog signal in a preset location specifically includes:

[0015] Store CAN identification information and CAN signal information in the CAN log file;

[0016] Generate an analog quantity storage table according to the analog identification information and the analog signal information;

[0017] Store the CAN log file and analog storage table to the preset location.

[0018] In an optional implementation, the playback requirement information includes CAN playback file identification information and analog playback file identification information, and according to the pre-acquired playback requirement information, the playback CAN signal and the playback analog signal corresponding to the playback requirement information are screened, specifically including:

[0019] According to the identification information of the CAN playback file, the CAN signal corresponding to the identification information of the CAN playback file is selected and played back in the CAN log file;

[0020] According to the analog playback file identification information, the playback analog signal corresponding to the analog playback file identification information is screened in the analog storage table.

[0021] In an optional implementation manner, the playback requirement information further includes playback mode and playback start information. According to the playback requirement information, playback of the CAN signal and playback of the analog signal specifically includes:

[0022] According to the playback start information, determine the start of playback file in the playback CAN signal and the playback analog signal;

[0023] Start playback from the start playback file, playback CAN signal and playback analog signal in playback mode.

[0024] In a second aspect, the present invention provides a vehicle information recording and playback device, the device comprising:

[0025] The information acquisition module is used to acquire the vehicle information of the vehicle in real time, and the vehicle information includes CAN signals and analog signals;

[0026] A screening module is used to store the CAN signal and the analog signal in a preset position, and then screen the playback CAN signal and the playback analog signal corresponding to the playback requirement information according to the pre-acquired playback requirement information;

[0027] The playback module is used to play back CAN signals and analog signals according to playback requirement information.

[0028] In an optional implementation manner, the information acquisition module specifically includes:

[0029] CAN signal acquisition module, used to acquire CAN signals in real time;

[0030] A first analog signal acquisition module, used for storing the analog signal at the current moment when the analog signal at the current moment and the analog signal at the previous moment are greater than a preset threshold;

[0031] The second analog signal acquisition module is used to use the analog signal at the previous moment as the analog signal at the current moment when the difference between the analog signal at the current moment and the analog signal at the previous moment is less than a preset threshold.

[0032] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the vehicle information recording and playback method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0033] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the vehicle information recording and playback method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 is a flow chart of a vehicle information recording and playback method according to an embodiment of the present invention;

[0036] Figure 2is a schematic diagram of a vehicle information recording and playback method according to an embodiment of the present invention;

[0037] Figure 3 is a schematic diagram of a vehicle information recording and playback method according to an embodiment of the present invention;

[0038] Figure 4 is a schematic diagram of a vehicle information recording and playback method according to an embodiment of the present invention;

[0039] Figure 5 is a schematic diagram of a vehicle information recording and playback method according to an embodiment of the present invention;

[0040] Figure 6 is a structural block diagram of a vehicle information recording and playback device according to an embodiment of the present invention;

[0041] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0043] In this embodiment, a vehicle information recording and playback method is provided. Figure 1 Flowchart of a vehicle information recording and playback method according to an embodiment of the present invention. According to an embodiment of the present invention, a vehicle information recording and playback method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and, although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than that here.

[0044] Before introducing the vehicle information recording and playback method, the hardware device applicable to the vehicle information recording and playback method is first introduced. Figure 2 As shown, the hardware device includes a CAN message (supporting FD messages) acquisition and playback hardware module, an analog acquisition module (range as needed), and an analog output module (range as needed); the hardware is connected to a PC host computer via USB or the hardware integrates a lower computer data processing chip and then connected to a PC host computer. The lower computer chip with data processing can support faster data acquisition and playback, solving the frequency requirements of acquisition and playback.

[0045] The recording process of the hardware device needs to be physically connected to the actual vehicle hardware to support data collection; the playback needs to be physically connected to the bench device to support playback; the analog output module does not support load devices, and the playback of analog signals with physical load devices requires a programmable power supply for data playback. For example, the playback of the voltage value of the vehicle computer central control power supply requires a programmable power supply for playback.

[0046] like Figure 1 As shown, the process of the vehicle information recording and playback method includes the following steps:

[0047] Step S101, obtaining vehicle information of the vehicle in real time, the vehicle information including CAN signals and analog signals;

[0048] For example, to obtain vehicle information of a vehicle, specifically, before acquisition, it is necessary to configure the parameters of the corresponding acquisition equipment, control the acquisition switches of multiple CAN and analog quantities, configure the parameters of CAN acquisition, configure the parameters of analog quantities, and configure the compensation value if the physical wiring generates deviations in the analog quantity acquisition values. If the data descriptions of each channel need to be marked, they also need to be configured. The specific parameter configuration can be set according to the specifications of the hardware equipment for collecting information, and the configuration parameters can be configured through the host computer.

[0049] The data collection process involves the collection of CAN signals and analog signals, where the collection of CAN signals includes the data table: IN (identifier describing the data), IN0 (the first analog signal), and IN1 (format).

[0050] IN: three columns of data in, name, vc

[0051] in——the name of the acquisition item, such as CAN1, CAN2...; IN0, IN1..., the specific number is the number of acquisitions of the corresponding hardware module, and the analog quantity corresponds to the number of acquisition pins;

[0052] name——description of the collected data item entered by the user, used for the corresponding data item during playback;

[0053] vc——Analog quantity acquisition wiring. If the difference between the two ends of the wiring occurs due to line resistance, a voltmeter is required to measure and the user must enter the compensation value. This item is empty for CAN data.

[0054] 1. IN*: *The number corresponds to the analog data table of the actual wiring of the acquisition path, supporting voltage or current values. The acquisition range, accuracy, and error depend on the technical parameters of the hardware module itself.

[0055] 2. IN* data header: time, value, sleep

[0056] time——the time of collection (floating point format)

[0057] value——the collected floating point value

[0058] sleep——the time interval relative to the last collection

[0059] In a preferred embodiment, in the above step S101, obtaining the vehicle information of the vehicle in real time specifically includes:

[0060] Get CAN signals in real time;

[0061] When the analog signal at the current moment and the analog signal at the previous moment are greater than a preset threshold, the analog signal at the current moment is stored;

[0062] When the analog signal at the current moment and the analog signal at the previous moment are less than the preset threshold, the analog signal at the previous moment is used as the analog signal at the current moment.

[0063] Exemplarily, the acquisition of analog data is a continuous signal. When the analog data changes too little, it will not cause other impacts. Therefore, data storage can be streamlined and the amount of data storage for long-term monitoring can be optimized.

[0064] Analog data needs to set the change value Δ (preset threshold) to simplify data storage and optimize the data storage capacity for long-term monitoring. For example, if the voltage value is set to 0.01V, data will be recorded only when the change between two collected data is greater than or equal to 0.01, that is, the first collected value is a, and the second collected value is b.

[0065] If |ba|≥Δ, a row of data is written into the corresponding IN* table, and the value of a is replaced by b. The next time data is collected, b is replaced.

[0066] Step S102, after storing the CAN signal and the analog signal in a preset location, according to the pre-acquired playback requirement information, screening the playback CAN signal and the playback analog signal corresponding to the playback requirement information;

[0067] For example, the acquisition and storage process of the CAN signal and analog signal is as follows: Figure 3 shown.

[0068] 1. Set the acquisition configuration: control the acquisition switches of multiple CAN and analog quantities, configure the parameters of CAN acquisition, configure the parameters of analog quantities, and configure the compensation value if the physical wiring generates deviation in the analog quantity acquisition value. If you need to mark the data description of each channel, you also need to configure it.

[0069] 2. After starting recording, the connection will be initialized according to the configuration in the first step and the acquisition will begin. The CAN message data is saved as a BLF log file by default (a separate file for each channel), and the analog data is saved as a SQLite db file (stored in the specified data table format) and named according to the start timestamp.

[0070] 3. Wait for the host computer to trigger the stop and end the recording of the analog quantity db file data table.

[0071] After the CAN signal and the analog signal are stored in the preset location, the signal is played back according to the pre-acquired reply requirement information. When playing back, the playback data and playback method need to be determined.

[0072] In a preferred embodiment, the CAN signal includes CAN identification information and CAN signal information, and the analog signal includes analog identification information and analog signal information. In the above step S102, storing the CAN signal and the analog signal in a preset location specifically includes:

[0073] Store CAN identification information and CAN signal information in the CAN log file;

[0074] Generate an analog quantity storage table according to the analog identification information and the analog signal information;

[0075] Store the CAN log file and analog storage table to the preset location.

[0076] Exemplarily, a database or file system is used to store CAN log files. When CAN data is received, the data is parsed and identification information and signal information are extracted. This information is written into the CAN log file in a certain format (such as CSV, JSON, etc.).

[0077] Based on the analog identification information and analog signal information, use a programming language (such as Python, C++, etc.) to create a data structure (such as a dictionary, list, etc.) to store this information. The analog storage table can be stored as a data structure in memory or written to a file. Store the CAN log file and analog storage table to the preset location:

[0078] Write the CAN log file and analog storage table to the specified file system path or database to ensure the integrity and accuracy of the data during the storage process.

[0079] In a preferred embodiment, the playback requirement information includes CAN playback file identification information and analog playback file identification information. In the above step S102, based on the pre-acquired playback requirement information, the playback CAN signal and the playback analog signal corresponding to the playback requirement information are screened, specifically including:

[0080] According to the identification information of the CAN playback file, the CAN signal corresponding to the identification information of the CAN playback file is selected and played back in the CAN log file;

[0081] According to the analog playback file identification information, the playback analog signal corresponding to the analog playback file identification information is screened in the analog storage table.

[0082] Exemplarily, a string matching or regular expression function in a programming language is used to filter out the corresponding playback CAN signal in the CAN log file according to the given CAN playback file identification information. Each line or record in the log file can be traversed to check whether the identification information matches and extract the relevant CAN signal information.

[0083] To filter and replay analog signals in the analog storage table, you can also use the string matching or data structure search function in the programming language to filter out the corresponding playback analog signals in the analog storage table according to the analog playback file identification information. Traverse the data in the analog storage table, check whether the identification information matches, and extract the relevant analog signal information.

[0084] Use programming languages ​​(such as Python, C++, etc.) to write code to implement the above screening functions. You can use relevant data processing libraries or frameworks (such as Pandas, Boost, etc.) to improve the efficiency and accuracy of the screening process.

[0085] If the amount of filtered data is large, consider loading it into memory for processing to increase processing speed. Make sure the system has sufficient memory resources to handle large amounts of data. During the screening process, consider possible errors or exceptions (such as mismatched identification information, incorrect data format, etc.) and write corresponding error handling code.

[0086] On the host computer interface, the user can view or obtain the filtered playback signal data by inputting or selecting CAN playback file identification information and analog playback file identification information.

[0087] Step S103: Play back the CAN signal and the analog signal according to the playback requirement information.

[0088] For example, Figure 4 This is a schematic diagram of a specific embodiment of the above-mentioned screening and playback signal. When playing back the signal, it is played back with the help of professional bench equipment.

[0089] 1. Edit the original recorded data as needed.

[0090] A. Align the start and end time;

[0091] B. Remove the message data that does not need to be played back in the BLF file.

[0092] 2. Connect the playback device to the central control of the stand.

[0093] 3. Define the playback data and playback times or duration after loading the edit for each playback device.

[0094] 4. Start playback, wait for playback to complete or interrupt playback.

[0095] like Figure 5 FIG. 1 is a schematic diagram showing the operation of the host computer software in a specific embodiment.

[0096] 1. The list on the left shows the recorded data, including the start time of recording. The type of collected data is marked as vol. All analog data is stored in a db file. The CAN mark supports multiple channels starting from 1, indicating the number of CAN signals.

[0097] 2. Basic functions of the list on the left: only single selection can load data, and multiple selection only supports deletion. After loading, the data on the right will be displayed:

[0098] a) Trend chart of multiple analog data starts from IN0, showing the change of data value (i.e., the change curve of voltage value / current value); CAN data shows the change curve of the number of messages / second, and multiple channels start from CAN1;

[0099] b) Data cutting requires a start and end time. In the trend chart, you can drag and drop to select the time period and obtain the start and end time parameters below for data cutting;

[0100] c) Input name is used to describe the information of each data channel. After the data is trimmed and saved, it is used for bench playback. The bench needs data description information to show it to the person who uses the data playback, and to associate the data with the real vehicle hardware;

[0101] d) Data trimming supports the removal of the entire data item, for example: the existing CAN1, CAN2, IN0, IN1 can be removed by checking the setting icon page;

[0102] e) CAN message statistics are in the list on the right side. By checking, you can further streamline the messages in the start and end time periods and remove the message data that does not need to be played back. The message data is a blf file, and other software can also be used to edit the blf file;

[0103] f) The zip packaging icon will start to streamline the original blf and db data according to the set editing rules. After completion, it will be packaged for data uploading to the rig playback platform.

[0104] In a preferred embodiment, the playback requirement information also includes playback mode and playback start information. The above step S103 specifically includes:

[0105] According to the playback start information, determine the start of playback file in the playback CAN signal and the playback analog signal;

[0106] Start playback from the start playback file, playback CAN signal and playback analog signal in playback mode.

[0107] Exemplarily, according to the playback start information (such as timestamp, frame number, etc.), the starting point of the playback file is determined in the screened playback CAN signal and the playback analog signal. The array or list operation in the programming language can be used to find the corresponding starting point according to the start information. Starting from the determined playback file starting point, the screened playback CAN signal is played back according to a given playback mode (such as real-time playback, fast playback, etc.). The loop structure in the programming language can be used to read and send CAN signal data in sequence.

[0108] The vehicle information recording and playback method provided in this embodiment obtains the vehicle information of the vehicle in real time and stores it in a preset location, wherein the vehicle information includes CAN signals and analog signals, which can realize real-time detection of the vehicle condition and provide a data basis for subsequent data analysis and playback; the playback CAN signals and playback analog signals corresponding to the playback demand information are screened according to the playback demand information, thereby improving the efficiency of data processing, improving the playback efficiency, and helping to determine the data of the vehicle within a certain time period; on this basis, the playback CAN signals and playback analog signals are played back according to the playback demand information, and the CAN signals and analog signals can be integrated together for playback, thereby improving the efficiency of data monitoring.

[0109] In this embodiment, a vehicle information recording and playback device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0110] This embodiment provides a vehicle information recording and playback device, such as Figure 6 The device shown comprises:

[0111] The information acquisition module 601 is used to acquire vehicle information of the vehicle in real time, and the vehicle information includes CAN signals and analog signals;

[0112] The screening module 602 is used to screen the playback CAN signal and the playback analog signal corresponding to the playback requirement information according to the pre-acquired playback requirement information after storing the CAN signal and the analog signal in the preset location;

[0113] The playback module 603 is used to play back the CAN signal and the analog signal according to the playback requirement information.

[0114] In some optional implementations, the information acquisition module specifically includes:

[0115] CAN signal acquisition unit, used for acquiring CAN signals in real time;

[0116] A first analog signal acquisition unit, used for storing the analog signal at the current moment when the analog signal at the current moment and the analog signal at the previous moment are greater than a preset threshold;

[0117] The second analog signal acquisition unit is used to use the analog signal at the previous moment as the analog signal at the current moment when the difference between the analog signal at the current moment and the analog signal at the previous moment is less than a preset threshold.

[0118] In some optional implementations, the CAN signal includes CAN identification information and CAN signal information, the analog signal includes analog identification information and analog signal information, and the screening module stores the CAN signal and the analog signal in a preset location, specifically including:

[0119] A CAN storage unit, used for storing CAN identification information and CAN signal information in a CAN log file;

[0120] The analog quantity storage unit is used to generate an analog quantity storage table according to the analog identification information and the analog signal information;

[0121] The storage unit is used to store the CAN log file and the analog quantity storage table to a preset location.

[0122] In some optional implementations, the playback requirement information includes CAN playback file identification information and analog playback file identification information, and the screening module screens the playback CAN signal and the playback analog signal corresponding to the playback requirement information according to the pre-acquired playback requirement information, specifically including:

[0123] A first signal screening unit is used to screen and playback CAN signals corresponding to the CAN playback file identification information in the CAN log file according to the CAN playback file identification information;

[0124] The second signal screening unit is used to screen the playback analog quantity signal corresponding to the analog quantity playback file identification information in the analog quantity storage table according to the analog quantity playback file identification information.

[0125] In some optional implementations, the playback requirement information also includes playback mode and playback start information, and the playback module specifically includes:

[0126] A playback unit is used to determine the start playback file in the playback CAN signal and the playback analog signal according to the playback start information;

[0127] The playback unit is used to play back the CAN signal and the analog signal in playback mode starting from the start playback file.

[0128] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0129] The vehicle information recording and playback device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0130] The embodiment of the present invention also provides a computer device having the above Figure 6 A vehicle information recording and playback device is provided.

[0131] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.

[0132] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0133] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0134] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0135] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0136] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0137] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0138] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A vehicle information recording and playback method, characterized in that: The method comprises: Acquire vehicle information of the vehicle in real time, wherein the vehicle information includes CAN signals and analog signals; After storing the CAN signal and the analog signal in a preset location, screening the playback CAN signal and the playback analog signal corresponding to the playback requirement information according to the pre-acquired playback requirement information; Replay the playback CAN signal and the playback analog signal according to the playback requirement information; The CAN signal includes CAN identification information and CAN signal information, the analog signal includes analog identification information and analog signal information, and storing the CAN signal and the analog signal in a preset location specifically includes: Storing the CAN identification information and the CAN signal information in a CAN log file; Generate an analog quantity storage table according to the analog identification information and the analog signal information; Storing the CAN log file and the analog quantity storage table in a preset location; The playback requirement information includes CAN playback file identification information and analog playback file identification information. The method of screening the playback CAN signal and the playback analog signal corresponding to the playback requirement information according to the pre-acquired playback requirement information specifically includes: According to the CAN playback file identification information, the CAN signal corresponding to the CAN playback file identification information is screened and played back in the CAN log file; the analog data needs to set the change value: the preset threshold △ is used to streamline data storage and optimize the data storage capacity for long-term monitoring; control the acquisition switch of multiple CAN and analog quantities, the parameter configuration of CAN acquisition, the parameter configuration of analog quantities, and the physical wiring needs to configure the compensation value if the analog acquisition value deviation occurs. If the data description of each channel needs to be marked, it also needs to be configured; According to the analog playback file identification information, the playback analog signal corresponding to the analog playback file identification information is screened in the analog storage table.

2. The method according to claim 1, characterized in that The real-time acquisition of vehicle information of the vehicle specifically includes: Acquire the CAN signal in real time; When the analog signal at the current moment and the analog signal at the previous moment are greater than a preset threshold, storing the analog signal at the current moment; When the analog signal at the current moment and the analog signal at the previous moment are less than the preset threshold, the analog signal at the previous moment is used as the analog signal at the current moment.

3. The method according to claim 1, characterized in that The playback requirement information also includes playback mode and playback start information. Playing back the playback CAN signal and the playback analog signal according to the playback requirement information specifically includes: Determine the start of playback of the file in the playback CAN signal and the playback analog signal according to the playback start information; The playback CAN signal and the playback analog signal are played back starting from the start playback file in the playback mode.

4. A vehicle information recording and playback device, characterized in that: The device comprises: An information acquisition module, used for acquiring vehicle information of the vehicle in real time, wherein the vehicle information includes CAN signals and analog signals; A screening module, for screening the playback CAN signal and the playback analog signal corresponding to the playback requirement information according to the pre-acquired playback requirement information after storing the CAN signal and the analog signal in a preset position; A playback module, used for playing back the playback CAN signal and the playback analog signal according to the playback requirement information; The CAN signal includes CAN identification information and CAN signal information, and the analog signal includes analog identification information and analog signal information. The screening module stores the CAN signal and the analog signal in a preset position, specifically including: A CAN storage unit, used for storing CAN identification information and CAN signal information in a CAN log file; The analog quantity storage unit is used to generate an analog quantity storage table according to the analog identification information and the analog signal information; The storage unit is used to store the CAN log file and the analog quantity storage table to a preset location; The playback requirement information includes CAN playback file identification information and analog playback file identification information. The screening module screens the playback CAN signal and the playback analog signal corresponding to the playback requirement information according to the pre-acquired playback requirement information, specifically including: The first signal screening unit is used to screen and replay CAN signals corresponding to the CAN playback file identification information in the CAN log file according to the CAN playback file identification information; the analog data needs to set the change value: the preset threshold △ is used to streamline data storage and optimize the data storage capacity for long-term monitoring; control the acquisition switch of multiple CAN and analog quantities, the parameter configuration of CAN acquisition, the parameter configuration of analog quantities, and the physical wiring. If the analog acquisition value deviation occurs, the compensation value needs to be configured, and if the data description of each channel needs to be marked, it also needs to be configured; The second signal screening unit is used to screen the playback analog quantity signal corresponding to the analog quantity playback file identification information in the analog quantity storage table according to the analog quantity playback file identification information.

5. The device according to claim 4, characterized in that The information acquisition module specifically includes: A CAN signal acquisition unit, used for acquiring the CAN signal in real time; A first analog signal acquisition unit, configured to store the analog signal at the current moment when the analog signal at the current moment and the analog signal at the previous moment are greater than a preset threshold; The second analog signal acquisition unit is used to use the analog signal at the previous moment as the analog signal at the current moment when the difference between the analog signal at the current moment and the analog signal at the previous moment is less than a preset threshold.

6. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the vehicle information recording and playback method according to any one of claims 1 to 3 by executing the computer instructions.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the vehicle information recording and playback method according to any one of claims 1 to 3.