Application package generation method and device, equipment and storage medium

By obtaining the key information of the preset signal matrix and the target service signal, the vehicle application package is automatically generated, which solves the problems of large workload and low quality caused by the service signal differences of different models, and improves the generation efficiency.

CN120029598APending Publication Date: 2025-05-23ZHEJIANG LEAPMOTOR TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411866234.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

The service signal differences of different models lead to a large amount of manual modification and adaptation when generating vehicle-related service applications, resulting in large workload and low quality.

Method used

By obtaining the key information of the preset signal matrix and the target service signal, determining the mapping relationship between the target service signal and the service interface, generating the target code file, and automatically generating the application package.

Benefits of technology

Reduces workload, reduces human errors, and improves the generation efficiency of service applications of different models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120029598A_ABST
    Figure CN120029598A_ABST
Patent Text Reader

Abstract

The invention discloses an application package generation method and device, equipment and a storage medium. The application package generation method comprises the steps that preset signal matrixes related to target vehicles and key information of target service signals are obtained, different types of target vehicles correspond to different preset signal matrixes, and the target service signals are related signals of services needed by the target vehicles; the preset signal matrix comprises interaction indication information used for controlling a controller signal and / or interaction indication information used for controlling a controller feedback signal; determining a target mapping relationship between the target service signal and a target service interface corresponding to the target service signal based on the key information of the target service signal; determining a target code file based on the target mapping relation and a preset signal matrix; and generating an application package of the target vehicle by using the target code file. According to the scheme, the generation efficiency of the service applications of different vehicle types can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an application package generation method, apparatus, device and storage medium. Background Art

[0002] The service signals (such as CAN signals) of the SOCs of different vehicle models that connect to the MCU are constantly changing. Each change requires adaptation, which requires a lot of manpower, and manual code modification may introduce quality issues. Different service interface implementations need to use service signals, such as CAN signals, to implement functions, and the service signals of different vehicle models are different. When generating vehicle-related service applications, different vehicle models need to manually modify and adapt the service signals, which will bring a lot of workload. In addition, when generating vehicle-related service applications, manually modifying the service signals of different vehicle models may result in lower quality in the generated service applications.

[0003] In view of the existing technical defects, how to provide a solution that can improve the generation efficiency of service applications for different types of vehicles is a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention

[0004] The present application at least provides an application package generation method, apparatus, device and storage medium.

[0005] The present application provides an application package generation method, including: obtaining a preset signal matrix related to a target vehicle and key information of a target service signal, wherein different models of target vehicles correspond to different preset signal matrices, the target service signal is a related signal of the service required by the target vehicle, and the preset signal matrix includes interaction indication information for controlling a controller signal and / or interaction indication information of a controller feedback signal; based on the key information of the target service signal, determining a target mapping relationship between the target service signal and a target service interface corresponding to the target service signal; based on the target mapping relationship and the preset signal matrix, determining a target code file; and using the target code file to generate an application package for the target vehicle.

[0006] In some embodiments, based on the key information of the target service signal, the target mapping relationship between the target service signal and the target service interface corresponding to the target service signal is determined, including: filling the key information of the target service signal into the mapping matrix document of the target service interface, establishing an initial mapping relationship between the target service interface and the target service signal; based on the initial mapping relationship, determining the target mapping relationship.

[0007] In some embodiments, based on the initial mapping relationship, a target mapping relationship is determined, including: determining whether the initial mapping relationship satisfies preset conditions, the preset conditions including that information exists at the target position in the initial mapping relationship and / or that the information at the target position in the initial mapping relationship satisfies format requirements; in response to the initial mapping relationship satisfying the preset conditions, determining it as the target mapping relationship based on the initial mapping relationship and a preset signal matrix.

[0008] In some embodiments, in response to the initial mapping relationship satisfying a preset condition, a target mapping relationship is determined based on the initial mapping relationship and a preset signal matrix, including: in response to the initial mapping relationship satisfying the preset condition, extracting the preset signal matrix based on the target service signal to obtain extracted information related to the target service signal; filling the extracted information into the mapping matrix document of the target service interface to establish a target mapping relationship between the target service interface and the target service signal.

[0009] In some embodiments, the target code file includes a header file corresponding to the target service signal, a header file corresponding to the preset signal matrix and / or a signal mapping table code file corresponding to the preset signal matrix. Based on the target mapping relationship and the preset signal matrix, the target code file is determined, including: generating a header file corresponding to the target service signal based on the data structure information corresponding to the target mapping relationship; and / or generating a header file corresponding to the preset signal matrix and / or a signal mapping table code file corresponding to the preset signal matrix based on the data structure information corresponding to the preset signal matrix.

[0010] In some embodiments, the target code file includes a service implementation code file corresponding to the target service signal. Based on the target mapping relationship and the preset signal matrix, the target code file is determined, including: extracting information on the target mapping relationship to obtain association information of the target service interface, the association information including the association relationship between the target service signal and the target service interface and / or service interface parameter information; based on the association information of the target service interface, generating a service implementation code file corresponding to the target service signal.

[0011] In some embodiments, after generating an application package of the target vehicle using the target code file, the method further includes: loading the application package; receiving a service test instruction for the application package, and calling a service interface corresponding to the service test instruction to execute a service function corresponding to the service test instruction.

[0012] The present application provides an application package generation device, including: an acquisition module, a first determination module, a second determination module and a generation module; the acquisition module is used to acquire a preset signal matrix related to a target vehicle and key information of a target service signal, different models of target vehicles correspond to different preset signal matrices, the target service signal is a related signal of the service required by the target vehicle, and the preset signal matrix includes interaction indication information for controlling controller signals and / or interaction indication information of controller feedback signals; the first determination module is used to determine a target mapping relationship between a target service signal and a target service interface corresponding to the target service signal based on the key information of the target service signal; the second determination module is used to determine a target code file based on the target mapping relationship and the preset signal matrix; the generation module is used to generate an application package for the target vehicle using the target code file.

[0013] The present application provides an electronic device, including a memory and a processor, wherein the processor is used to execute program instructions stored in the memory to implement the above-mentioned application package generation method.

[0014] The present application provides a computer-readable storage medium on which program instructions are stored. When the program instructions are executed by a processor, the above-mentioned application package generation method is implemented.

[0015] The above scheme obtains the key information of the preset signal matrix and the target service signal related to the target vehicle. Different models of target vehicles correspond to different preset signal matrices. Based on the key information of the target service signal, the target mapping relationship between the target service signal and the target service interface corresponding to the target service signal and the obtained preset signal matrix are determined to determine the target code file. The target code file directly determined through the target mapping relationship and the obtained preset signal matrix can support the service implementation of vehicles of different models. The target code file is then used to generate an application package for the target vehicle. On the basis of completing the service implementation, it can reduce the workload while reducing human-introduced errors, thereby improving the generation efficiency of service applications for different models.

[0016] It is to 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 drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0018] Figure 1 This is a flow chart of an embodiment of the method for generating an application package of the present application. Figure 1 ;

[0019] Figure 2This is a flow chart of an embodiment of the method for generating an application package of the present application. Figure 2 ;

[0020] Figure 3 This is a flow chart of an embodiment of the method for generating an application package of the present application. Figure 3 ;

[0021] Figure 4 It is a schematic diagram of the initial mapping relationship in an embodiment of the application package generation method of the present application;

[0022] Figure 5 It is a schematic diagram of the target mapping relationship in an embodiment of the application package generation method of the present application;

[0023] Figure 6 This is a schematic diagram of a framework in an embodiment of the method for generating an application package of the present application;

[0024] Figure 7 It is a structural diagram of an embodiment of an application package generating device of the present application;

[0025] Figure 8 It is a structural schematic diagram of an embodiment of the electronic device of the present application;

[0026] Fig. 9 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0027] The scheme of the embodiment of the present application is described in detail below in conjunction with the drawings of the specification.

[0028] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures, interfaces, and technologies are provided to facilitate a thorough understanding of the present application.

[0029] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the objects associated before and after are in an "or" relationship. In addition, "many" in this article means two or more than two. In addition, the term "at least one" in this article means any combination of at least two of any one or more of a plurality of, for example, including at least one of A, B, and C, can mean including any one or more elements selected from the set consisting of A, B, and C.

[0030] The present application provides some application package generation methods and application package generation devices. The application scenarios of the application package generation method include but are not limited to the generation of service applications for different vehicle models. The execution subject of the application package generation method may be an application package generation device. For example, the application package generation device may be arranged in a terminal device or a server or other processing device, wherein the terminal device may be a device for application package generation, a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, etc. In some possible implementations, the application package generation method may be implemented by a processor calling computer-readable instructions stored in a memory.

[0031] See also Figure 1 , Figure 1 This is a flow chart of an embodiment of the method for generating an application package of the present application. Figure 1 Specifically, the application package generation method may include the following steps:

[0032] Step S11: Acquire the preset signal matrix related to the target vehicle and key information of the target service signal.

[0033] Different models of target vehicles correspond to different preset signal matrices, and the target service signal is a signal related to the service required by the target vehicle. The preset signal matrix includes interactive indication information for controlling controller signals and / or interactive indication information for controller feedback signals.

[0034] Among them, the control controller signal is used to represent a signal that can be sent to the controller and instruct the controller to perform relevant processing. The interactive indication information of the control controller signal is used to represent the signal matrix content related to the interactive indication of the control controller signal and can constitute a complete control controller signal. Specifically, the signal matrix content corresponding to the interactive indication information of the control controller signal includes the communication mode, signal type, signal ID, signal name, signal offset in the message, signal length, maximum value, minimum value, sending mode, signal description, etc. related to the interactive indication corresponding to the control controller signal. Among them, the controller feedback signal is used to represent the signal that the controller responds to the relevant processing and obtains the processing result and will feedback the processing result. The interactive indication information of the controller feedback signal is used to represent the signal matrix content related to the interactive indication of the controller feedback signal and can constitute a complete controller feedback signal. Specifically, the signal matrix content corresponding to the interactive indication information of the controller feedback signal includes the communication mode, signal type, signal ID, signal name, signal offset in the message, signal length, maximum value, minimum value, sending mode, signal description, etc. related to the interactive indication corresponding to the controller feedback signal. The preset signal matrix related to the target vehicle is used to indicate the interactive indication information of the control controller signal of the vehicle model to which the target vehicle belongs and / or the interactive indication information of the controller feedback signal. The preset signal matrix includes any one or both of the interactive indication information for controlling the controller signal and the interactive indication information of the controller feedback signal. Exemplarily, the preset signal matrix is ​​standardized signal matrix information for different vehicle models.

[0035] The target service signal includes multiple service signals. The target service signal is a signal related to the service required by the target vehicle. Each service signal in the target service signal is the signal information required by each service interface in the target vehicle. Among them, the signal information required by each service interface in the target vehicle includes the key information corresponding to several service signals required by each service interface. Among them, the information corresponding to each service signal required by each service interface includes the key information of each service signal. Among them, the key information of each service signal includes the communication type required by the service signal, the signal ID of the service signal, and the signal name of the service signal. In some application scenarios, the key information of each service signal also includes the data value corresponding to the service signal, and the data value is a fixed signal value required by some service interfaces. It can be understood that the key information of the target service signal is the key information corresponding to several service signals required by each service interface. The key information corresponding to the service signal is at least part of the signal information of the service signal corresponding to the service signal. The signal information of the service signal corresponding to the service signal can constitute the complete service corresponding to the service signal.

[0036] In some application scenarios, a method for obtaining a preset signal matrix related to a target vehicle can be to select a preset signal matrix matching the vehicle model of the target vehicle from a set of preset signal matrices related to vehicle signals according to the vehicle model of the target vehicle as the preset signal matrix related to the target vehicle.

[0037] In some application scenarios, the key information of the target service signal can be obtained by converting the key information filling instruction into the key information of the target service signal in response to receiving the key information filling instruction. The key information filling instruction is used to represent instruction information related to the key information filling operation on the display interface.

[0038] Step S12: Based on the key information of the target service signal, determine the target mapping relationship between the target service signal and the target service interface corresponding to the target service signal.

[0039] The key information of the target service signal is the key information of the above-mentioned several service signals. The target service signal is a service signal that has been determined to be mapped. The target service interface is a service interface that matches the target service signal. Specifically, the target service interface includes service interfaces that match several service signals. The service interfaces corresponding to at least some of the service signals in the target service signal are different. The target mapping relationship is used to represent the dependency relationship between each service signal in the target service signal and each service interface in the target service interface. The service interfaces corresponding to different service signals can be the same.

[0040] In some application scenarios, the above step S12 can determine the service signal identification information of the target service signal and the interface identification information of the target service interface corresponding to the target service signal based on the key information of the target service signal. A target mapping relationship between the target service signal and the target service interface corresponding to the target service signal is established based on the service signal identification information and the interface identification information. Specifically, the service signal identification information includes a signal ID and / or a signal name. The interface identification information includes interface port information related to the target service interface corresponding to the service signal. Each service interface is assigned unique interface identification information.

[0041] Step S13: Determine the target code file based on the target mapping relationship and the preset signal matrix.

[0042] The target code file may be a code file that can support the complete service implementation.

[0043] The above step S13 can be to use a code generation tool or script to generate code according to the preset signal matrix and the target mapping relationship. The code generation tool can be a code generator. The script can be a custom script. Read the signal matrix data and mapping relationship data from the relevant files of the preset signal matrix and the relevant files of the target mapping relationship. Among them, the form of the relevant files can be Excel files, CSV files or database files, etc. Then generate data structures, service interface codes and signal processing codes according to the signal matrix data and the mapping relationship data. And based on the data structure, service interface code and signal processing code, determine the target code file. Specifically, generate a corresponding data structure, such as a C structure, according to the signal matrix data. Generate service interface code related to the API processing function according to the mapping relationship data. Generate signal reading, processing and sending code based on the signal matrix data.

[0044] Step S14: Generate an application package for the target vehicle using the target code file.

[0045] The application package of the target vehicle is a service application package related to the required service signal. The target code file is service compiled and packaged to obtain the application package of the target vehicle. Specifically, the executable file, configuration file, resource file, etc. after the target code file is compiled are packaged into an application package.

[0046] Exemplarily, the service compilation and packaging method may be to call a python script to compile and package the target code file, the lpSignalEngine.so library and its header file and other dependent parts to form an installation package. For example, other dependent parts may be such as SOA service definition library, standardized communication component library, related configuration, etc.

[0047] In some application scenarios, after the above step S14, the application package of the target vehicle can be deployed to the target vehicle. Exemplarily, the above installation package is installed in the actual operating environment.

[0048] During the actual operation of the application package of the target vehicle, the process of service implementation can be: the lpSignalEngine.so library will search the corresponding signal in the service interface signal mapping table through the index, and according to the communication type, signal type, signal value, signal ID, signal name, signal bit, signal length, maximum value, minimum value, sending cycle and other information defined in the service interface signal mapping table, the input parameters of the signal and interface are spliced, and the corresponding sending interface is called to send data. Among them, the input parameters can be input information related to the service use instruction. The service use instruction is the user's instruction information for using a specific service in the target application corresponding to the application package on the target vehicle. For example, the instruction information is that the left front window is open and the opening is 20%.

[0049] When the target vehicle receives information fed back by the controller, that is, when the target vehicle receives feedback from the controller, the lpSignalEngine.so library parses the signal through the header file generated by the signal matrix data, finds the corresponding Event or Field interface through the mapping relationship data, and calls the relevant SOA interface to publish the Event or Field so that the controller response related to the service usage instruction is displayed in the target application and the processing result is obtained after the relevant processing.

[0050] The above scheme obtains the key information of the preset signal matrix and the target service signal related to the target vehicle. Different models of target vehicles correspond to different preset signal matrices. Based on the key information of the target service signal, the target mapping relationship between the target service signal and the target service interface corresponding to the target service signal and the obtained preset signal matrix are determined to determine the target code file. The target code file directly determined through the target mapping relationship and the obtained preset signal matrix can support the service implementation of vehicles of different models. The target code file is then used to generate an application package for the target vehicle. On the basis of completing the service implementation, it can reduce the workload while reducing human-introduced errors, thereby improving the generation efficiency of service applications for different models.

[0051] See also Figure 2 , Figure 2 This is a flow chart of an embodiment of the method for generating an application package of the present application. Figure 2 .

[0052] In some embodiments, the above step S12 may include the following steps: Step S21: Fill the key information of the target service signal into the mapping matrix document of the target service interface to establish an initial mapping relationship between the target service interface and the target service signal. Step S22: Determine the target mapping relationship based on the initial mapping relationship.

[0053] The mapping matrix document of the target service interface can be a mapping relationship creation tool for filling in the signal information of the target service signal. The initial mapping relationship can be a mapping relationship between each service signal obtained based on the key information of the target service signal and its corresponding service interface. Among them, the initial mapping relationship can be in the form of a chart. The document structure of the mapping matrix document can include a service signal field and a service interface field.

[0054] In some application scenarios, the above step S21 may be to directly fill in the information related to the service signal in the key information of the target service signal into the service signal field, and fill in the information related to the service interface in the key information of the target service signal into the service interface field to obtain the filled document. Determine the initial mapping relationship between the target service interface and the target service signal based on the filled document. Specifically, each index in the filled document can correspond to the initial mapping relationship between a service signal and a service interface. In other application scenarios, the above step S21 may be to first partition the mapping matrix document according to the type of service interface to obtain the area to which each service interface belongs. Then determine the corresponding relationship between the service signal and the service interface based on the key information of the target service signal. Fill in the information related to the service signal in the key information of the target service signal into the target service signal field, and fill in the information related to the service interface corresponding to the service signal in the key information of the target service signal into the target service interface field to obtain the filled document. Determine the initial mapping relationship between the target service interface and the target service signal based on the filled document. Exemplarily, the key information of the target service signal is filled into a mapping matrix document of the target service interface in excel or xml format in a fixed format to establish an association relationship between the service interface and the signal.

[0055] The initial mapping relationship and the target mapping relationship are both mapping relationships between the target service interface and the target service signal. The information filled in the service signal field and the service interface field in the initial mapping relationship is the signal information of at least part of the service signal. The information filled in the service signal field and the service interface field in the target mapping relationship is the signal information of the complete service signal. That is, the initial mapping relationship is at least part of the target mapping relationship.

[0056] In some application scenarios, the above step S22 can be determined as a target mapping relationship based on the initial mapping relationship and the preset signal matrix. Specifically, the extracted information is obtained based on the extraction of the preset signal matrix using a script. The extracted information contains other information except the key information in the complete signal information of the target service signal. The extracted information and the initial mapping relationship can constitute the target mapping relationship. Fill the extracted information into the mapping matrix document of the target service interface to establish a target mapping relationship between the target service interface and the target service signal.

[0057] It can be considered that by filling the key information of the above target service signal into the mapping matrix document of the target service interface, a basic initial mapping relationship can be established, and determining the target mapping relationship based on the initial mapping relationship can ensure the accuracy of the determined target mapping relationship.

[0058] In some embodiments, the above step S22 may include the following steps: first, determine whether the initial mapping relationship meets the preset conditions. The preset conditions include that the target position in the initial mapping relationship has information and / or the information of the target position in the initial mapping relationship meets the format requirements. Then, in response to the initial mapping relationship meeting the preset conditions, determine the target mapping relationship based on the initial mapping relationship and the preset signal matrix.

[0059] The target position in the initial mapping relationship may be the position of the service signal field and / or the position of the service interface field. In some application scenarios, the target position in the initial mapping relationship may be at least one of the communication type required for the service signal contained in the service signal field, the signal ID of the service signal, and the signal name of the service signal. In some application scenarios, the target position in the initial mapping relationship may be the position of the data value corresponding to the service signal contained in the service signal field. In other application scenarios, the target position in the initial mapping relationship may be the position of the service signal field and the position of the service interface field. The format requirement may be a requirement for any field in the initial mapping relationship that has been written to a position. For example, the field in the written position is the data value corresponding to the service signal. The format requirement may be whether the data value corresponding to the service signal under the field is filled in reasonably.

[0060] In some application scenarios, before determining whether the initial mapping relationship meets the preset conditions, the preset conditions of each service signal included in the target service signal in the initial mapping relationship are dynamically set. The way to dynamically set the preset conditions can be to extract the benchmark information related to the target service signal from the preset signal matrix based on the key information of the target service signal. Then, based on the benchmark information related to the target service signal, the preset conditions of each service signal included in the target service signal are generated. It can be understood that the preset conditions of each service signal included in the target service signal include at least part of the field positions in the service signal field corresponding to each service signal being set to the target position, and the setting of the required format of the field content of the target position. The benchmark information related to the target service signal includes the setting requirements of at least part of the field positions in the service signal field corresponding to each of the above-mentioned service signals and the setting requirements of the required format of the field content of the target position.

[0061] Exemplarily, standardized signal matrix information is extracted through a python script, and at the same time, the service interface signal mapping matrix information corresponding to the above-mentioned initial mapping relationship is extracted to check whether the communication type, signal ID, signal name, and other information filled in the service interface mapping matrix document exist, whether the signal value is reasonable, and whether the association relationship is correct to realize service interface signal association verification.

[0062] In response to the initial mapping relationship satisfying a preset condition, determine the target mapping relationship based on the initial mapping relationship and the preset signal matrix.

[0063] In some application scenarios, when the initial mapping relationship satisfies the preset condition, directly use the initial mapping relationship and the preset signal matrix as the target mapping relationship. In some application scenarios, when the initial mapping relationship satisfies the preset condition, extract the preset signal matrix based on the initial mapping relationship to obtain the extracted information related to the target service signal. Subsequently, fill the extracted information into the mapping matrix document of the target service interface to establish the target mapping relationship between the target service interface and the target service signal.

[0064] In some other application scenarios, when the initial mapping relationship does not satisfy the preset condition, discard the initial mapping relationship and re - execute the above - mentioned step S21. In some other application scenarios, when the initial mapping relationship does not satisfy the preset condition, modify the initial mapping relationship based on the difference between the above - mentioned reference information related to the target service signal and the initial mapping relationship to obtain the modified initial mapping relationship. Determine the target mapping relationship based on the modified initial mapping relationship and the preset signal matrix.

[0065] It can be considered that by determining whether the initial mapping relationship satisfies the preset condition, the accuracy of the determined target mapping relationship can be guaranteed, thereby improving the generation efficiency of subsequent service applications for different vehicle models.

[0066] Please refer to Figure 3 , Figure 3 which is the flowchart of an embodiment of the application package generation method of this application. Figure 3 .

[0067] In some embodiments, the step of determining the target mapping relationship based on the initial mapping relationship and the preset signal matrix in response to the initial mapping relationship satisfying the preset condition may include the following steps: Step S31: In response to the initial mapping relationship satisfying the preset condition, extract the preset signal matrix based on the target service signal to obtain the extracted information related to the target service signal. Step S32: Fill the extracted information into the mapping matrix document of the target service interface to establish the target mapping relationship between the target service interface and the target service signal.

[0068] The extracted information includes other information except the key information in the complete signal information of the target service signal or the complete signal information of the target service signal. It can be understood that the target mapping relationship may exist in the form of a mapping matrix document. Specifically, the target mapping relationship may be a service interface mapping matrix document.

[0069] The above-mentioned step of extracting the preset signal matrix based on the target service signal to obtain the extracted information related to the target service signal may be to determine the complete signal information related to each target service signal from the preset signal matrix, or at least part of the signal information related to each target service signal. Wherein, the at least part of the signal information includes other information in the complete signal information of the target service signal except the key information. In some application scenarios, when the extracted information contains other information in the complete signal information of the target service signal except the key information, when the above step S32 is executed, the mapping matrix document of the target service interface contains the key information corresponding to the initial mapping relationship. The above step S32 may be a combination of the extracted information and the key information corresponding to the initial mapping relationship, so as to obtain the complete signal information corresponding to the target mapping relationship, thereby establishing the target mapping relationship between the target service interface and the target service signal. In other application scenarios, when the extracted information contains the complete signal information of the target service signal, when the above step S32 is executed, the mapping matrix document of the target service interface may contain the key information corresponding to the initial mapping relationship, or may not contain the key information corresponding to the initial mapping relationship. Specifically, if when executing the above step S32, the mapping matrix document of the target service interface contains the key information corresponding to the initial mapping relationship, the above step S32 may be a combination of the above other information in the extracted information and the key information corresponding to the initial mapping relationship, or the complete signal information of the target service signal is updated or replaced with the key information in the mapping matrix document of the target service interface and the other information is filled in the remaining blanks, so as to obtain the complete signal information corresponding to the target mapping relationship, thereby establishing the target mapping relationship between the target service interface and the target service signal. Specifically, if when executing the above step S32, the mapping matrix document of the target service interface does not contain the key information corresponding to the initial mapping relationship, the above step S32 may be a combination of the complete signal information in the extracted information and the key information of the target service signal, thereby obtaining the complete signal information corresponding to the target mapping relationship, thereby establishing the target mapping relationship between the target service interface and the target service signal.

[0070] Exemplarily, the service interface signal matrix is ​​supplemented: in the python script, other information extracted from the standardized signal matrix information is filled into the associated service interface in the service interface mapping matrix document. Other information extracted from the standardized signal matrix information may include data bits, occupied data length (data type), maximum value, minimum value, transmission cycle, number of transmissions, etc.

[0071] In other application scenarios, the above determination as the target mapping relationship based on the modified initial mapping relationship and the preset signal matrix may include: extracting the preset signal matrix based on the target service signal to obtain extracted information related to the target service signal. Filling the extracted information into a new mapping matrix document of the target service interface to establish a target mapping relationship between the target service interface and the target service signal. The signal information contained in the new mapping matrix document may correspond to the modified initial mapping relationship.

[0072] It is understandable that when executing the above step S32, the mapping matrix document of the target service interface contains the key information corresponding to the initial mapping relationship. The above step S32 can be a combination of the extracted information and the key information corresponding to the modified initial mapping relationship, so as to obtain the complete signal information corresponding to the target mapping relationship, thereby establishing the target mapping relationship between the target service interface and the target service signal.

[0073] It can be considered that the present application can realize the use of only the key information of the service signal, and then automatically update the initial mapping relationship to the target mapping relationship, thereby improving the efficiency of generating the target code file, avoiding the reduction in code generation accuracy caused by too much manual input of information, and improving generation efficiency.

[0074] In some embodiments, the target code file includes a header file corresponding to the target service signal, a header file corresponding to the preset signal matrix, and / or a signal mapping table code file corresponding to the preset signal matrix. The above step S13 may include the following steps: based on the data structure information corresponding to the target mapping relationship, generating a header file corresponding to the target service signal. And / or, based on the data structure information corresponding to the preset signal matrix, generating a header file corresponding to the preset signal matrix and / or a signal mapping table code file corresponding to the preset signal matrix.

[0075] The target code file includes any one, any two, or all three of the header file corresponding to the target service signal, the header file corresponding to the preset signal matrix, and the signal mapping table code file corresponding to the preset signal matrix. This application takes the case where the target code file includes the header file corresponding to the target service signal, the header file corresponding to the preset signal matrix, and the signal mapping table code file corresponding to the preset signal matrix as an example, but any one of them is described separately and will not be repeated later.

[0076] In some application scenarios, the above step S13 may include: generating a header file corresponding to the target service signal based on the data structure information corresponding to the target mapping relationship.

[0077] Specifically, a code generation tool or script is used to generate a header file corresponding to the target service signal according to the target mapping relationship. The header file corresponding to the target service signal defines declarations of classes, structures, functions, etc. related to the target mapping relationship. The data structure information is the data structure of each mapping relationship in the target mapping relationship, including signal ID, signal type, signal length, signal offset, comments, and other information.

[0078] Exemplarily, a python script is used to extract information from the service interface mapping matrix document of the target mapping relationship to obtain the data structure information corresponding to the target mapping relationship, form an array related to the target mapping relationship, and write the array related to the target mapping relationship into the header file to generate a header file corresponding to the target service signal. Specifically, the subscript of the array related to the target mapping relationship corresponds to the value of the function macro, the function macro name is composed of the service ID, method name or event, and service ID. The data is a vector containing the content of multiple messages, and the content of each message is the communication type, signal type, signal ID, signal name, signal value, signal bit, signal length, maximum value, minimum value, sending cycle, etc.

[0079] In some application scenarios, the above step S13 may include: generating a header file corresponding to the preset signal matrix based on data structure information corresponding to the preset signal matrix.

[0080] The header file corresponding to the preset signal matrix defines declarations of classes, structures, functions, etc. related to the preset signal matrix.

[0081] Exemplarily, the standardized signal matrix information is re-extracted using a python script, and the extracted information may be the data structure of each message, including information such as signal ID, signal type, signal length, signal offset, and annotations, wherein the extracted information may be the data structure information corresponding to the above-mentioned preset signal matrix. Through the information included in the data structure, a header file containing a structure code is generated for subsequent message parsing, and the header file is a header file corresponding to the preset signal matrix. Among them, the standardized signal matrix information is the above-mentioned preset signal matrix.

[0082] In some application scenarios, the above step S13 may include: generating a signal mapping table code file corresponding to the preset signal matrix based on data structure information corresponding to the preset signal matrix.

[0083] Exemplarily, the standardized signal matrix information is re-extracted using a python script. The extracted information may be the data structure of each message, including signal ID, signal type, signal length, signal offset, annotations and other information, wherein the extracted information may be the data structure information corresponding to the above-mentioned preset signal matrix. Subsequently, the data structure information corresponding to the above-mentioned preset signal matrix generates one or more (there may be multiple if the signal type is different) map table codes with signal type and ID as index keys and data structure as data value. The map table code is the signal mapping table code file corresponding to the above-mentioned preset signal matrix. The signal mapping table code file corresponding to the preset signal matrix can be used for quick search when using the signal parsing of the application corresponding to the application package.

[0084] In some embodiments, the target code file includes a service implementation code file corresponding to the target service signal, and the above step S13 may include the following steps: first, extract information from the target mapping relationship to obtain the association information of the target service interface. The association information includes the association relationship between the target service signal and the target service interface and / or the service interface parameter information. Then, based on the association information of the target service interface, generate the service implementation code file corresponding to the target service signal.

[0085] The association relationship between the target service signal and the target service interface may be the mapping relationship between each service signal and each service interface in the above-mentioned target mapping relationship. The service interface parameter information is used to represent the function macro subscript index and the parameters of the service interface. Exemplarily, the function macro subscript index may be the index of the first window opening service corresponding to the window A instance in the window service interface. The parameter of the service interface may be the window opening setting range corresponding to the first window opening service.

[0086] Exemplarily, a python script is used to extract information from the service interface mapping matrix document of the target mapping relationship to obtain the data structure information corresponding to the target mapping relationship, form an array related to the target mapping relationship, and write the array related to the target mapping relationship into the header file to generate the header file corresponding to the target service signal. Specifically, the subscript of the array related to the target mapping relationship corresponds to the value of the function macro, the function macro name is composed of the service ID, the method name or the event, and the service ID. The data is a vector containing the content of multiple messages, and the content of each message is the communication type, signal type, signal ID, signal name, signal value, signal bit, signal length, maximum value, minimum value, sending cycle, etc. Then, the service interface information is extracted from the service interface mapping matrix using a python script to generate the service interface signal mapping table implementation code. The service interface is a standardized definition, and the service interface is mainly implemented here. The name, parameter type, and return value of the service interface can be directly obtained from the service interface mapping matrix. The implementation in the interface is mainly achieved by calling the lpSignalEngine interface related to the lpSignalEngine.so library. The service interface parameter information is the function macro subscript index in the array related to the target mapping relationship and the parameters of the service interface.

[0087] It can be considered that the present application can automatically generate service implementation code files, ensure the integrity of the target code files and thus ensure the complete implementation of the service functions.

[0088] In some embodiments, after the above step S14, the above application package generation method further comprises the following steps: loading the application package, receiving a service test instruction for the application package, and calling a service interface corresponding to the service test instruction to execute a service function corresponding to the service test instruction.

[0089] An interface simulator is deployed in the application package generation device. Loading an application package may be an application package (such as an APK or IPA file) being loaded into an interface simulator. This usually involves reading the binary files and resource files of the application package into the memory of the simulator. Receiving service test instructions may be through the user interface or API of the interface simulator, and service test instructions may be sent. These instructions may be to test specific functions, trigger specific events, or verify the behavior of specific interfaces. The interface simulator calls the service interface corresponding to the service test instruction based on the received service test instruction to implement the execution of the service function. The service interface corresponding to the service test instruction may be an API, a network service interface, or other dependent service within the application program of the application package. Executing the service function may be the calling of the service interface to execute the corresponding function. The interface simulator captures the execution results of these functions and provides the execution results. The execution results may include successful implementation of the service function or failure of the service function.

[0090] Specifically, prepare the application package (APK or IPA file) and ensure that it contains all necessary resource files and configurations. Load the application package into the interface simulator. This is usually achieved through a load or import function, and the simulator reads the metadata and content of the application package. Configure the test environment of the interface simulator, including setting simulation data, configuring the network environment, and simulating user behavior. Send service test instructions through the simulator's user interface or API. These instructions can be: calling a specific API interface, triggering specific user operations (such as clicking a button, entering text), simulating network requests and responses, etc. The simulator calls the corresponding service interface in the application package according to the received test instructions. These service interfaces can be method calls within the application, network requests to external services, etc. The called service interface executes the corresponding function. For example, if the test instruction is to call an API to obtain user information, the simulator will trigger the call of the API and return simulated user data. The simulator captures the execution results of the service function, including the returned data, exception information, and logs. These execution results can be used to verify the correctness, performance, and stability of the function. Generate a test report based on the captured execution results. The test report can include detailed information, charts, and suggestions for the test results.

[0091] In some application scenarios, a running simulator is deployed in the application package generation device. In the actual operation process of the running simulator, when executing the method, the lpSignalEngine.so library will search the corresponding signal in the service interface signal mapping table through the index, and according to the communication type, signal type, signal value, signal ID, signal name, signal bit, signal length, maximum value, minimum value, sending cycle and other information defined in the service interface signal mapping table, the input parameters of the signal and the interface are spliced, and the corresponding sending interface is called to send data. The input parameters of the interface are related to the above-mentioned service interface parameter information. When receiving the information fed back by the controller, the lpSignalEngine.so library parses the signal through the header file generated by the signal matrix information, finds the corresponding Event or Field interface through the service interface mapping matrix, and calls the relevant SOA interface to publish the Event or Field.

[0092] See also Figure 4 and Figure 5 , Figure 4 is a schematic diagram of the initial mapping relationship in an embodiment of the application package generation method of the present application, Figure 5 It is a schematic diagram of the target mapping relationship in an embodiment of the application package generation method of the present application.

[0093] The preset signal matrix in the above step S11 can be a standardized signal matrix related to the target vehicle. The standardized signal matrix can be a CAN communication matrix, a TCPIP, UART or other protocol communication matrix, and there can be multiple types of such communication matrices, which are mainly used to illustrate the controller control signal corresponding to the control and / or feedback.

[0094] The above step S21 can be filled in the service interface signal mapping matrix to determine the signal information required by each service interface, such as which pieces of information are needed, what type of communication method each piece of information uses, which signal ID, signal name, and signal value (some interfaces use fixed signal values) correspond to. Enter the above information and the information of the service interface itself (service ID, instance ID, method, field, event name, parameters (type, name), return value type, etc.) into the service interface mapping matrix document in excel or xml format in a fixed format to establish an association relationship. The association relationship can be as follows: Figure 4 The initial mapping relationship shown. Exemplarily, in the initial mapping relationship established in the above step S21, the service interface of opening the car door is taken as an example. The service ID is the service name Door, the service instance refers to which car door, and the Method / Field / Event indicates the specific interface of this information, such as Open here. Parameters and return values ​​are mainly used to input interface information when generating interfaces when implementing interfaces, and they may not be present. Following is the associated signal, there can be multiple. The communication type is used to indicate which link is used for communication and is associated with the underlying sending method; the signal type is used to distinguish the types of messages defined separately under the same communication type, such as CAN includes CAN and CANFD. The signal ID indicates which message to use, and the signal name specifies which data in the message to use.

[0095] The above step of judging whether the initial mapping relationship meets the preset conditions can be to verify the input message and whether the format filled in is correct, such as typesetting; verify whether the content of the data is correct, read the input information through the script, and query the standardized signal matrix to retrieve whether the corresponding signal exists, whether the corresponding signal name and signal ID match, and whether the signal value is reasonable.

[0096] The above steps S31 and S32 can be extracted from the standardized signal matrix through a script. Information associated with the signal name (such as the corresponding data bit, occupied data length (data type), maximum value, minimum value, transmission cycle, number of transmissions, etc.) is then directly added to the service interface mapping matrix. After the addition, the mapping matrix establishes an associated relationship as the target mapping relationship. Figure 5The data bit in the target mapping relationship shown indicates which bit the signal starts with in the message, the signal length refers to the length or data type occupied by the data, and the maximum and minimum values ​​are used to verify whether the data sent or received is reasonable. Other data include the sending cycle, number of times, etc., which are different for each type of communication method.

[0097] It is understandable that the mapping matrix document (also known as the service interface matrix document) can be the service interface signal mapping matrix in the corresponding functional logic diagram, which is a service interface definition with a certain format, and the presentation format can be excel, xml file, etc. It fills in the specifications for which signals need to be sent for the implementation of each service interface. For example, the action of opening the door may require sending multiple signals. The service interface signal mapping matrix indicates which signals need to be sent for the action of opening the door, how to send the signal (TCP, CAN, LIN...), the sending channel, the type of signal (CAN, CANFD), the signal ID, the signal value (some interfaces use fixed signal values), the corresponding signal bit, the upper and lower limits of the signal value, whether to send once or periodically, and other information.

[0098] See also Figure 6 , Figure 6 It is a framework diagram of an embodiment of the application package generation method of the present application.

[0099] like Figure 6 The framework shown is used to implement the signal engine function, which can centrally manage the sending and receiving of signals. Its main logical core is to extract the common unchanged code into a library file, automatically generate the changing part through configuration input, flexibly adapt to the process of different models, avoid the quality problems introduced by handwritten CAN signal code, and improve the development efficiency. Figure 6 The framework shown includes a target mapping relationship determination module, an lpSignalEngine.so library acquisition module, other dependency acquisition modules, and an application package generation module.

[0100] The target mapping relationship determination module is used to generate a target mapping relationship. The preset signal matrix of the defined target vehicle and the key information of the target service signal are input into the target mapping relationship determination module to obtain the target mapping relationship output by the target mapping relationship determination module. For example, the target mapping relationship can be a service interface signal mapping table generated by which signals need to be sent to realize a service interface, including communication link, signal type, signal ID, corresponding signal bit, signal value, etc.

[0101] The signal matrix can be the function points corresponding to the signal bits in each specific signal, such as which bits each signal corresponds to in a message. In the service implementation, call the public unchanged part to implement the service. The public unchanged part generates a library file. The public unchanged part includes the lpSignalEngine.so library and other dependencies, which can be directly obtained.

[0102] The lpSignalEngine.so library acquisition module can acquire the lpSignalEngine.so library. The acquired lpSignalEngine.so library includes the service-to-CAN signal function, which can realize the standardized protocol package assembly. The package assembly can be to parse the service interface signal mapping table when sending data, assemble the signals to be sent as needed, convert, verify, embed, and serialize related parameters; parse the received signals through the signal matrix and the service interface signal mapping table, deserialize, verify parameters, etc., and associate the service interface. The service-to-CAN signal function includes signal mapping matrix analysis, signal assembly, and signal sending functions.

[0103] The obtained lpSignalEngine.so library includes signal transfer service functions, which can realize data sending and parsing, can realize standardized data sending or receiving under different communication modes, and ensure the reliability of messages through different mechanisms, such as message retransmission. The signal transfer service function includes signal reception, parsing mapping, signal linkage and service signal feedback sub-functions.

[0104] The obtained lpSignalEngine.so library includes a tool chain function. The tool chain can realize an automated tool chain. The automated tool chain provides scripts to realize the following functions: automated message matrix parsing, automated service interface signal mapping matrix parsing, generating service interface signal mapping matrix table code, generating service implementation interface, information structure header file, etc. The generated service interface signal mapping matrix table code and the generated service implementation interface can be the service implementation code file corresponding to the target service signal generated based on the above target mapping relationship. The generated information structure header file can be the header file corresponding to the above target service signal and the header file corresponding to the preset signal matrix. The tool chain functions include matrix document parsing, service interface signal mapping table creation, service interface implementation code generation, and signal structure parsing functions.

[0105] Specifically, the signal engine function can implement the definition of a standardized signal interface matrix, such as the data meaning and format of each bit in the signal. Fill in the service interface matrix table to establish the mapping relationship between the service interface implementation and the signal, such as which signals need to correspond to the interface for opening the door in the door service, the communication method, signal ID, signal bit, signal value, data range, transmission cycle, etc. required by the corresponding signal. Through the script, extract the signal definition information in the signal interface matrix, generate the corresponding data structure definition header file in a fixed format, and the lpSignalEngine.so library parses the corresponding signal through the definition. Extract the target mapping relationship between the service interface and the service signal in the service interface matrix through the script to generate the service implementation interface. It is mainly to associate the index in the service interface signal relationship table. The service interface signal relationship table can be the function macro subscript index corresponding to the target mapping relationship. Call the above lpSignalEngine.so library to process the indexed signal, and generate the service interface signal mapping relationship table code through the extracted target mapping relationship, so as to achieve the generation of the target code file. The application corresponding to the application package generated based on the target code file can use the lpSignalEngine.so library to directly parse the index into the corresponding signal for sending and receiving through the input of this table when executing the service.

[0106] The engineering that can be realized by combining the changing parts and the unchanged parts into a complete service does not require additional code writing. Every time the signal matrix changes, you only need to fill in the mapping relationship matrix between the service interface and the signal to automatically generate the relevant code. In other words, you only need to fill in the key information in the target service signal and the vehicle model corresponding to the target vehicle to automatically generate the target code file, and generate the application package of the target vehicle of the model based on the target code file.

[0107] The above scheme obtains the key information of the preset signal matrix and the target service signal related to the target vehicle. Different models of target vehicles correspond to different preset signal matrices. Based on the key information of the target service signal, the target mapping relationship between the target service signal and the target service interface corresponding to the target service signal and the obtained preset signal matrix are determined to determine the target code file. The target code file directly determined through the target mapping relationship and the obtained preset signal matrix can support the service implementation of vehicles of different models. The target code file is then used to generate an application package for the target vehicle. On the basis of completing the service implementation, it can reduce the workload while reducing human-introduced errors, thereby improving the generation efficiency of service applications for different models.

[0108] See also Figure 7 , Figure 7It is a structural diagram of an embodiment of an application package generation device of the present application. The application package generation device 70 includes an acquisition module 71, a first determination module 72, a second determination module 73 and a generation module 74; the acquisition module 71 is used to acquire a preset signal matrix related to a target vehicle and key information of a target service signal. Different models of target vehicles correspond to different preset signal matrices. The target service signal is a related signal of the service required by the target vehicle. The preset signal matrix includes interactive indication information for controlling controller signals and / or interactive indication information of controller feedback signals; the first determination module 72 is used to determine the target mapping relationship between the target service signal and the target service interface corresponding to the target service signal based on the key information of the target service signal; the second determination module 73 is used to determine the target code file based on the target mapping relationship and the preset signal matrix; the generation module 74 is used to generate an application package for the target vehicle using the target code file.

[0109] The above scheme obtains the key information of the preset signal matrix and the target service signal related to the target vehicle. Different models of target vehicles correspond to different preset signal matrices. Based on the key information of the target service signal, the target mapping relationship between the target service signal and the target service interface corresponding to the target service signal and the obtained preset signal matrix are determined to determine the target code file. The target code file directly determined through the target mapping relationship and the obtained preset signal matrix can support the service implementation of vehicles of different models. The target code file is then used to generate an application package for the target vehicle. On the basis of completing the service implementation, it can reduce the workload while reducing human-introduced errors, thereby improving the generation efficiency of service applications for different models.

[0110] For the functions performed by each module, please refer to the application package generation method, which will not be repeated here.

[0111] See also Figure 8 , Figure 8 80 is a schematic diagram of the structure of an embodiment of a vehicle of the present application. The electronic device 80 includes a memory 81 and a processor 82, and the processor 82 is used to execute program instructions stored in the memory 81 to implement the steps in the above-mentioned application package generation method embodiment. In a specific implementation scenario, the electronic device 80 may include but is not limited to: a microcomputer, a server, and in addition, the electronic device 80 may also include a mobile device such as a laptop computer and a tablet computer, which is not limited here.

[0112] Specifically, the processor 82 is used to control itself and the memory 81 to implement the steps in the above-mentioned application package generation method embodiment. The processor 82 can also be called a CPU (Central Processing Unit). The processor 82 may be an integrated circuit chip with signal processing capabilities. The processor 82 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 82 can be implemented by an integrated circuit chip.

[0113] The above scheme obtains the key information of the preset signal matrix and the target service signal related to the target vehicle. Different models of target vehicles correspond to different preset signal matrices. Based on the key information of the target service signal, the target mapping relationship between the target service signal and the target service interface corresponding to the target service signal and the obtained preset signal matrix are determined to determine the target code file. The target code file directly determined through the target mapping relationship and the obtained preset signal matrix can support the service implementation of vehicles of different models. The target code file is then used to generate an application package for the target vehicle. On the basis of completing the service implementation, it can reduce the workload while reducing human-introduced errors, thereby improving the generation efficiency of service applications for different models.

[0114] See also Fig. 9 , Fig. 9 The computer-readable storage medium 90 stores program instructions 901, which implement the steps in any of the above-mentioned application package generation method embodiments when executed by a processor.

[0115] The above scheme obtains the key information of the preset signal matrix and the target service signal related to the target vehicle. Different models of target vehicles correspond to different preset signal matrices. Based on the key information of the target service signal, the target mapping relationship between the target service signal and the target service interface corresponding to the target service signal and the obtained preset signal matrix are determined to determine the target code file. The target code file directly determined through the target mapping relationship and the obtained preset signal matrix can support the service implementation of vehicles of different models. The target code file is then used to generate an application package for the target vehicle. On the basis of completing the service implementation, it can reduce the workload while reducing human-introduced errors, thereby improving the generation efficiency of service applications for different models.

[0116] In some embodiments, the functions or modules included in the system provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0117] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0118] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0119] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0120] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

Claims

1. A method for generating an application package, characterized in that: The method comprises: Acquire key information of a preset signal matrix and a target service signal related to a target vehicle, wherein different models of target vehicles correspond to different preset signal matrices, wherein the target service signal is a signal related to the service required by the target vehicle, and the preset signal matrix includes interaction indication information for controlling a controller signal and / or interaction indication information of a controller feedback signal; Determining, based on the key information of the target service signal, a target mapping relationship between the target service signal and a target service interface corresponding to the target service signal; Determining a target code file based on the target mapping relationship and the preset signal matrix; The target code file is used to generate an application package for the target vehicle.

2. The method according to claim 1, characterized in that The determining, based on the key information of the target service signal, a target mapping relationship between the target service signal and a target service interface corresponding to the target service signal includes: Filling the key information of the target service signal into the mapping matrix document of the target service interface, and establishing an initial mapping relationship between the target service interface and the target service signal; Based on the initial mapping relationship, the target mapping relationship is determined.

3. The method according to claim 2, characterized in that The determining the target mapping relationship based on the initial mapping relationship includes: Determining whether the initial mapping relationship satisfies a preset condition, wherein the preset condition includes that information exists at the target position in the initial mapping relationship and / or information at the target position in the initial mapping relationship satisfies a format requirement; In response to the initial mapping relationship satisfying the preset condition, the target mapping relationship is determined based on the initial mapping relationship and the preset signal matrix.

4. The method according to claim 3, characterized in that In response to the initial mapping relationship satisfying the preset condition, determining the target mapping relationship based on the initial mapping relationship and the preset signal matrix includes: In response to the initial mapping relationship satisfying the preset condition, extracting the preset signal matrix based on the target service signal to obtain extracted information related to the target service signal; Fill the extracted information into the mapping matrix document of the target service interface to establish a target mapping relationship between the target service interface and the target service signal.

5. The method according to any one of claims 1 to 4, characterized in that: The target code file includes a header file corresponding to the target service signal, a header file corresponding to the preset signal matrix and / or a signal mapping table code file corresponding to the preset signal matrix, The determining of the target code file based on the target mapping relationship and the preset signal matrix includes: Based on the data structure information corresponding to the target mapping relationship, generating a header file corresponding to the target service signal; and / or, Based on the data structure information corresponding to the preset signal matrix, a header file corresponding to the preset signal matrix and / or a signal mapping table code file corresponding to the preset signal matrix are generated.

6. The method according to any one of claims 1 to 4, characterized in that The target code file includes a service implementation code file corresponding to the target service signal. The determining of the target code file based on the target mapping relationship and the preset signal matrix includes: Extracting information from the target mapping relationship to obtain association information of the target service interface, wherein the association information includes an association relationship between the target service signal and the target service interface and / or service interface parameter information; Based on the association information of the target service interface, a service implementation code file corresponding to the target service signal is generated.

7. The method according to claim 1, characterized in that After generating the application package of the target vehicle by using the target code file, the method further includes: Loading the application package; A service test instruction for the application package is received, and a service interface corresponding to the service test instruction is called to execute a service function corresponding to the service test instruction.

8. An application package generating device, characterized in that: include: An acquisition module is used to acquire key information of a preset signal matrix and a target service signal related to a target vehicle. Different models of target vehicles correspond to different preset signal matrices. The target service signal is a signal related to the service required by the target vehicle. The preset signal matrix includes interaction indication information for controlling controller signals and / or interaction indication information of controller feedback signals; A first determining module, configured to determine a target mapping relationship between the target service signal and a target service interface corresponding to the target service signal based on key information of the target service signal; A second determination module, configured to determine a target code file based on the target mapping relationship and the preset signal matrix; A generation module is used to generate an application package of the target vehicle using the target code file.

9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory stores program instructions, and the processor retrieves the program instructions from the memory to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having program instructions stored thereon, characterized in that: include: A program file is stored, and when the program file is executed by a processor, it is used to implement the method according to any one of claims 1 to 7.