Method and device for automatically realizing message monitoring logic and computer readable medium

By automatically updating the automotive CAN configuration file and generating the message monitoring configuration table, the problem of tedious and error-prone manual updates in the existing technology is solved, efficient and accurate message monitoring logic generation is achieved, and monitoring quality and integrity are ensured. .

CN118784459APending Publication Date: 2024-10-15ROBERT BOSCH GMBH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310376339.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-10
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the existing technology, the update of communication message monitoring logic in automotive CAN needs to be done manually, which is time-consuming and difficult to ensure the quality and integrity of monitoring. Especially when multiple segments need to be monitored, the process is cumbersome and error-prone.

Method used

By obtaining the CAN configuration file of the car, based on the DBC file, communication requirement document and fault degradation table, the configuration file is automatically updated, a message monitoring configuration table is generated, and finally the message monitoring logic is generated to realize automatic monitoring logic update without manual intervention.

Benefits of technology

It shortens the implementation time of message monitoring logic, improves efficiency, and ensures the quality and integrity of monitoring through the generation of DBC files, communication requirement documents, and fault degradation tables.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784459A_ABST
    Figure CN118784459A_ABST
Patent Text Reader

Abstract

The invention provides a method and a device for automatically realizing message monitoring logic and a computer readable medium. A profile of a controller area network (CAN) of an automobile may be obtained. The configuration file may be updated based on a database CAN (DBC) file associated with the CAN, a communication demand document, and a fault degradation table to obtain an updated configuration file. A message monitoring configuration table for the CAN may be generated based on the updated configuration file. And message monitoring logic for the CAN can be generated based on the message monitoring configuration table.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the automotive field, and in particular to a method, a device and a computer-readable medium for automatically implementing message monitoring logic for communication messages in a controller area network (CAN) of an automobile. Background Art

[0002] The various electronic control units (ECUs) of a car communicate with each other by exchanging communication messages in the CAN. Message monitoring logic for communication messages can be generated based on the fault degradation table associated with the CAN. The message monitoring logic can be an executable code. Communication messages can be monitored by the message monitoring logic. The software loaded into each ECU is under continuous development. Therefore, the fault degradation table also needs to be changed frequently. When the fault degradation table is changed, the message monitoring logic also needs to be updated accordingly. Currently, the monitoring logic is updated manually. This method is time-consuming and it is difficult to ensure the quality and integrity of the monitoring. In particular, if multiple segments in the communication message need to be monitored separately, the monitoring logic for each segment needs to be manually updated. This process is cumbersome and error-prone.

[0003] Therefore, it is hoped to provide an improved technical solution to solve the above problems in the prior art. Summary of the invention

[0004] In response to the above problems, the present application aims to propose a method, device and computer-readable medium for automatically implementing message monitoring logic.

[0005] The present application provides a method for automatically implementing message monitoring logic. The method may include: obtaining a configuration file of a CAN of a vehicle; updating the configuration file based on a database CAN (DBC) file, a communication requirement document, and a fault degradation table associated with the CAN to obtain an updated configuration file; generating a message monitoring configuration table for the CAN based on the updated configuration file; and generating a message monitoring logic for the CAN based on the message monitoring configuration table.

[0006] In one embodiment, updating the configuration file may include: setting the path of the DBC file in the configuration file; obtaining a set of communication messages communicated in the CAN by accessing the path of the DBC file; setting a set of end-to-end (End-to-End, E2E) algorithms corresponding to the set of communication messages in the configuration file based on the communication requirements document; setting the path of the fault downgrade table in the configuration file; obtaining a set of fault downgrade requirements defined in the fault downgrade table by accessing the path of the fault downgrade table; and setting a set of fault definition rules corresponding to the set of communication messages in the configuration file based on the set of fault downgrade requirements.

[0007] The setting of a set of fault definition rules corresponding to the set of communication messages in the configuration file may include, for each communication message in the set of communication messages: using the message name of the communication message, retrieving the fault downgrade requirement corresponding to the communication message from the set of fault downgrade requirements; determining whether the fault downgrade requirement is message level or segment level; in response to determining that the fault downgrade requirement is message level, extracting a fault name from the fault downgrade requirement; and combining the message name and the fault name into a fault definition rule corresponding to the communication message. The method may also include: in response to determining that the fault downgrade requirement is segment level, extracting a segment name and a fault name from the fault downgrade requirement; and combining the message name, the segment name and the fault name into a fault definition rule corresponding to the segment in the communication message.

[0008] In one embodiment, generating a message monitoring configuration table for the CAN may include: for each communication message in a group of communication messages communicated in the CAN, generating monitoring information corresponding to the communication message based on the updated configuration file to obtain a group of monitoring information corresponding to the group of communication messages; and combining the group of monitoring information into the message monitoring configuration table.

[0009] The generating of monitoring information corresponding to the communication message may include: extracting the E2E algorithm and fault definition rules corresponding to the communication message from the updated configuration file; extracting the monitoring conditions corresponding to the fault definition rules from a set of fault degradation requirements defined in the fault degradation table; and combining the E2E algorithm and the monitoring conditions into monitoring information corresponding to the communication message. The method may also include: extracting the fault definition rules corresponding to the segments in the communication message from the updated configuration file; calculating the starting position of the segment based on the starting position of the first segment in the communication message and the length of each segment in the communication message; determining the monitoring conditions corresponding to the segment in the communication message according to the starting position of the segment, the fault definition rules and the set of fault degradation requirements; and adding the monitoring conditions corresponding to the segment in the communication message to the monitoring information corresponding to the communication message.

[0010] By adopting the above technical means of the present application, the message monitoring logic can be automatically implemented without manual intervention. This method can shorten the time to implement the message monitoring logic and improve the efficiency of implementing the message monitoring logic. In addition, the message monitoring logic is generated based on the DBC file, the communication requirement document and the fault degradation table, so it can be guaranteed to be consistent with the monitoring requirements, thereby ensuring the quality and integrity of the message monitoring.

[0011] The present application also provides a device for automatically implementing message monitoring logic. The device may include: a configuration file acquisition module, used to obtain a configuration file of the CAN of a car; a configuration file update module, used to update the configuration file based on the DBC file, communication requirements document and fault degradation table associated with the CAN to obtain an updated configuration file; a message monitoring configuration table generation module, used to generate a message monitoring configuration table for the CAN based on the updated configuration file; and a message monitoring logic generation module, used to generate a message monitoring logic for the CAN based on the message monitoring configuration table.

[0012] The present application also provides another device for automatically implementing message monitoring logic. The device may include: a processor; and a memory storing computer executable instructions, wherein when the computer executable instructions are executed, the processor implements the method for automatically implementing message monitoring logic described above.

[0013] The present application also provides a computer-readable medium for automatically implementing message monitoring logic. The computer-readable medium may include instructions, which, when executed, enable a processor to implement the method for automatically implementing message monitoring logic described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The above and other aspects of the present application will be more fully understood from the detailed description below in conjunction with the following drawings. It should be noted that the scales of the drawings may be different for the purpose of clear description, but this will not affect the understanding of the present application. In the drawings:

[0015] Figure 1 An exemplary process for automatically implementing message monitoring logic according to an embodiment of the present disclosure is shown.

[0016] Figure 2 An exemplary process for updating a configuration file according to an embodiment of the present disclosure is shown.

[0017] Figure 3 An exemplary process for setting a fault definition rule corresponding to a communication message in a configuration file according to an embodiment of the present disclosure is shown.

[0018] Figure 4 An exemplary process for generating a message monitoring configuration table according to an embodiment of the present disclosure is shown.

[0019] Figure 5 An exemplary process for generating monitoring information corresponding to a communication message according to an embodiment of the present disclosure is shown.

[0020] Figure 6 An exemplary device for automatically implementing message monitoring logic according to an embodiment of the present disclosure is shown.

[0021] Figure 7 Another exemplary device for automatically implementing message monitoring logic according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0022] The present disclosure will now be discussed with reference to various exemplary embodiments. It should be understood that the discussion of these embodiments is only for enabling those skilled in the art to better understand and thereby implement the embodiments of the present disclosure, and does not teach any limitation on the scope of the present disclosure.

[0023] Various embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0024] Figure 1 An exemplary process 100 for automatically implementing message monitoring logic according to an embodiment of the present disclosure is shown.

[0025] At 102, a configuration file of the CAN of the vehicle may be obtained. The configuration file is, for example, a file written in the YAML language with a suffix of .yml.

[0026] At 104, the configuration file may be updated based on the DBC file, communication requirements document, fault degradation table, etc. associated with the CAN to obtain an updated configuration file. The DBC file may include information related to the communication message in the CAN, such as the name, cycle, data length code (DLC), signal start bit, signal end bit, etc. of the communication message. The communication requirements document may define an E2E algorithm for each communication message, such as a CRC8 algorithm, a P01 algorithm, a P05 algorithm, etc. The fault degradation table may define a set of fault degradation requirements, each of which may include a monitoring type and a monitoring condition to be performed on the corresponding communication message. The monitoring type may include, for example, timeout monitoring, checksum monitoring, alive counter monitoring, DLC monitoring, etc. The monitoring condition may include an error condition, a recovery condition, etc. The monitoring condition corresponds to the monitoring type. For example, for timeout monitoring, the monitoring condition may be how many cycles a new message is not received before a timeout error needs to be issued. DBC files, communication requirements documents, and fault degradation tables can contain key information for monitoring communication messages. Configuration files can be updated based on this information. Figure 2 An exemplary process for updating a configuration file is described below.

[0027] At 106, a message monitoring configuration table for the CAN may be generated based on the updated configuration file. The message monitoring configuration table may be generated by a scripting language such as Ruby or Python. Figure 4 To illustrate an exemplary process for generating a message monitoring configuration table.

[0028] At 108, a message monitoring logic for the CAN may be generated based on the message monitoring configuration table. The message monitoring logic may be an executable code, such as a code written in C++. For example, a code generator may be used to generate the message monitoring logic for the CAN based on the message monitoring configuration table. The code generator may be created using a scripting language such as Ruby or Python.

[0029] In process 100, the message monitoring logic can be automatically implemented without manual intervention. This approach can shorten the time to implement the message monitoring logic and improve the efficiency of implementing the message monitoring logic. In addition, the message monitoring logic is generated based on the DBC file, the communication requirement document and the fault degradation table, so it can be guaranteed to be consistent with the monitoring requirements, thereby ensuring the quality and integrity of the message monitoring.

[0030] It should be understood that the above Figure 1The process described for automatically implementing the message monitoring logic is merely exemplary. According to actual application requirements, the steps in the process for automatically implementing the message monitoring logic may be replaced or modified in any manner, and the process may include more or fewer steps.

[0031] Figure 2 An exemplary process 200 for updating a configuration file according to an embodiment of the present disclosure is shown. The process 200 may correspond to Figure 1 Step 104 in .

[0032] At 202 , the path of the DBC file may be set in a configuration file.

[0033] At 204, a group of communication messages communicated in the CAN can be obtained by accessing the path of the DBC file. The DBC file may include information related to the communication messages communicated in the CAN, such as the name, cycle, DLC, signal start bit, signal end bit, etc. of the communication message. Therefore, a group of communication messages communicated in the CAN can be obtained by accessing the path of the DBC file.

[0034] At 206, a set of E2E algorithms corresponding to the group of communication messages may be set in the configuration file based on the communication requirements document. The communication requirements document may define an E2E algorithm for each communication message. For each communication message in the group of communication messages, an E2E algorithm corresponding to the communication message may be extracted from the communication requirements document and set in the configuration file.

[0035] At 208 , a path to the failure degradation table may be set in a configuration file.

[0036] At 210 , a set of fault degradation requirements defined in the fault degradation table may be obtained by accessing a path in the fault degradation table.

[0037] At 212, a set of fault definition rules corresponding to the group of communication messages may be set in the configuration file based on the group of fault downgrade requirements. For example, for each communication message in the group of communication messages, a fault definition rule corresponding to the communication message may be set in the configuration file based on the group of fault downgrade requirements. Figure 3 An exemplary process for setting a fault definition rule corresponding to a communication message in a configuration file is described below.

[0038] It should be understood that the above Figure 2The process for updating the configuration file described is exemplary only. The steps in the process for updating the configuration file may be replaced or modified in any manner according to actual application requirements, and the process may include more or fewer steps. In addition, the specific order or hierarchy of the steps in process 200 is exemplary only, and the process for updating the configuration file may be performed in an order different from the order described.

[0039] Figure 3 An exemplary process 300 for setting a fault definition rule corresponding to a communication message in a configuration file according to an embodiment of the present disclosure is shown. The process 300 may correspond to Figure 2 The process 300 may be performed for each communication message in a group of communication messages communicated in the CAN.

[0040] At 302, the message name of the communication message may be used to retrieve the fault degradation requirement corresponding to the communication message from a set of fault degradation requirements defined in the fault degradation table. Using the message name of the communication message to retrieve the fault degradation requirement corresponding to the communication message can save time and reduce errors.

[0041] At 304 , it may be determined whether the failure degradation requirement is at a message level or a segment level.

[0042] If it is determined at 304 that the fault downgrade requirement is at the message level, the process 300 proceeds to 306. At 306, a fault name may be extracted from the fault downgrade requirement. The fault name may indicate a monitoring type. For example, a fault name "Timeout" may indicate that the monitoring type is timeout monitoring, a fault name "DLC" may indicate that the monitoring type is DLC monitoring, and so on. Subsequently, at 308, the message name and the fault name may be combined into a fault definition rule corresponding to the communication message.

[0043] If it is determined at 304 that the fault downgrade requirement is at the segment level, the process 300 proceeds to 310. At 310, the segment name and the fault name may be extracted from the fault downgrade requirement. Subsequently, at 312, the message name, the segment name, and the fault name may be combined into a fault definition rule corresponding to the segment in the communication message. The segment in the communication message is the segment indicated by the segment name.

[0044] It should be understood that the above Figure 3The described process for setting the fault definition rules corresponding to the communication message in the configuration file is only exemplary. According to the actual application requirements, the steps in the process for setting the fault definition rules corresponding to the communication message in the configuration file can be replaced or modified in any way, and the process can include more or fewer steps. In addition, the specific order or hierarchy of the steps in process 300 is only exemplary, and the process for setting the fault definition rules can be performed in an order different from the described order.

[0045] Figure 4 An exemplary process 400 for generating a message monitoring configuration table according to an embodiment of the present disclosure is shown. The process 400 may correspond to Figure 1 Step 106 in .

[0046] At 402, for each communication message in a group of communication messages communicated in the CAN, monitoring information corresponding to the communication message may be generated based on the updated configuration file. Figure 5 To illustrate an exemplary process for generating monitoring information corresponding to a communication message.

[0047] Step 402 may be performed for each communication message in a group of communication messages, so that at 404, a group of monitoring information corresponding to the group of communication messages may be obtained.

[0048] At 406, a set of monitoring information corresponding to a set of communication messages may be combined into a message monitoring configuration table.

[0049] Figure 5 An exemplary process 500 for generating monitoring information corresponding to a communication message according to an embodiment of the present disclosure is shown. The process 500 may correspond to Figure 4 Step 402 in .

[0050] At 502 , an E2E algorithm and a fault definition rule corresponding to the communication message may be extracted from the updated configuration file.

[0051] At 504, a monitoring condition corresponding to the fault definition rule may be extracted from a set of fault degradation requirements defined in the fault degradation table. For example, the corresponding monitoring condition may be retrieved from the set of fault degradation requirements according to the message name and the fault name included in the fault definition rule. The monitoring condition may include an error reporting condition, a recovery condition, etc.

[0052] At 506 , the extracted E2E algorithm and monitoring condition may be combined into monitoring information corresponding to the communication message.

[0053] The updated configuration file may also contain fault definition rules corresponding to the segments in the communication message. In this case, process 500 may continue to 508. At 508, the fault definition rules corresponding to the segments in the communication message may be extracted from the updated configuration file.

[0054] At 510, a starting position of a segment in the communication message may be calculated based on a starting position of a first segment in the communication message and a length of each segment in the communication message.

[0055] At 512, a monitoring condition corresponding to the segment in the communication message may be determined according to a starting position of the segment, a fault definition rule, and a set of fault degradation requirements defined in a fault degradation table.

[0056] At 514, the monitoring condition corresponding to the segment in the communication message may be added to the monitoring information corresponding to the communication message.

[0057] In process 500, the monitoring information of the communication message can be automatically generated from the message level and the segment level according to the fault degradation table. The monitoring information can be further used to generate the message monitoring logic. Accordingly, the generated message monitoring logic also has the message level and the segment level.

[0058] It should be understood that the above Figure 5 The process described for generating monitoring information corresponding to the communication message is exemplary only. According to actual application requirements, the steps in the process for generating monitoring information corresponding to the communication message can be replaced or modified in any manner, and the process can include more or fewer steps. For example, in the case where the updated configuration file does not contain a fault definition rule corresponding to a segment in the communication message, steps 508 to 514 may not be performed.

[0059] Figure 6 An exemplary device 600 for automatically implementing message monitoring logic according to an embodiment of the present disclosure is shown. The device 600 may include: a configuration file acquisition module 602, for obtaining a configuration file of the CAN of a car; a configuration file update module 604, for updating the configuration file based on the DBC file, communication requirements document and fault degradation table associated with the CAN to obtain an updated configuration file; a message monitoring configuration table generation module 606, for generating a message monitoring configuration table for the CAN based on the updated configuration file; and a message monitoring logic generation module 608, for generating a message monitoring logic for the CAN based on the message monitoring configuration table. In addition, the device 600 may also include any other modules configured to automatically implement message monitoring logic according to the above-mentioned embodiments of the present disclosure.

[0060] Figure 7 Another exemplary apparatus 700 for automatically implementing message monitoring logic according to an embodiment of the present disclosure is shown. The apparatus 700 may include: a processor 702; and a memory 704 storing computer executable instructions. When the computer executable instructions are executed, the processor 702 may implement any operation of the method for automatically implementing message monitoring logic as described above.

[0061] An embodiment of the present disclosure proposes a computer program product for automatically implementing a message monitoring logic, including a computer program, wherein the computer program is executed by a processor to implement any operation of the method for automatically implementing a message monitoring logic as described above.

[0062] Embodiments of the present disclosure may be embodied in a non-transitory computer-readable medium. The non-transitory computer-readable medium may include instructions, which, when executed, cause a processor to perform any operation of the method for automatically implementing message monitoring logic as described above.

[0063] It should be understood that all modules in the above described device can be implemented in various ways. These modules can be implemented as hardware, software, or a combination thereof. In addition, any module in these modules can be further divided into submodules or combined together in function.

[0064] Processors have been described in conjunction with various devices and methods. These processors can be implemented using electronic hardware, computer software or any combination thereof. Whether these processors are implemented as hardware or software will depend on specific application and the overall design constraints imposed on the system. As an example, the processor provided in the present disclosure, any part of the processor or any combination of processors can be implemented as a microprocessor, a microcontroller, a digital signal processor (DSP), a field programmable gate array (FPGA), a programmable logic device (PLD), a state machine, a gate logic, a discrete hardware circuit, and other suitable processing components configured to perform the various functions described in the present disclosure. The function of the processor provided in the present disclosure, any part of the processor or any combination of processors can be implemented as software executed by a microprocessor, a microcontroller, a DSP or other suitable platforms.

[0065] Those skilled in the art should understand that the various embodiments disclosed above may be subject to various modifications and variations without departing from the essence of the invention, and these modifications and variations should fall within the protection scope of the present invention, and the protection scope of the present invention should be defined by the claims.

Claims

1. A method for automatically implementing message monitoring logic, comprising: Get the car's controller area network (CAN) configuration file; updating the configuration file based on a database CAN (DBC) file, a communication requirements document, and a fault degradation table associated with the CAN to obtain an updated configuration file; Based on the updated configuration file, generating a message monitoring configuration table for the CAN; as well as Based on the message monitoring configuration table, a message monitoring logic for the CAN is generated.

2. The method according to claim 1, wherein: The updating of the configuration file comprises: Setting the path of the DBC file in the configuration file; Obtaining a group of communication messages communicated in the CAN by accessing the path of the DBC file; Based on the communication requirement document, a set of end-to-end (E2E) algorithms corresponding to the set of communication messages are set in the configuration file; Setting the path of the fault degradation table in the configuration file; Obtaining a set of fault degradation requirements defined in the fault degradation table by accessing a path in the fault degradation table; and Based on the set of fault degradation requirements, a set of fault definition rules corresponding to the set of communication messages are set in the configuration file.

3. The method according to claim 2, wherein: The setting of a set of fault definition rules corresponding to the set of communication messages in the configuration file includes, for each communication message in the set of communication messages: Retrieving a fault degradation requirement corresponding to the communication message from the set of fault degradation requirements by using the message name of the communication message; Determine whether the fault degradation requirement is at a message level or a segment level; In response to determining that the fault downgrade requirement is at a message level, extracting a fault name from the fault downgrade requirement; as well as The message name and the fault name are combined into a fault definition rule corresponding to the communication message.

4. The method according to claim 3, further comprising: In response to determining that the fault degradation requirement is at a segment level, extracting a segment name and a fault name from the fault degradation requirement; as well as The message name, the segment name and the fault name are combined into a fault definition rule corresponding to the segment in the communication message.

5. The method according to claim 1, wherein: The generating of the message monitoring configuration table for the CAN comprises: For each communication message in a group of communication messages communicated in the CAN, generating monitoring information corresponding to the communication message based on the updated configuration file to obtain a group of monitoring information corresponding to the group of communication messages; and The group of monitoring information is combined into the message monitoring configuration table.

6. The method according to claim 5, wherein: The generating of monitoring information corresponding to the communication message comprises: Extracting an E2E algorithm and a fault definition rule corresponding to the communication message from the updated configuration file; Extracting a monitoring condition corresponding to the fault definition rule from a set of fault degradation requirements defined in the fault degradation table; and The E2E algorithm and the monitoring condition are combined into monitoring information corresponding to the communication message.

7. The method according to claim 6, further comprising: extracting, from the updated configuration file, a fault definition rule corresponding to a segment in the communication message; Calculating the starting position of the segment based on the starting position of the first segment in the communication message and the length of each segment in the communication message; Determining a monitoring condition corresponding to the segment in the communication message according to a starting position of the segment, the fault definition rule, and the set of fault degradation requirements; as well as The monitoring condition corresponding to the segment in the communication message is added to the monitoring information corresponding to the communication message.

8. A device for automatically implementing message monitoring logic, comprising: A configuration file acquisition module, used to obtain a configuration file of a controller area network (CAN) of a vehicle; a configuration file updating module, configured to update the configuration file based on a database CAN (DBC) file, a communication requirement document, and a fault degradation table associated with the CAN to obtain an updated configuration file; A message monitoring configuration table generating module, used for generating a message monitoring configuration table for the CAN based on the updated configuration file; as well as The message monitoring logic generation module is used to generate the message monitoring logic for the CAN based on the message monitoring configuration table.

9. A device for automatically implementing message monitoring logic, comprising: processor; as well as A memory storing computer executable instructions which, when executed, cause the processor to implement the method according to any one of claims 1 to 7.

10. A computer-readable medium for automatically implementing message monitoring logic, comprising instructions, which when executed cause a processor to implement the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Communication configuration method and apparatus

    WO2026156769A1