J1939 protocol dm1 function integration implementation system, method and vehicle
By integrating the OBD DEM, UDS DCM, and CAN modules into a system architecture, the fault information transmission method is dynamically adjusted and the fault diagnosis strategy is optimized. This solves the problems of high cost and poor compatibility in the implementation of the J1939 protocol DM1 function in the existing technology, and realizes efficient and low-cost fault information processing and transmission, thereby improving the performance and user experience of the commercial vehicle component control unit.
Patent Information
- Application Number
- CN202511130361.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-13
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2045-08-13
AI Technical Summary
In the existing technology, the implementation of the DM1 function of the J1939 protocol relies on a dedicated module, which results in high cost, long development cycle, poor compatibility and flexibility, making it difficult to meet the high-efficiency and low-cost development requirements of commercial vehicle electronic systems.
By integrating the OBD DEM module, UDS DCM module, and CAN module, a unified system architecture is formed, the method of sending fault information is dynamically adjusted, and the fault diagnosis strategy is optimized through a genetic algorithm, eliminating the need for a separate J1939 DM1 module, thereby achieving efficient and low-cost fault information processing and transmission.
It significantly reduced hardware costs and development time, improved system flexibility and reliability, enhanced the accuracy and response speed of fault information, reduced false alarms and missed alarms, and optimized the overall performance and energy efficiency of the system.
Smart Images

Figure CN120621253B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of commercial vehicle parts control, in particular to a J1939 protocol DM1 function integrated implementation system, method and vehicle. BACKGROUND
[0002] In the field of commercial vehicle parts control, J1939 protocol as an international standard protocol, its DM1 function has become a necessary requirement for domestic host manufacturers. However, the existing technology mainly relies on purchasing special modules to realize DM1 function, which has many limitations such as high cost, long development cycle, poor compatibility and flexibility, and difficult maintenance and upgrading. These problems not only increase the development cost and time, but also limit the flexibility and scalability of the system, making it difficult to meet the needs of commercial vehicle electronic systems for efficient and low-cost development. With the development of commercial vehicle electronic control technology, higher requirements are put forward for the implementation of DM1 function, including reducing development cost, improving development efficiency, enhancing compatibility and flexibility. In view of the shortcomings of the existing technology, the present application proposes a J1939 protocol DM1 function integrated implementation system, method and vehicle. SUMMARY
[0003] TECHNICAL PURPOSE
[0004] In order to solve the above problems, the purpose of the present application is to provide a J1939 protocol DM1 function integrated implementation system, method and vehicle, by integrating OBD DEM module, UDS DCM module and CAN module, providing an efficient and low-cost implementation method of commercial vehicle J1939 protocol DM1 function, to solve the problems of high development cost and large resource investment caused by relying on separate modules in the prior art. It can optimize the fault information processing and transmission process, improve the diagnosis communication efficiency and stability, enhance the flexibility and adaptability of the system, so as to significantly improve the performance, reliability and user experience of the commercial vehicle parts control unit.
[0005] TECHNICAL SCHEME
[0006] In order to achieve the above-mentioned purpose, the present application provides a J1939 protocol DM1 function integrated implementation system, method and vehicle, aiming to reduce development cost and improve system operation efficiency through systematic function integration. The system and method deeply integrate the functions of OBD DEM module, UDS DCM module and CAN module to form a unified system architecture, thereby reducing hardware cost and development cycle. During operation, first, the fault information stored in the last driving cycle is read, and the sending mode of the fault information is dynamically determined according to the current fault state and the light-on state; the fault state is monitored in real time through a periodic task, and the sending mode is dynamically adjusted to ensure accurate transmission of the fault information; in terms of communication control, interaction with external diagnostic equipment is realized through UDS service; the DM1 signal format is dynamically adjusted according to the number of system faults, so that the system can realize efficient and accurate fault information transmission and display under different fault scenarios. The technical scheme not only reduces the hardware cost, but also improves the overall performance of the system through integrated design.
[0007] In the first aspect, the present application provides a J1939 protocol DM1 function integrated implementation system, comprising:
[0008] A power-on initialization module is configured to read the fault information stored in the EEPROM after the end of the last driving cycle, and traverse the fault information according to the current fault state and the light-on state, and start an interrupt module while sending the fault information;
[0009] An OS Task 1S module is configured to periodically traverse the current fault information;
[0010] An interrupt module is configured to trigger the sending of the current fault information at a regular time;
[0011] A UDS module is configured to receive instructions from an external diagnostic device;
[0012] A power-off storage module is configured to store the fault information after the end of the current driving cycle;
[0013] A DM1 signal module is configured to determine the transmission format of the fault information according to the current fault state.
[0014] The separate J1939 DM1 module is cancelled, and the same functions are realized directly through existing general modules, which significantly reduces the hardware cost, reduces the labor and time cost in the development process, and improves the development efficiency; through modular integration and dynamic adjustment mechanism, the overall performance of the system is optimized, and the reliability and stability of the system are improved.
[0015] Further, the system determines the sending mode of the fault information according to the current fault state, specifically comprising:
[0016] If the number of faults is 1 or no fault occurs, the fault information is sent to the dashboard in a single frame transmission mode, otherwise, the fault information is sent in a multi-frame transmission mode.
[0017] Further, the UDS module controls the switching of DM1 communication through the $28 service, specifically including: closing the DM1 communication for 5 seconds after receiving the closing instruction of the external diagnostic device, and automatically restoring the communication after the time; resuming the DM1 communication after receiving the opening instruction of the external diagnostic device.
[0018] Further, the UDS module clears the faults through the $14 service.
[0019] Further, the UDS module needs to re-traverse the fault information after receiving the switching instruction of DM1 communication or clearing the faults.
[0020] Further, the power-off storage module automatically stores the current fault information after the system is powered off.
[0021] Further, when no fault occurs, the fault information includes the clearing fault information; when a fault occurs, the fault information includes the fault code.
[0022] The dynamic fault information processing and transmission strategy ensures that the fault information can be transmitted to the instrument display in a timely and accurate manner, improving the response speed and accuracy of the system; it can adapt to different numbers of faults, and has strong universality and adaptability.
[0023] Further, the system further comprises a fault prediction module for mining patterns and rules in fault data and predicting potential faults through a data analysis algorithm. The application of this module can reduce false positives and false negatives, improve the reliability of fault diagnosis; predict potential faults to take maintenance measures in advance, reduce downtime, and reduce maintenance costs; it can improve the automation and intelligence level of the system, reduce manual intervention, and improve the operation efficiency of the system.
[0024] Further, the system further comprises a genetic optimization module for encoding system parameters through a genetic algorithm and optimizing parameter configuration according to a fitness function, and the genetic algorithm formula is:
[0025]
[0026] In the formula, is the individual selected probability; is the fitness value of the individual ; is the fitness adjustment factor; is the population size; is the sum of the power of all individual fitness values.
[0027] By optimizing the fault diagnosis strategy and parameter configuration, the genetic algorithm can significantly improve the system's ability to identify and report faults, reduce false positives and false negatives, optimize data transmission priority and scheduling strategy, reduce data transmission delay, and enable faster transmission of fault information to diagnostic tools, thereby reducing system energy consumption and improving system energy efficiency.
[0028] In a second aspect, the application also provides a J1939 protocol DM1 function integration implementation method, which is based on the system of the first aspect and includes:
[0029] Reading the fault information after the last driving cycle and traversing the fault information according to the current fault state and the lighting state;
[0030] Periodically traversing the current fault information and triggering the transmission of fault information at regular intervals;
[0031] Receiving instructions from external diagnostic devices;
[0032] Storing the fault information after the current driving cycle.
[0033] In a third aspect, the application also provides a vehicle integrating the system of the first aspect.
[0034] In a fourth aspect, the application also provides a computer device including a management platform and a memory, wherein the management platform is connected to the memory, the memory is used to store a computer program, and the management platform is used to execute the computer program stored in the memory to enable the computer device to implement the J1939 protocol DM1 function integration implementation method.
[0035] In a fifth aspect, the application also provides a computer readable storage medium having a computer program stored therein, wherein the computer program is executed by a management platform to implement the J1939 protocol DM1 function integration implementation method.
[0036] In the system, the fault information stored in the last driving cycle is automatically read, and single-frame or multi-frame transmission mode is dynamically selected according to the current fault state. The system detects faults periodically, triggers signal transmission through a timing interrupt, dynamically switches the transmission mode according to the fault state, opens and closes CAN communication through the $28 service, and automatically stores the current fault information when powered off. The system and method have a wide range of application scenarios, not only reducing hardware costs, but also improving the overall performance of the system through integrated design, providing an efficient and economical solution for the commercial vehicle component control field.
[0037] Advantages
[0038] By implementing the J1939 protocol DM1 function integration implementation system, method and vehicle provided by the application, the following technical effects are achieved:
[0039] (1) In the system running process, the application automatically reads the fault information stored in the last driving cycle, dynamically selects single-frame or multi-frame sending mode according to the current fault state, periodically detects system faults, sends signals through timing interrupts, dynamically switches sending mode according to the fault state, realizes opening and closing of CAN communication through $28 service, and automatically stores the current fault information when power is off. The separate J1939 DM1 module is cancelled, and the same functions are realized directly through the existing general module, which significantly reduces the hardware cost, reduces the human and time cost in the development process, and improves the development efficiency; through the modular integration and dynamic adjustment mechanism, the overall performance of the system is optimized, and the reliability and stability of the system are improved.
[0040] (2) The DM1 signal format is dynamically adjusted according to the number of faults, and the single-frame and multi-frame sending modes are dynamically adjusted through the cooperation of OS Task task and UDS event. The dynamic fault information processing and transmission strategy ensures that the fault information can be transmitted to the instrument display in time and accurately, improves the response speed and accuracy of the system, and can adapt to different number of faults, has strong universality and adaptability.
[0041] (3) The data analysis algorithm is used to mine the patterns and rules in the fault data and predict potential faults. The application of this module can reduce false positives and false negatives, improve the reliability of fault diagnosis, predict potential faults to take maintenance measures in advance, reduce downtime, and reduce maintenance costs; it can improve the automation and intelligence level of the system, reduce manual intervention, and improve the operation efficiency of the system.
[0042] (4) The genetic algorithm is used to encode system parameters and optimize parameter configuration according to the fitness function. By optimizing the fault diagnosis strategy and parameter configuration, the genetic algorithm can significantly improve the identification and reporting ability of the system to faults, reduce false positives and false negatives, optimize the priority and scheduling strategy of data transmission, reduce the delay of data transmission, and make the fault information transmitted to the diagnostic tool faster, thereby reducing the energy consumption of the system and improving the energy efficiency of the system. BRIEF DESCRIPTION OF DRAWINGS
[0043] In order to make the above-mentioned J1939 protocol DM1 function integration implementation system, method and vehicle of the present application more obvious and easy to understand, the drawings needed in the specific embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and other drawings can also be obtained from these drawings without creative labor for those skilled in the art.
[0044] Figure 1 A flowchart of a method for implementing J1939 protocol DM1 function integration is shown in Figure 1.
[0045] Figure 2 A schematic diagram of the principle of a power-on initialization module is shown in Figure 2.
[0046] Figure 3 A schematic diagram of the principle of an OS Task 1S module is shown in Figure 3.
[0047] Figure 4 A schematic diagram of the principle of an interrupt module is shown in Figure 4.
[0048] Figure 5 A schematic diagram of the principle of a UDS module is shown in Figure 5.
[0049] Figure 6 A schematic diagram of the principle of a power-off storage module is shown in Figure 6. DETAILED DESCRIPTION
[0050] In order to facilitate the understanding of the embodiments of the present application, the abbreviations and key terms that may be involved in the embodiments of the present application will be explained and defined first. The abbreviations or key terms that are not defined are commonly understood by those skilled in the art.
[0051] J1939 protocol: a high-level communication protocol based on controller area network bus technology;
[0052] DM1: a diagnostic message in SAE J1939 protocol for reporting current active fault codes;
[0053] OS Task 1S: an operating system task with a period of 1 second;
[0054] UDS: Unified Diagnostic Services, unified diagnostic services;
[0055] ISO 14229 standard: an international standard developed by the International Organization for Standardization, aiming to standardize the diagnostic communication protocol and services of automotive electronic systems, and to ensure the interoperability of vehicles and diagnostic tools produced by different manufacturers;
[0056] EEPROM: a non-volatile memory;
[0057] CAN: A serial communication protocol.
[0058] Embodiment 1:
[0059] Provided are a J1939 protocol DM1 function integrated implementation system, method and vehicle, the J1939 protocol DM1 function integrated implementation system comprising: a power-on initialization module, an OS Task 1S module, an interrupt module, a UDS module, a power-off storage module and a DM1 signal module, the J1939 protocol DM1 function integrated implementation method flow as shown in Figure 1 The J1939 protocol DM1 function integrated implementation system, method and vehicle are as follows.
[0060] The power-on initialization module is used to read fault information stored in an EEPROM after the end of the last driving cycle, and to traverse the fault information according to the current fault state and the lighting state, while sending the fault information, the power-on initialization module principle as shown in Figure 2 .
[0061] The system determines the sending mode of the fault information according to the current fault state, and specifically comprises:
[0062] If the number of faults is 1 or no fault has occurred, the fault information is sent to the instrument panel in a single frame sending mode, otherwise a multi-frame sending mode is adopted.
[0063] The OS Task 1S module is used to periodically traverse the current fault information, the OS Task 1S module principle as shown in Figure 3 .
[0064] The interrupt module is used to trigger the sending of the current fault information at a regular time, the interrupt module principle as shown in Figure 4 .
[0065] The UDS module is used to receive instructions from an external diagnostic device, the UDS module principle as shown in Figure 5 .
[0066] The UDS module controls the switch of DM1 communication through the $28 service, specifically comprising: closing the DM1 communication for 5 seconds after receiving the closing instruction from the external diagnostic device, and automatically resuming the communication after the time; resuming the DM1 communication after receiving the opening instruction from the external diagnostic device.
[0067] The UDS module clears faults through the $14 service.
[0068] The UDS module needs to re-traverse the fault information after receiving the switch instruction of DM1 communication or clearing faults.
[0069] The power-off storage module is used to store fault information after the current driving cycle ends, and the principle of the power-off storage module is as shown in Figure 6
[0070] The power-off storage module automatically stores the current fault information after the system is powered off.
[0071] The DM1 signal module is used to determine the transmission format of the fault information according to the current fault state.
[0072] When no fault occurs, the fault information contains clear fault information; when a fault occurs, the fault information contains a fault code.
[0073] Embodiment 2:
[0074] On the basis of the foregoing embodiment, the system is additionally provided with a fault prediction module for mining patterns and rules in fault data and predicting potential faults through a data analysis algorithm. Specifically, the fault prediction module includes collecting fault data on the CAN bus and filtering and filling, clustering the fault data through a K-Means clustering algorithm to identify patterns in the fault data, and building a fault prediction model through a decision tree to predict possible future faults. The decision tree learns the features and labels of the fault data to build a tree, mine patterns and rules in the fault data, and predict potential faults.
[0075] The fault data on the CAN bus is collected in advance, and invalid or erroneous data, such as abnormal data generated due to communication interference or hardware faults, is filtered out.
[0076] For some data with missing values, the previous time data or average value is used for filling.
[0077] The processed data is converted into a standard J1939 fault data format, and valid information, such as the time, frequency, and duration of fault occurrence, is extracted from the original data.
[0078] The occurrence frequency and time distribution of different fault data are counted, and the seasonality or periodicity of the faults is identified by analyzing the trend of the faults over time.
[0079] The fault data is clustered through a K-Means clustering algorithm to identify patterns in the fault data. The K-Means clustering algorithm divides the fault data into K clusters, each cluster representing a fault pattern, and the goal of the algorithm is to minimize the sum of the squares of the distances from each fault data point to its nearest cluster center. The formula of the K-Means clustering algorithm is as follows:
[0080]
[0081] In the formula, is the distance between the i-th data point and the cluster center, and Each cluster represents a failure mode; For the first The center of each cluster represents the characteristics of that failure mode; A fault data point represents a fault event; For faulty data points x With cluster center The distance between them is measured in Euclidean distance. These are the weighting coefficients.
[0082] A fault prediction model is constructed using decision trees to predict potential future faults. The decision tree is built by learning the features and labels of fault data. Each node represents a feature, each branch represents a decision, and each leaf node represents a prediction result. The decision tree formula is as follows:
[0083]
[0084]
[0085]
[0086] In the formula, For dataset D Entropy; For feature set; Based on features The partitioned subset, The number of features; The number of fault categories; For the first Each fault category in the dataset D The proportion in; For the first The importance weights of each feature.
[0087] By mining patterns and regularities in fault data and predicting potential faults through the fault prediction module, the accuracy of system fault diagnosis can be improved, and the level of system intelligence can be enhanced. Verification shows that, while obtaining an average error similar to that of the above embodiments, the accuracy of fault diagnosis can be improved by about 30% on the basis of the original fault diagnosis. This indicates that by adding a fault prediction module, it is helpful to add an early warning function for potential faults on the basis of improving the accuracy of fault diagnosis, thereby realizing fault prediction and preventive maintenance and optimizing resource utilization.
[0088] Example 3:
[0089] Based on the aforementioned embodiments, the system adds a genetic optimization module, which is used to encode system parameters through a genetic algorithm and optimize parameter configuration according to the fitness function.
[0090] The system parameters to be optimized are determined in advance, such as task scheduling period, communication priority, fault diagnosis strategy, etc., and the constraints of the system are determined, such as task execution time, communication bandwidth limit, hardware resource limit, etc.
[0091] An initial population is randomly generated, each individual representing a possible parameter configuration, and the performance of each individual is evaluated by a fitness function defined according to performance indicators, the higher the accuracy of fault diagnosis, the higher the fitness value, the fitness function is represented as:
[0092]
[0093] In the formula, 、 and is a weight coefficient for balancing the importance of different performance indicators; is the accuracy of individual in the fault diagnosis task, which is usually a value between 0 and 1; is the delay of individual in the data transmission task, which is usually a non-negative value; is the energy consumption of individual in the running process, which is usually a non-negative value; the maximum fault diagnosis accuracy is the maximum accuracy that can be achieved in the fault diagnosis task; the maximum data transmission delay is the maximum delay that can be achieved in the data transmission task; the maximum energy consumption is the maximum energy consumption that can be achieved in the running process.
[0094] The roulette wheel selection method is used to select excellent individuals from the current population to generate the next generation population, and the multi-point crossover method is used to generate new individuals, and the offspring individuals are generated by exchanging part of the genes of the two parent individuals, the formula of the roulette wheel selection method is:
[0095]
[0096] In the formula, is the probability of individual being selected; is the fitness value of individual ; is a fitness adjustment factor for adjusting the distribution of selection probability, when , the probability of the individual with a higher fitness value being selected increases; is the population size, i.e. the number of individuals in the population; is the sum of the th powers of the fitness values of all individuals, used for normalizing the selection probability, to ensure that the sum of the probabilities of all individuals being selected is 1.
[0097] New genes are introduced into the population by crossover and mutation to increase the diversity of the population, and the genetic algorithm is terminated when the maximum number of iterations is reached or the fitness value converges.
[0098] For example, assume that the population size , the individual fitness values , , , , the fitness adjustment factor ;
[0099] The power of for each individual fitness value is calculated:
[0100]
[0101] The sum of the powers of for all individual fitness values is calculated:
[0102]
[0103] The probability of each individual being selected is calculated:
[0104]
[0105] The effects of the genetic optimization module are shown in Table 1.
[0106] Table 1, Summary of Effects of Genetic Optimization Module
[0107]
[0108] According to the experimental table, the system optimized by the genetic algorithm has achieved significant improvement in fault diagnosis accuracy, data transmission delay, energy consumption, system reliability and diagnosis speed, etc. This shows that the genetic algorithm can effectively optimize the overall performance of the system, making it more efficient, reliable and energy-saving.
[0109] Those skilled in the art will appreciate that embodiments of the present application can be provided as methods, systems or computer program products. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product embodied in one or more computer-usable non-transitory storage media having computer-usable program code embodied thereon.
[0110] The present application can provide computer program instructions to a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions of the system.
[0111] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the function / act specified in the flowchart block or blocks.
[0112] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions of the system.
Claims
1. A system for implementing J1939 protocol DM1 function integration, characterized in that, Comprising: Power-on initialization module, for reading the fault information after the end of the last driving cycle, and traversing the fault information according to the current fault state and the light state; OS Task 1S module, for periodically traversing the current fault information; Interrupt module, for triggering the sending of the current fault information at a fixed time; UDS module, for receiving instructions from external diagnostic devices; The UDS module controls the switch of DM1 communication through the $28 service, clears faults through the $14 service, and needs to re-traverse the fault information after receiving the switch instruction or clearing the fault of DM1 communication; Power-off storage module, for storing the fault information after the end of the current driving cycle; DM1 signal module, for determining the transmission format of the fault information according to the current fault state.
2. The system of claim 1, wherein: The system determines the sending mode of the fault information according to the current fault state, specifically including: If the number of faults is 1 or no fault has occurred, the fault information is sent to the instrument panel in a single frame sending mode, otherwise a multi-frame sending mode is adopted.
3. The system of claim 1, wherein: When no fault occurs, the fault information contains clear fault information; when a fault occurs, the fault information contains fault codes.
4. The system of claim 1, further comprising a fault prediction module for mining patterns and rules in fault data and predicting potential faults through data analysis algorithms.
5. The system of claim 1, further comprising a genetic optimization module for encoding system parameters through a genetic algorithm and optimizing parameter configurations according to a fitness function, the genetic algorithm formula being:
6. A method for integrating J1939 protocol DM1 functions, comprising: The implementation of the method is based on the system of any one of claims 1-5: wherein is the fitness value of the individual is the probability of being selected; is the fitness value of the individual is the fitness value of the individual is the fitness adjustment factor; is the population size; is the sum of the fitness values of all individuals is the sum of the fitness values of all individuals The method includes: Reading the fault information after the end of the last driving cycle, and traversing the fault information according to the current fault state and the light state; Periodically traversing the current fault information, and triggering the sending of the fault information at a fixed time; Receiving instructions from external diagnostic devices; Storing the fault information after the end of the current driving cycle. The vehicle integrates the system of any one of claims 1-5. The computer program is run to implement the method of claim 6.
7. A vehicle characterized by: 8. A computer readable storage medium having stored therein a computer program, characterized in that:
Citation Information
Patent Citations
Vehicle fault code conversion method, storage medium, vehicle control unit and vehicle
CN116156001A
Vehicle fault intelligent diagnosis system and method
CN116880454A