Vehicle fault data acquisition method and device, vehicle and medium
By determining the optimal data acquisition time in vehicle failure data acquisition, the problems of storage resource consumption and flexibility caused by large data volume in the prior art are solved, and efficient and accurate fault data acquisition is achieved.
Patent Information
- Application Number
- CN202411264508.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-11-15
AI Technical Summary
The existing vehicle failure data collection methods have increased storage resource consumption due to large amounts of data, poor flexibility, and it is difficult to meet the needs of efficient and accurate data collection.
By obtaining the current time when the target vehicle failure occurs and the preset data processing model, the target time is determined, and fault data is collected from the target vehicle based on the target time, the optimal data acquisition time is used to improve the acquisition accuracy, reduce the amount of data, and save storage space.
It significantly improves the accuracy and efficiency of fault data acquisition, reduces the waste of storage resources, and meets the flexibility, accuracy and efficient collection of vehicle fault data.
Smart Images

Figure CN118968655A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle fault data processing, and in particular to a vehicle fault data collection method, device, vehicle and medium. Background Art
[0002] At present, after a century of development, the traditional fuel automobile industry technology has become very complex, and the vehicle has made great progress in power performance, space size, driving comfort and safety configuration compared with the past. The electrification technology marked by the three electrics of new energy vehicles and the intelligent technology marked by intelligent driving are booming, and the structure of the internal and external systems of the car is becoming more and more sophisticated and the logic is becoming more and more complex. The vehicle-side data system composed of the CAN (Controller Area Network) bus, various sensor controllers, storage devices and communication devices can realize the real-time collection of signal data of various vehicle controllers, and send the vehicle signal data to the cloud data receiving terminal through storage and forwarding equipment.
[0003] In practical applications, it is inevitable that vehicles will break down during driving. Therefore, faced with a massive amount of fault data, how to efficiently collect and process vehicle fault data has become a difficult task that must be solved. If the data at the time of the fault can be collected accurately and comprehensively, with the support of subsequent big data analysis algorithms and artificial intelligence technology, the traditional inefficient post-fault analysis and maintenance can be transformed into pre-predictive maintenance or a more accurate troubleshooting and maintenance process.
[0004] Based on this, major automobile host manufacturers have basically realized the way of collecting vehicle signal data in the cloud, that is, to achieve vehicle-cloud interconnection by setting up a car-connected big data platform. However, the existing car-cloud data collection and processing still have certain defects. For example, setting a fixed period to collect data, although the processing method is simple, due to the large amount of data, the periodic data collection method will occupy a huge storage space, and the memory generally uses the differential storage method when storing data, which will inevitably cause data loss, and then cause the problem of key fault data loss. In addition, considering that it is impossible to judge whether the collected data is useful data or interference data, in order to meet the needs of subsequent fault diagnosis and troubleshooting, the existing technology generally adopts a full-volume collection method, but this type of method will also lead to a great waste of storage resources. Therefore, the problem of how to collect and better utilize fault data is essentially to balance the collection efficiency, storage performance, data accuracy, and completeness, and it is necessary to find a more flexible, accurate and effective collection method. Summary of the invention
[0005] In view of this, the present invention provides a vehicle fault data collection method, device, vehicle and medium to solve the problem raised in the above technical background that the consumption of data storage resources increases due to the large amount of collected data, which makes the existing fault data collection method have poor flexibility and difficult to meet the needs of efficient and accurate data collection.
[0006] In a first aspect, the present invention provides a vehicle fault data collection method, the method comprising:
[0007] Get the current time when the target vehicle failure occurs;
[0008] Determine the target duration based on the current time and a preset data processing model, the preset data processing model is used to output the optimal data collection duration;
[0009] Corresponding fault data is collected from the target vehicle based on the target duration.
[0010] The present invention determines the target duration based on the current time when the target vehicle fault occurs and a preset data processing model, and collects corresponding fault data from the target vehicle based on the target duration. The data collection duration is optimally outputted by the preset data processing model, which can make the accuracy of fault data collection higher. It not only significantly reduces the amount of data collection to a certain extent, avoids the huge waste of storage resources, and thus saves a lot of storage space, but also meets the needs of accurate, flexible and efficient collection of vehicle fault data.
[0011] In an optional implementation, the target duration includes a first duration and a second duration, wherein the first duration is a duration for collecting fault data corresponding to the current moment when the fault occurs, and the second duration is a duration for collecting fault data corresponding to the current moment when the fault occurs; determining the target duration based on the current moment and a preset data processing model includes:
[0012] Input the current time into the built preset data processing model for calculation, and output the optimal first duration and second duration accordingly;
[0013] The first duration and the second duration are summed to obtain the current data collection duration, and the current data collection duration is determined as the target duration.
[0014] The present invention calculates by inputting the current moment into a preset data processing model, and outputs the optimal duration of the corresponding fault data before the current moment and the duration of the corresponding fault data after the current moment, and obtains the target duration based on the sum of the two. This can ensure the calculation accuracy of the target duration, and thus help improve the accuracy of subsequent vehicle fault data collection.
[0015] In an optional implementation, the process of constructing the preset data processing model includes:
[0016] Collecting historical pending fault data messages, wherein the historical pending fault data messages at least include fault signal data, signal generation time, and fault occurrence time;
[0017] Arrange the signal generation times corresponding to all fault signal data in a time sequence relationship;
[0018] Calculate the first duration and the second duration respectively according to the arranged fault signal data and the fault occurrence time;
[0019] A preset data processing model is constructed based on the first duration, the second duration, and the corresponding fault occurrence time.
[0020] The present invention constructs a preset data processing model by collecting historical to-be-processed fault data messages containing fault signal data, signal generation time and fault occurrence time, which can improve the output accuracy of the preset data processing model and ensure the accuracy, flexibility and effectiveness of vehicle fault data collection to a certain extent.
[0021] In an optional implementation, respectively calculating the first duration and the second duration according to the arranged fault signal data and the fault occurrence time includes:
[0022] Sequentially acquiring transition signals from the arranged fault signal data according to a time sequence relationship, wherein the fault signal data includes at least one transition signal;
[0023] Determine the first signal generation time corresponding to the first jump signal, and calculate the first duration according to the first signal generation time and the fault occurrence time;
[0024] The second signal generation time corresponding to the last jump signal is determined, and the second duration is calculated according to the second signal generation time and the fault occurrence time.
[0025] The present invention detects jump signals on fault signal data arranged in a time sequence, and respectively calculates the first duration and the second duration according to the jump signal detection result, so that the solution accuracy of the first duration and the second duration is more reasonable, which improves the accuracy and efficiency of vehicle fault data collection to a certain extent, helps to save a lot of storage space, and meets the needs of efficient and accurate data collection.
[0026] In an optional implementation, the historical to-be-processed fault data message further includes fault source information. Before sequentially acquiring the jump signal from the arranged fault signal data according to the time sequence relationship, the vehicle fault data collection method further includes:
[0027] Determine whether the fault source information is the same;
[0028] If they are the same, then the step of obtaining the jump signal in sequence from the arranged fault signal data according to the time sequence relationship is executed;
[0029] If they are not the same, the arranged fault signal data are classified based on the fault source information to obtain fault signal data corresponding to different fault types, and the steps of obtaining jump signals in sequence from the arranged fault signal data according to the timing relationship are performed for each fault type of fault signal data.
[0030] The present invention takes into account the actual vehicle fault data type, designs a determination of whether the fault source information is the same in the first duration and the second duration calculation process, and executes the corresponding calculation method according to the determination result, which can greatly improve the construction accuracy of the preset data processing model, thereby ensuring the accuracy and efficiency of the subsequent flexible collection of vehicle fault data.
[0031] In an optional implementation, after collecting corresponding fault data from the target vehicle based on the target duration, the vehicle fault data collection method further includes:
[0032] Obtain the current fault data message corresponding to the fault data collected by the target vehicle;
[0033] The preset data processing model is optimized based on the current fault data message, and an optimized preset data processing model is obtained accordingly.
[0034] The present invention optimizes the preset data processing model through the current fault data message, which can improve the construction accuracy of the preset data processing model, not only ensuring the accuracy, flexibility and effectiveness of vehicle fault data collection, but also significantly reducing the amount of data collection, greatly saving data storage space, and meeting the needs of efficient and accurate data collection.
[0035] In an optional implementation, before obtaining the current time when the target vehicle fault occurs, the vehicle fault data collection method further includes:
[0036] Detect whether there is fault signal data of the target vehicle;
[0037] If so, executing the step of obtaining the current time when the target vehicle failure occurs;
[0038] If not, return to the step of detecting whether the target vehicle has fault signal data.
[0039] By detecting the fault signal data of the target vehicle, the present invention can sense the vehicle fault situation in real time and respond in time, and then collect corresponding fault data for analysis and processing by relevant personnel, which helps to ensure the normal operation of the target vehicle.
[0040] In a second aspect, the present invention provides a vehicle fault data collection device, the device comprising:
[0041] An acquisition module is used to obtain the current time when the target vehicle failure occurs;
[0042] A determination module, used to determine the target duration based on the current time and a preset data processing model, wherein the preset data processing model is used to output an optimal data collection duration;
[0043] The acquisition module is used to collect corresponding fault data from the target vehicle based on the target duration.
[0044] The vehicle fault data acquisition device of the present invention determines the target duration through the current time when the target vehicle fault occurs and a preset data processing model, and collects corresponding fault data from the target vehicle based on the target duration, which can achieve the optimal output of the data acquisition duration, making the fault data acquisition more accurate, significantly reducing the data collection amount to a certain extent, avoiding the huge waste of storage resources, saving data storage space, and at the same time meeting the requirements for accurate, flexible and efficient acquisition of vehicle fault data.
[0045] In a third aspect, the present invention provides a vehicle, comprising a controller, the controller comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes a vehicle fault data collection method according to the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0046] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute a vehicle fault data collection method according to the first aspect or any corresponding embodiment thereof.
[0047] The vehicle fault data collection method and device of the present invention optimally outputs the data collection duration based on the current time when the target vehicle fault occurs and a preset data processing model, thereby obtaining the target duration and collecting corresponding fault data from the target vehicle based thereon. This not only significantly reduces the amount of data collection to a certain extent, avoids a huge waste of storage resources, and saves a large amount of storage space, but also meets the requirements for accurate, flexible and efficient collection of vehicle fault data. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 is a flow chart of a vehicle fault data collection method according to an embodiment of the present invention;
[0050] Figure 2 is a flow chart of another vehicle fault data collection method according to an embodiment of the present invention;
[0051] Figure 3 It is a flow chart of vehicle fault data collection;
[0052] Figure 4 It is a flowchart of cloud fault data processing;
[0053] Figure 5 is a structural block diagram of a vehicle fault data acquisition device according to an embodiment of the present invention;
[0054] Figure 6 It is a schematic diagram of the structure of a controller of a vehicle according to an embodiment of the present invention. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0056] An embodiment of the present invention provides an embodiment of a vehicle fault data collection method. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0057] In this embodiment, a vehicle fault data collection method is provided. Figure 1 FIG. 1 is a flow chart of a vehicle fault data collection method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0058] Step S101, obtaining the current time when the target vehicle failure occurs.
[0059] In actual applications, when a vehicle fails, the vehicle's fault information, such as the time when the fault occurred, can be obtained through the Unified Diagnostic Services (UDS). It should be noted that UDS is used for fault diagnosis and services of the vehicle ECU (Electronic Control Unit), including reading fault codes, controlling diagnostic sessions, security access, communication control and other functions. Specifically, the UDS protocol allows the diagnostic instrument to connect to the OBD (On-Board Diagnostics) port to read the diagnostic trouble code (DTC) to help maintenance personnel determine the root cause of the problem and repair the fault, thereby improving maintenance efficiency and accuracy. Among them, DTC is generated by each ECU built into the car to indicate a fault or abnormality in the engine, transmission system or other systems; when a vehicle fails, the corresponding ECU will record a DTC and display it to the driver through the warning light on the dashboard (such as the check engine light).
[0060] In this embodiment, the specific method of obtaining the current time is not limited here, and is adaptively adjusted based on the actual vehicle and project requirements. For example, when a target vehicle fails, the corresponding DTC is read to obtain the current time when the failure occurs.
[0061] Step S102, determining the target duration based on the current time and a preset data processing model, where the preset data processing model is used to output an optimal data collection duration.
[0062] In actual applications, relevant practical results show that signal data related to the fault will appear in a period of time before and after the fault occurs; in the non-fault time period, they are all normal signal data. Therefore, setting the data acquisition nodes before and after the fault occurs (that is, the data acquisition duration) can make the collected fault data more accurate. However, the existing full-volume acquisition method or fixed-duration acquisition method has many defects, such as excessively large amounts of data and large consumption of storage resource space, which makes it difficult to meet the flexible, accurate and effective acquisition requirements of fault data. In this embodiment, taking into account the various types of faults generated by different controllers, the optimal data acquisition duration is output by constructing a preset data processing model, so that any controller can obtain a more suitable acquisition duration for itself, so as to increase the flexibility and effectiveness of the acquisition method.
[0063] Step S103, collecting corresponding fault data from the target vehicle based on the target duration.
[0064] In this embodiment, only the fault data corresponding to the target duration is obtained, which can greatly reduce the amount of data collection and thus improve the accuracy and efficiency of data collection.
[0065] The vehicle fault data collection method of the embodiment of the present invention optimizes the data collection duration by outputting the target duration based on the current moment of the target vehicle fault and the preset data processing model, and collects the corresponding fault data from the target vehicle based on the target duration. This can make the fault data collection more accurate, significantly reduce the amount of data collection, avoid the huge waste of storage resources, and save a lot of storage space; at the same time, it also meets the requirements for accurate, flexible and efficient collection of vehicle fault data.
[0066] In this embodiment, a vehicle fault data collection method is provided. Figure 2 FIG. 1 is a flow chart of another vehicle fault data collection method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0067] Step S201, obtaining the current time when the target vehicle failure occurs.
[0068] It should be noted that in actual applications, once a vehicle fails, a fault signal will be generated accordingly. In order to ensure the normal operation of the target vehicle, a detection process for the fault signal data of the target vehicle is designed in this embodiment. Specifically, before obtaining the current moment when the target vehicle fails, the vehicle fault data collection method of this embodiment also includes:
[0069] Step A1, detecting whether there is fault signal data of the target vehicle.
[0070] In this embodiment, the specific detection method of the fault signal data is not limited here, and is adaptively adjusted based on actual needs, such as detecting whether there is fault signal data through the automobile fault self-diagnosis system, which is only used as an exemplary description.
[0071] Step A2: If it exists, execute the step of obtaining the current time when the target vehicle failure occurs.
[0072] Step A3: If not, return to the step of detecting whether the target vehicle has fault signal data.
[0073] In the embodiment of the present invention, by detecting the fault signal data of the target vehicle, the vehicle fault situation can be perceived in real time and responded to in a timely manner, and then the corresponding fault data can be collected for analysis and processing by relevant personnel, which greatly ensures the normal operation of the target vehicle.
[0074] Step S202, determining the target duration based on the current time and a preset data processing model, where the preset data processing model is used to output an optimal data collection duration.
[0075] In this embodiment, the target duration includes a first duration and a second duration, wherein the first duration is the duration of collecting the corresponding fault data before the current moment when the fault occurs, and the second duration is the duration of collecting the corresponding fault data after the current moment when the fault occurs.
[0076] Specifically, the target duration is determined based on the current time and the preset data processing model in the above step S202, including:
[0077] Step S2021, input the current moment into the constructed preset data processing model for calculation, and output the optimal first duration and second duration accordingly.
[0078] In this embodiment, the construction process of the preset data processing model includes:
[0079] Step B1, collecting historical to-be-processed fault data messages, wherein the historical to-be-processed fault data messages at least include fault signal data, signal generation time, and fault occurrence time.
[0080] Step B2, arranging the signal generation times corresponding to all fault signal data in a time sequence.
[0081] Step B3, respectively calculating the first duration and the second duration according to the arranged fault signal data and the fault occurrence time.
[0082] Specifically, the above step B3 includes:
[0083] Step B31, sequentially obtaining transition signals from the arranged fault signal data according to a time sequence relationship, wherein the fault signal data includes at least one transition signal.
[0084] It should be noted that in the field of signal processing, a jump signal refers to a signal that undergoes a sudden change at a certain moment or under certain conditions. This change may be caused by a variety of factors, including changes in the signal source, external interference, or changes in system characteristics. In different application scenarios, the concept and application method of the jump signal are adaptively adjusted.
[0085] In practical applications, since there are many types of vehicle fault data, including different types of ECUs, it is necessary to calculate the optimal fault data collection time for each ECU separately. Therefore, before obtaining the jump signal in sequence from the arranged fault signal data according to the time sequence relationship, the vehicle fault data collection method of this embodiment also includes:
[0086] Step C1, determining whether the fault source information is the same.
[0087] It should be noted that the fault data messages generated by different ECUs will correspondingly identify the information of the fault source controller to determine whether the fault data types are the same. Specifically, in this embodiment, the historical fault data message to be processed also includes fault source information.
[0088] Step C2: if they are the same, then execute the step of obtaining the jump signal in sequence from the arranged fault signal data according to the time sequence relationship.
[0089] Step C3: If they are not the same, classify the arranged fault signal data based on the fault source information to obtain fault signal data corresponding to different fault types, and execute the step of obtaining the jump signal in sequence from the arranged fault signal data according to the timing relationship for each fault type of fault signal data.
[0090] In the embodiment of the present invention, the actual vehicle fault data type is taken into consideration, and a determination of whether the fault source information is the same is designed in the first duration and the second duration calculation process, and a corresponding calculation method is executed according to the determination result, which can greatly improve the construction accuracy of the preset data processing model, thereby ensuring the accuracy and efficiency of the subsequent flexible collection of vehicle fault data.
[0091] Step B32, determining the time when the first signal corresponding to the first jump signal is generated, and calculating the first duration according to the time when the first signal is generated and the time when the fault occurs.
[0092] It should be noted that the first duration in this embodiment is determined by the difference between the time when the fault occurs and a certain time corresponding to the time before the occurrence, wherein the initial value of a certain time can be set according to the actual project requirements, and then continuously optimized according to the accumulation of fault data to obtain the optimal collection time, and then obtain the corresponding first duration.
[0093] Step B33, determining the second signal generation time corresponding to the last jump signal, and calculating the second duration according to the second signal generation time and the fault occurrence time.
[0094] It should be noted that the second duration in this embodiment is determined by the difference between the fault occurrence moment and a certain moment corresponding to the fault occurrence moment, wherein the relevant description of the certain moment can be found in the previous text and will not be repeated here.
[0095] In the embodiment of the present invention, by detecting jump signals of fault signal data arranged in a time sequence, and calculating the first time length and the second time length respectively according to the jump signal detection results, the solution accuracy of the first time length and the second time length is made more reasonable, which improves the accuracy and efficiency of vehicle fault data collection to a certain extent, helps to save a lot of storage space, and meets the needs of efficient and accurate data collection.
[0096] Step B4, constructing a preset data processing model based on the first duration, the second duration and the corresponding fault occurrence time.
[0097] In the embodiment of the present invention, a preset data processing model is constructed by collecting historical fault data messages to be processed that include fault signal data, signal generation time, and fault occurrence time. This can improve the output accuracy of the preset data processing model and, to a certain extent, ensure the accuracy, flexibility, and effectiveness of vehicle fault data collection.
[0098] Step S2022: sum the first duration and the second duration to obtain the current data collection duration, and determine the current data collection duration as the target duration.
[0099] In the embodiment of the present invention, the preset data processing model constructed by inputting the current moment is calculated, and the optimal duration of the corresponding fault data before the current moment and the duration of the corresponding fault data after the current moment are output accordingly, and the target duration is obtained based on the sum of the two. This can ensure the calculation accuracy of the target duration, thereby helping to improve the accuracy of subsequent vehicle fault data collection.
[0100] Step S203: collecting corresponding fault data from the target vehicle based on the target duration.
[0101] It should be noted that since the preset data processing model is constructed based on historical data, in order to improve the model's adaptability to new data, the model can be optimized using the current collected data to improve the accuracy of the model output. Therefore, the vehicle fault data collection method of this embodiment, after collecting the corresponding fault data from the target vehicle based on the target duration, also includes:
[0102] Step D1, obtaining the current fault data message corresponding to the fault data collected by the target vehicle.
[0103] Step D2, optimizing the preset data processing model based on the current fault data message, and obtaining the optimized preset data processing model.
[0104] In the embodiment of the present invention, the preset data processing model is optimized through the current fault data message, which can improve the construction accuracy of the preset data processing model, not only ensuring the accuracy, flexibility and effectiveness of vehicle fault data collection, but also significantly reducing the amount of data collection, greatly saving data storage space, and meeting the needs of efficient and accurate data collection.
[0105] In a specific embodiment, a vehicle fault data collection system is proposed, which integrates the vehicle fault data collection method of this embodiment. It should be noted that since the vehicle fault data collection method of this embodiment mainly includes two parts: data collection and processing, the above system includes a vehicle-side data collection module and a cloud-side data processing module.
[0106] In this embodiment, Figure 3 This is the vehicle fault data collection flow chart. Figure 3 The data acquisition module is mainly used for the collection of vehicle fault data. The specific collection process includes:
[0107] 1) Initialize the data collection cycle and duration.
[0108] In this embodiment, the fault data collection cycle is mainly initialized, and the collection time of the data before and after the fault data generation node is set. The initial collection time is generally set according to industry experience, and the value of the time is set to range from 10 seconds to 5 minutes. Specifically, the collection cycle is set according to the commonly used signal cycle collection frequency in the industry, such as 100ms; the collection time is obtained based on the conventional detection and positioning method of fault occurrence in this field, that is, the fault occurrence time node is set to t0, the collection time before the node is set to tb, and the collection time after the node occurs is set to ta; the vehicle's operating data is sampled according to the above sampling cycle.
[0109] 2) Detect the fault and record the time when the fault occurs. According to the set collection time of the previous and subsequent data, extract the data of the corresponding time period and send the data to the fault data processing server.
[0110] In this embodiment, the vehicle data is sampled for the first time, and the time point when the fault data is generated is recorded. Specifically, the vehicle fault code (DTC) is used as the flag bit of the fault generation. When the fault data is detected, the time point t0 when the fault data is generated is recorded; data is intercepted from the full amount of data collected, that is, data from [t0-tb] to [t0+ta] is intercepted, and the intercepted data in this time period is used as the fault collection data; and the fault collection data is sent to the fault processing server, that is, the cloud.
[0111] It should be noted that once a vehicle fails, the vehicle side will actively trigger data collection and automatically report. In this embodiment, in order to reduce the frequency of data reporting, the vehicle side packages multiple collected fault messages and reports them together, wherein the uploaded file may contain multiple fault messages, each of which contains a fault code and snapshot data before and after the fault.
[0112] 3) The cloud analyzes fault data and optimizes the collection time, and then provides feedback to the vehicle side on the adjusted collection time.
[0113] In this embodiment, a fault data processing model (i.e., a preset data processing model) is integrated in the fault processing server for analyzing and processing the data. Specifically, the model analyzes the fault data and gives an improved collection duration, and the vehicle side collects data according to the improved duration next time; wherein, the determination of the above collection duration can be continuously optimized to obtain the optimal collection duration.
[0114] In this embodiment, the fault data processing model in the fault processing server can centrally analyze the fault data and calculate the optimal collection time of each controller, so as to achieve the purpose of optimizing the fault data collection time. Specifically, multiple groups of fault data are combined with the fault data processing model to calculate the optimal fault data collection time. The model input is the collection time tb before the generation of multiple collections and the collection time ta after the generation, and the optimal collection time is obtained by taking the arithmetic mean. The fault data processing model can dynamically adjust the collection time tb before the fault occurs and the collection time ta after the fault occurs; after completing a practical use case, repeat the above process until the most suitable collection time is obtained. It should be noted that if there are multiple optimal collection times, the arithmetic mean can be calculated to determine the total optimal collection time.
[0115] In this embodiment, Figure 4 This is a flowchart of cloud fault data processing. Figure 4 The cloud-integrated data processing module is mainly used for fault data analysis and processing. The specific processing flow includes:
[0116] 1) Obtain the fault data message uploaded to the cloud.
[0117] In this embodiment, the fault data processing model integrated in the data processing module will obtain the fault data message uploaded to the cloud and perform subsequent processing on it.
[0118] 2) Extract fault data message data to form time series data.
[0119] In this embodiment, key information of the fault data message is extracted, such as the fault signal name, signal value, signal generation time, fault generation time, fault source controller, etc., and each signal data is arranged in ascending order according to the fault generation time. Specifically, each signal in the fault message is arranged in ascending order according to the signal generation time to obtain time series data.
[0120] 3) Calculate and adjust the collection time of this fault message.
[0121] In this embodiment, the earliest signal generation time when the signal value state jumps is taken as the collection time point before the fault message, that is, the [t0-tb] moment of the current output; the latest signal value state jumps to the recovery signal generation time is taken as the collection time point after the fault message, that is, the [t0+ta] moment of the current output; and the collection time is optimized based on the above two moments.
[0122] Specifically, optimize the [t0-tb] moment: traverse the time points of signal data generation and capture the time points when the signal state changes from normal to normal, and take the earliest signal time point where the jump occurs as the [t0-tb] moment; optimize the [t0+ta] moment: similarly traverse the time points of data generation and capture the time points when the signal state changes from normal to normal, and take the latest signal time point where the jump occurs as the [t0+ta] moment; repeat the above process, that is, collect multiple messages and input the fault data processing model to obtain the optimal collection duration.
[0123] 4) Update the collection strategy and send it to the vehicle.
[0124] In this embodiment, the vehicle side is notified of the result of this practical use case to update the collection duration. Specifically, the collection strategy is updated and sent to the vehicle side, so that the vehicle side performs the next collection action according to the latest collection strategy, that is, the vehicle side executes the latest collection strategy sent by the cloud when the next fault message is generated.
[0125] In this embodiment, the running data of the vehicle is collected according to the sampling period, and the collected data is stored in the cache, and the storage capacity corresponds to the amount of data collected in the [tb+ta] time period; when a vehicle-side fault is detected, the program timer is started, and when the timer reaches ta, the cached data just starts from the [t0-tb] moment and ends at the [t0+ta] moment. Then, the data stored in the cache is sent to the fault processing server. Since the time is fixed, the amount of fault data collected can be solidified, so that the subsequent query and screening of the data can be achieved by using a fixed-capacity cache. Secondly, since the fault data only captures the data of a period of time before and after the fault occurs, there is no need to perform additional processing and screening on the data, which improves the data processing and application efficiency. In addition, the amount of fault data processed by the fault processing server is also greatly reduced. Finally, after the fault data processing model adjusts the collection time ta and tb, it is also necessary to dynamically adjust the cache capacity to ensure that the data starting from the [t0-tb] moment and ending at the [t0+ta] moment can be saved.
[0126] In summary, the vehicle fault data collection method of the embodiment of the present invention can collect only the data of a period of time before and after the fault occurs, and dynamically adjust the collection time through fault data analysis. Compared with the existing traditional collection method, it can significantly reduce the amount of data collection, further reduce the use of data storage, save a lot of storage space, and can collect fault data more accurately, laying a good foundation for the subsequent application scenarios of fault data playback and fault reproduction.
[0127] In this embodiment, a vehicle fault data acquisition device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" refers to a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0128] The present invention provides a vehicle fault data collection device, such as Figure 5 As shown, the device comprises:
[0129] The acquisition module 501 is used to acquire the current time when the target vehicle failure occurs.
[0130] The determination module 502 is used to determine the target duration based on the current moment and a preset data processing model, and the preset data processing model is used to output the optimal data collection duration.
[0131] The collection module 503 is used to collect corresponding fault data from the target vehicle based on the target duration.
[0132] In some optional embodiments, the determination module 502 includes: a first determination submodule and a second determination submodule; wherein the first determination submodule is used to input the current moment into a constructed preset data processing model for calculation, and correspondingly output the optimal first duration and second duration; the second determination submodule is used to sum the first duration and the second duration to obtain the current data collection duration, and determine the current data collection duration as the target duration.
[0133] In some optional embodiments, the second determination submodule includes: a first construction unit, a second construction unit, a third construction unit and a fourth construction unit; wherein the first construction unit is used to collect historical fault data messages to be processed, wherein the historical fault data messages to be processed include at least fault signal data, signal generation time and fault occurrence time; the second construction unit is used to arrange the signal generation times corresponding to all fault signal data in a chronological relationship; the third construction unit is used to respectively calculate the first duration and the second duration according to the arranged fault signal data and the fault occurrence time; the fourth construction unit is used to construct a preset data processing model based on the first duration, the second duration and the corresponding fault occurrence time.
[0134] In some optional embodiments, the third construction unit includes: a first construction subunit, a second construction subunit, a third construction subunit, a fourth construction subunit, a fifth construction subunit and a sixth construction subunit; wherein the first construction subunit is used to determine whether the fault source information is the same; the second construction subunit is used to, if the fault source information is the same, execute the step of sequentially acquiring the jump signal from the arranged fault signal data according to the timing relationship; the third construction subunit is used to, if the fault source information is not the same, classify the arranged fault signal data based on the fault source information to obtain fault signal data corresponding to different fault types, and execute the step of sequentially acquiring the jump signal from the arranged fault signal data according to the timing relationship for each fault type of fault signal data; the fourth construction subunit is used to sequentially acquire the jump signal from the arranged fault signal data according to the timing relationship, and the fault signal data contains at least one jump signal; the fifth construction subunit is used to determine the first signal generation time corresponding to the first jump signal, and calculate the first duration according to the first signal generation time and the fault occurrence time; the sixth construction subunit is used to determine the second signal generation time corresponding to the last jump signal, and calculate the second duration according to the second signal generation time and the fault occurrence time.
[0135] In some optional embodiments, the device also includes: a detection module and an optimization module; wherein the detection module is used to detect whether there is fault signal data for the target vehicle; if so, execute the step of obtaining the current time when the fault of the target vehicle occurs; if not, return to the step of detecting whether there is fault signal data for the target vehicle; the optimization module is used to obtain the current fault data message corresponding to the fault data collected by the target vehicle; the preset data processing model is optimized based on the current fault data message, and the corresponding optimized preset data processing model is obtained.
[0136] The further functional description of each of the above modules is the same as that of the above corresponding embodiments and will not be repeated here.
[0137] The vehicle fault data acquisition device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0138] The vehicle fault data collection device of the embodiment of the present invention can achieve the optimal output of data collection time, so that the accuracy of fault data collection is higher, which significantly reduces the amount of data collection, avoids the huge waste of storage resources, saves data storage space, and greatly meets the needs of accurate, flexible and efficient collection of vehicle fault data.
[0139] A vehicle is also provided in an embodiment of the present invention, and the vehicle includes a controller. The controller in this embodiment is a vehicle controller, which is used to perform operations such as power supply / power off, sleep and wake up of the sub-controllers and network nodes under it, and each power supply interface thereof can collect the real-time current output. Other controllers with the above functions are applicable.
[0140] Figure 6 is a schematic diagram of the structure of the controller provided in an optional embodiment of the present invention, such as Figure 6 As shown, the controller includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the controller, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple controllers can be connected, and each controller provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.
[0141] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0142] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0143] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of the controller, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the controller via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0144] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0145] The controller also includes a communication interface 30 for the main control chip to communicate with other devices or a communication network.
[0146] A computer-readable storage medium is also provided in an embodiment of the present invention. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor main control chip or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.
[0147] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A vehicle fault data collection method, It is characterized in that The method comprises: Get the current time when the target vehicle failure occurs; Determine a target duration based on the current moment and a preset data processing model, wherein the preset data processing model is used to output an optimal data collection duration; Corresponding fault data is collected from the target vehicle based on the target duration.
2. The vehicle fault data collection method according to claim 1, It is characterized in that The target duration includes a first duration and a second duration, wherein the first duration is the duration for collecting the corresponding fault data before the current moment when the fault occurs, and the second duration is the duration for collecting the corresponding fault data after the current moment when the fault occurs; determining the target duration based on the current moment and a preset data processing model includes: Input the current moment into the constructed preset data processing model for calculation, and output the optimal first duration and second duration accordingly; The first duration and the second duration are summed to obtain a current data collection duration, and the current data collection duration is determined as a target duration.
3. The vehicle fault data collection method according to claim 2, It is characterized in that The process of constructing the preset data processing model includes: Collecting historical to-be-processed fault data messages, wherein the historical to-be-processed fault data messages at least include fault signal data, signal generation time, and fault occurrence time; Arrange the signal generation times corresponding to all fault signal data in a time sequence relationship; Calculate the first duration and the second duration respectively according to the arranged fault signal data and the fault occurrence time; A preset data processing model is constructed based on the first duration, the second duration and the corresponding fault occurrence time.
4. The vehicle fault data collection method according to claim 3, It is characterized in that The first duration and the second duration are calculated according to the arranged fault signal data and the fault occurrence time, respectively, including: Sequentially acquiring transition signals from the arranged fault signal data according to a time sequence relationship, wherein the fault signal data includes at least one transition signal; Determine a first signal generation time corresponding to a first jump signal, and calculate a first duration according to the first signal generation time and a fault occurrence time; Determine the time when the second signal corresponding to the last jump signal is generated, and calculate the second duration according to the time when the second signal is generated and the time when the fault occurs.
5. The vehicle fault data collection method according to claim 4, It is characterized in that The historical to-be-processed fault data message further includes fault source information. Before sequentially acquiring the transition signals from the arranged fault signal data according to the time sequence relationship, the method further includes: Determine whether the fault source information is the same; If they are the same, the step of obtaining the jump signal in sequence from the arranged fault signal data according to the time sequence relationship is executed; If they are not the same, the arranged fault signal data are classified based on the fault source information to obtain fault signal data corresponding to different fault types, and the steps of obtaining jump signals in sequence from the arranged fault signal data according to the timing relationship are performed for the fault signal data of each fault type.
6. The vehicle fault data collection method according to any one of claims 1 to 5, It is characterized in that After collecting corresponding fault data from the target vehicle based on the target duration, the method further includes: Obtaining a current fault data message corresponding to the collected fault data of the target vehicle; The preset data processing model is optimized based on the current fault data message, and an optimized preset data processing model is obtained accordingly.
7. The vehicle fault data collection method according to claim 1, It is characterized in that Before obtaining the current time when the target vehicle fault occurs, the method further includes: Detecting whether the target vehicle has fault signal data; If so, executing the step of obtaining the current time when the target vehicle failure occurs; If not, the process returns to the step of detecting whether the target vehicle has fault signal data.
8. A vehicle fault data collection device, It is characterized in that The device comprises: An acquisition module is used to obtain the current time when the target vehicle failure occurs; A determination module, used to determine a target duration based on the current moment and a preset data processing model, wherein the preset data processing model is used to output an optimal data collection duration; A collection module is used to collect corresponding fault data from the target vehicle based on the target duration.
9. A vehicle, It is characterized in that The vehicle includes a controller, and the controller includes: a memory and a processor. The memory and the processor are communicatively connected to each other, and computer instructions are stored in the memory. The processor executes the vehicle fault data collection method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the vehicle fault data collection method according to any one of claims 1 to 7.
Citation Information
Cited By
Data acquisition method based on OBD (On-Board Diagnostic) system and related equipment
CN119882699A
