Vehicle communication parameter configuration method and device, equipment and storage medium
By automatically parsing DBC files and comparing configuration data, converting them into MCAL format to overwrite them to the vehicle communication system, solving the problems of time-consuming, labor-intensive and error-prone problems in traditional manual updates, realizing fast and accurate updates of vehicle communication parameters, and improving the System stability and security.
Patent Information
- Application Number
- CN202411071636.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-08-06
AI Technical Summary
Traditional manual update methods make vehicle communication parameters updated time-consuming and labor-intensive, error-prone, unable to meet the growing number of ECUs and complex communication needs, affecting the stability and security of the system.
By obtaining the DBC file, parsing out the CAN communication node identification and filtering frame configuration data, comparing it with the backup communication system configuration parameters, identifying the configuration that needs to be updated, and converting it into MCAL format, and directly overwriting it to the vehicle communication system , perform compatibility tests before the update end to ensure the validity and accuracy of the update process.
It realizes fast, accurate and automated updates of vehicle communication parameters, improves update efficiency and accuracy, reduces manual maintenance work, reduces maintenance costs, enhances data security and traceability, and ensures configuration accuracy and System stability.
Smart Images

Figure CN119030960A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle communication technology, and in particular to a vehicle communication parameter configuration method, device, equipment and storage medium. Background Art
[0002] In the modern automotive industry, with the increase in the number of electronic control units (ECUs) and the complexity of their functions, the vehicle's communication system has become increasingly important. Vehicle communication is not only related to the performance and safety of the vehicle, but also the basis for realizing advanced technologies such as intelligent transportation and autonomous driving. Therefore, the efficiency, stability and security of the vehicle communication system have become the focus of automobile manufacturers and R&D personnel.
[0003] Vehicle communication systems are usually based on the CAN (Controller Area Network) protocol, which implements various control functions through information exchange between ECUs. With the continuous increase and update of vehicle functions, ECU communication parameters also need to be updated regularly to adapt to new functional requirements or improve performance. However, the traditional manual update method is not only time-consuming and labor-intensive, but also prone to errors, affecting the stability and security of vehicle communications.
[0004] In the face of the above problems, how to achieve fast, accurate and automatic updates of vehicle communication parameters has become a technical challenge. The existing manual update process cannot meet the growing number of ECUs and complex communication requirements. Therefore, how to design an automated parameter update process to improve the efficiency of CAN communication filter frame configuration, reduce human errors and enhance the adaptability and flexibility of the system has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] The main purpose of this application is to provide a vehicle communication parameter configuration method, device, equipment and storage medium, aiming to solve the technical problem of how to design an automated parameter update process to improve the efficiency of CAN communication filter frame configuration, reduce human errors and enhance the adaptability and flexibility of the system.
[0006] To achieve the above object, the present application provides a vehicle communication parameter configuration method, the method comprising the following steps: Get the DBC file; According to the DBC file, communication configuration update information is obtained; The communication parameters of the vehicle are configured according to the communication configuration update information to complete the automatic update of the vehicle communication system.
[0007] Optionally, before obtaining the communication configuration update information according to the DBC file, the method further includes: Obtain authentication information and version information of the DBC file; When the authentication information is legal, obtaining version information of the local communication configuration backup file; If the version information of the backup file and the version information of the DBC file meet the configuration update condition, the step of obtaining communication configuration update information according to the DBC file is performed.
[0008] Optionally, obtaining communication configuration update information according to the DBC file includes: According to the DBC file, a CAN communication node identifier and filter frame configuration data corresponding to the CAN communication node are obtained; Communication configuration update information is obtained according to the filtering frame configuration data and the communication system configuration parameter backup table.
[0009] Optionally, obtaining a CAN communication node identifier and filter frame configuration data corresponding to the CAN communication node according to the DBC file includes: Identify and record the CAN communication node identifier in the DBC file through the DBC parsing script; Obtaining message frame definition information under the CAN communication node identifier; According to the message frame definition information, filter frame configuration data corresponding to the CAN communication node is obtained.
[0010] Optionally, obtaining communication configuration update information according to the filtering frame configuration data and the communication system configuration parameter backup table includes: According to the filtered frame configuration data, a configuration data table to be updated arranged according to a preset CAN communication node sequence is obtained; According to the communication system configuration parameter backup table, an original configuration data table arranged according to a preset CAN communication node sequence is obtained; Comparing the configuration data table to be updated with the original configuration data table to obtain the communication filtering frame configuration update content; The communication filtering frame configuration update content is converted into MCAL format, and the converted MCAL file is used as communication configuration update information.
[0011] Optionally, configuring the communication parameters of the vehicle according to the communication configuration update information to complete the automatic update of the vehicle communication system includes: Determine a file path for updating communication parameters according to the communication configuration update information; The communication configuration update information is overwritten to the file path to complete the automatic update of the vehicle communication system.
[0012] Optionally, after overwriting the communication configuration update information to the file path, the method further includes: restarting the vehicle communication system and performing a configuration update compatibility test; When the compatibility test is passed, the communication system configuration parameter backup table is updated according to the communication configuration update information to complete the update of the configuration information backup.
[0013] In addition, to achieve the above-mentioned purpose, the present application also provides a vehicle communication parameter configuration device, the vehicle communication parameter configuration device comprising: Data acquisition module, used to obtain DBC files; A data processing module, used for obtaining communication configuration update information according to the DBC file; The configuration update module is used to configure the communication parameters of the vehicle according to the communication configuration update information to complete the automatic update of the vehicle communication system.
[0014] In addition, to achieve the above-mentioned purpose, the present application also provides a vehicle communication parameter configuration device, which includes: a memory, a processor, and a vehicle communication parameter configuration program stored on the memory and executable on the processor, and the vehicle communication parameter configuration program is configured to implement the steps of the vehicle communication parameter configuration method described above.
[0015] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, on which a vehicle communication parameter configuration program is stored, and when the vehicle communication parameter configuration program is executed by a processor, the steps of the vehicle communication parameter configuration method described above are implemented.
[0016] The present application obtains a DBC file; obtains communication configuration update information according to the DBC file; and configures the communication parameters of the vehicle according to the communication configuration update information to complete the automated update of the vehicle communication system.
[0017] In summary, this application parses the DBC file to obtain the identification and filter frame configuration data of the CAN communication node, and then compares it with the backup communication system configuration parameters to identify the configuration that needs to be updated. These updates are then converted to MCAL format and directly overwritten into the vehicle communication system. Before the update is completed, the system will restart and perform a compatibility test to ensure that the update process is effective, and update the backup table of configuration parameters after passing the test to ensure the accuracy and security of the configuration information. This vehicle communication parameter configuration method improves update efficiency and accuracy through an automated process, ensures the accuracy of the configuration and the stability of the system, reduces manual maintenance work, reduces maintenance costs, and enhances data security and traceability. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] Figure 1 This is a flow chart of the first embodiment of the vehicle communication parameter configuration method of the present application; Figure 2 This is a flow chart of the second embodiment of the vehicle communication parameter configuration method of the present application; Figure 3 This is a functional module diagram of the vehicle communication parameter configuration device of the present application; Figure 4 It is a structural diagram of a terminal device in the hardware operating environment involved in the embodiment of the present application.
[0021] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0022] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0023] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0024] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a vehicle communication parameter configuration device, etc. The following takes the vehicle communication parameter configuration device as an example to illustrate this embodiment and the following embodiments.
[0025] The present application embodiment provides a vehicle communication parameter configuration method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the present application.
[0026] In this embodiment, the vehicle communication parameter configuration method includes: Step S10: Obtain the DBC file.
[0027] It should be noted that the DBC file, full name Database CAN, is a file used to describe the data format in the CAN (Controller Area Network) network. The main function of the DBC file is to provide a standardized method to describe and parse CAN messages so that CAN message definitions can be shared and exchanged in different development environments, and to ensure data consistency between different devices and platforms. The DBC file defines the information of each frame message in CAN communication, such as message name, ID, message type, message cycle, data field length, signal definition, etc. It allows part or all of the data in the CAN frame to be identified, including identification name, scaling, offset and definition information. The DBC file provides a standardized description method for data communication on the automotive CAN bus, allowing different electronic control units (ECUs) to follow unified rules for data exchange.
[0028] It can be understood that the parsing process of the DBC file in this embodiment is the starting point of the automated configuration process. By parsing the DBC file, the necessary message information can be automatically extracted. Among them, in the DBC file, the information on the message types that each node can receive or process is recorded, mainly distributed in the following parts: Network node definition (BU): This part defines the name and attributes of each electronic control unit (ECU) in the CAN network, that is, the node. Although it does not directly list the message types processed by the node, it provides basic information about the node; Message frame definition (BO): The BO record defines the specific message transmitted on the CAN network. Each message definition includes the CAN ID, size, sending node and other information of the message. The receiving capability of the node usually corresponds to the message type it can send; Filtering rules (FILTER): If the DBC file contains filtering rules, the FILTER record will define the rules for the node to receive messages, which are based on the CAN ID or other attributes of the message.
[0029] It should be understood that in actual applications, the software or firmware of the node usually configures the filtering rules of its CAN controller according to these definitions in the DBC file, thereby determining which message types the node can receive and process. The configuration of the node may also include response logic to specific messages or signals, which is implemented based on the information provided in the DBC file.
[0030] Step S20: Obtain communication configuration update information according to the DBC file.
[0031] It should be noted that the existing CAN communication filter frame configuration process is usually performed by developers manually configuring the DBC file to generate relevant codes. This process is not only technically demanding, but also very cumbersome and requires an in-depth understanding of the CAN protocol and specific hardware. Manual configuration of the filter frame increases the workload of developers in project development and later maintenance. Each time a node is added or modified in the CAN network, the filtering rules need to be reconfigured, which undoubtedly increases the workload. In addition, since the configuration process relies on manual operation, there is a possibility of error. In order to overcome the above difficulties, this embodiment configures multiple automated scripts to replace manual operations, thereby reducing the requirements for developers to understand the CAN protocol and hardware and increasing the speed of the configuration update process.
[0032] In one embodiment, obtaining communication configuration update information according to the DBC file includes: obtaining a CAN communication node identifier and filter frame configuration data corresponding to the CAN communication node according to the DBC file; and obtaining communication configuration update information according to the filter frame configuration data and a communication system configuration parameter backup table.
[0033] It can be understood that the communication configuration update information here refers to the nodes participating in the configuration update in this round of updates, and the corresponding node filter frame setting content. Obtaining the communication configuration update information is generally divided into two stages. In the first stage, the nodes participating in the configuration update in the file and the corresponding configuration parameters of these nodes in the file are parsed through the corresponding OBC file parsing script, and a configuration update table is formed; in the second stage, the configuration parameter update table is compared with the locally stored configuration parameter backup to obtain the nodes with changed configurations and the changed content. According to the comparison results, the corresponding MCAL format configuration update file is generated and used as the communication configuration update information.
[0034] It should be understood that MCAL provides a standardized hardware abstraction interface, allowing upper-level software to access hardware resources in a unified manner. Files in the MCAL format can be directly recognized and processed by the system, automating the hardware configuration and initialization process, which allows the parameter update process to be completed in one step.
[0035] Step S30: configuring the communication parameters of the vehicle according to the communication configuration update information to complete the automatic update of the vehicle communication system.
[0036] It can be understood that, since the communication configuration update information in MCAL format that can be directly overwritten into the corresponding node file path has been obtained in the aforementioned steps, the configuration parameters can be updated after the file path corresponding to each CAN node is determined.
[0037] In one embodiment, the communication configuration update information configures the communication parameters of the vehicle to complete the automatic update of the vehicle communication system, including: determining the file path for communication parameter update based on the communication configuration update information; overwriting the communication configuration update information to the file path; restarting the vehicle communication system and performing a configuration update compatibility test; when the compatibility test passes, updating the communication system configuration parameter backup table based on the communication configuration update information to complete the update of the configuration information backup.
[0038] It should be noted that after the configuration parameters are overwritten, compatibility testing is required to ensure that the current configuration can be used correctly. If the test fails, it is necessary to roll back according to the backup configuration parameters to avoid the failure of the update process affecting subsequent use.
[0039] It is understandable that before the vehicle leaves the factory, the manufacturer will define a series of test cases based on the functional requirements of the vehicle communication system to ensure that all key functions and communication scenarios are covered. By calling these test cases, the indicator results and compatibility of the new configuration parameters under different environmental conditions can be simulated. For example, the new configuration parameters can be tested and performance indicators under different environmental conditions can be collected, such as transmission rate, delay, packet loss rate, error rate, etc. By comparing the performance indicators before the configuration parameters are updated, it can be determined whether the configuration parameters of the current version are appropriate.
[0040] It should be understood that when the test passes, it can be regarded as a success of the current configuration update process. Therefore, the locally saved backup configuration parameters can be updated together to ensure that the backup configuration parameters are consistent with the configuration parameters currently used in the vehicle communication system, avoiding problems caused by configuration differences, and also saving time for manual update of backup information.
[0041] This embodiment provides a vehicle communication parameter configuration method. This embodiment first obtains a DBC file; obtains communication configuration update information based on the DBC file; and configures the vehicle's communication parameters based on the communication configuration update information to complete the automatic update of the vehicle communication system.
[0042] In summary, this application parses the DBC file to obtain the identification and filter frame configuration data of the CAN communication node, and then compares it with the backup communication system configuration parameters to identify the configuration that needs to be updated. These updates are then converted to MCAL format and directly overwritten into the vehicle communication system. Before the update is completed, the system will restart and perform a compatibility test to ensure that the update process is effective, and update the backup table of configuration parameters after passing the test to ensure the accuracy and security of the configuration information. This vehicle communication parameter configuration method improves update efficiency and accuracy through an automated process, ensures the accuracy of the configuration and the stability of the system, reduces manual maintenance work, reduces maintenance costs, and enhances data security and traceability.
[0043] Reference Figure 2 , Figure 2 This is a flow chart of the second embodiment of the vehicle communication parameter configuration method of the present application. Based on the above-mentioned first embodiment, the second embodiment of the vehicle communication parameter configuration method of the present application is proposed.
[0044] In this embodiment, the step S20 includes: Step S201: Identify and record the CAN communication node identifier in the DBC file through a DBC parsing script.
[0045] It should be noted that the principle of the DBC parsing script is based on the DBC (Database for CAN) file format. Since the DBC file is a standardized format, specific keywords and formats are used to organize information. In the specific process, the script first identifies and records the structure and format of the DBC file, including header information, message definition, signal definition, etc. Then, according to the specifications of the DBC file, the script parses the keywords in the file, such as BO (Bus Object, message definition) and SG (SignalGroup, signal definition), and then extracts the attributes of each message and signal, including but not limited to CAN ID, message name, signal name, data length, start bit, data type, unit, etc., and then performs data structuring, converting the parsed data into a structured format, such as a dictionary, list or object, for further processing and analysis. Finally, the script executes specific logic based on the parsing results, such as generating filtering rules, identifying communication nodes, extracting message frame definition information, etc. Through these principles, the DBC parsing script can automatically extract key information from the DBC file and provide structured data support for the configuration update of the vehicle communication system.
[0046] It can be understood that identifying the node identifier is not only for locating the data, but also for ensuring that the correct configuration can be applied to the specific node in the subsequent steps. It is equivalent to retaining only the nodes involved in the update. In the subsequent steps, the CAN communication node sequence is sorted and determined according to the nodes participating in the update here, which is convenient for the subsequent comparison and update of the configuration parameters.
[0047] Step S202: Obtain the message frame definition information under the CAN communication node identification.
[0048] It should be noted that each CAN node may need to receive or send different message frames. The message frame definition information includes but is not limited to the message ID, size, transmission frequency and included signals. In the OBC file, the corresponding message frame definition information of each node participating in the configuration update is determined by the node ID.
[0049] Step S203: Obtain filtering frame configuration data corresponding to the CAN communication node according to the message frame definition information.
[0050] It can be understood that, based on the message frame information and the communication requirements of the node, it is possible to determine which message frames need to be received or sent by the node, thereby determining the filter frame configuration rules of the node. According to the filter rules, a filter list is generated for each node, including a list of message IDs allowed to be received and a list of message IDs that need to be ignored, and the filter frame configuration data corresponding to the CAN communication node can be obtained.
[0051] Step S204: According to the filtered frame configuration data, a configuration data table to be updated arranged according to a preset CAN communication node sequence is obtained.
[0052] Step S205: According to the communication system configuration parameter backup table, an original configuration data table arranged according to a preset CAN communication node sequence is obtained.
[0053] It should be noted that after obtaining the CAN nodes participating in the configuration update in the aforementioned steps, the node update table can be constructed according to certain node sorting rules. Generally speaking, if it is convenient for manual retrieval or verification, the node update table is sorted according to the node identifier or ID, usually in alphabetical order or numerical order. If it is for the convenience of fast processing, it is generally sorted according to the number of configuration change items, and the ones with less update volume are placed in front to quickly enable some nodes.
[0054] It is understandable that by arranging the filter frame configuration data or the locally backed-up configuration parameter table according to the preset CAN communication node sequence, a configuration parameter list arranged in the logical or physical order of the CAN communication nodes can be obtained, which is convenient for management and reference.
[0055] Step S206: Compare the configuration data table to be updated with the original configuration data table to obtain the communication filtering frame configuration update content.
[0056] It should be noted that by comparing the old and new configuration data tables to identify configuration differences, it is possible to determine which specific configuration parameter entries have changed. For example, the same node may have overwriting of message information, addition and deletion of message information, and even the activation or suspension of some nodes. Through this configuration difference, the update content can be accurately determined, and changes in nodes and single rules can be located.
[0057] It can be understood that in this embodiment, the comparison process is completely automated, human errors will not occur, and the processing efficiency is relatively high.
[0058] Step S207: converting the communication filtering frame configuration update content into MCAL format, and using the converted MCAL file as communication configuration update information.
[0059] It can be understood that the configuration update content obtained by the comparison is converted into the MCAL (Microcontroller Abstraction Layer) format. The conversion process can accurately map the configuration in the comparison result to the structure of the MCAL file through the pre-established MCAL file template.
[0060] It should be understood that the MCAL format is designed for software components that are independent of specific microcontrollers, allowing the software to run on different hardware platforms without modification. The generated MCAL file will be directly overwritten into the configuration file path of the vehicle communication system as communication configuration update information, simplifying the processing flow and improving configuration update efficiency.
[0061] The present embodiment provides a vehicle communication parameter configuration method. The present embodiment implements the configuration update of the vehicle communication system through an automated process. First, a DBC parsing script is used to identify and record the CAN communication node identification and its message frame definition information. Then, the filter frame configuration data is generated based on this information, and the configuration data table to be updated is constructed. Next, the configuration data table to be updated is compared with the backed-up original configuration data table to identify the configuration differences that need to be updated. Finally, these differences are converted into MCAL format and directly overwritten to the configuration file path of the vehicle communication system to complete the automated update. The entire process not only improves the efficiency and accuracy of configuration updates, but also ensures cross-platform compatibility and system stability through the standardized MCAL format.
[0062] In summary, this method brings a series of significant beneficial effects by automatically parsing DBC files and updating vehicle communication parameters. First, the solution greatly improves the speed and accuracy of configuration updates, ensuring that the configuration of each node in the CAN network can quickly and accurately reflect the latest communication requirements. Secondly, the automated process reduces human errors and reduces the risk of system failures caused by improper manual configuration, thereby enhancing the stability and reliability of the entire vehicle communication system. In addition, by converting the configuration update content into a standardized MCAL format, cross-platform deployment and maintenance are simplified. Automated testing steps further ensure the performance and security of the updated system and reduce the time for on-site debugging and problem solving. In the end, this solution not only optimizes the maintenance process of the vehicle communication system and reduces long-term operating costs, but also supports the continuous innovation and development of automotive technology by providing a more flexible and responsive update mechanism.
[0063] Reference Figure 3 The present application also provides a vehicle communication parameter configuration device, the vehicle communication parameter configuration device comprising: The data acquisition module 10 is used to obtain DBC files.
[0064] The data processing module 20 is used to obtain communication configuration update information according to the DBC file.
[0065] The configuration update module 30 is used to configure the communication parameters of the vehicle according to the communication configuration update information to complete the automatic update of the vehicle communication system.
[0066] In one embodiment, the data processing module 20 is also used to obtain the authentication information and version information of the DBC file; when the authentication information is legal, the version information of the local communication configuration backup file is obtained; if the version information of the backup file and the version information of the DBC file meet the configuration update conditions, the step of obtaining the communication configuration update information according to the DBC file is executed.
[0067] In one embodiment, the data processing module 20 is further used to obtain a CAN communication node identifier and filter frame configuration data corresponding to the CAN communication node according to the DBC file; and obtain communication configuration update information according to the filter frame configuration data and the communication system configuration parameter backup table.
[0068] In one embodiment, the data processing module 20 is also used to identify and record the CAN communication node identifier in the DBC file through a DBC parsing script; obtain the message frame definition information under the CAN communication node identifier; and obtain the filter frame configuration data corresponding to the CAN communication node based on the message frame definition information.
[0069] In one embodiment, the data processing module 20 is further used to obtain a configuration data table to be updated arranged according to a preset CAN communication node sequence based on the filter frame configuration data; obtain an original configuration data table arranged according to a preset CAN communication node sequence based on the communication system configuration parameter backup table; compare the configuration data table to be updated with the original configuration data table to obtain communication filter frame configuration update content; convert the communication filter frame configuration update content into MCAL format, and use the converted MCAL file as communication configuration update information.
[0070] In one embodiment, the configuration update module 30 is further used to determine a file path for updating communication parameters according to the communication configuration update information; and overwrite the communication configuration update information to the file path to complete the automatic update of the vehicle communication system.
[0071] In one embodiment, the configuration update module 30 is also used to restart the vehicle communication system and perform a configuration update compatibility test; when the compatibility test passes, the communication system configuration parameter backup table is updated according to the communication configuration update information to complete the update of the configuration information backup.
[0072] An embodiment of the present application also provides a vehicle communication parameter configuration device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the vehicle communication parameter configuration method in the above-mentioned embodiment one.
[0073] Reference below Figure 4 , which shows a schematic diagram of the structure of a vehicle communication parameter configuration device suitable for implementing an embodiment of the present application. The vehicle communication parameter configuration device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The vehicle communication parameter configuration device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0074] like Figure 4As shown, the vehicle communication parameter configuration device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the vehicle communication parameter configuration device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the vehicle communication parameter configuration device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a vehicle communication parameter configuration device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0075] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0076] The vehicle communication parameter configuration device provided by the present application adopts the vehicle communication parameter configuration method in the above embodiment, which can solve the technical problem of how to design a set of automated parameter update processes in the art to improve the efficiency of CAN communication filter frame configuration, reduce human errors and enhance the adaptability and flexibility of the system. Compared with the prior art, the beneficial effects of the vehicle communication parameter configuration device provided by the present application are the same as the beneficial effects of the vehicle communication parameter configuration method provided by the above embodiment, and the other technical features in the vehicle communication parameter configuration device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0077] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0078] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0079] The present application also provides a storage medium, on which a vehicle communication parameter configuration program is stored. When the vehicle communication parameter configuration program is executed by a processor, the steps of the vehicle communication parameter configuration method described in any one of the above are implemented.
[0080] The storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: RandomAccess Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0081] The above storage medium may be included in the vehicle communication parameter configuration device; or may exist independently without being assembled into the vehicle communication parameter configuration device.
[0082] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the vehicle communication parameter configuration device, the vehicle communication parameter configuration device: obtains a DBC file; obtains communication configuration update information based on the DBC file; and configures the communication parameters of the vehicle based on the communication configuration update information to complete the automatic update of the vehicle communication system.
[0083] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0084] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0085] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0086] The storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned vehicle communication parameter configuration method, and can solve the technical problem of how to design a set of automated parameter update processes to improve the efficiency of CAN communication filter frame configuration, reduce human errors, and enhance the adaptability and flexibility of the system. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the vehicle communication parameter configuration method provided in the above-mentioned embodiment, and will not be repeated here.
[0087] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A vehicle communication parameter configuration method, It is characterized in that The vehicle communication parameter configuration method comprises: Get the DBC file; According to the DBC file, communication configuration update information is obtained; The communication parameters of the vehicle are configured according to the communication configuration update information to complete the automatic update of the vehicle communication system.
2. According to the vehicle communication parameter configuration method of claim 1, It is characterized in that Before obtaining the communication configuration update information according to the DBC file, the method further includes: Obtain authentication information and version information of the DBC file; When the authentication information is legal, obtaining version information of the local communication configuration backup file; If the version information of the backup file and the version information of the DBC file meet the configuration update condition, the step of obtaining communication configuration update information according to the DBC file is performed.
3. The vehicle communication parameter configuration method according to claim 1, It is characterized in that The obtaining of communication configuration update information according to the DBC file includes: According to the DBC file, a CAN communication node identifier and filter frame configuration data corresponding to the CAN communication node are obtained; Communication configuration update information is obtained according to the filtering frame configuration data and the communication system configuration parameter backup table.
4. The vehicle communication parameter configuration method according to claim 3, It is characterized in that The step of obtaining a CAN communication node identifier and filter frame configuration data corresponding to the CAN communication node according to the DBC file includes: Identify and record the CAN communication node identifier in the DBC file through the DBC parsing script; Obtaining message frame definition information under the CAN communication node identifier; According to the message frame definition information, filter frame configuration data corresponding to the CAN communication node is obtained.
5. The vehicle communication parameter configuration method according to claim 3, It is characterized in that The obtaining of communication configuration update information according to the filtering frame configuration data and the communication system configuration parameter backup table includes: According to the filtered frame configuration data, a configuration data table to be updated arranged according to a preset CAN communication node sequence is obtained; According to the communication system configuration parameter backup table, an original configuration data table arranged according to a preset CAN communication node sequence is obtained; Comparing the configuration data table to be updated with the original configuration data table to obtain the communication filtering frame configuration update content; The communication filtering frame configuration update content is converted into MCAL format, and the converted MCAL file is used as communication configuration update information.
6. The vehicle communication parameter configuration method according to claim 1, It is characterized in that The configuring the communication parameters of the vehicle according to the communication configuration update information to complete the automatic update of the vehicle communication system includes: Determine a file path for updating communication parameters according to the communication configuration update information; The communication configuration update information is overwritten to the file path to complete the automatic update of the vehicle communication system.
7. The vehicle communication parameter configuration method according to claim 6, It is characterized in that After overwriting the communication configuration update information to the file path, the method further includes: restarting the vehicle communication system and performing a configuration update compatibility test; When the compatibility test is passed, the communication system configuration parameter backup table is updated according to the communication configuration update information to complete the update of the configuration information backup.
8. A vehicle communication parameter configuration device, It is characterized in that The vehicle communication parameter configuration device comprises: Data acquisition module, used to obtain DBC files; A data processing module, used for obtaining communication configuration update information according to the DBC file; The configuration update module is used to configure the communication parameters of the vehicle according to the communication configuration update information to complete the automatic update of the vehicle communication system.
9. A vehicle communication parameter configuration device, It is characterized in that The vehicle communication parameter configuration device includes: a memory, a processor, and a vehicle communication parameter configuration program stored in the memory and executable on the processor, wherein the vehicle communication parameter configuration program is configured to implement the steps of the vehicle communication parameter configuration method according to any one of claims 1 to 7.
10. A storage medium, It is characterized in that The storage medium stores a vehicle communication parameter configuration program, and when the vehicle communication parameter configuration program is executed by the processor, the steps of the vehicle communication parameter configuration method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
CAN (Controller Area Network) module configuration and code generation method, system and equipment based on AutoSAR (Synthetic Aperture Radar) architecture and medium
CN116775000A
Vehicle data analysis method and device, computer equipment, storage medium and vehicle
CN117812171A
Vehicle ECU software version updating method, device and equipment and storage medium
CN118331610A
Electric vehicle monitoring method and apparatus and readable storage medium
US20240243944A1
