Visual configuration method and visual configuration system for DBC file

Through the visual configuration method and system of DBC files, the matrix loading and adaptation are automated, which solves the problem of errors prone to batch addition of signals and realizes efficient and accurate DBC file generation.

CN119861919APending Publication Date: 2025-04-22MEIJIA (WUHAN) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411925531.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

During the DBC file generation process, errors are prone to occur when adding a large number of signals in batches, resulting in a long time.

Method used

Provides a visual configuration method and visual configuration system for DBC files, including a matrix loading module, a matrix adaptation module and a DBC generation module. Obtain user configuration information through the visual interface, automatically perform matrix adaptation and function configuration, generate standard matrix files and convert them into DBC files.

Benefits of technology

By automating the matrix loading and adaptation process, the cumbersomeness of manual operations is reduced, especially when the semaphore is large, the error rate and time-consuming are greatly reduced, and configuration efficiency and flexibility are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119861919A_ABST
    Figure CN119861919A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of automobile ECU software development, and discloses a visual configuration method and system for a DBC file, and the method comprises the steps: a matrix loading module which loads an original matrix file when a standard matrix file does not exist; the matrix adaptation module is used for obtaining matrix configuration information of a user based on the visual interface and carrying out matrix adaptation on the original matrix file so as to convert the original matrix file into a corresponding standard matrix file; and the DBC generation module is used for acquiring function configuration information of a user based on the visual interface, performing function configuration on the standard matrix file by adopting the function configuration information, and converting the standard matrix file after function configuration into a DBC file. According to the method provided by the embodiment of the invention, the matrix loading and adapting process is automatically executed through the system, the tedious process of manual operation is avoided, and especially under the condition of large semaphore, the error rate can be greatly reduced and the efficiency can be greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of automobile ECU software development, and in particular to a DBC file visualization configuration method and visualization configuration system. Background Art

[0002] In automotive Electronic Control Unit (ECU) software development, in order to ensure the consistency of Controller Area Network (CAN) communication between different ECUs, CAN database (DBC) files are usually used for standardized description.

[0003] However, in the related DBC file generation tools, there is often a problem that the process of adding signals is cumbersome, especially when a large number of signals need to be added in batches, the signal adding process is prone to errors, which leads to a long time consumption. Therefore, in the process of generating DBC files, how to reduce the error rate when a large number of signals need to be added in batches, thereby reducing the time consumption, has become a problem that needs to be solved. Summary of the invention

[0004] In view of this, the present disclosure provides a visual configuration method and a visual configuration system for a DBC file to solve the problem of how to reduce the error rate and thus reduce the time consumption when a large number of signals need to be added in batches during the generation process of the DBC file.

[0005] On the one hand, the present disclosure provides a DBC file visualization configuration method, which is applied to a visualization configuration system. The visualization configuration system includes: a matrix loading module, a matrix adaptation module, and a DBC generation module. The method includes: the matrix loading module determines whether there is a standard matrix file, and when the standard matrix file does not exist, loads the original matrix file; the matrix adaptation module obtains the user's matrix configuration information based on a visualization interface, and performs matrix adaptation on the original matrix file to convert the original matrix file into a corresponding standard matrix file; the DBC generation module obtains the user's function configuration information based on the visualization interface, uses the function configuration information to perform function configuration on the standard matrix file, and converts the function-configured standard matrix file into a DBC file.

[0006] On the other hand, the present disclosure also provides a visualization configuration system, which includes a matrix loading module, a matrix adaptation module, and a DBC generation module, wherein: the matrix loading module is used to determine whether there is a standard matrix file, and when there is no standard matrix file, load the original matrix file; the matrix adaptation module is used to obtain the user's matrix configuration information based on the visualization interface, and perform matrix adaptation on the original matrix file to convert the original matrix file into a corresponding standard matrix file; the DBC generation module is used to obtain the user's function configuration information based on the visualization interface, use the function configuration information to perform function configuration on the standard matrix file, and convert the function-configured standard matrix file into a DBC file.

[0007] On the other hand, the present disclosure further provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable a computer to implement the above-mentioned DBC file visualization configuration method.

[0008] On the other hand, the present disclosure further provides a computer program product, including computer instructions, where the computer instructions are used to enable a computer to execute the above-mentioned DBC file visualization configuration method.

[0009] Through the DBC file visualization configuration method and visualization configuration system of the above embodiment of the present disclosure, the matrix loading and adaptation process is automatically executed by the system, avoiding the tedious process of manual operation, especially in the case of a large amount of signals, which can greatly reduce the error rate and improve efficiency. The user can configure through a graphical interface, directly operate and adjust the matrix adaptation rules and function settings, improve the flexibility of DBC file generation, further reduce the error rate, and thus reduce time consumption.

[0010] In addition, the visual interface makes the entire configuration process more intuitive, facilitating debugging and optimization, and allowing users to track the execution of each step through the interface and make timely adjustments. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0012] Figure 1a An exemplary schematic diagram showing the architecture of a visualization configuration system applied to a visualization configuration method of a DBC file according to an embodiment of the present disclosure;

[0013] Figure 1bIt is a flowchart of a method for visually configuring a DBC file provided by an embodiment of the present disclosure;

[0014] Figure 2a A schematic diagram of the first part of a visualization interface of a method for visually configuring a DBC file according to an embodiment of the present disclosure is shown;

[0015] Figure 2b A schematic diagram showing the second part of the visualization interface of a method for visually configuring a DBC file according to an embodiment of the present disclosure

[0016] Figure 3 The present invention shows a schematic diagram of a preset error record representation of a DBC file visualization configuration method according to an embodiment of the present invention;

[0017] Figure 4 A schematic diagram of a DBC file layout of a DBC file visualization configuration method according to an embodiment of the present disclosure is shown;

[0018] Figure 5 This is a structural diagram of another visual configuration system provided by an embodiment of the present disclosure.

[0019] Figure 6 It is a structural diagram of another visualization configuration system provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0020] In the development of automotive ECU software, different ECUs exchange data and communicate through CAN. In order to ensure the accuracy and consistency of this communication process, DBC files are usually used to standardize the description of messages and signals in the CAN network. In the actual development process, the CAN communication system usually involves a large number of messages and signals. Each ECU may need to send and receive multiple messages, which contain multiple signals. In order to ensure that all ECUs in the system can communicate correctly, it is necessary to ensure that the configuration of each message and signal is accurate and meets the standards.

[0021] Vector CANdb++ software is a widely used tool for creating and managing DBC files. The tool allows users to operate through a graphical interface. However, the tool often has the following problems:

[0022] 1. When adding a signal, the user needs to manually create a signal, define the signal's properties, create a message, and add the defined signal to the message. Each time a signal is added, these steps need to be repeated. This manual creation method is inefficient and prone to errors when there are a large number of signals.

[0023] 2. As the complexity of automotive electronic systems increases, communication between ECUs is not limited to one type of message and signal. The types of messages and signals, and the mapping rules between signals and messages often need to be adjusted according to project requirements. Manual adjustment is very time-consuming and has a high error rate.

[0024] To solve the above problems, various embodiments of the present disclosure provide a method for visual configuration of a DBC file, which is applied to a visual configuration system. The visual configuration system includes: a matrix loading module, a matrix adaptation module, and a DBC generation module. The method includes: a matrix loading module, which determines whether a standard matrix file exists. When the standard matrix file does not exist, the original matrix file is loaded; a matrix adaptation module, which obtains the user's matrix configuration information based on a visual interface, and performs matrix adaptation on the original matrix file to convert the original matrix file into a corresponding standard matrix file; a DBC generation module, which obtains the user's function configuration information based on a visual interface, uses the function configuration information to perform function configuration on the standard matrix file, and converts the function-configured standard matrix file into a DBC file.

[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0026] Please refer to Figure 1a , Figure 1a An exemplary schematic diagram of the architecture of a visualization configuration system applied to a visualization configuration method of a DBC file according to an embodiment of the present disclosure is shown. Figure 1a As shown, the visualization configuration system may include: a matrix loading module, a matrix adaptation module, and a DBC generation module.

[0027] like Figure 1a As shown, the visual configuration system can be a system for processing the DBC file generation process, which helps users to efficiently manage and configure the CAN communication between automobile ECUs in a visual way. The visualization system consists of multiple modules, including a matrix loading module, a matrix adaptation module, and a DBC generation module.

[0028] Among them, the matrix loading module can read the original matrix file or the standard matrix file. The matrix adaptation module can process, organize and adapt the original matrix file into a standard matrix file according to the user's matrix configuration. The DBC generation module can generate the final DBC file based on the standard matrix file and the user's functional configuration information.

[0029] Further references Figure 1b , Figure 1b is a flowchart of a DBC file visualization configuration method provided by an embodiment of the present disclosure, which is applied to the above Figure 1a The visualization configuration system shown in the figure, the process of the method may include the following steps:

[0030] Step S101, a matrix loading module determines whether a standard matrix file exists. If no standard matrix file exists, the original matrix file is loaded.

[0031] In this embodiment, the matrix file may be a file containing multiple data tables, which organizes data in the form of a two-dimensional table, and each column or each row represents a specific data attribute. The matrix file may be used to store various configuration data in ECU communication.

[0032] Furthermore, the original matrix file may be an unorganized and unprocessed matrix data file originally obtained from a user or other system, and the organization and fields of the data in the matrix file are not properly mapped and configured.

[0033] The standard matrix file may be a file generated after the original matrix file is sorted, classified and configured. The standard matrix file contains accurate and uniformly formatted message and signal information and follows specific specifications to ensure that there are no errors in the CAN communication between automotive ECUs.

[0034] Among them, a message can be a data unit transmitted in CAN communication. Each message contains multiple signals and can transmit various information between ECUs through the CAN bus. A message can be composed of one or more signals, which together define the data content and structure of the message. A signal is a data unit in a CAN message and can represent a specific information content in the message.

[0035] As an example, the storage format of the original matrix file and the standard matrix file may be an EXCEL file format.

[0036] The matrix loading module determines whether there is a standard matrix file. When there is no standard matrix file, the original matrix file is loaded. It can include: before loading the matrix file, the matrix loading module checks whether the standard matrix file has been generated; when it is determined that the standard matrix file has been generated, the standard matrix file is directly loaded and the loading process of the original matrix file is skipped; when it is determined that the standard matrix file has not been generated, the original matrix file is loaded.

[0037] Step S102: a matrix adaptation module obtains the matrix configuration information of the user based on the visual interface, and performs matrix adaptation on the original matrix file to convert the original matrix file into a corresponding standard matrix file.

[0038] In this embodiment, the visualization interface may be an operation interface provided by the visualization configuration system to the user, so that the user configures the matrix file based on the visualization interface and determines the matrix configuration information.

[0039] Matrix adaptation can be a process of converting data in the original matrix into a format that conforms to a specific standard according to preset configuration information or rules.

[0040] The matrix adaptation module adjusts, classifies and maps the EXCEL file corresponding to the original matrix file based on the matrix configuration information, and converts it into an EXCEL file corresponding to the standard matrix file that meets the standard specifications.

[0041] Step S103, the DBC generation module obtains the user's function configuration information based on the visual interface, uses the function configuration information to perform function configuration on the standard matrix file, and converts the function-configured standard matrix file into a DBC file.

[0042] In this embodiment, function configuration may be a process of customizing and adjusting system functions, operation modes or data processing logic in a specific visual interface according to user needs and usage scenarios.

[0043] In the visualization configuration method and visualization configuration system of the DBC file of the above-mentioned embodiment of the present disclosure, the matrix loading and adaptation process is automatically executed by the system, avoiding the tedious process of manual operation, especially in the case of a large amount of signals, which can greatly reduce the error rate and improve efficiency. The user can configure through a graphical interface, directly operate and adjust the adaptation rules and function settings of the matrix, improve the flexibility of DBC file generation, further reduce the error rate, and thus reduce time consumption. The visualization interface makes the entire configuration process more intuitive, convenient for users to debug and optimize, and allows users to track the execution of each step through the interface and make adjustments in time.

[0044] In a possible implementation of step S102, the matrix loading module determines whether a standard matrix file exists, and when the standard matrix file does not exist, loads the original matrix file, including:

[0045] The matrix loading module, when it is determined that there is no standard matrix file, loads the original matrix file, reads the header of the original matrix file, determines the first column number corresponding to the message attribute and the second column number corresponding to the signal attribute in the header, and constructs an attribute list according to the first column number and the second column number;

[0046] Traverse the original matrix file line by line, and extract the message or signal corresponding to each line in the original matrix file based on the attribute list;

[0047] The method also includes: a matrix loading module, which loads the standard matrix file when it is determined that there is a standard matrix file.

[0048] In this embodiment, when it is determined that there is no standard matrix file, the matrix loading module loads the original matrix file, which may include: the matrix loading module loads the original matrix file from a user-specified location, uses a file reading tool to parse the file, and obtains the original matrix data.

[0049] Further, the header of the original matrix file is read, wherein the header may be the first row of the EXCEL file of the original matrix file, and the first row includes field names or attribute names. The fields in the header row may correspond to the data rows in the file, and each column may represent a specific attribute.

[0050] As an example, the header of the original matrix file may include the following columns: Message ID, MessageName, Signal Name, where the data in the first column may be characterized as specific attributes of the message ID, the data in the second column may be characterized as specific attributes of the message name, and the data in the third column may be characterized as specific attributes of the signal name.

[0051] Furthermore, the fields in the read header row are classified, and the columns in the header row belonging to the message attributes are taken as the first column number, and the columns in the header row belonging to the signal attributes are taken as the second column number.

[0052] The attribute list constructed according to the first column number and the second column number can be used to record the corresponding column number of each attribute in the table, and can be used as a basis for subsequent data extraction to ensure that relevant data of messages and signals are correctly extracted from each row of the original matrix file.

[0053] As an example, the Nth row of data in the original matrix file may include: 0x100, Engine Speed, 10ms, and the message ID data 0x100, the message name data Engine Speed, and the period 10ms may be read from the Nth row of data.

[0054] The matrix loading module determines, for each row of message data or signal data, whether the row belongs to message data or signal data based on the attribute information.

[0055] In the visualization configuration method and visualization configuration system of the DBC file of the above embodiment of the present disclosure, by automatically loading the original matrix file and extracting the required data, manual operation and time consumption can be greatly reduced, and the efficiency of DBC file generation can be improved. By reading the header of the original matrix file and dynamically building the attribute list, it is possible to flexibly adapt to different types of original matrix files according to the specific format of the file, thereby improving the accuracy of data mapping. When a standard matrix file already exists, the system can directly load the file to avoid repeated loading and processing processes. This not only saves processing time, but also reduces unnecessary data conversion.

[0056] In a possible implementation of the above embodiment, the method further includes:

[0057] The matrix adaptation module classifies and organizes the messages or signals corresponding to each row in the original matrix file, constructs a first table according to at least one message in the original matrix file, and constructs a second table according to at least one signal in the original matrix file; wherein the first table is used to store message-related attributes, and the second table is used to store signal-related attributes.

[0058] In this embodiment, after the data of each row in the original matrix file is extracted, the matrix adaptation module stores the message data in the data into the first form and stores the signal data in the data into the second form. Each row of data in the first form can represent the attributes of a message, and each row of data in the second form can represent the attributes of a signal.

[0059] For example, the message attributes stored in the first form MessageInfo may include but are not limited to: subnet, ECU node, sending mode, sending cycle, message ID, message length, recipient, and message type;

[0060] The signal attributes stored in the second form SignalInfo may include but are not limited to: signal name, signal description, signal type, signal length, start bit position, precision, offset, physical minimum value, physical maximum value, signal unit, signal value description, initial value, invalid value, and remarks.

[0061] In the visualization configuration method and visualization configuration system of the DBC file of the above-mentioned embodiment of the present disclosure, the sorted message data and signal data are respectively stored in two clearly separated forms. This structured storage makes the data easier to process, query and analyze. Users can more conveniently operate and modify the content in a single form, which improves the flexibility of subsequent operations. In the visualization configuration interface, the sorted message and signal information can be intuitively displayed to the user, and the user can modify, adjust or configure it as needed, thereby improving the user's experience.

[0062] In a possible implementation of the above step S102, the matrix adaptation module obtains the matrix configuration information of the user based on the visual interface, and performs matrix adaptation on the original matrix file to convert the original matrix file into a corresponding standard matrix file, which is implemented based on the following steps:

[0063] The matrix adaptation module classifies and organizes the messages or signals corresponding to each row in the original matrix file;

[0064] The matrix adaptation module obtains at least one of the user's ECU node, subnet type and message type based on a visual interface;

[0065] A matrix adaptation module determines at least one message satisfying at least one of an ECU node, a subnet type, and a message type in the original matrix file, and constructs a first form based on the at least one message;

[0066] The matrix adaptation module determines at least one signal corresponding to each message in the at least one message shown, and constructs a second table based on the at least one signal; wherein the first table is used to store message-related attributes, and the second table is used to store signal-related attributes.

[0067] In this embodiment, the ECU nodes in the matrix configuration information can be various electronic control units in the car, and each ECU node can represent an independent control unit. In the matrix configuration, the ECU nodes are used to define the position and role of each ECU in the network and determine the source and destination of data transmission. Therefore, when configuring the matrix file, the ECU node will be mapped to a specific message or signal to indicate that the signal or message comes from this ECU node.

[0068] Subnet type can be used to describe the network grouping between ECU nodes in the network. Each subnet represents a logically independent network area. Different subnets can correspond to different transmission rates or communication protocols.

[0069] The message type can be used to characterize the type or purpose of the CAN message. In the matrix configuration, the message type can be used to define the behavior of the message in the network. The message type can include but is not limited to: application message, network management message, and diagnostic message.

[0070] In a possible implementation, the ECU node, subnet type, and message type may be optional configuration items determined by a user in a visualization interface.

[0071] As an example, the ECU node is configured as IVI, the subnet type is configured as ICAN, and the message type selects application message and network management message. At this time, the process of constructing the first form is: determine at least one application message and network management message that meets the requirements that the ECU node is IVI and the subnet type meets the requirements that ICAN is satisfied from the original matrix file, as the first form. The process of constructing the second form is: configure at least one signal of the message in the first form as the second form. Furthermore, the matrix adaptation module converts the information in the original matrix file into a standard matrix file based on the first form and the second form through the mapping relationship between the message and the signal.

[0072] In the DBC file visualization configuration method and visualization configuration system of the above embodiment of the present disclosure, the efficiency of configuring the standard matrix file is greatly improved through the visualization interface and automatic configuration. Through correct mapping, it is ensured that the communication between ECU nodes, subnets, messages and signals will not go wrong, and the stability and consistency of the CAN network are guaranteed.

[0073] In a possible implementation of the above embodiment, the visual configuration system further includes: a log generation module, and the method further includes:

[0074] The log generation module determines whether there is an execution error during the process of converting the original matrix file into the standard matrix file;

[0075] The log generation module, when it is determined that there is no execution error, displays a normal level log in a visual interface using a first color text;

[0076] a log generation module, which, when determining that a first execution error exists, automatically corrects the first execution error and displays a warning level log in a visual interface using a second color text;

[0077] The log generation module, when determining that there is a second execution error, displays the alarm level log in a third color text in the visual interface;

[0078] The log generation module records the alarm level log in the visualization interface into a preset error record table, sends the preset error record table to the user, obtains the user's modified content based on the alarm level log in the preset error record table, and updates the modified content into the standard matrix file.

[0079] In this embodiment, the first execution error may refer to an error that exists to a certain extent but does not affect the system function, and the second execution error may refer to an error that exists to a certain extent and affects the system function.

[0080] As an example, when it is determined that there is no execution error, the first color text of the normal level log may be green; when it is determined that there is a first execution error, the second color text of the warning level log may be blue; when it is determined that there is a second execution error, the third color text of the alarm level log may be red.

[0081] Here, the text color of different logs can be set according to specific needs, and there is no limitation here.

[0082] In a possible implementation, the log generation module may determine whether there is an execution error in the overall process of generating the DBC file in addition to determining whether there is an execution error in the process of converting the original matrix file into the standard matrix file.

[0083] Furthermore, when it is determined that a first execution error exists in the overall process of DBC file generation, the system can repair the error by itself; when it is determined that a second execution error exists in the overall process of DBC file generation, the alarm level log corresponding to the second execution error and the associated signal are displayed in a preset error record table, and the preset error record table is displayed in a visual interface, so that the user can check various attributes in the preset error record table, directly modify the attribute errors, or add missing attributes.

[0084] In a possible implementation, various logs generated by the log generation module can be exported as files for storage, or can be cleared.

[0085] In the visualization configuration method and visualization configuration system of the DBC file of the above-mentioned embodiment of the present disclosure, the first execution error can be automatically adjusted by default correction or according to preset rules to avoid the failure of the entire configuration process caused by the error and reduce the development time. A multi-level error feedback mechanism is adopted to remind developers in time so that developers can clearly know the error level and further improve development efficiency. When the second execution error is detected, the log generation module not only provides instant feedback on the interface, but also records the error in a preset error record table. This provides a complete log record for subsequent error tracking and data analysis, which can help developers or users quickly locate the cause of the error.

[0086] In a possible implementation of the above embodiment, the function configuration information includes at least one of the following: whether to enable the E2E group function, whether to enable the E2E message space filling function, whether to enable the ECU name as the message name function, whether to add a custom message or whether to increase the starting offset function.

[0087] In this embodiment, through the selection box, you can select whether to enable the E2E group function, whether to enable the E2E message empty space filling function, and whether to enable the ECU name as the message name function;

[0088] Through the selection box and text selection button, you can choose whether to add a custom message and the file of the custom message to be added;

[0089] Through the selection box, you can choose whether to add the start offset function.

[0090] Among them, the end-to-end (End-to-End, E2E) group function can be used to implement an end-to-end data protection and monitoring mechanism. When the E2E group function is enabled, some mechanisms can be enabled to ensure that data will not be tampered with or lost during transmission.

[0091] Enabling the E2E message empty space filling function may refer to automatically filling unused empty spaces in the message through a specific mechanism in the vehicle ECU communication to ensure data integrity and smooth communication.

[0092] Enabling the ECU name as a message name function may refer to allowing a user to determine whether to add a prefix to the ECU name in automobile ECU communication, so that when a message is generated, it can be clearly reflected by which ECU node the message is sent.

[0093] Whether to add a custom message may refer to whether to allow the user to manually add a custom CAN message as needed when generating a DBC file or performing matrix configuration.

[0094] Adding the start offset function may mean allowing users to customize the GenMsgStartDelayTime attribute of the message when processing CAN messages and signals.

[0095] The GenMsgStartDelayTime attribute is used to determine how long the ECU will delay sending the message after it is started.

[0096] In the visualization configuration method and visualization configuration system of the DBC file of the above embodiment of the present disclosure, by acquiring the above functional configuration information configured by the user, flexibility and adaptability can be provided for the generated DBC file to meet the requirements of different automobile ECUs and communication systems.

[0097] In a specific embodiment, Figure 2a A schematic diagram of the first part of a visualization interface of a method for visually configuring a DBC file according to an embodiment of the present disclosure is shown. The first part may be a process guide for generating a DBC file, wherein:

[0098] When a standard matrix file exists, click the "Load standard matrix" button to load the standard matrix file. When a standard matrix file does not exist, click the "Load original matrix" button to record the original matrix file.

[0099] After loading the original matrix file, you can click the "Matrix Adaptation" button to convert the original matrix file into a standard matrix file based on the matrix configuration information.

[0100] Click the "Configure" button to write the user's matrix configuration information and function configuration information into the configuration file;

[0101] Click the "Generate DBC" button to convert the configured standard matrix file into a DBC file based on the functional configuration information.

[0102] Among them, the frame corresponding to the "standard matrix file" and the "DBC file" can be a progress box. When the standard matrix file is in the process of conversion, or the DBC file is in the process of generation, the progress of the conversion or generation can be displayed in the form of a progress bar.

[0103] Figure 2a The bottom text box in the can be a log information box, which is used to display whether there are execution errors during the DBC file generation process.

[0104] Figure 2b A schematic diagram of the second part of the visualization interface of a method for visually configuring a DBC file according to an embodiment of the present disclosure is shown. The second part is located at Figure 2a The side position of the first part shown can allow the user to configure matrix configuration information and function configuration information, where:

[0105] ECU node, subnet and message selection can determine the matrix configuration information, whether to enable the E2E group function, whether to enable the E2E message space filling function, whether to enable the ECU name as the message name function, whether to add a custom message or whether to increase the starting offset function, and can determine the functional configuration information.

[0106] In a specific embodiment, Figure 3 The present invention shows a preset error record representation schematic diagram of a visual configuration method for a DBC file in an embodiment of the present invention, in which specific attribute values ​​can be displayed in detail to enable developers to check and modify.

[0107] In a specific embodiment, Figure 4 A DBC file layout schematic diagram of a DBC file visualization configuration method according to an embodiment of the present disclosure is shown, wherein after the DBC file is generated according to the matrix file, the layout of the DBC file can be viewed in a visualization interface, wherein different color blocks can be used to represent different messages and signals.

[0108] In one embodiment, a visualization configuration system 50 is provided, and the visualization configuration system 50 corresponds one-to-one to the visualization configuration method of the DBC file in the above embodiment. Figure 5As shown, the visualization configuration system 50 includes a matrix loading module 501, a matrix adaptation module 502, and a DBC generation module 503, wherein each functional module is described in detail as follows:

[0109] A matrix loading module 501 is used to determine whether a standard matrix file exists, and when no standard matrix file exists, load the original matrix file;

[0110] The matrix adaptation module 502 is used to obtain the matrix configuration information of the user based on the visual interface, and perform matrix adaptation on the original matrix file to convert the original matrix file into a corresponding standard matrix file;

[0111] The DBC generation module 503 is used to obtain the user's function configuration information based on the visual interface, use the function configuration information to perform function configuration on the standard matrix file, and convert the function-configured standard matrix file into a DBC file.

[0112] In one embodiment, the matrix loading module 501 is used to load the original matrix file when it is determined that there is no standard matrix file, read the header of the original matrix file, determine the first column number corresponding to the message attribute and the second column number corresponding to the signal attribute in the header, and construct an attribute list according to the first column number and the second column number;

[0113] The matrix loading module 501 is used to traverse the original matrix file row by row and extract the message or signal corresponding to each row in the original matrix file based on the attribute list;

[0114] The matrix loading module 501 is used to load the standard matrix file when it is determined that there is a standard matrix file.

[0115] In one embodiment, the matrix loading module 501 is used to classify and sort the messages or signals corresponding to each row in the original matrix file;

[0116] The matrix loading module 501 is used to obtain at least one of the user's ECU node, subnet type and message type based on the visual interface;

[0117] A matrix loading module 501 is used to determine at least one message that satisfies at least one of an ECU node, a subnet type, and a message type in the original matrix file, and to construct a first table based on the at least one message;

[0118] The matrix loading module 501 is used to determine at least one signal corresponding to each message in the at least one message shown, and construct a second table based on the at least one signal; wherein the first table is used to store message-related attributes, and the second table is used to store signal-related attributes.

[0119] In one embodiment, the visualization configuration system 50 further includes a log generation module 504, wherein:

[0120] The log generation module 504 is used to determine whether there is an execution error during the process of converting the original matrix file into the standard matrix file;

[0121] The log generation module 504 is used to display a normal level log in a visual interface using a first color text when it is determined that there is no execution error;

[0122] The log generation module 504 is used to automatically correct the first execution error when it is determined that there is a first execution error, and display the warning level log in the visual interface using the second color text;

[0123] The log generation module 504 is used to display the alarm level log in the visual interface using a third color text when it is determined that the second execution error exists;

[0124] The log generation module 504 is used to record the alarm level log in the visualization interface into a preset error record table, send the preset error record table to the user, obtain the user's modification content based on the alarm level log in the preset error record table, and update the modification content into the standard matrix file.

[0125] In one embodiment, the function configuration information includes at least one of the following: whether to enable the E2E group function, whether to enable the E2E message space filling function, whether to enable the ECU name as the message name function, whether to add a custom message or whether to increase the starting offset function.

[0126] It should be noted that: when the visualization configuration system provided in the above embodiment implements the visualization configuration method of the corresponding DBC file, only the division of the above program modules is used as an example. In actual application, the above processing can be assigned to different program modules as needed, that is, the internal structure of the above system can be divided into different program modules to complete all or part of the above-described processing. Figure 1b The embodiments of the method shown belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.

[0127] The present disclosure also provides a computer device having the above Figure 5 The visual configuration system shown.

[0128] See also Figure 6 , Figure 6 is a structural diagram of another visual configuration system provided by an embodiment of the present disclosure, such as Figure 6As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. 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 the instructions executed in the computer device, including instructions stored in or on the memory to display the 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 computer devices can be connected, and each device 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.

[0129] 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.

[0130] 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.

[0131] 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 for at least one function; the data storage area may store data created according to the use of the computer device, 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 computer device 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.

[0132] 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.

[0133] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0134] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0135] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0136] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure 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 drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, 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.

[0137] A part of the present disclosure may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present disclosure through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.

[0138] Although the embodiments of the present disclosure 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 disclosure, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A visual configuration method for a DBC file, characterized in that: Applied to a visualization configuration system, the visualization configuration system includes: a matrix loading module, a matrix adaptation module, and a DBC generation module, and the method includes: A matrix loading module determines whether a standard matrix file exists, and when the standard matrix file does not exist, loads the original matrix file; A matrix adaptation module, which obtains matrix configuration information of a user based on a visual interface, and performs matrix adaptation on the original matrix file to convert the original matrix file into a corresponding standard matrix file; The DBC generation module obtains the function configuration information of the user based on the visual interface, uses the function configuration information to perform function configuration on the standard matrix file, and converts the function-configured standard matrix file into a DBC file.

2. The method according to claim 1, characterized in that: The matrix loading module determines whether a standard matrix file exists, and when the standard matrix file does not exist, loads the original matrix file, including: A matrix loading module, when it is determined that the standard matrix file does not exist, loads the original matrix file, reads the header of the original matrix file, determines the first column number corresponding to the message attribute and the second column number corresponding to the signal attribute in the header, and constructs an attribute list according to the first column number and the second column number; Traversing the original matrix file row by row, and extracting the message or signal corresponding to each row in the original matrix file based on the attribute list; The method further includes: the matrix loading module, when determining that the standard matrix file exists, loading the standard matrix file.

3. The method according to claim 2, characterized in that The matrix adaptation module obtains the matrix configuration information of the user based on the visual interface, and performs matrix adaptation on the original matrix file to convert the original matrix file into a corresponding standard matrix file, which is implemented based on the following steps: The matrix adaptation module classifies and organizes the messages or signals corresponding to each row in the original matrix file; The matrix adaptation module obtains at least one of the user's ECU node, subnet type and message type based on the visual interface; The matrix adaptation module determines at least one message satisfying at least one of the ECU node, the subnet type and the message type in the original matrix file, and constructs a first form based on the at least one message; The matrix adaptation module determines at least one signal corresponding to each message in the at least one message, and constructs a second table based on the at least one signal; wherein the first table is used to store message-related attributes, and the second table is used to store signal-related attributes.

4. The method according to claim 3, characterized in that The visual configuration system further includes: a log generation module, and the method further includes: The log generation module determines whether there is an execution error during the process of converting the original matrix file into the standard matrix file; The log generation module, when determining that there is no execution error, displays a normal level log in a visual interface using a first color text; The log generation module, when determining that a first execution error exists, automatically corrects the first execution error and displays a warning level log in the visualization interface using a second color text; The log generation module, when determining that a second execution error exists, displays the alarm level log in the visualization interface using a third color text; The log generation module records the alarm level log in the visualization interface into a preset error record table, sends the preset error record table to the user, obtains the user's modification content based on the alarm level log in the preset error record table, and updates the modification content into the standard matrix file.

5. The method according to claim 1, characterized in that The function configuration information includes at least one of the following: whether to enable the E2E group function, whether to enable the E2E message space filling function, whether to enable the ECU name as the message name function, whether to add a custom message or whether to increase the starting offset function.

6. A visual configuration system, characterized in that: The visual configuration system includes a matrix loading module, a matrix adaptation module, and a DBC generation module, wherein: A matrix loading module, used to determine whether a standard matrix file exists, and when the standard matrix file does not exist, load the original matrix file; A matrix adaptation module, used for acquiring matrix configuration information of a user based on a visual interface, and performing matrix adaptation on the original matrix file to convert the original matrix file into a corresponding standard matrix file; The DBC generation module is used to obtain the user's function configuration information based on the visual interface, use the function configuration information to perform function configuration on the standard matrix file, and convert the function-configured standard matrix file into a DBC file.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the DBC file visualization configuration method according to any one of claims 1 to 5.

8. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to enable a computer to execute the DBC file visualization configuration method according to any one of claims 1 to 5.