Methods, devices and storage media for playing back vehicle signals
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-13
- Publication Date
- 2026-08-14
AI Technical Summary
[0005]本申请实施例涉及一种车辆信号的回放方法、装置及存储介质,用以解决现有技术中每次解析运行文件,均需要人工导入DBC文件、且需要回放工具解析运行文件中的全部信号,导致车辆信号的回放效率较低的缺陷
[0073]本申请实施例提供一种车辆信号的回放方法、装置及存储介质,该方法中,通过获取车辆在预设时段内产生的运行文件,获取至少一种第一信号类型,向服务器请求获取车辆对应的DBC文件,根据DBC文件和至少一种第一信号类型,对运行文件进行解析处理,得到每种第一信号类型对应的多个信号值,并对每种第一信号类型对应的多个信号值进行回放处理,无需要人工导入DBC文件,而且也无需对运行文件中的全部信号进行解析,提高车辆信号的回放效率。
Smart Images

Figure CN117789331B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of vehicle data analysis, and specifically relates to a method, device and storage medium for playing back vehicle signals. Background Technology
[0002] Currently, when a vehicle malfunctions, it is usually necessary to replay certain vehicle signals to determine the specific cause of the malfunction.
[0003] In related technologies, the process of replaying vehicle signals includes: relevant personnel obtaining the operating file from the vehicle and importing the operating file and the Controller Area Network (CAN) database (DBC) file into a portable playback tool. The playback tool parses all signals in the operating file based on the DBC file to obtain the vehicle signal to be analyzed and replays the vehicle signal for relevant personnel to analyze vehicle faults.
[0004] In the aforementioned technologies, each time a running file is parsed, the DBC file needs to be manually imported, and the playback tool needs to parse all the signals in the running file, resulting in low playback efficiency of vehicle signals. Summary of the Invention
[0005] This application relates to a method, apparatus, and storage medium for playing back vehicle signals, which solves the problem that in the prior art, each time a running file is parsed, a DBC file needs to be manually imported and a playback tool needs to parse all the signals in the running file, resulting in low playback efficiency of vehicle signals.
[0006] In a first aspect, embodiments of this application provide a method for playing back vehicle signals, the method comprising:
[0007] Obtain the operation file generated by the vehicle within a preset time period, the operation file including signal values corresponding to multiple signal types;
[0008] Obtain at least one first signal type;
[0009] Request the server to obtain the controller local area network database (DBC) file corresponding to the vehicle;
[0010] Based on the DBC file and the at least one first signal type, the running file is parsed to obtain multiple signal values corresponding to each first signal type, and the multiple signal values corresponding to each first signal type are replayed.
[0011] In one possible implementation, the runtime file is parsed based on the DBC file and the at least one first signal type to obtain multiple signal values corresponding to each first signal type, including:
[0012] The preset time period is divided into multiple sub-time periods, and a sub-running file corresponding to each sub-time period is determined in the running file;
[0013] Based on the DBC file and the at least one first signal type, each sub-run file is parsed to obtain multiple signal values for each first signal type in each sub-run file;
[0014] For any given first signal type, multiple signal values of the first signal type in each sub-run file are concatenated to obtain multiple signal values corresponding to the first signal type.
[0015] In one possible implementation, for any first signal type and any sub-run file; based on the DBC file and the first signal type, the sub-run file is parsed to obtain multiple signal values of the first signal type in the sub-run file, including:
[0016] Determine the first CAN identifier corresponding to the first signal type;
[0017] In the sub-run file, the first CAN file corresponding to the first CAN identifier is determined, and the sub-run file includes multiple CAN files corresponding to multiple CAN identifiers;
[0018] The first CAN file is parsed and processed according to the DBC file to obtain multiple signal values of the first signal type in the sub-run file.
[0019] In one possible implementation, for any first signal type corresponding to a first CAN file; the step of parsing the first CAN file according to the DBC file to obtain multiple signal values of the first signal type in the sub-run file includes:
[0020] In the first CAN file, multiple signal sequences corresponding to multiple sampling times are determined, and the signal sequences include signal values of multiple signal types;
[0021] Based on the DBC file, determine the signal position of the signal value of the first signal type in the signal sequence;
[0022] Based on the signal position, obtain multiple signal values of the first signal type in the sub-run file from the multiple signal sequences.
[0023] In one possible implementation, before obtaining the running file generated by the vehicle within a preset time period, the method further includes:
[0024] Send a login request to the server, the login request including login information;
[0025] The system receives a login success response from the server, which indicates that the login information has been successfully verified.
[0026] In one possible implementation, requesting the server to obtain the DBC file corresponding to the vehicle includes:
[0027] Obtain the vehicle information of the vehicle;
[0028] Send a DBC file retrieval request to the server, the DBC file retrieval request including the vehicle information;
[0029] Receive the DBC file corresponding to the vehicle information sent by the server.
[0030] In one possible implementation, acquiring at least one first signal type includes:
[0031] The signal selection interface includes multiple selection controls corresponding to signal types and / or at least one selection control corresponding to a set of signal types.
[0032] In response to a selection operation input to at least one selection control, the signal type corresponding to the selected selection control is determined to be the at least one first signal type.
[0033] In one possible implementation, playback processing is performed on multiple signal values corresponding to each first signal type, including:
[0034] For any given first signal type, a signal curve corresponding to the first signal type is generated based on multiple signal values corresponding to the first signal type. The signal curve includes multiple sampling times within the preset time period and the signal value corresponding to each sampling time.
[0035] According to the sampling time alignment method, at least one signal curve corresponding to the at least one first signal type is combined to obtain the target signal curve;
[0036] Display the target signal curve.
[0037] Secondly, embodiments of this application provide a vehicle signal playback device, comprising:
[0038] The first acquisition module is used to acquire the running file generated by the vehicle within a preset time period, wherein the running file includes signal values corresponding to multiple signal types;
[0039] The second acquisition module is used to acquire at least one first signal type;
[0040] The transceiver module is used to request the controller local area network database (DBC) file corresponding to the vehicle from the server;
[0041] The parsing module is used to parse the running file according to the DBC file and the at least one first signal type to obtain multiple signal values corresponding to each first signal type;
[0042] The playback module is used to play back multiple signal values corresponding to each first signal type.
[0043] In one possible implementation, the parsing module is specifically used for:
[0044] The preset time period is divided into multiple sub-time periods, and a sub-running file corresponding to each sub-time period is determined in the running file;
[0045] Based on the DBC file and the at least one first signal type, each sub-run file is parsed to obtain multiple signal values for each first signal type in each sub-run file;
[0046] For any given first signal type, multiple signal values of the first signal type in each sub-run file are concatenated to obtain multiple signal values corresponding to the first signal type.
[0047] In one possible implementation, for any first signal type and any sub-run file, the parsing module is specifically used for:
[0048] Determine the first CAN identifier corresponding to the first signal type;
[0049] In the sub-run file, the first CAN file corresponding to the first CAN identifier is determined, and the sub-run file includes multiple CAN files corresponding to multiple CAN identifiers;
[0050] The first CAN file is parsed and processed according to the DBC file to obtain multiple signal values of the first signal type in the sub-run file.
[0051] In one possible implementation, for any first CAN file corresponding to a first signal type, the parsing module is specifically used for:
[0052] In the first CAN file, multiple signal sequences corresponding to multiple sampling times are determined, and the signal sequences include signal values of multiple signal types;
[0053] Based on the DBC file, determine the signal position of the signal value of the first signal type in the signal sequence;
[0054] Based on the signal position, obtain multiple signal values of the first signal type in the sub-run file from the multiple signal sequences.
[0055] In one possible implementation, before acquiring the running files generated by the vehicle within a preset time period, the transceiver module is further configured to:
[0056] Send a login request to the server, the login request including login information;
[0057] The system receives a login success response from the server, which indicates that the login information has been successfully verified.
[0058] In one possible implementation, the transceiver module is specifically used for:
[0059] Obtain the vehicle information of the vehicle;
[0060] Send a DBC file retrieval request to the server, the DBC file retrieval request including the vehicle information, and receive the DBC file corresponding to the vehicle information sent by the server.
[0061] In one possible implementation, the second acquisition module is specifically used for:
[0062] The signal selection interface is displayed through the display module. The signal selection interface includes selection controls corresponding to multiple signal types and / or selection controls corresponding to at least one set of signal types.
[0063] In response to a selection operation input to at least one selection control, the signal type corresponding to the selected selection control is determined to be the at least one first signal type.
[0064] In one possible implementation, the playback module is specifically used for:
[0065] For any given first signal type, a signal curve corresponding to the first signal type is generated based on multiple signal values corresponding to the first signal type. The signal curve includes multiple sampling times within the preset time period and the signal value corresponding to each sampling time.
[0066] According to the sampling time alignment method, at least one signal curve corresponding to the at least one first signal type is combined to obtain the target signal curve;
[0067] The target signal curve is displayed via a display module.
[0068] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor;
[0069] The memory stores computer-executed instructions;
[0070] The processor executes computer execution instructions stored in the memory to implement the method as described in any of the first aspects.
[0071] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method described in any one of the first aspects.
[0072] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the method described in any one of the first aspects.
[0073] This application provides a method, apparatus, and storage medium for playing back vehicle signals. In this method, by acquiring a running file generated by a vehicle within a preset time period, at least one first signal type is acquired. A DBC file corresponding to the vehicle is requested from a server. Based on the DBC file and at least one first signal type, the running file is parsed to obtain multiple signal values corresponding to each first signal type. The multiple signal values corresponding to each first signal type are then played back. This method eliminates the need for manual import of DBC files and also eliminates the need to parse all signals in the running file, thereby improving the efficiency of vehicle signal playback. Attached Figure Description
[0074] To more clearly illustrate the technical solutions in this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.
[0075] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of this application;
[0076] Figure 2 A flowchart illustrating the vehicle signal playback method provided in this application embodiment;
[0077] Figure 3 A schematic diagram of the target signal curve provided in the embodiments of this application;
[0078] Figure 4 This is a schematic diagram illustrating the process of parsing and processing an executable file, provided in an embodiment of this application.
[0079] Figure 5 This is a schematic diagram of the structure of a sub-running file that determines two sub-time periods in the running file, as provided in an embodiment of this application.
[0080] Figure 6 A schematic diagram of the signal location provided in an embodiment of this application;
[0081] Figure 7 A schematic diagram of the structure of the vehicle signal playback device provided in the embodiments of this application;
[0082] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0083] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0084] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0085] It should be noted that although the terms "first," "second," etc., are used to describe various types of information in the embodiments of this application, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. Optionally, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information.
[0086] It should be understood that the terms "comprising" or "including" indicate the presence of the previously mentioned features, steps, or operations, but do not preclude the presence, occurrence, or addition of one or more other features, steps, or operations. The terms "and / or," etc., used in this application can be interpreted as inclusive, or mean any one or any combination thereof. Optionally, "A and / or B" means "any one of the following: A; B; A and B." Additionally, the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0087] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0088] In related technologies, each time a running file is parsed, the DBC file needs to be manually imported, and the playback tool needs to parse all the signals in the running file, resulting in low playback efficiency of vehicle signals.
[0089] To address the aforementioned technical issues, this application provides a method for playing back vehicle signals. After obtaining the vehicle's running file, the corresponding DBC file for the vehicle is retrieved from the server. The running file is then parsed based on at least one first signal type and the DBC file to obtain the signal value corresponding to the first signal type. This method only requires parsing the relevant information corresponding to the signal type in the running file, eliminating the need to parse all signals in the running file or manually import the DBC file, thereby improving the efficiency of vehicle signal playback.
[0090] Before explaining the vehicle signal playback method provided in this application, let's first combine... Figure 1 The application scenarios of the vehicle signal playback method provided in this application are described.
[0091] Figure 1 This is a schematic diagram illustrating an application scenario provided by an embodiment of this application. For example... Figure 1 As shown, this application scenario may include a vehicle 101, a playback device 102, and a server 103.
[0092] Optionally, the playback device 102 can communicate with the vehicle 101 and the server 103 respectively via a secure communication protocol or an encrypted channel.
[0093] Vehicle 101 may be equipped with a Telematics Box (T-BOX). The T-BOX can be used to acquire CAN signals transmitted on the vehicle's CAN bus and record the CAN signals in the runtime file.
[0094] Server 103 can be used to store the DBC files corresponding to multiple vehicle types.
[0095] The playback device 102 can be used to acquire the signal type, the vehicle's running file, and the DBC file in the server 103, and play back the signal sequence corresponding to the signal type based on the signal type, the DBC file, and the running file.
[0096] The technical solutions shown in this application will now be described in detail through specific embodiments. It should be noted that the following embodiments may exist independently or in combination with each other; for the same or similar content, the description will not be repeated in different embodiments.
[0097] Figure 2 This is a flowchart illustrating the vehicle signal playback method provided in an embodiment of this application. Figure 2 As shown, the method includes:
[0098] S201. Obtain the running file generated by the vehicle within a preset time period. The running file includes signal values corresponding to multiple signal types.
[0099] The execution subject of this application embodiment can be a playback device, or a vehicle signal playback device installed in the playback device. The vehicle signal playback device can be implemented through a combination of software and / or hardware. The following description uses a playback device as the execution subject.
[0100] The executable file can be an American Standard Code for Information Interchange (ASCII) format file, a GZ compressed file of an ASCII format file, a ZIP compressed file of an ASCII format file, or a ZIP compressed file of a GZ compressed file.
[0101] The run file can be used to record the signal sequences transmitted on each CAN bus of the vehicle.
[0102] The runtime file can include the CAN identifiers corresponding to each CAN bus of the vehicle, the sampling times of the signal sequences corresponding to each CAN identifier, and the vehicle signals corresponding to the sampling times of each signal sequence. For example, the runtime file is shown in Table 1.
[0103] Table 1
[0104]
[0105] The signal sequence can include signal values corresponding to various signal types of the vehicle.
[0106] For example, for CAN1, in the case of multiple signal types including vehicle speed and vehicle speed change, the signal sequence 00101101 corresponding to CAN1 includes the signal value 0101 corresponding to vehicle speed and the signal value 0001 corresponding to vehicle speed change.
[0107] Optionally, S201 may include: sending a runtime file retrieval request to the vehicle, the runtime file retrieval request including a preset time period; and receiving a runtime file within the preset time period sent by the vehicle.
[0108] S202, Obtain at least one first signal type.
[0109] At least one first signal type is a signal type for which a detailed analysis of its corresponding signal value is required.
[0110] At least one first signal type is one of the multiple signal types of the aforementioned vehicles.
[0111] Optionally, a signal selection interface is displayed, which includes at least one selection control corresponding to each of the at least one first signal types. After receiving a touch instruction on the selection control corresponding to each of the at least one first signal types, the touch instruction includes the signal type. At least one first signal type is determined according to the touch instruction of the selection control corresponding to each of the at least one first signal types.
[0112] S203. Request the server to obtain the controller local area network database (DBC) file corresponding to the vehicle.
[0113] Alternatively, server 103 can be a cloud server, a server of a distributed system, or a server that incorporates blockchain.
[0114] DBC files are Extensible Markup Language (XML) format files used to define the CAN communication protocol.
[0115] S204. Based on the DBC file and at least one first signal type, parse the running file to obtain multiple signal values corresponding to each first signal type.
[0116] Optionally, S204 may include:
[0117] For each first signal type, the corresponding signal position is determined in the DBC file; multiple signal values at that signal position are obtained from multiple signal sequences in the runtime file to obtain multiple signal values corresponding to the first signal type. Alternatively, a single signal value at that signal position can be obtained from a signal sequence.
[0118] For example, for CAN1 in Table 1, if the first signal type is vehicle speed, and the signal position corresponding to the vehicle speed change is the 5th to 8th bit (from low to high), then the signal value 0101 is obtained from 01010001, and the signal value 1101 is obtained from 11010101.
[0119] S205. Playback processing is performed on multiple signal values corresponding to each first signal type.
[0120] For each type of first signal, the playback processing of multiple signal values corresponding to the first signal type is performed, including: converting each signal value into a decimal encoded signal value, and plotting the multiple decimal encoded signal values according to the sampling time corresponding to each of the multiple signal values to obtain the signal curve corresponding to the first signal type, thereby realizing the playback processing of multiple signal values corresponding to the first signal type.
[0121] The vehicle signal playback method provided in this embodiment obtains the running file generated by the vehicle within a preset time period, obtains at least one first signal type, requests the DBC file corresponding to the vehicle from the server, and parses the running file according to the DBC file and at least one first signal type to obtain multiple signal values corresponding to each first signal type. Then, it performs playback processing on the multiple signal values corresponding to each first signal type. There is no need to manually import the DBC file, and there is no need to parse all the information in the running file. Only the signal values corresponding to the signal type need to be parsed, which improves the playback efficiency of vehicle signals.
[0122] In one possible implementation, before obtaining the running files generated by the vehicle within a preset time period, or before requesting the corresponding DBC file from the server, the method provided in this application further includes:
[0123] Send a login request to the server, which includes login information;
[0124] Receive a login success response from the server. The login success response indicates that the login information has been successfully verified.
[0125] Login information can be user information, such as information about the vehicle owner.
[0126] In this application, the runtime file and the corresponding DBC file for the vehicle can only be obtained after a successful login response, which can prevent the leakage of the runtime file and DBC file and improve the security of the runtime file and DBC file.
[0127] In one possible implementation, S203 may include:
[0128] Obtain vehicle information;
[0129] Send a DBC file retrieval request to the server. The DBC file retrieval request includes vehicle information.
[0130] Receive the DBC file corresponding to the vehicle information sent by the server.
[0131] Vehicle information may include at least one of the following: the name of the vehicle series, the vehicle identification number, and the vehicle model.
[0132] Optionally, obtaining vehicle information includes: receiving vehicle information instructions input by relevant personnel, and obtaining vehicle information from the vehicle information instructions.
[0133] In this application, the DBC file retrieval request includes vehicle information, and the server only sends the DBC file corresponding to the vehicle information to the playback device, which can effectively prevent other DBC files from being leaked to the playback device.
[0134] In one possible implementation, a signal selection interface is displayed, which includes selection controls corresponding to multiple signal types and / or selection controls corresponding to at least one set of signal types.
[0135] In response to a selection operation input to at least one selection control, the signal type corresponding to the selected selection control is determined to be at least one first signal type.
[0136] The signal type set is a custom set of types. For example, the signal type set could be a set of tire signal types. When constructing the tire signal type set, you can configure at least one signal corresponding to the tire in the signal type set. For any one of the at least one signals, you can also configure a corresponding CAN identifier (to indicate which CAN bus the signal belongs to) and a corresponding component identifier (to indicate which component the signal belongs to), etc.
[0137] In this embodiment of the application, the playback device can display a signal selection interface, which includes a selection control. After the selection operation is entered on the selection control, multiple signal values of the signal type corresponding to the selection control can be directly played back without the need for relevant personnel to carry preset tools, thus improving the playback experience and the playback efficiency of vehicle signals.
[0138] In one possible implementation, for any first signal type, S205 may include:
[0139] Based on multiple signal values corresponding to the first signal type, a signal curve corresponding to the first signal type is generated. The signal curve includes multiple sampling times within a preset time period and the signal value corresponding to each sampling time.
[0140] According to the sampling time alignment method, at least one signal curve corresponding to at least one first signal type is combined to obtain the target signal curve;
[0141] Display the target signal curve.
[0142] Optionally, the target signal curve can be displayed in a coordinate system. Figure 3 This is a schematic diagram of the target signal curve provided in an embodiment of this application. Figure 3 As shown, at least one first signal type includes vehicle speed and vehicle speed change. The target signal curves displayed in a coordinate system include the signal curve corresponding to vehicle speed and the signal curve corresponding to vehicle speed change.
[0143] Optionally, at least one signal curve can be displayed in at least one coordinate system. For example, the signal curve corresponding to the vehicle speed can be displayed in one coordinate system, and the signal curve corresponding to the vehicle speed change can be displayed in another coordinate system.
[0144] Optionally, the display order of at least one signal curve can be adjusted, and the interface for displaying the signal curve can be enlarged or reduced.
[0145] Optionally, a tooltip corresponding to the signal curve can be displayed. The tooltip can move with the mouse to a certain position on the interface or be fixed in a blank area of the interface. The tooltip can display at least one of the following: sampling time, signal value, unit of signal, and specific meaning of signal, so as to more intuitively convey the meaning of the signal to relevant personnel and facilitate their guidance.
[0146] Based on the above embodiments, the following combination Figure 4 The execution process of S204 is explained.
[0147] Figure 4 This is a schematic diagram illustrating the process of parsing and processing an executable file, provided as an embodiment of this application. For example... Figure 4 As shown, the method includes:
[0148] S401. Divide the preset time period into multiple sub-time periods, and determine the sub-run file corresponding to each sub-time period in the run file.
[0149] Optionally, the preset time period can be divided into multiple sub-time periods according to a preset number, and the number of multiple sub-time periods is equal to the preset number.
[0150] The preset quantity can be, for example, 2, 3, 4, etc.
[0151] Figure 5 This is a schematic diagram illustrating the structure of a sub-running file that determines two sub-time periods within a running file, as provided in an embodiment of this application. For example... Figure 5 As shown, for example, it includes a running file and two sub-running files. The initial file includes the signal sequences corresponding to the two CAN identifiers (CAN1 and CAN2) at sampling times A1…An and B1…Bn. The two sub-running files include a first sub-running file and a second sub-running file. The first sub-running file corresponds to the sub-time period (A1-An), and the second sub-running file corresponds to the sub-time period (B1-Bn).
[0152] S402. Based on the DBC file and at least one first signal type, parse and process each sub-run file to obtain multiple signal values for each first signal type in each sub-run file.
[0153] In one possible implementation, for any first signal type and any sub-run file, the sub-run file is parsed according to the DBC file and the first signal type to obtain multiple signal values of the first signal type in the sub-run file, including:
[0154] Determine the first CAN identifier corresponding to the first signal type;
[0155] In the sub-run file, the first CAN file corresponding to the first CAN identifier is determined. The sub-run file includes multiple CAN files corresponding to multiple CAN identifiers.
[0156] The first CAN file is parsed and processed based on the DBC file to obtain multiple signal values of the first signal type in the sub-run file.
[0157] The determination of the first CAN identifier corresponding to the first signal type includes: determining the first CAN identifier corresponding to the first signal type according to a pre-stored preset relationship; the preset relationship may include multiple signal types and the CAN identifier corresponding to each signal type.
[0158] Specifically, determining the first CAN file corresponding to the first CAN identifier in the sub-run file includes: determining the CAN file corresponding to the first CAN identifier in multiple CAN files of the sub-run file as the first CAN file.
[0159] For example, the first CAN identifier is CAN1, and the two first CAN files corresponding to CAN1 are as follows: Figure 5 As shown.
[0160] The first CAN file is parsed and processed based on the DBC file to obtain multiple signal values of the first signal type in the sub-run file.
[0161] In one possible implementation, for any first signal type corresponding to a first CAN file; the first CAN file is parsed according to the DBC file to obtain multiple signal values of the first signal type in the sub-run file, including:
[0162] In the first CAN file, multiple signal sequences corresponding to multiple sampling times are determined, and the signal sequences include signal values of multiple signal types;
[0163] Based on the DBC file, determine the signal position of the signal value of the first signal type in the signal sequence;
[0164] Based on the signal location, obtain multiple signal values of the first signal type in the sub-run file from multiple signal sequences.
[0165] For example, if the number of sampling times is n, in Figure 5 Based on this, for CAN1, n signal sequences (including signal sequences 11-1n) are determined in one first CAN file, and n signal sequences (including signal sequences 21-1n) are determined in another first CAN file.
[0166] It should be noted that the DBC file defines the signal type corresponding to each signal position in the signal sequence. Figure 6 This is a structural schematic diagram of the signal location provided in an embodiment of this application. (See attached diagram.) Figure 6 As shown, for example, the signal type corresponding to bits 1 to 4 is defined as vehicle speed change, and the signal type corresponding to bits 5 to 8 is vehicle speed.
[0167] For example, in the case where multiple signal sequences include: 01010001, 01010101, 01010011, 11010001, in Figure 6 Based on this, if the signal type is vehicle speed change, then the multiple signal values of the first signal type in the runtime file include: 0001, 0101, 0011 and 0001.
[0168] S403. For any first signal type, concatenate multiple signal values of the first signal type in each sub-run file to obtain multiple signal values corresponding to the first signal type.
[0169] Optionally, multiple signal values of the first signal type in each sub-run file can be concatenated according to the order of the acquisition times corresponding to the signal values to obtain multiple signal values corresponding to the first signal type.
[0170] In this embodiment, a preset time period is divided into multiple sub-time periods, and a sub-running file corresponding to each sub-time period is determined in the running file. Based on the DBC file and at least one first signal type, each sub-running file is parsed to obtain multiple signal values for each first signal type in each sub-running file, which improves the efficiency of the parsing process. Furthermore, for any first signal type, the multiple signal values of the first signal type in each sub-running file are concatenated to obtain multiple signal values corresponding to the first signal type, which improves the efficiency of obtaining multiple signal values corresponding to the first signal type.
[0171] Figure 7 This is a schematic diagram of the vehicle signal playback device provided in an embodiment of this application. Figure 7 As shown, the vehicle signal playback device includes:
[0172] The first acquisition module 701 is used to acquire the running file generated by the vehicle within a preset time period, wherein the running file includes signal values corresponding to multiple signal types;
[0173] The second acquisition module 702 is used to acquire at least one first signal type;
[0174] The transceiver module 703 is used to request the server to obtain the controller local area network database (DBC) file corresponding to the vehicle;
[0175] The parsing module 704 is used to parse the running file according to the DBC file and the at least one first signal type to obtain multiple signal values corresponding to each first signal type;
[0176] The playback module 705 is used to perform playback processing on multiple signal values corresponding to each first signal type.
[0177] The vehicle signal playback device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0178] In one possible implementation, the parsing module 704 is specifically used for:
[0179] The preset time period is divided into multiple sub-time periods, and a sub-running file corresponding to each sub-time period is determined in the running file;
[0180] Based on the DBC file and the at least one first signal type, each sub-run file is parsed to obtain multiple signal values for each first signal type in each sub-run file;
[0181] For any given first signal type, multiple signal values of the first signal type in each sub-run file are concatenated to obtain multiple signal values corresponding to the first signal type.
[0182] In one possible implementation, for any first signal type and any sub-run file, the parsing module 704 is specifically used for:
[0183] Determine the first CAN identifier corresponding to the first signal type;
[0184] In the sub-run file, the first CAN file corresponding to the first CAN identifier is determined, and the sub-run file includes multiple CAN files corresponding to multiple CAN identifiers;
[0185] The first CAN file is parsed and processed according to the DBC file to obtain multiple signal values of the first signal type in the sub-run file.
[0186] In one possible implementation, for any first CAN file corresponding to a first signal type; the parsing module 704 is specifically used for:
[0187] In the first CAN file, multiple signal sequences corresponding to multiple sampling times are determined, and the signal sequences include signal values of multiple signal types;
[0188] Based on the DBC file, determine the signal position of the signal value of the first signal type in the signal sequence;
[0189] Based on the signal position, obtain multiple signal values of the first signal type in the sub-run file from the multiple signal sequences.
[0190] In one possible implementation, before acquiring the running files generated by the vehicle within a preset time period, the transceiver module 703 is further configured to:
[0191] Send a login request to the server, the login request including login information;
[0192] The system receives a login success response from the server, which indicates that the login information has been successfully verified.
[0193] In one possible implementation, the transceiver module 703 is specifically used for:
[0194] Obtain the vehicle information of the vehicle;
[0195] Send a DBC file retrieval request to the server, the DBC file retrieval request including the vehicle information, and receive the DBC file corresponding to the vehicle information sent by the server.
[0196] In one possible implementation, the second acquisition module 702 is specifically used for:
[0197] The signal selection interface is displayed through the display module. The signal selection interface includes selection controls corresponding to multiple signal types and / or selection controls corresponding to at least one set of signal types.
[0198] In response to a selection operation input to at least one selection control, the signal type corresponding to the selected selection control is determined to be the at least one first signal type.
[0199] In one possible implementation, the playback module 705 is specifically used for:
[0200] For any given first signal type, a signal curve corresponding to the first signal type is generated based on multiple signal values corresponding to the first signal type. The signal curve includes multiple sampling times within the preset time period and the signal value corresponding to each sampling time.
[0201] According to the sampling time alignment method, at least one signal curve corresponding to the at least one first signal type is combined to obtain the target signal curve;
[0202] The target signal curve is displayed via a display module.
[0203] In this embodiment, the display module is also included in the vehicle signal playback device.
[0204] The vehicle signal playback device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0205] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 8 As shown, the electronic device may include: a memory 801, a processor 802, and a transceiver 803.
[0206] Memory 801 is used to store program instructions.
[0207] The processor 802 is used to execute the program instructions stored in the memory to cause the electronic device to perform the above-described method.
[0208] Transceiver 803 may include a transmitter and / or a receiver. The transmitter may also be referred to as a transmitter, transmitter, transmitting port, or transmitting interface, and the receiver may also be referred to as a receiver, receiving port, or receiving interface, etc. Exemplarily, the memory 801, processor 802, and transceiver 803 are interconnected via bus 804.
[0209] This application provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the above-described method.
[0210] This application also provides a computer program product that can be executed by a processor, and when the computer program product is executed, the above-described method can be implemented.
[0211] The vehicle control device, electronic device, computer-readable storage medium, and computer program product of the embodiments of this application can execute the technical solutions shown in the above-described vehicle signal playback method embodiments. Their implementation principles and beneficial effects are similar and will not be repeated here.
[0212] All or part of the steps in the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, it performs the steps of the above-described method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (ROM), random access memory (RAM), flash memory, hard disk, solid-state drive, magnetic tape, floppy disk, optical disc, and any combination thereof.
[0213] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0214] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0215] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0216] Obviously, those skilled in the art can make various modifications and variations to the embodiments of this application without departing from the spirit and scope of this application. Therefore, if these modifications and variations to the embodiments of this application fall within the scope of the claims of this application and their equivalents, this application also intends to include these modifications and variations.
Claims
1. A method for playing back vehicle signals, characterized in that, include: Obtain the operation file generated by the vehicle within a preset time period, the operation file including signal values corresponding to multiple signal types; Acquire at least one first signal type, wherein the at least one first signal type is a subset of the plurality of signal types; Request the server to obtain the controller local area network database (DBC) file corresponding to the vehicle; The preset time period is divided into multiple sub-time periods, and a sub-running file corresponding to each sub-time period is determined in the running file; For any first signal type and any sub-run file, determine the first CAN identifier corresponding to the first signal type, and determine the first CAN file corresponding to the first CAN identifier in the sub-run file. The sub-run file includes multiple CAN files corresponding to multiple CAN identifiers. For any first CAN file corresponding to a first signal type, multiple signal sequences corresponding to multiple sampling times are determined in the first CAN file, and each signal sequence includes signal values of multiple signal types; Based on the DBC file, determine the signal position of the signal value of the first signal type in the signal sequence; Based on the signal position, multiple signal values of the first signal type in the sub-run file are obtained from the plurality of signal sequences; one signal sequence corresponds to one signal value at the signal position. For any given first signal type, multiple signal values of the first signal type in each sub-run file are concatenated to obtain multiple signal values corresponding to the first signal type. Playback processing is performed on multiple signal values corresponding to each first signal type.
2. The method according to claim 1, characterized in that, Before obtaining the running files generated by the vehicle within a preset time period, the method further includes: Send a login request to the server, the login request including login information; The system receives a login success response from the server, which indicates that the login information has been successfully verified.
3. The method according to claim 1, characterized in that, The step of requesting the server to obtain the DBC file corresponding to the vehicle includes: Obtain the vehicle information of the vehicle; Send a DBC file retrieval request to the server, the DBC file retrieval request including the vehicle information; Receive the DBC file corresponding to the vehicle information sent by the server.
4. The method according to claim 1, characterized in that, The acquisition of at least one first signal type includes: The signal selection interface includes multiple selection controls corresponding to signal types and / or at least one selection control corresponding to a set of signal types. In response to a selection operation input to at least one selection control, the signal type corresponding to the selected selection control is determined to be the at least one first signal type.
5. The method according to claim 1, characterized in that, Playback processing is performed on multiple signal values corresponding to each first signal type, including: For any given first signal type, a signal curve corresponding to the first signal type is generated based on multiple signal values corresponding to the first signal type. The signal curve includes multiple sampling times within the preset time period and the signal value corresponding to each sampling time. According to the sampling time alignment method, at least one signal curve corresponding to the at least one first signal type is combined to obtain the target signal curve; Display the target signal curve.
6. A vehicle signal playback device, characterized in that, include: The first acquisition module is used to acquire the running file generated by the vehicle within a preset time period, the running file including signal values corresponding to multiple signal types; The second acquisition module is used to acquire at least one first signal type, wherein the at least one first signal type is a subset of the plurality of signal types; The transceiver module is used to request the controller local area network database (DBC) file corresponding to the vehicle from the server. The parsing module is used to divide the preset time period into multiple sub-time periods and determine the sub-running file corresponding to each sub-time period in the running file; For any first signal type and any sub-run file, determine the first CAN identifier corresponding to the first signal type, and determine the first CAN file corresponding to the first CAN identifier in the sub-run file. The sub-run file includes multiple CAN files corresponding to multiple CAN identifiers. For any first CAN file corresponding to a first signal type, multiple signal sequences corresponding to multiple sampling times are determined in the first CAN file, and each signal sequence includes signal values of multiple signal types; Based on the DBC file, determine the signal position of the signal value of the first signal type in the signal sequence; Based on the signal position, multiple signal values of the first signal type in the sub-run file are obtained from the plurality of signal sequences; one signal sequence corresponds to one signal value at the signal position. For any given first signal type, multiple signal values of the first signal type in each sub-run file are concatenated to obtain multiple signal values corresponding to the first signal type. The playback module is used to perform playback processing on multiple signal values corresponding to each first signal type.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions that, when executed by a processor, are used to implement the method as described in any one of claims 1-5.
8. An electronic device comprising a memory and a processor, characterized in that, The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-5.
9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it is used to implement the method as described in any one of claims 1-5.
Citation Information
Patent Citations
Driving data monitoring system
CN113259214A
Scene playback method and system based on cloud data
CN114844924A