Method, device, equipment and medium for automatically generating input interface model based on Matlab

By using Matlab to automatically extract and calibrate the interface signal information of the vehicle's underlying software from Excel tables and generate an input interface model, the problem of high error rate in manually adding signals is solved, and the efficiency and quality of software development are improved.

CN116090252BActive Publication Date: 2025-09-05CHONGQING CHANGAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310178259.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2025-09-05
Estimated Expiration
2043-02-28

AI Technical Summary

Technical Problem

When domain controllers are centralized, the increase in the number of controller interface signals leads to a high error rate in manually adding signals, low efficiency, and low software development quality. There is an urgent need for a convenient method to generate input interface models.

Method used

Through Matlab, the interface signal information of the vehicle's underlying software is automatically extracted from the Excel table, calibrated and generated into the target structure, and the input interface model is automatically generated.

Benefits of technology

It reduces the error rate of signal addition, improves software development efficiency and quality, and provides a more convenient way to generate input interface models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116090252B_ABST
    Figure CN116090252B_ABST
Patent Text Reader

Abstract

The present application provides a method, apparatus, device and medium for automatically generating an input interface model based on Matlab. The method extracts target signal information from multiple interface signal information in a target Excel table including multiple interface signal information of vehicle underlying software, calibrates the target signal information, and generates a corresponding target structure. The method can automatically generate an input interface model, reduces the error rate of signal addition, improves efficiency and software development quality, and provides a more convenient way to generate an input interface model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of vehicles and automation technology, and in particular to a method, device, equipment and medium for automatically generating an input interface model based on Matlab. Background Art

[0002] As domain controllers become increasingly centralized, the number of controller interface signals increases exponentially. The error rate when manually adding signals also increases, making it difficult to detect errors and inefficient. This results in lower software development quality.

[0003] In addition, platform-based development is gaining more and more attention, and there are more and more projects that are applicable to platform-based development. Therefore, platform-based interface software development is particularly important, and a more convenient way to generate input interface models is urgently needed. Summary of the Invention

[0004] In view of the shortcomings of the existing technology mentioned above, the embodiments of the present invention provide a method, device, equipment and medium for automatically generating an input interface model based on Matlab to solve the technical problems mentioned above, such as high error rate, low efficiency and low software development quality of manually adding signals, and the urgent need for a more convenient input interface model generation method.

[0005] An embodiment of the present invention provides a method for automatically generating an input interface model based on Matlab, the method comprising: obtaining a target Excel spreadsheet based on Matlab, the target Excel spreadsheet including multiple interface signal information of vehicle underlying software; extracting target signal information from the multiple interface signal information in the target Excel spreadsheet; calibrating the target signal information, and generating a target structure to be sent to the vehicle application layer based on the calibrated target signal information, so as to automatically generate an input interface model.

[0006] In one embodiment of the present invention, target signal information is extracted from multiple interface signal information in the target Excel table, including: obtaining a signal selection instruction, the signal selection instruction including a target input signal identifier and a target output signal identifier; reading all information in the target Excel table into a preset Cell array; extracting input signal information from the preset Cell array based on the target input signal identifier, and extracting output signal information from the preset Cell array based on the target output signal identifier, the target signal information including the input signal information and the output signal information.

[0007] In one embodiment of the present invention, the target signal information is calibrated, including: extracting the output signal name of the output signal information, where the output signal name is obtained based on the interface signal information; adding a prefix string and a suffix string to the output signal name to generate a calibration switch and calibration amount of the output signal; setting the position parameters of each input signal information, and connecting them according to the corresponding relationship.

[0008] In one embodiment of the present invention, the target signal information is calibrated, including: if there are at least two input signal information with the same signal name, combining the same multiple input signal information into a matrix, based on the position of each input signal information in the target Excel table, generating an Inport module for the input signal information located at the front of the target Excel table, and generating other input signal information in the matrix as Goto modules and corresponding From modules; if an input signal information is not in any of the matrices, adding a calibration switch, a calibration amount and a selection module to the input signal information; setting the position parameters of each input signal information, and connecting them according to the corresponding relationship.

[0009] In one embodiment of the present invention, before generating a target structure to be sent to the vehicle application layer based on the calibrated target signal information, the method further includes: determining whether a constant is required as input; if a constant is required as input, extracting the constant signal name obtained from the target Excel table, generating a constant module, and completing the connection; if a constant is not required as input, generating a From module, and naming the From module as the signal name of the corresponding input signal information.

[0010] In one embodiment of the present invention, before generating a target structure to be sent to the vehicle application layer based on the calibrated target signal information, the method further includes: if the calibrated target signal information is a CAN signal, generating an Inport module as a port, and then generating a Goto module to connect; if the calibrated target signal information is a non-CAN signal, combining them in the form of a structure.

[0011] In one embodiment of the present invention, a target structure to be sent to the vehicle application layer is generated based on the calibrated target signal information, including: combining the calibrated target signal information according to the structure signals in the target Excel table to obtain the target structure.

[0012] An embodiment of the present invention provides a device for automatically generating an input interface model based on Matlab. The device includes: an acquisition module for acquiring a target Excel spreadsheet based on Matlab, wherein the target Excel spreadsheet includes multiple interface signal information of the vehicle's underlying software; an extraction module for extracting target signal information from the multiple interface signal information in the target Excel spreadsheet; and a generation module for calibrating the target signal information and generating a target structure to be sent to the vehicle application layer based on the calibrated target signal information, so as to automatically generate the input interface model.

[0013] An embodiment of the present invention provides an electronic device, which includes: one or more processors; and a storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the electronic device implements the method described in any one of the above embodiments.

[0014] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor of a computer, the computer is caused to execute the method described in any one of the above embodiments.

[0015] Beneficial effects of the embodiments of the present invention: The controller data processing method, device, electronic device and storage medium in the embodiments of the present invention, the method extracts target signal information from multiple interface signal information in a target Excel table including multiple interface signal information of the vehicle's underlying software, calibrates the target signal information, and generates a corresponding target structure. It can automatically generate an input interface model, reduces the error rate of signal addition, improves efficiency and software development quality, and provides a more convenient input interface model generation method.

[0016] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings are incorporated into and constitute a part of the specification, illustrating embodiments consistent with the present application and, together with the specification, serving to explain the principles of the present application. It is obvious that the drawings described below are merely some embodiments of the present application, and a person of ordinary skill in the art can derive other drawings based on these drawings without inventive effort. In the drawings:

[0018] Figure 1 This is a flow chart of a method for automatically generating an input interface model based on Matlab, shown in an exemplary embodiment of the present application;

[0019] Figure 2It is a framework of input model software shown in an exemplary embodiment of the present application;

[0020] Figure 3 This is a specific flow chart of a method for automatically generating an input interface model based on Matlab, as shown in an exemplary embodiment of the present application;

[0021] Figure 4 is a block diagram of an apparatus for automatically generating an input interface model based on Matlab, according to an exemplary embodiment of the present application;

[0022] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0023] The following describes the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art will readily appreciate the other advantages and benefits of the present invention from the disclosure herein. The present invention may also be implemented or applied through various other specific embodiments, and the various details in this specification may be modified or altered based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are intended only to illustrate the present invention and are not intended to limit the scope of protection of the present invention.

[0024] It should be noted that the illustrations provided in the following embodiments are merely schematic illustrations of the basic concept of the present invention. Therefore, the illustrations only show components related to the present invention and are not drawn according to the number, shape, and size of components in actual implementation. In actual implementation, the type, quantity, and proportion of each component may be changed arbitrarily, and the component layout may also be more complex.

[0025] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it will be apparent to those skilled in the art that the embodiments of the present invention may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring the embodiments of the present invention.

[0026] See also Figure 1 , Figure 1This is a flowchart illustrating a method for automatically generating an input interface model based on Matlab, as illustrated in an exemplary embodiment of the present application. This method can be implemented using other implementation environments known to those skilled in the art. This method can be applied to the automated development of controller application layer interface software. By maintaining the interface signal's name, data type, and other attributes in a specific format in an Excel spreadsheet and establishing a specific mapping relationship, application layer input and output interface models can be automatically generated. Generating a calibratable interface decouples the application layer from the underlying interface, facilitating troubleshooting of interface issues.

[0027] like Figure 1 As shown, in an exemplary embodiment, the method for automatically generating an input interface model based on Matlab includes at least steps S101 to S104, which are described in detail as follows:

[0028] Step S101, obtaining a target Excel table based on Matlab.

[0029] Among them, the target Excel table includes multiple interface signal information of the vehicle's underlying software.

[0030] The target Excel table pre-stores the interface signal's name, data type, and other attributes, maintained in a preset format, as interface signal information. When adding a signal, the method provided in this embodiment only requires maintaining the new signal in the target Excel table, eliminating the need for developers to manually add signals and avoiding human error.

[0031] This step can be achieved by interacting with Excel through Matlab language to filter and extract information from Excel.

[0032] The target Excel table can adapt to multiple projects by shielding the interface to improve the portability of the functional module software.

[0033] Step S102: extract target signal information from the plurality of interface signal information in the target Excel table.

[0034] In one embodiment, target signal information is extracted from multiple interface signal information in a target Excel table, including: obtaining a signal selection instruction, the signal selection instruction including a target input signal identifier and a target output signal identifier; reading all information in the target Excel table into a preset Cell array; extracting input signal information from the preset Cell array based on the target input signal identifier, and extracting output signal information from the preset Cell array based on the target output signal identifier, the target signal information including input signal information and output signal information.

[0035] Step S103: calibrate the target signal information.

[0036] In one embodiment, the target signal information is calibrated, including: extracting the output signal name of the output signal information, where the output signal name is obtained based on the interface signal information; adding a prefix string and a suffix string to the output signal name to generate a calibration switch and a calibration amount of the output signal; setting the position parameters of each input signal information, and connecting them according to the corresponding relationship.

[0037] In one embodiment, target signal information is calibrated, including: if there are at least two input signal information with the same signal name, combining the same multiple input signal information into a matrix, generating an Inport module for the input signal information located at the front of the target Excel table based on the position of each input signal information in the target Excel table, and generating other input signal information in the matrix as Goto modules and corresponding From modules; if an input signal information is not in any matrix, adding a calibration switch, a calibration amount and a selection module to the input signal information; setting the position parameters of each input signal information, and connecting them according to the corresponding relationship.

[0038] Among them, the calibration switch can be used for subsequent testing. If the signal needs to be tested, turn on the calibration switch. At this time, based on whether the application layer software receives the signal, it can be judged whether the underlying software on the current signal transmission path has not been successfully uploaded or there is a problem with the intermediate forwarding pipeline.

[0039] Step S104 : generating a target structure to be sent to the vehicle application layer based on the calibrated target signal information, so as to automatically generate an input interface model.

[0040] In one embodiment, before generating a target structure to be sent to the vehicle application layer based on the calibrated target signal information, the method further includes: determining whether a constant is required as input; if a constant is required as input, extracting the constant signal name obtained from the target Excel table, generating a constant module, and completing the connection; if a constant is not required as input, generating a From module, and naming the From module as the signal name of the corresponding input signal information.

[0041] One condition for determining whether a constant is needed as input is to determine whether a frame loss phenomenon occurs and whether a replacement value (constant) needs to be replaced. If necessary, the constant is used for replacement.

[0042] In one embodiment, before generating a target structure to be sent to the vehicle application layer based on the calibrated target signal information, the method further includes: if the calibrated target signal information is a CAN signal, generating an Inport module as a port, and then generating a Goto module to connect; if the calibrated target signal information is a non-CAN signal, combining them in the form of a structure.

[0043] In one embodiment, a target structure to be sent to the vehicle application layer is generated based on the calibrated target signal information, including: combining the calibrated target signal information according to the structure signals in the target Excel table to obtain the target structure.

[0044] The method provided in the above embodiment screens the interface signals (extracts target signal information), classifies them, and generates a model based on the signal summary table, that is, the target Excel table.

[0045] Optionally, one way to generate the interface signal information in the target Excel table may be to split the structure of the underlying software into single signals, and write the split single signals and the CAN signal of the underlying software as interface signal information into the target Excel table.

[0046] See also Figure 2 , Figure 2 This is the framework of the input model software shown in an exemplary embodiment of this application. Figure 2 As shown, the multiple structured signals of the vehicle's underlying software, such as the hardwire and EEPROM, are split into multiple individual signals. CAN signals remain CAN signals, and calibration constants, individual signals, and CAN signals are input into the input base model. The input signals are processed differently by determining whether there are replacement values ​​after frame loss. If there are replacement values ​​after frame loss, meaning a constant is required as input, the lost frame is converted and replaced with the constant and output. If there are no replacement values ​​after frame loss, the calibration process proceeds normally, with the calibration switch (calibration Sw) and calibration value (calibration Value) set via the conversion module (switch). The output signals are combined into a structure to obtain the target structure, which is then input into the application layer software.

[0047] The following is an illustrative example of the process of automatically generating an input interface model based on Matlab. Figure 3 , Figure 3 FIG. 1 is a specific flow chart of a method for automatically generating an input interface model based on Matlab, as shown in an exemplary embodiment of the present application. Figure 3 As shown, it shows the process of obtaining information from Excel by using Matlab language and then operating Matlab to automatically establish an input interface model.

[0048] Get Excel information and read all the information into a Cell array, that is, Figure 3 The Excel spreadsheet information is obtained as a Cell type array. Generate the outer subsystem and inner subsystem, and set the position and size of the subsystem. Use the For loop to extract the required input and output signals from the Cell array, and based on the output signal name, generate the calibration switch and calibration value name by adding prefixes and suffixes. Figure 3 ) for the next step. Find the repeated input signals and their locations, combining them into a matrix. Determine whether the input signal to be added is a repeated signal. Compare each input signal obtained from Excel with the matrix of the repeated signal. If it is included in the matrix of the repeated signal, generate an Inport module for the signal at the first position of the repeated signal, and generate Goto modules and corresponding From modules for the remaining positions. Set the corresponding position parameters and connect them according to the corresponding relationship. If the input signal is not in the matrix of the repeated signal, generate the corresponding constant module and select the module. Finally, complete the connection according to the corresponding relationship.

[0049] Generate the input of the innermost subsystem. First, determine whether constants are required as input. If not, generate From and name it as the corresponding input signal. If required, extract the constant signal name obtained from Excel, generate the corresponding constant module, and complete the connection. Filter out CAN signals, generate Inport as the port, and then generate Goto to connect. Filter out all non-CAN signals and combine them in the form of a structure. Filter out the signals corresponding to the output structure and generate the corresponding structure signals. That is, the output signals are combined according to the structure signals in the table and merged into the corresponding structure (target structure).

[0050] The method provided by the above embodiment is to interact with Excel through the Matlab language, filter and extract information in Excel, filter according to specific characters in the table, extract input and output signals, and use them as calibration quantities by adding prefixes and suffixes. Through screening, the corresponding signals are combined into structure signals to generate corresponding structure arrays. The input and output signals that need alternative values ​​are screened out, and the corresponding alternative values ​​are output after the frame is lost. In the Simulink environment, modules are added, module positions and paths are set, parameters (size, color, and data type, etc.) are set, and wiring is automatically performed to finally generate the required Simulink model.

[0051] The method provided in the above embodiment can automatically generate the application layer input and output interface model by maintaining the name, data type and other attributes of the interface signal in a specific format in an EXCEL table, establishing a specific mapping relationship. By generating a calibratable interface, the application layer and the underlying interface can be decoupled, making it easier to troubleshoot interface problems. When the corresponding signal frame communication is lost, an alternative value is generated as input. This facilitates the development of platform-based interface software, and multiple projects can be adapted by shielding the interface in an Excel table, ensuring the portability of the functional module software, greatly increasing the efficiency of software development, reducing errors caused by human modification, and ensuring the quality of software development.

[0052] See also Figure 4 , Figure 4 FIG. 1 is a block diagram of an apparatus for automatically generating an input interface model based on Matlab, according to an exemplary embodiment of the present application. Figure 4 As shown, the exemplary apparatus 400 for automatically generating an input interface model based on Matlab includes:

[0053] An acquisition module 401 is used to acquire a target Excel spreadsheet based on Matlab, where the target Excel spreadsheet includes information of multiple interface signals of the vehicle's underlying software.

[0054] Extraction module 402, used to extract target signal information from multiple interface signal information in the target Excel table;

[0055] The generation module 403 is used to calibrate the target signal information and generate a target structure to be sent to the vehicle application layer based on the calibrated target signal information, so as to automatically generate an input interface model.

[0056] It should be noted that the apparatus provided in the above embodiments and the methods provided in the above embodiments are based on the same concept. The specific manner in which the various modules and units perform their operations has been described in detail in the method embodiments and will not be repeated here. In actual applications, the apparatus provided in the above embodiments can, as needed, allocate the above functions to different functional modules, i.e., divide the internal structure of the apparatus into different functional modules to perform all or part of the functions described above. This is not a limitation herein.

[0057] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, which, when executed by one or more processors, enables the electronic device to implement the methods provided in the above-mentioned embodiments.

[0058] Figure 5 The following is a schematic diagram showing the structure of a computer system suitable for implementing an electronic device according to an embodiment of the present application. Figure 5 The computer system 1100 of the electronic device 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.

[0059] like Figure 5 As shown, the computer system 1100 includes a central processing unit (CPU) 1101, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1102 or the program loaded from the storage part 1108 into the random access memory (RAM) 1103, such as executing the method in the above embodiment. Various programs and data required for system operation are also stored in the RAM 1103. The CPU 1101, ROM 1102 and RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0060] The following components are connected to the I / O interface 1105: an input section 1106 including a keyboard, a mouse, and the like; an output section 1107 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 1108 including a hard disk; and a communication section 1109 including a network interface card such as a LAN (Local Area Network) card or a modem. The communication section 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the I / O interface 1105 as needed. Removable media 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 1110 as needed, so that computer programs read from the removable media can be installed in the storage section 1108 as needed.

[0061] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 1109, and / or installed from a removable medium 1111. When the computer program is executed by the central processing unit (CPU) 1101, the various functions defined in the apparatus of the present application are executed.

[0062] It should be noted that the computer-readable medium shown in the embodiments of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can 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), a 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 the present application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable computer program. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, or any suitable combination thereof.

[0063] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architectures, functions and operations of the systems, devices, methods and computer program products according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, program segment, or part of the code, and the above-mentioned module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two 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 box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0064] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. In some cases, the names of these units do not constitute limitations on the units themselves.

[0065] Another aspect of the present application provides a computer-readable storage medium having a computer program stored thereon. When executed by a computer processor, the computer program causes the computer to perform the methods provided in the above embodiments. The computer-readable storage medium may be included in the electronic device described in the above embodiments, or may exist independently and not be incorporated into the electronic device.

[0066] Another aspect of the present application provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the above embodiments.

[0067] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the present invention. Anyone skilled in the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, any equivalent modifications or alterations made by one of ordinary skill in the art without departing from the spirit and technical principles disclosed herein are intended to be covered by the claims of the present invention.

Claims

1. A method for automatically generating an input interface model based on Matlab, characterized in that: The method comprises: Obtaining a target Excel table based on Matlab, wherein the target Excel table includes multiple interface signal information of the vehicle's underlying software; Extracting target signal information from the plurality of interface signal information in the target Excel table, wherein the target signal information includes input signal information and output signal information; Calibrate the target signal information to determine whether a constant is required as input; if a constant is required as input, extract the constant signal name obtained from the target Excel table, generate a constant module, and complete the connection; if a constant is not required as input, generate a From module and name the From module as the signal name of the corresponding input signal information; generating a target structure to be sent to the vehicle application layer based on the calibrated target signal information to automatically generate an input interface model; The step of calibrating the target signal information includes: extracting an output signal name of the output signal information, wherein the output signal name is obtained based on the interface signal information; Adding a prefix character string and a suffix character string to the output signal name to generate a calibration switch and a calibration amount of the output signal; The position parameters of each input signal information are set, and connections are made according to the corresponding relationship.

2. The method for automatically generating an input interface model based on Matlab as claimed in claim 1, wherein: Extracting target signal information from the plurality of interface signal information in the target Excel table includes: An acquired signal selection instruction, wherein the signal selection instruction includes a target input signal identifier and a target output signal identifier; Read all the information in the target Excel table into a preset Cell array; Input signal information is extracted from the preset Cell array based on the target input signal identifier, and output signal information is extracted from the preset Cell array based on the target output signal identifier.

3. The method for automatically generating an input interface model based on Matlab as claimed in claim 2, wherein: Calibrating the target signal information includes: If there are at least two input signal information with the same signal name, the same multiple input signal information are combined into a matrix, and based on the position of each input signal information in the target Excel table, the input signal information located at the front of the target Excel table is generated as an Inport module, and the other input signal information in the matrix are generated as Goto modules and corresponding From modules; If an input signal information is not in any of the matrices, adding a calibration switch, a calibration amount and a selection module for the input signal information; The position parameters of each input signal information are set, and connections are made according to the corresponding relationship.

4. The method for automatically generating an input interface model based on Matlab according to any one of claims 1 to 3, characterized in that: Before generating a target structure to be sent to the vehicle application layer based on the calibrated target signal information, the method further includes: If the calibrated target signal information is a CAN signal, an Inport module is generated as a port, and then a Goto module is generated to connect it; If the calibrated target signal information is a non-CAN signal, it is combined in a structural form.

5. The method for automatically generating an input interface model based on Matlab according to any one of claims 1 to 3, characterized in that: Generating a target structure to be sent to the vehicle application layer based on the calibrated target signal information, including: The calibrated target signal information is combined according to the structure signal in the target Excel table to obtain the target structure.

6. A device for automatically generating an input interface model based on Matlab, characterized in that: The method for automatically generating an input interface model based on Matlab according to any one of claims 1 to 5, wherein the device comprises: An acquisition module is used to acquire a target Excel table based on Matlab, wherein the target Excel table includes multiple interface signal information of the vehicle's underlying software; An extraction module, configured to extract target signal information from the plurality of interface signal information in the target Excel table; A generation module is used to calibrate the target signal information and generate a target structure to be sent to the vehicle application layer based on the calibrated target signal information, so as to automatically generate an input interface model.

7. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and device for automatically generating A2L file

    CN113591171A

  • Automatic software integration control method based on software development platform

    CN113778395A