Automatic configuration method and device for signal mapping, equipment and storage medium

By analyzing script files and DBC files to generate configuration files, the automatic configuration of signal mapping is achieved, which solves the problems of cumbersome and low efficiency of manual configuration and improves the efficiency and quality of signal mapping.

CN119211336APending Publication Date: 2024-12-27DONGFENG MOTOR GRP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411105460.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The existing signal mapping methods rely on manual configuration, resulting in cumbersome configuration processes, high technical requirements, high possibility of errors, high maintenance costs, and limit development efficiency and system communication efficiency.

Method used

By obtaining script files and DBC files, parsing and processing to generate configuration files, automatic configuration updates of signal mapping are implemented to reduce human intervention and errors.

Benefits of technology

Improve the efficiency and quality of signal mapping configuration, reduce maintenance costs, and ensure the reliability and efficiency of system communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211336A_ABST
    Figure CN119211336A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic configuration method and device for signal mapping, equipment and a storage medium, and relates to the technical field of automobile communication, and the method comprises the steps: obtaining a first script file, a second script file and a DBC file; processing the DBC file according to the first script file and the second script file to obtain a configuration file; and updating an original configuration file according to the configuration file so as to complete automatic configuration updating of signal mapping. According to the method, the data information in the DBC file is analyzed through the script file, automatic mapping is carried out according to the data information, automatic updating of the configuration file is achieved, the problem that the signal mapping configuration efficiency is low is solved, and the signal mapping configuration efficiency and quality are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of automobile communications, and in particular to an automatic configuration method, device, equipment and storage medium for signal mapping. Background Art

[0002] As the degree of automotive electronics continues to increase, the number and types of automotive electronic control units (ECUs) have increased dramatically, causing the signal network of the entire system to become extremely complex. In AUTOSAR (Automotive Open System Architecture), BSW (Basic Software) is a key component that provides the necessary underlying support and services for upper-level application software, including the key technology of signal mapping. Signal mapping is an important means of connecting different ECUs or signal transmission between modules within an ECU.

[0003] Existing signal mapping methods often rely on developers to manually configure the interface information in the DBC (Database CAN) file to generate relevant codes. However, this method has many shortcomings: first, the manual configuration process is cumbersome and technically demanding, requiring developers to have a deep understanding of the CAN protocol and specific hardware; second, manual configuration increases the possibility of errors, especially when the amount of data is large or the development time is tight; third, the system iteration and upgrade process requires frequent manual adjustments and maintenance, which increases maintenance costs and workload; in addition, manual configuration also limits the improvement of development efficiency. Whenever a signal is added or modified in the DBC file, the filtering rules need to be reconfigured, which is not only time-consuming, but may also lead to inconsistent configurations, affecting the communication efficiency and reliability of the system.

[0004] Therefore, a more efficient and accurate signal mapping configuration method is urgently needed to solve the problem of low efficiency of signal mapping configuration. Summary of the invention

[0005] The main purpose of the present application is to provide a method, device, equipment and storage medium for automatic configuration of signal mapping, aiming to solve the technical problem of low efficiency of signal mapping configuration.

[0006] To achieve the above object, the present application proposes a method for automatically configuring signal mapping, the method comprising:

[0007] Obtain a first script file, a second script file and a DBC file;

[0008] Processing the DBC file according to the first script file and the second script file to obtain a configuration file;

[0009] The original configuration file is updated according to the configuration file to complete the automatic configuration update of the signal mapping.

[0010] In one embodiment, the step of processing the DBC file according to the first script file and the second script file to obtain a configuration file includes:

[0011] Parsing the DBC file according to the first script file to obtain a text file;

[0012] The first script file is called according to the second script file to extract information of the text file and generate a configuration file.

[0013] In one embodiment, the step of parsing the DBC file according to the first script file to obtain a text file includes:

[0014] Parsing the DBC file according to the first script file to obtain message information;

[0015] Obtaining a message type, a frame format, a CAN identifier, a mailbox index number, indication information, and an identifier of a controller to which the mailbox belongs according to the message information;

[0016] The message type, the frame format, the CAN identifier, the mailbox index number, the indication information and the controller identifier to which the mailbox belongs are stored in a preset format to obtain a text file.

[0017] In one embodiment, the step of calling the first script file according to the second script file to extract information of the text file and generate a configuration file includes:

[0018] Calling the first script file according to the second script file to extract information from the text file to obtain interface information, port information and signal names;

[0019] The signal name is automatically mapped with the corresponding interface information and port information to obtain a configuration file.

[0020] In one embodiment, before automatically mapping the signal name with the corresponding interface information and port information to obtain the configuration file, the method further includes:

[0021] Get interface requirement configuration;

[0022] The corresponding interface type is automatically generated according to the interface requirement configuration.

[0023] In one embodiment, the step of updating the original configuration file according to the configuration file includes:

[0024] Comparing the configuration file with the original configuration file to obtain newly added information or deleted information;

[0025] The original configuration file is updated according to the newly added information or the deleted information.

[0026] In one embodiment, after the DBC file is processed according to the first script file and the second script file to obtain a configuration file, the method further includes:

[0027] Get the permission profile;

[0028] Access permissions are assigned to the configuration file according to the permission configuration file.

[0029] In addition, to achieve the above purpose, the present application also proposes an automatic configuration device for signal mapping, the device comprising:

[0030] A data acquisition module, used to acquire a first script file, a second script file and a DBC file;

[0031] An information extraction module, used for processing the DBC file according to the first script file and the second script file to obtain a configuration file;

[0032] The automatic configuration module is used to update the original configuration file according to the configuration file to complete the automatic configuration update of the signal mapping.

[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes an automatic configuration device for signal mapping, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the automatic configuration method for signal mapping as described above.

[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the automatic configuration method of signal mapping as described above are implemented.

[0035] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the automatic configuration method of signal mapping as described above are implemented.

[0036] The present application provides an automatic configuration method for signal mapping, and the method of the present application includes: obtaining a first script file, a second script file, and a DBC file; processing the DBC file according to the first script file and the second script file to obtain a configuration file; updating the original configuration file according to the configuration file to complete the automatic configuration update of the signal mapping. In summary, the present application parses the data information in the DBC file through the script file and performs automatic mapping based on it, thereby realizing the automatic update of the configuration file, solving the problem of low efficiency of signal mapping configuration, and improving the efficiency and quality of signal mapping configuration. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

[0039] Figure 1 A schematic diagram of a flow chart of a first embodiment of a method for automatically configuring signal mapping of the present application;

[0040] Figure 2 A schematic diagram of a flow chart provided for the second embodiment of the automatic configuration method for signal mapping of the present application;

[0041] Figure 3 A schematic diagram of the module structure of the automatic configuration device for signal mapping according to an embodiment of the present application;

[0042] Figure 4 A schematic diagram of the device structure of the hardware operating environment involved in the automatic configuration method of signal mapping in the embodiment of the present application.

[0043] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

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

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

[0046] As the degree of automotive electronics continues to increase, the number and types of automotive electronic control units (ECUs) have increased dramatically, causing the signal network of the entire system to become extremely complex. In AUTOSAR (Automotive Open System Architecture), BSW (Basic Software) is a key component that provides the necessary underlying support and services for upper-level application software, including the key technology of signal mapping. Signal mapping is an important means of connecting different ECUs or signal transmission between modules within an ECU.

[0047] Existing signal mapping methods often rely on developers to manually configure the interface information in the DBC (Database CAN) file to generate relevant codes. However, this method has many shortcomings: first, the manual configuration process is cumbersome and technically demanding, requiring developers to have a deep understanding of the CAN protocol and specific hardware; second, manual configuration increases the possibility of errors, especially when the amount of data is large or the development time is tight; third, frequent manual adjustments and maintenance are required during system iteration and upgrade, which increases maintenance costs and workload; in addition, manual configuration also limits the improvement of development efficiency. Whenever a signal is added or modified in the DBC file, the filtering rules need to be reconfigured, which is not only time-consuming, but may also lead to inconsistent configurations, affecting the communication efficiency and reliability of the system. Therefore, a more efficient and accurate signal mapping configuration method is urgently needed to solve the problem of low signal mapping configuration efficiency.

[0048] The present application parses the data information in the DBC file through a script file and performs automatic mapping accordingly, thereby realizing automatic updating of the configuration file, solving the problem of low efficiency of signal mapping configuration, and improving the efficiency and quality of signal mapping configuration.

[0049] It should be noted that the execution subject of this embodiment can be an automatic configuration system for signal mapping, or 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 automatic configuration function of the above-mentioned signal mapping, etc., and this embodiment does not specifically limit this. The following takes the automatic configuration system for signal mapping as an example to illustrate this embodiment and the following embodiments.

[0050] Based on this, the embodiment of the present application provides a method for automatically configuring signal mapping, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the automatic configuration method of signal mapping of the present application.

[0051] In this embodiment, the automatic configuration method of the signal mapping includes steps S10 to S30:

[0052] Step S10: Obtain the first script file, the second script file and the DBC file.

[0053] It should be noted that the DBC file is a standardized file format used to describe CAN bus communication data in a car network. The first script file and the second script file are Python scripts, and the system accesses and reads these files through the file system API. Specifically, in this step, the system first obtains two Python script files (i.e., the first script file and the second script file) and a DBC file from the project directory or the specified path. The first script file is used to "parse the DBC file script", and the second script file is used to "generate the ARXML file script". They are the core tools for realizing automated signal mapping. The DBC file contains all the signal definitions and message information required for communication between ECUs.

[0054] Step S20: Process the DBC file according to the first script file and the second script file to obtain a configuration file.

[0055] It should be noted that in this step, the first script is responsible for parsing the DBC file, extracting the message information and signal definition, and generating an intermediate text file (or directly processing it in memory). The second script calls the result of the first script and automatically generates a configuration file that complies with the AUTOSAR architecture based on the extracted information. In addition, it should be noted that in this step, the configuration file is an ARXML type file, that is, an XML format file used in the AUTOSAR standard to describe system configuration, software components and their interfaces.

[0056] In a feasible implementation manner, after step S20, the method further includes:

[0057] Step A10: Obtain the permission configuration file.

[0058] It should be noted that the system will obtain a pre-defined permission profile, which specifies in detail the access rights of different users or user groups to the configuration files. These rights include reading, modifying, deleting, etc. It can be understood that the permission profile is a file used to define and manage the access rights of users or user groups to system resources (such as configuration files), which can protect system security and prevent unauthorized access.

[0059] Step A20: Allocate access rights to the configuration file according to the authority configuration file.

[0060] It should be noted that in this step, the system will read the provisions in the permission configuration file and identify the access rights of different users or user groups to the configuration file. And based on the permission information read, the system will assign access rights to the configuration file (ARXML file). Only users with modification permissions can modify the configuration file. When a user tries to access the configuration file, the system will perform permission verification to ensure that the user's operation complies with their permission settings. For example, during the development process, when a member of the R&D team tries to modify the ARXML file, the system will check the records in its permission configuration file. If the member has modification permissions, he will be allowed to make the modification; otherwise, his request will be rejected and the prompt will indicate that he has no permission.

[0061] Step S30: updating the original configuration file according to the configuration file to complete the automatic configuration update of the signal mapping.

[0062] It should be noted that in this step, when the system generates an ARXML file containing the latest Signal Mapping configuration, the file will be overwritten to the corresponding location in the project directory to replace or update the original configuration file. Specifically, after the second script completes the generation of the ARXML file, the system will automatically detect whether there is an old ARXML file with the same name in the project directory. If the old file exists, the script will prompt the user whether to overwrite it and perform the overwrite operation according to the user's choice. After the overwrite operation is completed, the script will output a success message, indicating that the automatic configuration update of Signal Mapping has been completed.

[0063] It is understandable that in actual applications, updating configuration files also needs to consider strategies such as version control and backup to ensure the stability and traceability of the system.

[0064] In a feasible implementation manner, the step S30 specifically includes:

[0065] Step S301: Compare the configuration file with the original configuration file to obtain new information or deleted information.

[0066] It should be noted that the original configuration file refers to the configuration file that already exists in the current system and is used to describe the signal mapping relationship. It is also the basis for this automatic configuration update. New information refers to information such as signals, interfaces, or ports that appear in the newly generated ARXML file but do not exist in the original configuration file. Deleted information refers to information such as signals, interfaces, or ports that exist in the original configuration file but are no longer needed in the newly generated ARXML file.

[0067] Specifically, in this step, the system will compare and analyze the newly generated ARXML file with the original configuration file. This process includes but is not limited to checking key information such as signal names, interface definitions, and port configurations to identify which are newly added signals or interfaces (new information) and which signals or interfaces no longer exist in the original configuration file (deleted information).

[0068] It can be understood that this step is intended to ensure that the newly generated ARXML file (configuration file) can be seamlessly integrated with the original configuration file, thereby achieving automatic update of signal mapping.

[0069] Step S302: Update the original configuration file according to the newly added information or the deleted information.

[0070] It should be noted that in this step, the system will perform corresponding update operations on the original configuration file according to the new information and deleted information identified in step S301. The update operation includes different types of operations such as adding, modifying, and deleting, depending on the specific content of the new information and deleted information. For new information, the system will add these new signal, interface or port configuration information to the original configuration file; for deleted information, the system will remove these no longer needed configuration information from the original configuration file. It can be understood that this process ensures the synchronization and consistency between the original configuration file and the newly generated ARXML file.

[0071] The present embodiment provides an automatic configuration method for signal mapping, and the method of the present embodiment includes: obtaining a first script file, a second script file, and a DBC file; processing the DBC file according to the first script file and the second script file to obtain a configuration file; and updating the original configuration file according to the configuration file to complete the automatic configuration update of the signal mapping. In summary, the present embodiment parses the data information in the DBC file through the script file and performs automatic mapping based on it, thereby realizing the automatic update of the configuration file, solving the problem of low efficiency of signal mapping configuration, and improving the efficiency and quality of signal mapping configuration.

[0072] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 2 , Figure 2 This is a flow chart of the second embodiment of the automatic configuration method for signal mapping of the present application, wherein step S20 specifically includes:

[0073] Step S201: Parse the DBC file according to the first script file to obtain a text file.

[0074] It should be noted that in this step, the first script file is designed to parse the DBC file, which is a standard format for communication between automotive electronic control units (ECUs), and contains key information such as signals, messages, and network nodes. The script reads the DBC file and parses the message information therein. For example, assuming that there is a DBC file containing communication messages between multiple ECUs, the first script will traverse these messages, parse the detailed attributes of each message, and write this information to a text file in an easy-to-process format. It is understandable that this can convert the complex DBC file content into a more concise and easier to operate text format, thereby improving the efficiency of subsequent automated configuration.

[0075] In a feasible implementation manner, the step S201 specifically includes:

[0076] Step B10: Parse the DBC file according to the first script file to obtain message information.

[0077] It should be noted that in this step, the system will read various parts of the DBC file through the first script, such as BO_ (message definition), SG_ (signal definition) and other tags, and parse out the detailed information of the message.

[0078] Step B20: Obtain the message type, frame format, CAN identifier, mailbox index number, indication information and the controller identifier to which the mailbox belongs according to the message information.

[0079] It should be noted that in this step, the system will process the message information extracted from the DBC file. And through the definition of the message, identify the message type (such as FULL or BASIC), frame format (standard frame or extended frame), CAN identifier (CANID), mailbox index number (used to distinguish different messages under the same CAN ID), indication information (such as receive / send flag) and the controller identifier to which the message belongs. For example, for a certain message, the script will recognize that its type is FULL, the frame format is an extended frame, the CAN ID is 0x123, there is no specific mailbox index number (because it is a FULL type), the indication information is a send flag, and the message is sent by the ECU with a controller ID of 0x01.

[0080] In addition, it should be noted that FULL and BASIC are two common forms of message types in CAN networks. FULL means that one mailbox corresponds to one CAN ID, while BASIC means that one mailbox can correspond to a group of CAN IDs, which are distinguished by the mailbox index number. The frame format determines the structure of the CAN frame. The standard frame and the extended frame differ in the ID length.

[0081] Step B30: The message type, the frame format, the CAN identifier, the mailbox index number, the indication information and the controller identifier to which the mailbox belongs are stored in a preset format to obtain a text file.

[0082] It should be noted that the preset format can be TXT format, or other formats with the same functions as TXT format files, and this embodiment does not limit this. Specifically, in this step, the system will store the message information extracted and processed in step B20 in a text file according to the preset format. The text file will be used as input for subsequent processing to generate an ARXML file that conforms to the AUTOSAR architecture. For example, all extracted information can be written to a text file in a comma-delimited format, with each line representing the information of a message, and fields separated by commas. The subsequent script can quickly read the file and generate a corresponding ARXML file based on the information therein.

[0083] Step S202: calling the first script file according to the second script file to extract information of the text file and generate a configuration file.

[0084] It should be noted that in this step, the second script file is designed to call the first script file, and based on the text file content generated by the first script, further process to generate an ARXML configuration file that complies with the AUTOSAR architecture. Specifically, the system calls the first script through the second script to ensure that the text file has been successfully generated and contains all necessary message information. Then, the second script reads the text file content and generates an ARXML configuration file, which contains all the necessary configuration information, such as the definition of the signal, the detailed information of the port and interface, and the mapping relationship between them.

[0085] In a feasible implementation manner, the step S202 specifically includes:

[0086] Step C10: Call the first script file according to the second script file to extract the information of the text file to obtain interface information, port information and signal name.

[0087] It should be noted that in this step, the system will extract key information of the text from the DBC file, including detailed data of the message, such as processing type (FULL or BASIC), frame format (standard frame or extended frame), CANID, index number of the mailbox object, and whether the message is received or sent, as well as the controller ID to which these messages belong. At the same time, the script will also obtain the interface requirement configuration pre-set by the developer, and based on the extracted message information, generate the basic information of the standard port and interface under the AUTOSAR architecture, such as the relevant data types and information of the SR interface or CS interface.

[0088] Step C20: Automatically map the signal name with the corresponding interface information and port information to obtain a configuration file.

[0089] It should be noted that in this step, the system will automatically perform the Signal Mapping operation using the extracted port, interface and signal name information through the second script file. This operation includes accurately matching the signal name with the matching interface information and port information, and generating an ARXML file that complies with the AUTOSAR architecture specification based on this information. Specifically, the script will search for corresponding matches in the previously generated port and interface information according to the signal name, and map the signal to the corresponding interface. In this process, the script will also automatically create the necessary XML tags and attributes to accurately describe the mapping relationship between the signal and the interface.

[0090] In this embodiment, by effectively combining two Python scripts, the automatic generation of ARXML configuration files from DBC files under the AUTOSAR architecture and the automatic configuration of Signal Mapping are realized, which reduces human intervention and potential errors and improves the stability and development efficiency of the system.

[0091] This application also provides an automatic configuration device for signal mapping, please refer to Figure 3 , the automatic configuration device of the signal mapping comprises:

[0092] The data acquisition module 10 is used to acquire the first script file, the second script file and the DBC file.

[0093] The information extraction module 20 is used to process the DBC file according to the first script file and the second script file to obtain a configuration file.

[0094] The automatic configuration module 30 is used to update the original configuration file according to the configuration file to complete the automatic configuration update of the signal mapping.

[0095] The automatic configuration device for signal mapping provided by the present application adopts the automatic configuration method for signal mapping in the above embodiment, which can solve the technical problem of low efficiency of signal mapping configuration. Compared with the prior art, the beneficial effects of the automatic configuration device for signal mapping provided by the present application are the same as the beneficial effects of the automatic configuration method for signal mapping provided by the above embodiment, and other technical features in the automatic configuration device for signal mapping are the same as the features disclosed in the above embodiment method, which will not be described in detail here.

[0096] The present application provides an automatic configuration device for signal mapping, the automatic configuration device for signal mapping comprising: 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 automatic configuration method for signal mapping in the above-mentioned embodiment 1.

[0097] Reference below Figure 4 , which shows a schematic diagram of the structure of an automatic configuration device for signal mapping suitable for implementing the embodiment of the present application. The automatic configuration device for signal mapping 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 automatic configuration device for signal mapping shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0098] like Figure 4As shown, the automatic configuration device of signal mapping 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 automatic configuration device of signal mapping 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. Typically, the following systems may be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 may allow the automatic configuration device for signal mapping to communicate wirelessly or wired with other devices to exchange data. Although the figure shows an automatic configuration device for signal mapping with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.

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

[0100] The automatic configuration device for signal mapping provided by the present application adopts the automatic configuration method for signal mapping in the above embodiment, which can solve the technical problem of low efficiency of signal mapping configuration. Compared with the prior art, the beneficial effects of the automatic configuration device for signal mapping provided by the present application are the same as the beneficial effects of the automatic configuration method for signal mapping provided by the above embodiment, and other technical features in the automatic configuration device for signal mapping are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

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

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

[0103] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the automatic configuration method of signal mapping in the above-mentioned embodiment.

[0104] The computer-readable 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 computer-readable 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), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0105] The computer-readable storage medium may be included in the automatic configuration device for signal mapping; or may exist independently without being assembled into the automatic configuration device for signal mapping.

[0106] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the automatic configuration device of signal mapping, the automatic configuration device of signal mapping: obtains a first script file, a second script file and a DBC file; processes the DBC file according to the first script file and the second script file to obtain a configuration file; updates the original configuration file according to the configuration file to complete the automatic configuration update of signal mapping.

[0107] 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).

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

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

[0110] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned automatic configuration method of signal mapping, and can solve the technical problem of low efficiency of signal mapping configuration. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the automatic configuration method of signal mapping provided by the above-mentioned embodiment, and will not be repeated here.

[0111] The present application also provides a computer program product, including a computer program, which implements the steps of the automatic configuration method of signal mapping as described above when the computer program is executed by a processor.

[0112] The computer program product provided by the present application can solve the technical problem of low efficiency of signal mapping configuration. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the automatic configuration method of signal mapping provided by the above embodiment, which will not be repeated here.

[0113] 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 method for automatically configuring signal mapping, characterized in that: The method is applied to a basic software module of the AUTOSAR architecture, and is characterized in that the method comprises: Obtain a first script file, a second script file and a DBC file; Processing the DBC file according to the first script file and the second script file to obtain a configuration file; The original configuration file is updated according to the configuration file to complete the automatic configuration update of the signal mapping.

2. The method according to claim 1, characterized in that The step of processing the DBC file according to the first script file and the second script file to obtain a configuration file comprises: Parsing the DBC file according to the first script file to obtain a text file; The first script file is called according to the second script file to extract information of the text file and generate a configuration file.

3. The method according to claim 2, characterized in that The step of parsing the DBC file according to the first script file to obtain a text file comprises: Parsing the DBC file according to the first script file to obtain message information; Obtaining a message type, a frame format, a CAN identifier, a mailbox index number, indication information, and an identifier of a controller to which the mailbox belongs according to the message information; The message type, the frame format, the CAN identifier, the mailbox index number, the indication information and the controller identifier to which the mailbox belongs are stored in a preset format to obtain a text file.

4. The method according to claim 2, characterized in that The step of calling the first script file according to the second script file to extract information of the text file and generate a configuration file comprises: Calling the first script file according to the second script file to extract information from the text file to obtain interface information, port information and signal names; The signal name is automatically mapped with the corresponding interface information and port information to obtain a configuration file.

5. The method according to claim 4, characterized in that Before automatically mapping the signal name with the corresponding interface information and port information to obtain the configuration file, the method further includes: Get interface requirement configuration; The corresponding interface type is automatically generated according to the interface requirement configuration.

6. The method according to claim 1, characterized in that The step of updating the original configuration file according to the configuration file comprises: Comparing the configuration file with the original configuration file to obtain newly added information or deleted information; The original configuration file is updated according to the newly added information or the deleted information.

7. The method according to claim 1, characterized in that After the DBC file is processed according to the first script file and the second script file to obtain a configuration file, the method further includes: Get the permission profile; Access permissions are assigned to the configuration file according to the permission configuration file.

8. An automatic configuration device for signal mapping, characterized in that: The device comprises: A data acquisition module, used to acquire a first script file, a second script file and a DBC file; An information extraction module, used for processing the DBC file according to the first script file and the second script file to obtain a configuration file; The automatic configuration module is used to update the original configuration file according to the configuration file to complete the automatic configuration update of the signal mapping.

9. An automatic configuration device for signal mapping, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the automatic configuration method for signal mapping according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the automatic configuration method for signal mapping according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method for analyzing automobile network DBC file based on script tool

    CN111309684A

  • Signal interface matching method and device, computer equipment and readable storage medium

    CN112860774A

  • File configuration method and device based on AUTOSAR

    CN115328853A

  • DBC database synchronization method and device, electronic equipment and readable storage medium

    CN116560697A

  • CAN checksum script automatic generation method and device, equipment and storage medium

    CN118409915A