Vehicle network communication topology configuration method, device and related products
By obtaining and processing vehicle communication network signal demand information, generating CAN/CANFD and LIN signal files, optimizing vehicle network communication topology configuration files, solving the problems of poor configuration complexity and accuracy in the existing technology, and achieving efficient and accurate The whole vehicle network communication configuration.
Patent Information
- Application Number
- CN202210606872.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-31
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2042-05-31
AI Technical Summary
The existing vehicle network communication configuration is complex and time-consuming, resulting in poor accuracy of configuration parameters and cannot meet vehicle functional requirements and design indicators, affecting delivery quality.
By obtaining the vehicle communication network signal requirement information, identifying the demand categories, extracting CAN/CANFD signals and LIN signals requirement information, generating corresponding DBC and LDF files, generating vehicle network communication topology configuration files, and optimizing parameters to improve configuration efficiency and accuracy sex.
It improves the efficiency and accuracy of the communication topology configuration of the entire vehicle network, meets the functional needs and design indicators of the vehicle, and improves the delivery quality.
Smart Images

Figure CN114944984B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automotive network communication technology, and in particular to a method, device and related products for configuring vehicle network communication topology. Background Art
[0002] With the development of the automobile industry, the functions and complexity of the whole vehicle have increased, and the complexity and workload of the configuration of the whole vehicle network communication topology have risen sharply. The existing design work of the whole vehicle network communication configuration is mainly manual operation, supplemented by communication matrix development tools for data management. In order to meet the needs of different models, the network topology of various models requires personalized design and configuration. The configuration operation process is time-consuming and labor-intensive, and it is easy to cause the configuration parameters of the final configured network communication system to be inaccurate, which cannot meet the functional requirements and design indicators of the vehicle well, affecting the delivery quality. Summary of the invention
[0003] In view of this, one of the technical problems solved by the present application is to provide a whole vehicle network method, device, storage medium and electronic device to improve the efficiency of whole vehicle network communication development and configuration.
[0004] In a first aspect, an embodiment of the present application provides a method for configuring a vehicle network communication topology, characterized in that it includes:
[0005] Obtain vehicle communication network signal requirement information.
[0006] The vehicle communication network signal demand information is identified, and the demand category of the vehicle communication network signal demand information is determined.
[0007] According to the demand category, CAN / CANFD signal demand information and / or LIN signal demand information in the vehicle communication network signal demand information is extracted.
[0008] Generate a corresponding CAN / CANFD signal DBC file according to the CAN / CANFD signal requirement information. And / or generate a corresponding LIN signal LDF file according to the LIN signal requirement information.
[0009] Generate the vehicle network communication topology configuration file according to the CAN / CANFD signal DBC file and / or the LIN signal LDF file.
[0010] Optionally, in an embodiment of the present application, generating a corresponding CAN / CANFD signal DBC file according to the CAN / CANFD signal requirement information includes:
[0011] The CAN / CANFD signal requirement information is data edited to generate a CAN / CANFD signal requirement file that complies with a preset format.
[0012] The CAN / CANFD signal DBC file is generated according to the CAN / CANFD signal requirement file that conforms to the preset format.
[0013] Optionally, in an embodiment of the present application, before data editing of the CAN / CANFD signal requirement information is performed, the method further includes:
[0014] Perform regular detection on the CAN / CANFD signal requirement information.
[0015] Optionally, in an embodiment of the present application, generating a corresponding LIN signal LDF file according to the LIN signal requirement information includes:
[0016] The LIN requirement information is data edited to generate a LIN signal requirement file that complies with a preset format.
[0017] The corresponding LIN signal LDF file is generated according to the LIN signal requirement file that complies with the preset format.
[0018] Optionally, in an embodiment of the present application, before performing data editing on the LIN requirement information, the method further includes: performing regularization detection on the LIN requirement information.
[0019] Optionally, in one embodiment of the present application, obtaining the vehicle communication network signal requirement information includes: summarizing the communication requirement information of each node ECU of the vehicle communication network, and determining the vehicle communication network signal requirement information based on the summary result.
[0020] Optionally, in an embodiment of the present application, the method further includes: performing a regularization check on the acquired vehicle communication network signal requirement information, and adjusting parameters of the vehicle communication network signal requirement information according to the result of the regularization check.
[0021] Optionally, in one embodiment of the present application, the method also includes: determining difference information between the vehicle network communication topology profile and the vehicle communication network signal requirement information, the difference requirement information being used to characterize at least one of the CAN / CANFD signal requirement information and LIN signal requirement information that have not been successfully configured in the vehicle communication network requirement information, generating a difference network communication profile corresponding to at least one of the unconfigured CAN / CANFD signal requirement information and the LIN signal requirement information based on the difference information, and performing parameter optimization on the vehicle network communication topology profile based on the difference network communication profile.
[0022] Optionally, in one embodiment of the present application, the method further includes: obtaining the routing relationship of the whole vehicle communication network, and generating a network communication matrix file of each node ECU in the whole vehicle network communication according to the whole vehicle network communication topology configuration file and the routing relationship, so as to configure communication parameters for each node ECU.
[0023] In a second aspect, based on the vehicle network communication topology configuration method described in the first aspect of the present application, the present application also provides a vehicle network communication topology configuration device, including:
[0024] The acquisition module is used to obtain the vehicle communication network signal demand information.
[0025] The identification module is used to identify the vehicle communication network signal demand information and determine the demand category of the vehicle communication network signal demand information.
[0026] The extraction module is used to extract CAN / CANFD signal requirement information and / or LIN signal requirement information from the vehicle communication network signal requirement information according to the requirement category.
[0027] A conversion module is used to generate a corresponding CAN / CANFD signal DBC file according to the CAN / CANFD signal requirement information. And / or, to generate a corresponding LIN signal LDF file according to the LIN signal requirement information.
[0028] A generation module is used to generate the vehicle network communication topology configuration file according to the CAN / CANFD signal DBC file and / or the LIN signal LDF file.
[0029] In a third aspect, the present application also provides a storage medium on which a computer program is stored, and when the program is executed by a processor, it implements any one of the vehicle network communication topology configuration methods described in the first aspect of the present application.
[0030] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus.
[0031] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to any one of the vehicle network communication topology configuration methods described in the first aspect of the present application.
[0032] The present application provides a method, device and related products for configuring the network communication topology of a whole vehicle, wherein the method for configuring the network communication topology of a whole vehicle obtains the signal requirement information of the communication network of the whole vehicle. The signal requirement information of the communication network of the whole vehicle is identified, and the requirement category of the signal requirement information of the communication network of the whole vehicle is determined. According to the requirement category, the CAN / CANFD signal requirement information and / or the LIN signal requirement information in the signal requirement information of the whole vehicle communication network is extracted. A corresponding CAN / CANFD signal DBC file is generated according to the CAN / CANFD signal requirement information. And / or, a corresponding LIN signal LDF file is generated according to the LIN signal requirement information. The vehicle network communication topology configuration file is generated according to the CAN / CANFD signal DBC file and / or the LIN signal LDF file. It can not only effectively improve the configuration efficiency of the network communication topology, but also ensure the accuracy of the finally determined network communication topology. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A workflow diagram of a vehicle network communication topology configuration method provided in an embodiment of the present application.
[0034] Figure 2 A schematic diagram of the structure of a vehicle network communication topology configuration device provided in an embodiment of the present application.
[0035] Figure 3 A hardware structure diagram of an electronic device for executing a vehicle network communication topology configuration method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. The described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.
[0037] The specific implementation of the embodiment of the present application is further explained below in conjunction with the accompanying drawings of the embodiment of the present application.
[0038] Embodiment 1
[0039] The present application embodiment provides a method for configuring a vehicle network communication topology, such as Figure 1 As shown, Figure 1 A working flow diagram of a vehicle network communication topology configuration method provided in an embodiment of the present application, the vehicle network communication topology configuration method includes:
[0040] S101. Obtain vehicle communication network signal requirement information.
[0041] In the embodiment of the present application, the vehicle communication network signal requirement information is information that characterizes the vehicle communication network design requirement information. In the embodiment of the present application, the vehicle communication network requirement information is obtained and used as the basis for the vehicle network communication topology to ensure the compatibility of the final vehicle network communication topology configuration file with the preset vehicle communication network design requirement.
[0042] Optionally, in the implementation of the embodiment of the present application, the vehicle communication network signal demand information may be directly compiled and designed by the designer, or may be obtained by other means. Preferably, in an implementation of the embodiment of the present application, obtaining the vehicle communication network signal demand information may be: summarizing the communication demand information of each node ECU of the vehicle communication network, and determining the vehicle communication network signal demand information according to the summarized result. When designing the vehicle communication network, by summarizing the communication information requirements of each node ECU upstream and downstream of the vehicle communication network of the current vehicle, and determining the vehicle communication network signal demand information according to the summarized result, it can not only ensure the accuracy of the obtained vehicle communication network signal demand information, but also provide a simple, fast and normalized way to obtain the vehicle communication network signal demand information, which is conducive to the large-scale development of vehicle network communication topology configuration files adapted to different vehicle models and their communication needs, with good configuration flexibility and high accuracy.
[0043] S102: Identify the vehicle communication network signal demand information and determine the demand category of the vehicle communication network signal demand information.
[0044] S103. Extract CAN / CANFD signal requirement information and / or LIN signal requirement information from the vehicle communication network signal requirement information according to the requirement category.
[0045] Specifically, in an embodiment of the present application, in the vehicle network communication topology of the present embodiment, the communication signals that need to be configured are divided into two types, namely CAN / CANFD signal demand information and / or LIN signal demand information for processing LIN network segment information. The present application identifies the acquired vehicle communication network signal demand information, that is, basically determines which type of the above-mentioned signal demand information should be included in the target vehicle network communication topology configuration file to be configured, so as to ensure the accuracy and comprehensiveness of the next processing and the final processing result. For example, when the vehicle communication network signal demand information only includes one of the CAN / CANFD signal demand information or the LIN signal demand information, or the signal demand of one of the two demand information accounts for a large proportion, it can provide a basis for the processing resources that need to be allocated when processing the demand information that accounts for a large proportion in the next step, so as to improve the efficiency of data processing while ensuring the accuracy of the demand information.
[0046] Optionally, in an implementation of the embodiment of the present application, before identifying the vehicle communication network signal requirement information, the vehicle network communication topology configuration method further includes performing a regularization check on the acquired vehicle communication network signal requirement information. Parameters of the vehicle communication network signal requirement information are adjusted according to the result of the regularization check.
[0047] In the embodiment of the present application, the regular check method is used to determine whether the network communication demand information is legal. If it passes the regular check, it means that the network communication demand information is legal, and then the legal vehicle communication network signal demand information is identified. If it is illegal, an illegal prompt is generated, and the illegal field data in the illegal vehicle communication network signal demand information can also be marked, and the marking result can be fed back to the development and design personnel, so that the designer can modify and adjust the demand information based on the feedback result. It can not only further ensure the accuracy of the acquired vehicle communication network signal demand information, but also better ensure the processing efficiency of the next step of processing the demand information.
[0048] S104, generating a corresponding CAN / CANFD signal DBC file according to the CAN / CANFD signal requirement information, and / or generating a corresponding LIN signal LDF file according to the LIN signal requirement information.
[0049] In the embodiment of the present application, the DBC file is released by Victor Company of Germany. It is used to describe the information of each logical node in a single CAN network. Based on this file, it can be developed to monitor and analyze the operating status of all logical nodes in the CAN network, and it can also be a targeted ECU communication application software. DBC file is a file format, and the .dbc file is a file in ASCII format, and its .dbc extension can be used to define the CAN network. At the same time, in an actual application scenario of the present embodiment, there is another situation, such as the vehicle network demand signal of the network communication topology configuration of the whole vehicle currently designed is mainly a LIN signal demand signal for processing the LIN network segment signal. Specifically, the LIN network segment is a master-slave structure, and only when the main task of the master node sends a message request, the LIN network segment will transmit the message. After the master node sends a message transmission request, the data can be transmitted, and the message transmission direction here is described by the LDF file. Therefore, in order to facilitate the editing and design of the LIN signal demand information of the whole vehicle, it can be set to generate the corresponding LIN signal LDF file according to the LIN signal demand information after the regular check, thereby improving the accuracy of generating the corresponding LIN signal LDF file. The embodiment of the present application generates corresponding DBC files and / or LDF files according to different demand information, which can not only improve the configuration efficiency of the vehicle network communication topology configuration method of the present embodiment, but also ensure the convenience and accuracy of the configuration.
[0050] Specifically, when generating the corresponding CAN / CANFD signal DBC file according to the CAN / CANFD signal requirement information, a preset editing script can be used to parse the extracted CAN / CANFD signal requirement information, obtain the requirement table, package and group the different information in the requirement table, calculate the starting position of each signal in a frame, and after completing this operation, format the entire requirement table to generate a DBC file that conforms to the configuration format. The DBC file that conforms to the configuration format is the basic file used in the next step to generate the vehicle network communication topology configuration file, so as to improve the generation efficiency of the vehicle network communication topology configuration file generated based on the DBC file.
[0051] Optionally, in an embodiment of the present application, generating a corresponding CAN / CANFD signal DBC file according to CAN / CANFD signal requirement information includes:
[0052] Data is edited on CAN / CANFD signal requirement information to generate a CAN / CANFD signal requirement file that conforms to a preset format, and a CAN / CANFD signal DBC file is generated according to the CAN / CANFD signal requirement file that conforms to the preset format, thereby simplifying the process of generating configuration files for CAN / CANFD signals and improving generation efficiency.
[0053] Optionally, in one embodiment of the present application, before generating a corresponding CAN / CANFD signal DBC file according to the CAN / CANFD signal requirement information, the vehicle network communication topology configuration method may further include: performing a regular check on the extracted CAN / CANFD signal requirement information. Specifically, if the extracted CAN / CANFD signal requirement information passes the regular check, a corresponding CAN / CANFD signal DBC file is generated according to the CAN / CANFD signal requirement. If the regular check fails, the information data that fails the regular check is marked, and the marking result is fed back to the design and development personnel, thereby improving the accuracy of the information contained in the generated CAN / CANFD signal DBC file. In an embodiment of the present application, through this regular check and generating the corresponding feedback result, the process of processing the CAN / CANFD signal requirement information forms a closed-loop operation to a certain extent, thereby improving the processing accuracy of this part of the requirement information.
[0054] Optionally, in an embodiment of the present application, generating a corresponding LIN signal LDF file according to LIN signal requirement information includes:
[0055] Data editing is performed on the LIN requirement information to generate a LIN signal requirement file that conforms to a preset format, and a corresponding LIN signal LDF file is generated according to the LIN signal requirement file that conforms to the preset format. In an embodiment of the present application, by performing data editing on the determined LIN requirement information and then generating a LIN signal requirement file that conforms to a preset format, the efficiency of generating an LDF file can be effectively improved. For example, a preset data editing script is used to first generate a corresponding LIN requirement table according to the LIN requirement information, and the information of different LIN signals contained in the table is packaged and grouped, and the start bit of each signal in a frame is calculated. After completion, the LIN requirement table is formatted to generate a LIN signal requirement file that conforms to a preset format, such as an EXCEL file, thereby ensuring the accuracy of the generated LDF file while improving the efficiency of generating the corresponding LIN signal LDF file.
[0056] Optionally, in an implementation method of an embodiment of the present application, before data editing of the LIN requirement information, it also includes: performing a regularization check on the LIN requirement information. For example, a regularization check is performed on the LIN requirement information through a preset LIN signal regularization check specification script. The process is simple and convenient, and the result is reliable. Correspondingly, if the LIN requirement information passes the check, the next step of processing is continued. If the regularization check fails, the part of the information data or field that fails in the LIN requirement information is marked, and the marking result is fed back to the development and design personnel, so as to adjust or optimize the parameters of the LIN requirement information, thereby further improving the accuracy of the generated LDF file, and further improving the efficiency of the vehicle network communication topology configuration. Furthermore, in an embodiment of the present application, through this regularization check and generating the corresponding feedback result, the process of processing the LIN requirement information forms a closed-loop operation to a certain extent, thereby improving the processing accuracy of this part of the requirement information.
[0057] S105. Generate a vehicle network communication topology configuration file according to the CAN / CANFD signal DBC file and / or the LIN signal LDF file.
[0058] In an embodiment of the present application, a vehicle network communication topology configuration file is generated by acquiring the CAN / CANFD signal DBC file and / or the LIN signal LDF file, and the processing result is accurate and reliable with high generation efficiency.
[0059] Specifically, in one implementation of the embodiment of the present application, a preset network communication matrix development tool can be used, and the network communication matrix development tool is configured with a communication network synthesis algorithm that is adapted to various demand information aggregation mappings, so that the preset network communication matrix development tool can quickly generate the vehicle network communication topology according to the CAN / CANFD signal DBC file and / or the LIN signal LDF file. Optionally, the preset network communication matrix development tool used can be a third-party tool to improve the applicability of the vehicle network communication topology configuration method of the embodiment of the present application and reduce the cost required to design the vehicle network communication topology configuration method.
[0060] Optionally, in one embodiment of the present application, the method further includes: determining difference information between the vehicle network communication topology configuration file and the vehicle communication network signal requirement information, the difference requirement information being used to characterize at least one of the CAN / CANFD signal requirement information and LIN signal requirement information that have not been successfully configured in the vehicle communication network requirement information. Based on the difference information, a difference network communication configuration file corresponding to at least one of the CAN / CANFD signal requirement information and LIN signal requirement information that have not been successfully configured is generated. Parameters of the vehicle network communication topology configuration file are optimized based on the difference network communication configuration file.
[0061] In this embodiment, in order to further improve the accuracy of the generated vehicle network communication topology configuration, at this time, by generating a difference report of CAN / CANFD signal requirement information and / or LIN signal requirement information in the network communication requirement information corresponding to the original design of the vehicle that has not been successfully configured in the current vehicle network communication topology, the vehicle network topology is adjusted and optimized according to these difference reports containing CAN / CANFD signal requirement information and / or LIN signal requirement information, and the entire process of generating the vehicle network communication topology configuration file can also achieve better closed-loop verification and correction, so as to improve the configuration efficiency and accuracy of the vehicle network communication topology.
[0062] Optionally, in one embodiment of the present application, the method further comprises: obtaining a routing relationship of the vehicle communication network. According to the vehicle network communication topology configuration file and the routing relationship, a network communication matrix file of each node ECU in the vehicle network communication is generated to configure communication parameters for each node ECU.
[0063] In the above implementation method of this embodiment, in order to facilitate the configuration of each node ECU of the whole vehicle, a routing configuration unit can also be designed, through which the routing relationship of the designed whole vehicle is configured, so as to combine the generation of the whole vehicle network topology and routing relationship to generate a network communication matrix file of each node EUC of the whole vehicle, so as to improve the applicability of the whole vehicle network topology configuration method provided in this application.
[0064] The embodiment of the present application provides a method for configuring the network communication topology of a whole vehicle, which obtains the signal requirement information of the communication network of the whole vehicle. The signal requirement information of the communication network of the whole vehicle is identified, and the requirement category of the signal requirement information of the communication network of the whole vehicle is determined. According to the requirement category, the CAN / CANFD signal requirement information and / or the LIN signal requirement information in the signal requirement information of the whole vehicle communication network is extracted. According to the CAN / CANFD signal requirement information, a corresponding CAN / CANFD signal DBC file is generated. And / or, a corresponding LIN signal LDF file is generated according to the LIN signal requirement information. According to the CAN / CANFD signal DBC file and / or the LIN signal LDF file, a configuration file of the network communication topology of the whole vehicle is generated. It can not only effectively improve the configuration efficiency of the network communication topology, but also ensure the accuracy of the final network communication topology, meet the different functional requirements and design indicators of the vehicle, and improve the delivery quality.
[0065] Embodiment 2
[0066] Based on the vehicle network communication topology configuration method described in the first embodiment of the present application, the present application also provides a vehicle network communication topology configuration device, such as Figure 2 As shown, Figure 2A schematic diagram of a vehicle network communication topology configuration device 20 provided in the present embodiment, the vehicle network communication topology configuration device 20 includes:
[0067] The acquisition module 201 is used to acquire the vehicle communication network signal requirement information.
[0068] The identification module 202 is used to identify the vehicle communication network signal demand information and determine the demand category of the vehicle communication network signal demand information.
[0069] The extraction module 203 is used to extract CAN / CANFD signal requirement information and / or LIN signal requirement information from the vehicle communication network signal requirement information according to the requirement category.
[0070] The conversion module 204 is used to generate a corresponding CAN / CANFD signal DBC file according to the CAN / CANFD signal requirement information and / or to generate a corresponding LIN signal LDF file according to the LIN signal requirement information.
[0071] The generation module 205 is used to generate the vehicle network communication topology configuration file according to the CAN / CANFD signal DBC file and / or the LIN signal LDF file.
[0072] Optionally, in one embodiment of the present application, the conversion module 204 is further used to edit the CAN / CANFD signal requirement information to generate a CAN / CANFD signal requirement file that conforms to a preset format. The CAN / CANFD signal DBC file is generated according to the CAN / CANFD signal requirement file that conforms to a preset format.
[0073] Optionally, in one embodiment of the present application, the vehicle network communication topology configuration device also includes a first regularity check module (not shown in the accompanying drawings), which is used to perform regularity detection on the CAN / CANFD signal requirement information before data editing of the CAN / CANFD signal requirement information.
[0074] Optionally, in an embodiment of the present application, the conversion module 204 is further configured to edit the LIN requirement information to generate a LIN signal requirement file in a preset format and to generate the corresponding LIN signal LDF file according to the LIN signal requirement file in a preset format.
[0075] Optionally, in an embodiment of the present application, the vehicle network communication topology configuration device further includes a second regularity check module (not shown in the drawings), and the second regularity check module is used to perform regularity detection on the LIN requirement information.
[0076] Optionally, in an embodiment of the present application, the acquisition module 201 is also used to summarize the communication requirement information of each node ECU of the whole vehicle communication network, and determine the signal requirement information of the whole vehicle communication network according to the summary result.
[0077] Optionally, in one embodiment of the present application, the vehicle network communication topology configuration device also includes a verification module (not shown in the accompanying drawings), which is used to perform a regularization check on the acquired vehicle communication network signal requirement information, and adjust parameters of the vehicle communication network signal requirement information according to the result of the regularization check.
[0078] Optionally, in one embodiment of the present application, the vehicle network communication topology configuration device also includes a correction module (not shown in the accompanying drawings), which is used to determine the difference information between the vehicle network communication topology configuration file and the vehicle communication network signal requirement information, and the difference requirement information is used to characterize at least one of the CAN / CANFD signal requirement information and LIN signal requirement information that have not been successfully configured in the vehicle network communication requirement information. Based on the difference information, a difference network communication configuration file corresponding to at least one of the unsuccessfully configured CAN / CANFD signal requirement information and the LIN signal requirement information is generated, and the vehicle network communication topology configuration file is optimized according to the difference network communication configuration file.
[0079] Optionally, in one embodiment of the present application, the vehicle network communication topology configuration device also includes a configuration module (not shown in the accompanying drawings), which is used to: obtain the routing relationship of the vehicle communication network, and generate a network communication matrix file for each node ECU in the vehicle network communication according to the vehicle network communication topology configuration file and the routing relationship, so as to configure communication parameters for each node ECU.
[0080] Embodiment 3
[0081] Based on the vehicle network communication topology configuration method provided in the above embodiments, this embodiment provides a computer storage medium, on which a computer program is stored. When the processor executes the computer program stored on the storage medium, the vehicle network communication topology configuration method as described in any of the above method embodiments of the present application is implemented. The vehicle network communication topology configuration method includes but is not limited to:
[0082] Obtain vehicle communication network signal requirement information.
[0083] The vehicle communication network signal demand information is identified, and the demand category of the vehicle communication network signal demand information is determined.
[0084] According to the demand category, CAN / CANFD signal demand information and / or LIN signal demand information in the vehicle communication network signal demand information is extracted.
[0085] Generate a corresponding CAN / CANFD signal DBC file according to the CAN / CANFD signal requirement information. And / or generate a corresponding LIN signal LDF file according to the LIN signal requirement information.
[0086] Generate the vehicle network communication topology configuration file according to the CAN / CANFD signal DBC file and / or the LIN signal LDF file.
[0087] Embodiment 4:
[0088] Based on the vehicle network communication topology configuration method provided in the embodiment, the embodiment of the present application also provides an electronic device for relationship acquisition, such as Figure 3 As shown, Figure 3 A schematic diagram of the hardware structure of an electronic device provided in this embodiment for executing the vehicle network communication topology configuration method provided in any of the above method embodiments. The hardware structure of the electronic device may include: a processor 301, a communication interface 302, a computer readable medium 303 and a communication bus 304.
[0089] The processor 301 , the communication interface 302 , and the computer-readable medium 303 communicate with each other via the communication bus 304 .
[0090] Optionally, the communication interface 302 may be an interface of a communication module, such as an interface of a GSM module.
[0091] The processor 301 may be specifically configured to run an executable program stored in the memory, thereby executing all or part of the methods of any of the above method embodiments, including but not limited to:
[0092] Obtain vehicle communication network signal requirement information.
[0093] The vehicle communication network signal demand information is identified, and the demand category of the vehicle communication network signal demand information is determined.
[0094] According to the demand category, CAN / CANFD signal demand information and / or LIN signal demand information in the vehicle communication network signal demand information is extracted.
[0095] Generate a corresponding CAN / CANFD signal DBC file according to the CAN / CANFD signal requirement information. And / or generate a corresponding LIN signal LDF file according to the LIN signal requirement information.
[0096] Generate the vehicle network communication topology configuration file according to the CAN / CANFD signal DBC file and / or the LIN signal LDF file.
[0097] So far, the application has described specific embodiments of the subject matter. Other embodiments are within the scope of the appended claims. In some cases, the actions recorded in the claims can be performed in different orders and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing can be advantageous.
[0098] In the 1990s, it was very clear whether the improvement of a technology was hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with hardware entity modules. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0099] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.
[0100] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0101] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0102] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0103] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0104] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0105] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific transactions or implement specific abstract data types. The present application may also be practiced in distributed computing environments where transactions are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0106] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0107] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A vehicle network communication topology configuration method, characterized in that: include: Acquiring vehicle communication network signal demand information, wherein acquiring the vehicle communication network signal demand information comprises: summarizing the communication demand information of each node ECU of the vehicle communication network, and determining the vehicle communication network signal demand information according to the result of the summarization; Identify the vehicle communication network signal demand information and determine the demand category of the vehicle communication network signal demand information; Extracting CAN / CANFD signal requirement information and / or LIN signal requirement information from the vehicle communication network signal requirement information according to the requirement category; Generate a corresponding CAN / CANFD signal DBC file according to the CAN / CANFD signal requirement information; and / or generate a corresponding LIN signal LDF file according to the LIN signal requirement information; Generate the vehicle network communication topology configuration file according to the CAN / CANFD signal DBC file and / or the LIN signal LDF file; The method further comprises: Determine difference information between the vehicle network communication topology configuration file and the vehicle communication network signal requirement information, wherein the difference requirement information is used to characterize at least one of the CAN / CANFD signal requirement information and the LIN signal requirement information that are not successfully configured in the vehicle communication network requirement information; Generate a difference network communication configuration file corresponding to at least one of the unsuccessfully configured CAN / CANFD signal requirement information and the LIN signal requirement information according to the difference information; Optimizing parameters of the vehicle network communication topology configuration file according to the difference network communication configuration file; The generating of the corresponding CAN / CANFD signal DBC file according to the CAN / CANFD signal requirement information includes: using a preset editing script to parse the extracted CAN / CANFD signal requirement information, obtaining a requirement table, packaging and grouping different information in the requirement table, calculating the start bit of each signal in a frame, and formatting the entire requirement table after completing this operation to generate a DBC file that conforms to the configuration format; The method of generating a corresponding LIN signal LDF file according to the LIN signal requirement information includes: using a preset data editing script to first generate a corresponding LIN requirement table according to the LIN requirement information, packaging and grouping information of different LIN signals contained in the LIN requirement table, calculating the start bit of each signal in a frame, and formatting the LIN requirement table after completion to generate a LIN signal requirement file that conforms to a preset format, and generating a corresponding LIN signal LDF file according to the LIN signal requirement file that conforms to the preset format.
2. The vehicle network communication topology configuration method according to claim 1, characterized in that: Generate a corresponding CAN / CANFD signal DBC file according to the CAN / CANFD signal requirement information, including: Performing data editing on the CAN / CANFD signal requirement information to generate a CAN / CANFD signal requirement file that complies with a preset format; The CAN / CANFD signal DBC file is generated according to the CAN / CANFD signal requirement file that conforms to the preset format.
3. The vehicle network communication topology configuration method according to claim 2, characterized in that: Before data editing of the CAN / CANFD signal requirement information, the method further includes: Perform regular detection on the CAN / CANFD signal requirement information.
4. The vehicle network communication topology configuration method according to claim 1, characterized in that: Before the data editing of the LIN requirement information is performed, the method further includes: A regular check is performed on the LIN requirement information.
5. The vehicle network communication topology configuration method according to claim 1, characterized in that: The method further comprises: Performing a canonical check on the acquired vehicle communication network signal requirement information; The parameters of the vehicle communication network signal requirement information are adjusted according to the result of the regularization check.
6. The vehicle network communication topology configuration method according to claim 1, characterized in that: The method further comprises: Obtain the routing relationship of the vehicle communication network; According to the vehicle network communication topology configuration file and the routing relationship, a network communication matrix file of each node ECU in the vehicle network communication is generated to configure communication parameters for each node ECU.
7. A vehicle network communication topology configuration device, characterized in that: include: An acquisition module is used to acquire the vehicle communication network signal demand information, wherein the acquisition of the vehicle communication network signal demand information includes: summarizing the communication demand information of each node ECU of the vehicle communication network, and determining the vehicle communication network signal demand information according to the result of the summarization; An identification module, used to identify the vehicle communication network signal demand information and determine the demand category of the vehicle communication network signal demand information; An extraction module, used to extract CAN / CANFD signal requirement information and / or LIN signal requirement information from the vehicle communication network signal requirement information according to the requirement category; A conversion module, used to generate a corresponding CAN / CANFD signal DBC file according to the CAN / CANFD signal requirement information; and / or, to generate a corresponding LIN signal LDF file according to the LIN signal requirement information; A generating module, used for generating the vehicle network communication topology configuration file according to the CAN / CANFD signal DBC file and / or the LIN signal LDF file; Correction modules for: Determine difference information between the vehicle network communication topology configuration file and the vehicle communication network signal requirement information, wherein the difference requirement information is used to characterize at least one of the CAN / CANFD signal requirement information and the LIN signal requirement information that are not successfully configured in the vehicle communication network requirement information; Generate a difference network communication configuration file corresponding to at least one of the unsuccessfully configured CAN / CANFD signal requirement information and the LIN signal requirement information according to the difference information; Optimizing parameters of the vehicle network communication topology configuration file according to the difference network communication configuration file; The conversion module is also used to use a preset editing script to parse the extracted CAN / CANFD signal requirement information, obtain a requirement table, package and group different information in the requirement table, calculate the starting position of each signal in a frame, and format the entire requirement table after completing this operation to generate a DBC file that conforms to the configuration format; use a preset data editing script to first generate a corresponding LIN requirement table based on the LIN requirement information, package and group the information of different LIN signals contained in the LIN requirement table, calculate the starting position of each signal in a frame, and format the LIN requirement table after completion to generate a LIN signal requirement file that conforms to the preset format, and generate a corresponding LIN signal LDF file based on the LIN signal requirement file that conforms to the preset format.
8. A storage medium having a computer program stored thereon, which, when executed by a processor, implements the vehicle network communication topology configuration method as described in any one of claims 1 to 6.
9. An electronic device, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the vehicle network communication topology configuration method as described in any one of claims 1-6.
