Vehicle bus data comparison method and device, electronic equipment and storage medium

By quantifying the similarity of signals and load rates in vehicle bus data, the problem of difficulty in analyzing differences between vehicles in automotive R&D has been solved, achieving efficient and reliable bus data comparison and quantifying the differences between vehicles.

CN117493896BActive Publication Date: 2026-11-24GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311391891.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-24
Publication Date
2026-11-24
Estimated Expiration
2043-10-24

AI Technical Summary

Technical Problem

In the process of automobile development, different vehicles of the same model may have slight differences in performance and function due to different sources of controllers. Existing technologies are difficult to efficiently analyze the differences between vehicles, and bus data analysis is costly and cannot quantify similarity.

Method used

By acquiring bus data from two vehicles under target operating conditions, the similarity of signals and load rates is calculated. Signal similarity is measured using signal sequence variation trends and edit distance. Combined with bus channel load rates, bus data similarity is quantified, and the data similarity between vehicles is determined.

Benefits of technology

It improves the reliability and efficiency of vehicle bus data comparison, reduces manual comparison time, and enables the quantification of differences between vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117493896B_ABST
    Figure CN117493896B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, electronic device, and storage medium for comparing vehicle bus data. The method includes: acquiring first bus data of a first vehicle under a target operating condition and second bus data of a second vehicle under the same target operating condition; acquiring signal similarity between signals in the first bus data and signals in the second bus data; acquiring load similarity between load rates of bus channels in the first bus data and load rates of bus channels in the second bus data; and determining data similarity between the first bus data and the second bus data based on the signal similarity and the load similarity. This method compares signal data and load rate data from the bus data of two vehicles, comparing not only vehicle behavior but also vehicle performance, thus improving the reliability of the comparison results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle data analysis technology, and more specifically, to a method, apparatus, electronic device, and storage medium for comparing vehicle bus data. Background Technology

[0002] The development of automobiles is a highly complex process, typically involving multiple manufacturers. Even within the same model, different vehicles may use the same controller from different manufacturers, and different production batches of the same controller may use different chips. This means that even vehicles of the same model may exhibit slight differences in performance and functionality. Furthermore, during the development, production, and use of automobiles, some extremely low-probability and difficult-to-diagnose problems often arise.

[0003] The functionality of a car is achieved through data interaction between various systems within the vehicle, primarily via in-vehicle networks and bus communication protocols. Current automotive network architectures typically employ a multi-layered structure, which makes manual analysis of vehicle differences inefficient. Summary of the Invention

[0004] In view of the above problems, this application proposes a method, apparatus, electronic device and storage medium for comparing vehicle bus data.

[0005] In a first aspect, embodiments of this application provide a method for comparing vehicle bus data. The method includes: acquiring first bus data of a first vehicle under a target operating condition and second bus data of a second vehicle under the target operating condition; acquiring signal similarity between signals in the first bus data and signals in the second bus data; acquiring load similarity between load rates of bus channels in the first bus data and load rates of bus channels in the second bus data; and determining data similarity between the first bus data and the second bus data based on the signal similarity and the load similarity.

[0006] In an optional embodiment, obtaining the signal similarity between the signals in the first bus data and the signals in the second bus data includes: obtaining a first signal sequence corresponding to each signal in the first bus data and a second signal sequence corresponding to each signal in the second bus data, wherein the first signal sequence and the second signal sequence include signal values ​​sorted by time; for each continuous signal in the first bus data and the second bus data, obtaining the similarity between each continuous signal in the first bus data and each continuous signal in the second bus data based on the changing trend of the first signal sequence and the second signal sequence corresponding to each continuous signal, as the similarity corresponding to each continuous signal; for each discrete signal in the first bus data and the second bus data, obtaining the similarity between each discrete signal in the first bus data and each discrete signal in the second bus data based on the signal value change points in the signal values ​​of the first signal sequence and the second signal sequence, as the similarity corresponding to each discrete signal.

[0007] In an optional embodiment, the step of obtaining the similarity between each continuous signal in the first bus data and each continuous signal in the second bus data according to the changing trends of the first signal sequence and the second signal sequence corresponding to each continuous signal, as the similarity corresponding to each continuous signal, includes: segmenting the first signal sequence corresponding to each continuous signal according to the changing trends of the first signal sequence corresponding to each continuous signal to obtain a plurality of first signal sub-sequences corresponding to each continuous signal; segmenting the second signal sequence corresponding to each continuous signal according to the changing trends of the second signal sequence corresponding to each continuous signal to obtain a plurality of second signal sub-sequences corresponding to each continuous signal; aligning the plurality of first signal sub-sequences and the plurality of second signal sub-sequences corresponding to each continuous signal; obtaining the similarity between each aligned first signal sub-sequence and each second signal sub-sequence to obtain a plurality of sub-sequence similarities corresponding to each continuous signal; and determining the similarity corresponding to each continuous signal based on the plurality of sub-sequence similarities corresponding to each continuous signal.

[0008] In an optional embodiment, the step of obtaining the similarity between each discrete signal in the first bus data and each discrete signal in the second bus data based on the signal value change points in the signal values ​​of the first signal sequence and the second signal sequence, as the similarity corresponding to each discrete signal, includes: obtaining a set of first signal value change points in the first signal sequence and a set of second signal value change points in the second signal sequence corresponding to each discrete signal; and determining the similarity corresponding to each discrete signal based on the edit distance between the set of first signal value change points and the set of second signal value change points corresponding to each discrete signal.

[0009] In an optional embodiment, obtaining the load similarity between the load rates of bus channels in the first bus data and the load rates of bus channels in the second bus data includes: obtaining a first load sequence corresponding to each bus channel in the first bus data and a second load sequence corresponding to each bus channel in the second bus data, wherein the first load sequence and the second load sequence include load rates sorted by time; segmenting the first load sequence corresponding to each bus channel according to the changing trend of the first load sequence corresponding to each bus channel to obtain multiple first load sub-sequences corresponding to each bus channel; segmenting the second load sequence corresponding to each bus channel according to the changing trend of the second load sequence corresponding to each bus channel to obtain multiple second load sub-sequences corresponding to each bus channel; aligning the multiple first load sub-sequences and the multiple second load sub-sequences corresponding to each bus channel; for each bus channel, obtaining the similarity between each aligned first load sub-sequence and each second load sub-sequence to obtain the multiple sub-sequence similarity corresponding to each bus channel; and determining the similarity corresponding to each bus channel based on the multiple sub-sequence similarity corresponding to each bus channel.

[0010] In one optional embodiment, the signal similarity includes the similarity corresponding to each signal, the load similarity includes the similarity corresponding to each bus channel, and determining the data similarity between the first bus data and the second bus data based on the signal similarity and the load similarity includes: determining the overall signal similarity between the first bus data and the second bus data according to the signal similarity corresponding to each signal and the signal weight corresponding to each signal; determining the overall load similarity between the first bus data and the second bus data according to the load similarity corresponding to each bus channel and the number of bus channels; and determining the data similarity between the first bus data and the second bus data according to the overall signal similarity, the first similarity weight corresponding to the overall signal similarity, the overall load similarity, and the second similarity weight corresponding to the overall load similarity.

[0011] In an optional embodiment, after determining the data similarity between the first bus data and the second bus data based on the signal similarity and the load similarity, the method further includes: if the data similarity does not reach the data similarity threshold corresponding to the data similarity, determining the difference data type between the first vehicle and the second vehicle according to the signal similarity and the first similarity threshold, and the load similarity and the second similarity threshold; and determining the difference information between the first vehicle and the second vehicle according to the data corresponding to the difference data type.

[0012] Secondly, embodiments of this application provide a vehicle bus data comparison device, the device comprising: a bus data acquisition module, configured to acquire first bus data of a first vehicle under a target operating condition, and second bus data of a second vehicle under the target operating condition; a signal similarity acquisition module, configured to acquire signal similarity between signals in the first bus data and signals in the second bus data; a load similarity acquisition module, configured to acquire load similarity between load rates of bus channels in the first bus data and load rates of bus channels in the second bus data; and a data similarity determination module, configured to determine data similarity between the first bus data and the second bus data based on the signal similarity and the load similarity.

[0013] Thirdly, embodiments of this application provide an electronic device, including: one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more application programs are configured to perform the vehicle bus data comparison method provided in the first aspect above.

[0014] Fourthly, embodiments of this application provide a computer-readable storage medium storing program code, which can be invoked by a processor to execute the vehicle bus data comparison method provided in the first aspect above.

[0015] The solution provided in this application compares the signal data and load rate data in the bus data of the two vehicles, comparing not only the vehicle behavior but also the vehicle performance, thereby improving the reliability of the comparison results, reducing the comparison time consumed by manual comparison, and improving the comparison efficiency of bus data between vehicles. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 A flowchart illustrating a method for comparing vehicle bus data according to an embodiment of this application is shown.

[0018] Figure 2 A flowchart illustrating a method for comparing vehicle bus data according to another embodiment of this application is shown.

[0019] Figure 3 A detailed flowchart of step S203 in another embodiment of this application is shown.

[0020] Figure 4 A trend graph of the first signal sequence provided in another embodiment of this application and a cumulative control graph are shown.

[0021] Figure 5 A schematic diagram of the segmentation of the first signal sequence and the second signal sequence in another embodiment of this application is shown.

[0022] Figure 6 This illustration shows a schematic diagram of the alignment of a subsequence of a first signal sequence with a subsequence of a second signal sequence in another embodiment of this application.

[0023] Figure 7 A detailed flowchart of step S204 in another embodiment of this application is shown.

[0024] Figure 8 A structural block diagram of a vehicle bus data comparison device provided in an embodiment of this application is shown.

[0025] Figure 9A structural block diagram of an electronic device for performing a vehicle bus data comparison method according to an embodiment of the present application is shown. Detailed Implementation

[0026] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0027] The inventors further researched bus data comparison schemes. The target bus data comparison scheme involves collecting vehicle bus data, using mainstream bus analysis equipment such as CANoe and CANalyzer, importing the data into a database file, replaying the collected real-vehicle data logs, and manually analyzing the data obtained through tool parsing to understand vehicle behavior. However, this comparison scheme suffers from high costs due to the expensive bus analysis equipment. Furthermore, the equipment can only determine whether vehicles are similar, but cannot quantify the similarity of their bus data, making it impossible for developers to pinpoint the differences between vehicles.

[0028] In response to the background technology and the aforementioned technical problems, the inventors have proposed a method, device, electronic device, and storage medium for comparing vehicle bus data. By comparing signal data and load rate data from the bus data of two vehicles, the comparison is made not only from the perspective of vehicle behavior but also from the perspective of vehicle performance, thereby improving the reliability of the comparison results, reducing the comparison time consumed by manual comparison, and improving the comparison efficiency of bus data between vehicles.

[0029] Please see Figure 1 , Figure 1 A flowchart illustrating a method for comparing vehicle bus data according to an embodiment of this application is shown. In a specific embodiment, the method for comparing vehicle bus data is applied to, for example... Figure 8 The vehicle bus data comparison device 200 shown, and the electronic device equipped with the vehicle bus data comparison device 200.

[0030] The following will address... Figure 1 The process shown will be described in detail. The method for comparing vehicle bus data may specifically include the following steps:

[0031] Step S110: Obtain the first bus data of the first vehicle under the target operating condition, and the second bus data of the second vehicle under the target operating condition.

[0032] Here, "operating condition" refers to the vehicle's working status. The target operating condition can be a user-specified condition or the vehicle's current operating condition; the specific method for determining the target operating condition is not limited here. An operating condition could be the period from vehicle startup to the vehicle reaching a speed of 100 km / h and driving for 5 minutes.

[0033] Bus data refers to the data exchanged between various components in a vehicle's in-vehicle network. Bus data can be acquired in real-time through multiple sensors, directly from a server or vehicle-side data storage device, or by retrieving log files corresponding to all bus data from a first and second vehicle, parsing these log files using a corresponding database file to obtain the first bus data for the first vehicle and the second bus data for the second vehicle. The database file decodes the raw bus data into physical values ​​or human-readable information. Different bus types use different database file formats. For example, the Controller Area Network (CAN) database file is for the CAN bus, the Logical Data File (LDF) file is for the Local Interconnect Network (LIN) bus, and the Automotive Open Systems Architecture Extensible Markup Language (ARXML) file is for automotive Ethernet. In the embodiments of this application, the preferred method for obtaining bus data is to obtain a log file of bus data and parse the log file using a database file to obtain the first bus data and the second bus data.

[0034] By acquiring bus data of the first and second vehicles under the same target vehicle condition through specific bus data acquisition methods, bus data comparison between the two vehicles can be achieved.

[0035] For example, the target operating condition is that a person enters the vehicle and starts it, then drives for 2 kilometers before stopping and turning off the engine. The vehicle has ten high-speed CAN buses, two LIN buses, and three in-vehicle Ethernet buses. Therefore, it is necessary to collect all data from the ten high-speed CAN buses, two LIN buses, and three in-vehicle Ethernet buses of both the first and second vehicles to be compared under this target operating condition.

[0036] In some implementations, the vehicle bus data comparison method provided in this application can also be used to compare bus data of multiple vehicles to be compared. Before comparing bus data, a reference vehicle needs to be determined. The reference vehicle can be determined from among multiple vehicles to be compared, in which case the remaining vehicles to be compared are compared with the reference vehicle. Alternatively, the user can specify the reference vehicle, in which case all vehicles to be compared need to be compared with the reference vehicle. The reference vehicle can be determined before or after obtaining the bus data of the multiple vehicles to be compared; the method and timing of determining the reference vehicle are not specifically limited here. Determining the reference vehicle first, and then comparing the vehicles to be compared with the reference vehicle, can avoid the confusion of comparison data caused by the absence of a reference vehicle, thereby improving the comparison efficiency of bus data comparison for the vehicles to be compared.

[0037] Step S120: Obtain the signal similarity between the signals in the first bus data and the signals in the second bus data.

[0038] In this context, signals refer to the vehicle's driving intention or status information in the bus data under target operating conditions. Based on their characteristics and application scenarios, signals can be categorized into continuous signals and discrete signals. Continuous signals include, but are not limited to, vehicle speed signals, fuel level signals, and battery level signals. Discrete signals include, but are not limited to, switch signals and status signals. According to bus type, vehicle signals can be classified into bus signals such as CAN bus signals, LIN bus signals, and in-vehicle Ethernet bus signals. No specific classification of signals is limited here.

[0039] Calculating the signal similarity between the first bus data and the second bus data can be done by calculating the similarity of only one type of signal in both the first and second bus data, or by comprehensively calculating the similarity of all types of signals in both the first and second bus data. No specific limitations are imposed on the method for calculating the signal similarity between the first and second bus data.

[0040] By comparing the data from the first bus and the second bus at the signal level, that is, by comparing the driving intention and / or status information of the first and second vehicles under the same target vehicle condition, the differences between the behaviors of the first and second vehicles under the same target vehicle condition can be obtained.

[0041] Step S130: Obtain the load similarity between the load rate of the bus channel in the first bus data and the load rate of the bus channel in the second bus data.

[0042] The load factor refers to the ratio of the actual data transmitted per unit time to the theoretical maximum data volume that can be transmitted in each bus channel. The load factor is used to measure the utilization of the transmission capacity of the bus channel. A higher load factor indicates that the bandwidth of the bus channel is being utilized more fully. However, when the load factor exceeds the bus's carrying capacity, it may lead to problems such as increased transmission latency, performance degradation, or data loss.

[0043] The formula for calculating the load factor is as follows:

[0044]

[0045] The actual amount of data transmitted refers to the amount of data transmitted through the bus channel within a given time period, measured in bits.

[0046] For example, a certain bus channel transmits CAN standard frames at a baud rate of 500Kbps, meaning it can transmit 500 * 1000 = 500,000 bits per second, or 500 bits per ms. The load rate calculation formula for this bus channel is as follows:

[0047]

[0048] Wherein, 111 refers to the actual length of a data frame sent by the CAN standard frame. The actual length includes the start frame (1 bit) + arbitration field (12 bits) + control field (6 bits) + data field (64 bits) + CRC field (16 bits) + ACK field (2 bits) + end of frame (7 bits) + ITM (3 bits) = 111 bits, and n is the number of messages transmitted by a certain bus channel within 1 ms.

[0049] By comparing the similarity between the first bus data and the second bus data in terms of load rate, that is, by comparing the bus performance corresponding to each bus channel to compare the similarity between the first vehicle and the second vehicle under the same target working condition, the comparison error caused by comparing vehicle bus data only from vehicle signals is avoided, and the reliability of the comparison results between the first vehicle and the second vehicle is improved.

[0050] Step S140: Based on the signal similarity and the load similarity, determine the data similarity between the first bus data and the second bus data.

[0051] Specifically, the data similarity between the first bus and the second bus can be calculated by setting the same or different ratios for signal similarity and load similarity, or by configuring the same or different weights for signal similarity and load similarity to calculate the data similarity between the first vehicle and the second vehicle. The method for obtaining data similarity is not specifically limited here and can be customized by the user.

[0052] The solution provided in this application compares the signal data and load rate data in the bus data of two vehicles, comparing not only vehicle behavior but also vehicle performance, thereby improving the reliability of the comparison results, reducing the comparison time consumed by manual comparison, and improving the comparison efficiency of bus data between vehicles.

[0053] Please see Figure 2 , Figure 2 A flowchart illustrating a method for comparing vehicle bus data according to another embodiment of this application is shown. The following will focus on... Figure 2 The process shown will be described in detail. The method for comparing vehicle bus data may specifically include the following steps:

[0054] Step S201: Obtain the first bus data of the first vehicle under the target operating condition, and the second bus data of the second vehicle under the target operating condition.

[0055] For a detailed explanation of step S201, please refer to step S110, which will not be repeated here.

[0056] Step S202: Obtain a first signal sequence corresponding to each signal in the first bus data and a second signal sequence corresponding to each signal in the second bus data, wherein the first signal sequence and the second signal sequence include signal values ​​sorted by time.

[0057] The acquisition of signals in the first bus data and the second bus data can be achieved by directly splitting the log files corresponding to all bus data according to each signal, or by first splitting the log files corresponding to all bus data according to each bus channel, obtaining the log file corresponding to each bus channel, and then parsing the log file of each bus channel to obtain each signal in each bus channel. No specific limitation is made on the method of acquiring signals here.

[0058] After acquiring the signals in the first bus data and the signals in the second bus data, the signal values ​​corresponding to the signals in the first bus data and the signals corresponding to the signals in the second bus data are sorted according to time, thereby obtaining the first signal sequence corresponding to each signal in the first bus data and the second signal sequence corresponding to each signal in the second bus data.

[0059] Step S203: For each continuous signal in the first bus data and the second bus data, based on the changing trends of the first signal sequence and the second signal sequence corresponding to each continuous signal, obtain the similarity between each continuous signal in the first bus data and each continuous signal in the second bus data, and use it as the similarity corresponding to each continuous signal.

[0060] Continuous signals are signals that are continuous in time, meaning they are defined at any point in time. Because continuous signals are defined at any point in time, the similarity between a first signal sequence and a second signal sequence cannot be determined solely by the signal value at a single point in time. Doing so would emphasize the impact of abrupt changes in local signal values, weakening the influence of the overall signal value. Therefore, when using continuous signals to determine the signal similarity between signals in the first and second bus data, the similarity should be obtained by examining the similarity of their signal change trends, thereby capturing the overall similarity of their signal values.

[0061] Optional, please refer to Figure 3 For each continuous signal in the first bus data and the second bus data, based on the changing trends of the first signal sequence and the second signal sequence corresponding to each continuous signal, the similarity between each continuous signal in the first bus data and each continuous signal in the second bus data is obtained, and used as the similarity corresponding to each continuous signal. Specifically, this includes steps S2301 to S2305, which are detailed below:

[0062] Step S2031: Based on the changing trend of the first signal sequence corresponding to each continuous signal, the first signal sequence corresponding to each continuous signal is segmented to obtain multiple first signal sub-sequences corresponding to each continuous signal.

[0063] The trend of change refers to the direction and rate of change of a signal over time at a given point in time. The trend of change of the first signal sequence can be obtained through derivative calculations, differential or Fourier transform calculations, or by first normalizing the first signal sequence and then obtaining the normalized trend. The method of obtaining the trend of change in the embodiments of this application is determined by the user, and no specific limitation is made here.

[0064] Normalization can be achieved by first mapping the signal values ​​of the first signal sequence to the interval [0, 1] to obtain the data points corresponding to the normalized first signal sequence, and then obtaining the changing trend of the first signal sequence based on the mapped data points.

[0065] The mapping formula is:

[0066]

[0067] According to formula (3), the signal values ​​in the first signal sequence are mapped to the interval [0, 1] to reduce the difficulty of calculating the signal values ​​in the first signal sequence in the subsequent calculation.

[0068] The first signal sequence is segmented according to its changing trend. The segmentation method can be to segment with a fixed duration, or to segment with a special signal value as the segmentation point, or to further process the changing trend to obtain the inflection point in the changing trend, and then segment the signal sequence according to the inflection point.

[0069] In the embodiments of this application, the preferred segmentation method is to further process the trend of change according to a preset trend processing method, thereby segmenting the trend of change based on the inflection point of change. The preset trend processing method can be cumulative summation. Cumulative summation uses current and recent data to examine small changes or variability in the process mean, and considers current and recent data as equally important.

[0070] Segmenting the signal sequence using cumulative sums involves: calculating the average value of the first signal sequence; calculating the cumulative sum of each signal value in the first signal sequence based on the average value; calculating the extreme points in the cumulative sum; and segmenting the first signal sequence based on the signal values ​​corresponding to the extreme points.

[0071] The formula for calculating the average value of the first signal sequence is as follows:

[0072]

[0073] Where i is the signal value label in the first signal sequence, and n is the number of signal values ​​in the first signal sequence.

[0074] The average value of the first signal sequence is obtained according to formula (4). Then, the cumulative sum corresponding to each signal value in the first signal sequence is calculated based on the average value. The formula for calculating the cumulative sum is as follows:

[0075]

[0076] Calculate the cumulative sum corresponding to each signal value in the first signal sequence according to formula (5), and obtain the cumulative sum sequence corresponding to the first signal sequence based on the cumulative sum. Determine the sequence extreme points in the cumulative sum sequence based on the cumulative sum sequence, and then divide the first signal sequence according to the signal values ​​in the first signal sequence corresponding to the sequence extreme points. That is, the normalized first signal sequence is X_sets={[x1,…,x i ], [x i+1 , ..., x j ],…,[x k , ..., x M ]}.

[0077] For example, the first signal sequence is X = [x1, x2, ..., xi, ..., xM]. After mapping using formula (3), the normalized first signal sequence X_d = [x1_d, x2_d, ..., xi_d, ..., xM_d] is obtained.

[0078] Please see Figure 4 The trend chart corresponding to the normalized first signal sequence is as follows: Figure 4 (1), the cumulative sum control graph of the normalized first signal sequence is as follows: Figure 4 of (2). Depend on Figure 4 It can be seen that, Figure 4 The curve in (2) has two sequence extrema, p1 and p2. Based on the signal values ​​corresponding to p1 and p2, the normalized first signal sequence is divided into three subsequences: subsequence 1, subsequence 2, and subsequence 3. For details, please refer to [reference needed]. Figure 5 (1)

[0079] Step S2032: Based on the changing trend of the second signal sequence corresponding to each continuous signal, the second signal sequence corresponding to each continuous signal is segmented to obtain multiple second signal sub-sequences corresponding to each continuous signal.

[0080] The specific steps for segmenting the second signal sequence in the embodiments of this application can be found in step S2031, and will not be repeated here. The normalized second signal sequence is Y_sets = {[y1, ..., y...} i ],[y i+1 , ..., y j ],…,[y k , ..., y M ]}.

[0081] For example, the normalized second signal sequence is segmented to obtain Figure 5 The subsequences 1, 2 and 3 corresponding to (2) are.

[0082] Step S2033: Align the plurality of first signal subsequences and the plurality of second signal subsequences corresponding to each continuous signal.

[0083] Aligning multiple first signal subsequences and multiple second signal subsequences corresponding to each continuous signal can avoid data omissions during data comparison, ensuring that the similarity obtained after comparison is more consistent with the actual situation. The comparison method can be based on the position of signal values ​​in the first signal subsequence, the position of signal values ​​in the second signal subsequence, time, or the average value of the signal values ​​in each first signal subsequence and the average value of the signal values ​​in the second signal subsequence. The preferred subsequence alignment method in this embodiment is to align the second signal subsequence whose average value is closest to the average value of the first signal subsequence, or to align the second signal subsequence whose average value is within a preset range of the difference between the average values ​​of the first and second signal subsequences. The specific method and preset range for aligning based on the average values ​​of the signal subsequences are not limited here.

[0084] For example, please see Figure 6 , Figure 6 A schematic diagram of signal subsequence alignment provided in an embodiment of this application is shown. Step S2034: For each continuous signal, obtain the similarity between each aligned first signal subsequence and each second signal subsequence, and obtain multiple subsequence similarities corresponding to each continuous signal.

[0085] The similarity between each aligned first signal subsequence and each second signal subsequence can be obtained through an algorithm or a neural network. No specific limitation is made here regarding the method for calculating the similarity between the aligned first and second signal subsequences. In this embodiment, the Dynamic Time Warping (DTW) algorithm is preferably used to obtain the similarity between the aligned first and second signal subsequences. The DTW algorithm is suitable for sequences of different lengths or with slight time axis offsets. The DTW algorithm mainly achieves maximum similarity by automatically warping the two sequences and performing local scaling alignment on the time axis to make their shapes as consistent as possible. The specific formula for calculating the similarity using the DTW algorithm is shown below:

[0086] D(i,j)=Dist(i,j)+min[D(i-1,j),D(i,j-1),D(i-1,j-1)] (6)

[0087] Where D(i,j) represents the similarity between the current first signal subsequence signal value and the current second signal subsequence signal value, D(i-1,j) represents the similarity between the previous first signal subsequence signal value and the current second signal subsequence signal value, D(i,j-1) represents the similarity between the current first signal subsequence signal value and the previous second signal subsequence signal value, and D(i-1,j-1) represents the similarity between the previous first signal subsequence signal value and the previous second signal subsequence signal value.

[0088] The similarity {d1, d2, ..., dn} between each aligned first signal subsequence and second signal subsequence is calculated according to formula (6). M}

[0089] Step S2035: Determine the similarity of each continuous signal based on the similarity of multiple sub-sequences corresponding to each continuous signal.

[0090] In the embodiments of this application, the formula for determining the similarity of each continuous signal based on the similarity of multiple sub-sequences is as follows:

[0091]

[0092] Where, d i Represents the subsequence similarity value, log1_l i It is the length of the subsequence, and log1_L is the length of the signal sequence corresponding to this type of signal.

[0093] The similarity of each continuous signal is calculated according to formula (7) to obtain the similarity of each continuous signal between the first vehicle and the second vehicle.

[0094] Step S204: For each discrete signal in the first bus data and the second bus data, based on the signal value change points in the signal values ​​of the first signal sequence and the second signal sequence, obtain the similarity between each discrete signal in the first bus data and each discrete signal in the second bus data, and use it as the similarity corresponding to each discrete signal.

[0095] Discrete signals refer to state signals generated at a specific moment. They are only generated when the vehicle or driver performs an action. For example, a switch signal only generates a response when the driver controls the switch button. Therefore, the similarity between a first signal sequence and a second signal sequence can be determined by analyzing the signal values ​​corresponding to a specific signal at a particular point in time, thus using discrete signals to emphasize the impact of sudden changes in local signal values.

[0096] A signal value change point refers to a point in a discrete signal where the signal value of a certain signal is different from the signal value of the previous unit time.

[0097] Optional, please refer to Figure 7 For each discrete signal in the first bus data and the second bus data, based on the signal value change points in the signal values ​​of the first signal sequence and the second signal sequence, the similarity between each discrete signal in the first bus data and each discrete signal in the second bus data is obtained, and used as the similarity corresponding to each discrete signal. Specifically, this includes steps S2401 to S2402, which are described in detail below:

[0098] Step S2041: Obtain the set of first signal value change points in the first signal sequence and the set of second signal value change points in the second signal sequence corresponding to each discrete signal.

[0099] The set of signal value change points refers to the set of signal values ​​corresponding to all change points in the signal sequence, as well as the signal values ​​before the change. It's important to note that if all signal values ​​in the signal sequence are the same, then the set of signal value change points corresponding to that signal value is that single signal value, and this set of signal value change points includes only one signal value.

[0100] Step S2042: Determine the similarity of each discrete signal based on the edit distance between the first set of signal value change points and the second set of signal value change points corresponding to each discrete signal.

[0101] Edit distance refers to the minimum number of single-character edits (insertion, deletion, or replacement) between two sets. In this embodiment, it is used to measure the edit distance between the first set of signal value change points and the second set of signal value change points, and the similarity between the two sets is determined based on the edit distance. The formula for determining similarity based on edit distance is as follows:

[0102]

[0103] Where len(door1_p) represents the length of the first set of signal value change points, and len(door2_p) represents the length of the second set of signal value change points.

[0104] For example, in the first signal sequence, all signal values ​​are 0, and the corresponding set of first signal value change points is {0}. In the second signal sequence, one signal value is 1, and the rest are 0, and the corresponding set of second signal value change points is {0, 1, 0}. By obtaining the edit distance from {0} to {0, 1, 0}, the similarity corresponding to the discrete signal is determined according to formula (8). It should be noted that if there are multiple consecutive identical signal values ​​in the signal sequence, the signal value change point set is only recorded once to reduce the amount of computation.

[0105] Step S205: Obtain the first load sequence corresponding to each bus channel in the first bus data and the second load sequence corresponding to each bus channel in the second bus data, wherein the first load sequence and the second load sequence include load rates sorted by time.

[0106] The methods for obtaining the first load sequence and the second load sequence can refer to the methods for obtaining the signal sequence, and will not be repeated here.

[0107] Step S206: Based on the changing trend of the first load sequence corresponding to each bus channel, the first load sequence corresponding to each bus channel is segmented to obtain multiple first load sub-sequences corresponding to each bus channel.

[0108] Step S207: Based on the changing trend of the second load sequence corresponding to each bus channel, the second load sequence corresponding to each bus channel is segmented to obtain multiple second load sub-sequences corresponding to each bus channel.

[0109] Step S208: Align the plurality of first load subsequences and the plurality of second load subsequences corresponding to each bus channel.

[0110] Step S209: For each bus channel, obtain the similarity between each aligned first load subsequence and each second load subsequence to obtain multiple subsequence similarities corresponding to each bus channel.

[0111] Step S210: Determine the similarity of each bus channel based on the similarity of multiple sub-sequences corresponding to each bus channel.

[0112] For details on the calculation process of obtaining the similarity corresponding to each bus channel, please refer to the calculation process of calculating the similarity corresponding to each signal, which will not be repeated here.

[0113] Step S211: Determine the overall signal similarity between the first bus data and the second bus data based on the signal similarity and signal weight corresponding to each signal.

[0114] In the embodiments of this application, the signal weights can be customized by the user, and no specific limitations are made here.

[0115] The formula for calculating the overall signal similarity can be:

[0116]

[0117] Where ci is the similarity score for each signal, and wi is the weight for each signal. This is the sum of the weights of all types of signals.

[0118] Formula (9) is the formula for calculating the weighted average. When calculating the overall signal similarity, the weighted average method is used to make the calculated overall signal similarity more in line with the actual situation.

[0119] Step S212: Determine the overall load similarity between the first bus data and the second bus data based on the load similarity corresponding to each bus channel and the number of bus channels.

[0120] In the embodiments of this application, the formula for calculating the overall load similarity can be:

[0121]

[0122] Where n is the number of bus channels.

[0123] When calculating the overall load similarity through the load similarity of each bus channel, the load similarity of each bus channel can reflect the performance differences between vehicles. Therefore, the overall load similarity of the bus channel can be calculated by formula (10).

[0124] Step S213: Determine the data similarity between the first bus data and the second bus data based on the overall signal similarity, the first similarity weight corresponding to the overall signal similarity, the overall load similarity, and the second similarity weight corresponding to the overall load similarity.

[0125] The first similarity weight can be the same as or different from the second similarity weight, and both the first and second similarity weights can be set by the user.

[0126] In some implementations, when users only focus on load similarity, the first similarity weight can be set to 0, in which case the calculated data similarity is only related to the load of the bus channel.

[0127] Similarly, when users only focus on signal similarity, the weight of the second similarity is set to 0. In this case, the data similarity is only related to the signal similarity in the bus channel.

[0128] In other embodiments, after determining the data similarity between the first bus data and the second bus data, the method for comparing vehicle bus data further includes, if the data similarity does not reach the data similarity threshold corresponding to the data similarity, determining the difference data type between the first vehicle and the second vehicle based on the signal similarity and the first similarity threshold, and the load similarity and the second similarity threshold; and determining the difference information between the first vehicle and the second vehicle based on the data corresponding to the difference data type.

[0129] The data similarity threshold, the first similarity threshold, and the second similarity threshold can be the same or different, and the specific values ​​are set by the user.

[0130] The data type of difference between the first vehicle and the second vehicle is determined based on the signal similarity and a first similarity threshold, and the load similarity and a second similarity threshold. This can be achieved by determining whether the difference between the signal similarity and the first similarity threshold, and the difference between the load similarity and the second similarity threshold, reaches a threshold difference to determine whether the differing data is signal data or load rate. Alternatively, it can be determined by whether the signal similarity reaches the first similarity threshold or the load similarity reaches a similarity threshold. No specific limitations are made here regarding the difference thresholds or how to determine the data type of difference between the first and second vehicles.

[0131] The discrepancy information includes, but is not limited to, the cause of the discrepancy, the discrepancy data, and the solution.

[0132] The data corresponding to the differential data types is analyzed to determine the differences between the first vehicle and the second vehicle. This analysis can be performed by an analysis program or by an engineer; no specific limitations are specified here regarding how the data corresponding to the differential data types is analyzed.

[0133] For example, the data similarity threshold is 95%, the first similarity threshold is 92%, and the second similarity threshold is 90%. When the data similarity reaches 95%, it is determined that the behavior and performance of the first vehicle and the second vehicle are highly consistent. When the data similarity is less than 95%, it is determined whether the signal similarity reaches 92% and the load similarity reaches 90%. If the signal similarity does not reach 92%, but the load similarity reaches 90%, it is determined that the load rates of the first vehicle and the second vehicle are highly similar, and the difference data type is signal data. Then, the signal data is analyzed to find that the difference data between the vehicles under the same target working condition exists between vehicle speeds, and the cause of this difference is sensor damage and signal reception error. The solution is to replace the sensor.

[0134] When the signal similarity reaches 92% but the load similarity is less than 90%, it is determined that the signal data between the first vehicle and the second vehicle are highly similar, but there is a difference in load rate. Analyzing the load rates of the first and second vehicles can identify the time points where the load rate differences occur. Based on these time points, data loss in the CAN bus channel can be determined. The solution is to restart the corresponding CAN server to initialize the CAN bus channel.

[0135] The solution provided in this application uses the weights corresponding to different data to quantify the similarity of bus data between vehicles. This allows developers to investigate and locate data differences between the two workshops based on the quantified similarity, improving the analysis, investigation, and location of differences between the two workshops. Moreover, no bus analysis equipment is used when comparing bus data between the two workshops, reducing the cost of vehicle bus data analysis.

[0136] Please see Figure 8 This document illustrates a structural block diagram of a vehicle bus data comparison device 200 provided in an embodiment of this application. The vehicle bus data comparison device 200 is applied to an electronic device and includes: a bus data acquisition module 210, used to acquire first bus data of a first vehicle under a target operating condition, and second bus data of a second vehicle under the same target operating condition; a signal similarity acquisition module 220, used to acquire the signal similarity between signals in the first bus data and signals in the second bus data; a load similarity acquisition module 230, used to acquire the load similarity between the load rates of bus channels in the first bus data and the load rates of bus channels in the second bus data; and a data similarity determination module 240, used to determine the data similarity between the first bus data and the second bus data based on the signal similarity and the load similarity.

[0137] In some embodiments of this application, the signal similarity acquisition module 220 includes: a signal sequence acquisition module, configured to acquire a first signal sequence corresponding to each signal in the first bus data and a second signal sequence corresponding to each signal in the second bus data, wherein the first signal sequence and the second signal sequence include signal values ​​sorted by time; a continuous signal similarity acquisition module, configured to, for each continuous signal in the first bus data and the second bus data, acquire the similarity between each continuous signal in the first bus data and each continuous signal in the second bus data based on the changing trend of the first signal sequence and the second signal sequence corresponding to each continuous signal, and use this as the similarity corresponding to each continuous signal; and a discrete signal similarity acquisition module, configured to, for each discrete signal in the first bus data and the second bus data, acquire the similarity between each discrete signal in the first bus data and each discrete signal in the second bus data based on the signal value change points in the signal values ​​of the first signal sequence and the second signal sequence, and use this as the similarity corresponding to each discrete signal.

[0138] In some embodiments of this application, the continuous signal similarity acquisition module includes: a first signal subsequence acquisition module, used to segment the first signal sequence corresponding to each continuous signal according to the changing trend of the first signal sequence corresponding to each continuous signal, to obtain a plurality of first signal subsequences corresponding to each continuous signal; a second signal subsequence acquisition module, used to segment the second signal sequence corresponding to each continuous signal according to the changing trend of the second signal sequence corresponding to each continuous signal, to obtain a plurality of second signal subsequences corresponding to each continuous signal; an alignment module, used to align the plurality of first signal subsequences and the plurality of second signal subsequences corresponding to each continuous signal; a subsequence similarity acquisition module, used to acquire the similarity between each aligned first signal subsequence and each second signal subsequence for each continuous signal, to obtain a plurality of subsequence similarities corresponding to each continuous signal; and a continuous signal similarity determination module, used to determine the similarity corresponding to each continuous signal based on the plurality of subsequence similarities corresponding to each continuous signal.

[0139] In some embodiments of this application, the discrete signal similarity acquisition module includes: a change point set acquisition module, used to acquire a first signal value change point set in a first signal sequence and a second signal value change point set in a second signal sequence corresponding to each discrete signal; and a discrete signal similarity determination module, used to determine the similarity corresponding to each discrete signal based on the edit distance between the first signal value change point set and the second signal value change point set corresponding to each discrete signal.

[0140] In some embodiments of this application, the load similarity acquisition module 230 includes: a load sequence acquisition module, configured to acquire a first load sequence corresponding to each bus channel in the first bus data and a second load sequence corresponding to each bus channel in the second bus data, wherein the first load sequence and the second load sequence include load rates sorted by time; a first load subsequence acquisition module, configured to segment the first load sequence corresponding to each bus channel according to the changing trend of the first load sequence corresponding to each bus channel to obtain multiple first load subsequences corresponding to each bus channel; and a second load subsequence acquisition module, configured to segment the first load sequence corresponding to each bus channel according to the changing trend of the first load sequence corresponding to each bus channel to obtain multiple first load subsequences corresponding to each bus channel; and a second load subsequence acquisition module, configured to segment the first load sequence corresponding to each bus channel according to the changing trend of the first load sequence corresponding to each bus channel. The load sequence is divided into two parts based on the changing trend of the load sequence. The second load sequence corresponding to each bus channel is segmented to obtain multiple second load sub-sequences corresponding to each bus channel. A load sequence alignment module is used to align the multiple first load sub-sequences and multiple second load sub-sequences corresponding to each bus channel. A load sub-sequence similarity acquisition module is used to obtain the similarity between each aligned first load sub-sequence and each second load sub-sequence for each bus channel, thus obtaining multiple sub-sequence similarities corresponding to each bus channel. A load similarity determination module is used to determine the similarity corresponding to each bus channel based on the multiple sub-sequence similarities.

[0141] In some embodiments of this application, the data similarity determination module 240 includes: an overall signal similarity acquisition module, configured to determine the overall signal similarity between the first bus data and the second bus data based on the signal similarity corresponding to each signal and the signal weight corresponding to each signal; an overall load similarity acquisition module, configured to determine the overall load similarity between the first bus data and the second bus data based on the load similarity corresponding to each bus channel and the number of bus channels; and a data similarity determination module, configured to determine the data similarity between the first bus data and the second bus data based on the overall signal similarity, the first similarity weight corresponding to the overall signal similarity, the overall load similarity, and the second similarity weight corresponding to the overall load similarity.

[0142] In some embodiments of this application, the vehicle bus data comparison device 200 further includes: a difference data type determination module, configured to determine the difference data type between the first vehicle and the second vehicle based on the signal similarity and a first similarity threshold, and the load similarity and a second similarity threshold, if the data similarity does not reach the data similarity threshold corresponding to the data similarity; and a difference information acquisition module, configured to determine the difference information between the first vehicle and the second vehicle based on the data corresponding to the difference data type.

[0143] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0144] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.

[0145] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0146] Please refer to Figure 9 This document illustrates a structural block diagram of an electronic device provided in an embodiment of this application. The electronic device 100 can be a switch, a computer, or a control unit with data transmission capabilities. The electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs. The one or more application programs may be stored in the memory 120 and configured to be executed by one or more processors 110. The one or more programs are configured to perform the methods described in the foregoing method embodiments.

[0147] Processor 110 may include one or more processing cores. Processor 110 connects to various parts within the electronic device 100 using various interfaces and lines, and performs various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets, or instruction sets stored in memory 120, and by calling data stored in memory 120. Optionally, processor 110 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 110 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into processor 110 and may be implemented separately using a communication chip.

[0148] The memory 120 may include random access memory (RAM) or read-only memory (ROM). The memory 120 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created by the electronic device 100 during use (such as phonebook data, audio and video data, chat log data, etc.).

[0149] This application also provides a computer-readable storage medium storing program code, which can be called by a processor to execute the methods described in the above method embodiments.

[0150] Computer-readable storage media can be electronic storage devices such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, computer-readable storage media includes non-transitory computer-readable storage medium. The computer-readable storage medium has storage space for program code that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code can be compressed, for example, in a suitable form.

[0151] In summary, the solution provided in this application compares the signal data and load rate data in the bus data of the two vehicles, comparing not only vehicle behavior but also vehicle performance, thereby improving the reliability of the comparison results, reducing the comparison time consumed by manual comparison, and improving the comparison efficiency of bus data between vehicles.

[0152] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for comparing vehicle bus data, characterized in that, The method includes: Acquire the first bus data of the first vehicle under the target operating condition, and the second bus data of the second vehicle under the target operating condition; The method of obtaining signal similarity between signals in the first bus data and signals in the second bus data includes: obtaining a first signal sequence corresponding to each signal in the first bus data and a second signal sequence corresponding to each signal in the second bus data, wherein the first signal sequence and the second signal sequence include signal values ​​sorted by time; for each continuous signal in the first bus data and the second bus data, obtaining the similarity between each continuous signal in the first bus data and each continuous signal in the second bus data based on the changing trend of the first signal sequence and the second signal sequence corresponding to each continuous signal, and using this as the similarity corresponding to each continuous signal; and for each discrete signal in the first bus data and the second bus data, obtaining the similarity between each discrete signal in the first bus data and each discrete signal in the second bus data based on the signal value change points in the signal values ​​of the first signal sequence and the second signal sequence, and using this as the similarity corresponding to each discrete signal. Obtaining the load similarity between the load rates of bus channels in the first bus data and the load rates of bus channels in the second bus data, the process includes: obtaining a first load sequence corresponding to each bus channel in the first bus data and a second load sequence corresponding to each bus channel in the second bus data, wherein the first load sequence and the second load sequence include load rates sorted by time; segmenting the first load sequence corresponding to each bus channel according to the changing trend of the first load sequence corresponding to each bus channel to obtain the load similarity between each bus channel and the second load sequence corresponding to each bus channel. The system identifies multiple first load subsequences corresponding to each bus channel; based on the changing trend of the second load sequence corresponding to each bus channel, it segments the second load sequence corresponding to each bus channel to obtain multiple second load subsequences corresponding to each bus channel; it aligns the multiple first load subsequences and multiple second load subsequences corresponding to each bus channel; for each bus channel, it obtains the similarity between each aligned first load subsequence and each second load subsequence to obtain the similarity of multiple subsequences corresponding to each bus channel; and it determines the similarity of each bus channel based on the similarity of the multiple subsequences corresponding to each bus channel. Based on the signal similarity and the load similarity, the data similarity between the first bus data and the second bus data is determined. The signal similarity includes the similarity corresponding to each continuous signal and the similarity corresponding to each discrete signal. The load similarity includes the similarity corresponding to each bus channel.

2. The method according to claim 1, characterized in that, For each continuous signal in the first bus data and the second bus data, the similarity between each continuous signal in the first bus data and each continuous signal in the second bus data is obtained based on the changing trends of the first signal sequence and the second signal sequence corresponding to each continuous signal, and is used as the similarity corresponding to each continuous signal, including: Based on the changing trend of the first signal sequence corresponding to each continuous signal, the first signal sequence corresponding to each continuous signal is segmented to obtain multiple first signal sub-sequences corresponding to each continuous signal; Based on the changing trend of the second signal sequence corresponding to each continuous signal, the second signal sequence corresponding to each continuous signal is segmented to obtain multiple second signal sub-sequences corresponding to each continuous signal; Align the plurality of first signal subsequences and the plurality of second signal subsequences corresponding to each continuous signal; For each continuous signal, the similarity between each aligned first signal subsequence and each second signal subsequence is obtained, thus obtaining multiple subsequence similarities corresponding to each continuous signal; The similarity of each continuous signal is determined based on the similarity of multiple sub-sequences corresponding to each continuous signal.

3. The method according to claim 1, characterized in that, For each discrete signal in the first bus data and the second bus data, the similarity between each discrete signal in the first bus data and each discrete signal in the second bus data is obtained based on the signal value change points in the signal values ​​of the first signal sequence and the second signal sequence, and is used as the similarity corresponding to each discrete signal, including: Obtain the set of first signal value change points in the first signal sequence and the set of second signal value change points in the second signal sequence for each discrete signal; The similarity of each discrete signal is determined based on the edit distance between the first set of signal value change points and the second set of signal value change points corresponding to each discrete signal.

4. The method according to claim 1, characterized in that, The signal similarity includes the similarity corresponding to each signal, and the load similarity includes the similarity corresponding to each bus channel. Determining the data similarity between the first bus data and the second bus data based on the signal similarity and the load similarity includes: Based on the signal similarity and signal weight corresponding to each signal, the overall signal similarity between the first bus data and the second bus data is determined; Based on the load similarity corresponding to each bus channel and the number of bus channels, the overall load similarity between the first bus data and the second bus data is determined; The data similarity between the first bus data and the second bus data is determined based on the overall signal similarity, the first similarity weight corresponding to the overall signal similarity, the overall load similarity, and the second similarity weight corresponding to the overall load similarity.

5. The method according to any one of claims 1-4, characterized in that, After determining the data similarity between the first bus data and the second bus data based on the signal similarity and the load similarity, the method further includes: If the data similarity does not reach the data similarity threshold corresponding to the data similarity, the difference data types between the first vehicle and the second vehicle are determined based on the signal similarity and the first similarity threshold, and the load similarity and the second similarity threshold. Based on the data corresponding to the difference data type, the difference information between the first vehicle and the second vehicle is determined.

6. A device for comparing vehicle bus data, characterized in that, The apparatus includes a functional module that implements the method as described in any one of claims 1-5.

7. An electronic device, characterized in that, include: One or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to perform the method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains program code that can be invoked by a processor to execute the method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Communication system and communication method

    CN103580911A

  • Vehicle data flow test system and method

    CN111610771A