Auxiliary vehicle control application development method and device, electronic equipment and storage medium
Through the basic table sorting interface interaction data and code automatic generation tool to generate relational data, combined with the test simulator simulation and testing function, the problem of long development time and complex testing in the existing vehicle control software development methods is solved, and rapid development and simplified testing is achieved.
Patent Information
- Application Number
- CN202411996185.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-15
AI Technical Summary
The existing vehicle control software development methods have problems such as large development workload, long time, high testing requirements and complex testing. Especially when customers check the actual vehicle function, it is difficult to quickly realize functional development without affecting the development progress of other body parts.
Through the basic table combing interface interaction data, use the code automatic generation tool to parse the relational data that can be used directly by the generated APP, and send execution data and test commands to the APP through the test simulator to simulate the corresponding test functions on the APP.
It realizes rapid function development without affecting the customer's vehicle function inspection, simplifies the data sorting process, reduces the development difficulty and workload, simplifies the testing steps, and reduces the testing difficulty.
Smart Images

Figure CN119829036A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control development technology, and more specifically, to an auxiliary vehicle control application development method, device, electronic device and storage medium. Background Art
[0002] With the rapid development and intelligent transformation of the automotive industry, the development of vehicle control software has become increasingly important. This type of software is mainly responsible for the control and management of various systems inside the car. With the continuous advancement of technologies such as autonomous driving and vehicle networking, the functions and complexity of vehicle control software are also increasing.
[0003] At present, vehicle control software development is mainly carried out through multiple stages such as requirements analysis and definition, software design and implementation, testing and verification, calibration and release. These stages are interrelated and supportive, and together constitute the complete process of vehicle control software development.
[0004] However, in the existing development methods, when customers perform functional inspections on actual vehicles, the development progress of other vehicle body parts cannot be affected, so the development time is relatively urgent. The workload of sorting out vehicle body signals, interface development and data relationship binding during the development process is also large, making the development difficult. In addition, actual machine testing is required, and it is necessary to wait for the development of the host computer, MCU (Microcontroller Unit) and middleware to be completed before testing. The testing requirements are also high and the testing steps are complicated. Therefore, there are problems such as large development workload, long development time, high testing requirements and complex testing. Summary of the invention
[0005] In view of this, the purpose of this application is to provide a method, device, electronic device and storage medium for auxiliary vehicle control application development, which combs interface interaction data through basic tables, parses interface interaction data in target tables through automatic code generation tools to generate relational data that can be directly used by APP, and sends execution data and test commands to APP based on relational data through test simulator to simulate corresponding test functions on APP to perform tests, which can quickly realize function development without affecting customer vehicle function inspection at all. Combing data through tables also simplifies the data combing process, reduces development difficulty, and reduces workload and development time. In addition, by automatically generating development code and binding data, testing can be performed directly on the APP side according to the data, without waiting for the completion of host computer, MCU and middleware development, and without the need for actual machine testing, thereby simplifying the test steps and reducing the difficulty of testing.
[0006] In a first aspect, an embodiment of the present application provides an auxiliary vehicle control application development method, which is applied to an auxiliary vehicle control application development system; the auxiliary vehicle control application development system includes a PC end and an APP end; the PC end includes a pre-developed code automatic generation tool and a test simulator; the method includes:
[0007] Acquire interface interaction data provided by the system middleware of the vehicle computer, and sort out the interface interaction data based on a preset basic table to obtain a corresponding target table; wherein the interface interaction data includes the system middleware interface interaction rules and the binding control type; the interface interaction rules represent the corresponding relationship between the interface and the control;
[0008] The interface interaction data in the target table is parsed by the automatic code generation tool to generate relational data that can be directly used by the APP, and the relational data is sent to the test simulator and the APP; wherein the relational data represents serializable data relationship definition data; the relational data serves as the data source of the APP;
[0009] The test simulator sends execution data and test commands to the APP according to the relationship data, so as to simulate the corresponding test function on the APP according to the test command and the execution data to perform the test; wherein the test command corresponds to the test function.
[0010] In a possible implementation, the APP is developed using an MVC framework; the APP includes a model layer, a controller layer, and a view layer;
[0011] The view layer includes multiple controls; the model layer includes multiple functions, each function is generated by the relational data generated by the code automatic generation tool; the controller layer is used to bind the data of the model layer and the view layer to the controls; the code of the model layer and the controller layer is the default code; the controls of the view layer are the default controls, and the view layer includes the style and layout framework of the controls.
[0012] In a possible implementation, the method further includes:
[0013] Get the preset data binding rules;
[0014] The data of the model layer and the view layer are bound to the controls based on the data binding rules.
[0015] In a possible implementation manner, sending the execution data and the test command to the APP according to the relationship data includes:
[0016] In response to a preset test requirement, determining a corresponding test command based on the test requirement;
[0017] Determine required execution data in the relationship data based on the test command, send the execution data to the APP, and send the test command to the APP through a network.
[0018] In a possible implementation, simulating a corresponding test function on the APP according to the test command and the execution data includes:
[0019] The execution data is distributed to the model layer and the view layer through the APP, and the execution data is parsed on the model layer to obtain a parsing result matching the target function on the model layer, so as to simulate the corresponding test function; wherein the parsing result represents the actual execution information of the target function;
[0020] The parsing result is sent to the view layer, a corresponding target control is determined on the view layer based on the parsing result, and the target control is adjusted based on the parsing result to perform a corresponding test.
[0021] In a possible implementation, the method further includes:
[0022] Loading corresponding external data through the APP based on a preset external loading method; wherein the external loading method at least includes a USB flash drive and a network;
[0023] The external data is determined as a data source of the APP, so as to generate corresponding functions on the model layer based on the external data.
[0024] In a possible implementation, the method further includes:
[0025] Adjust the style and layout framework of controls on the view layer based on preset project requirements.
[0026] In a second aspect, the embodiment of the present application further provides an auxiliary vehicle control application development device, which is applied to an auxiliary vehicle control application development system; the auxiliary vehicle control application development system includes a PC end and an APP end; the PC end includes a pre-developed code automatic generation tool and a test simulator; the device includes:
[0027] A combing module is used to obtain the interface interaction data provided by the system middleware of the vehicle computer, and comb the interface interaction data based on a preset basic table to obtain a corresponding target table; wherein the interface interaction data includes the system middleware interface interaction rules and the binding control type; the interface interaction rules represent the corresponding relationship between the interface and the control;
[0028] A generation module, used to parse the interface interaction data in the target table through the automatic code generation tool, generate relational data that can be directly used by the APP, and send the relational data to the test simulator and the APP; wherein the relational data represents serializable data relationship definition data; the relational data serves as the data source of the APP;
[0029] A test module is used to send execution data and test commands to the APP according to the relationship data through the test simulator, so as to simulate the corresponding test function on the APP according to the test command and the execution data to perform the test; wherein the test command corresponds to the test function.
[0030] In a possible implementation, the APP is developed using an MVC framework; the APP includes a model layer, a controller layer, and a view layer;
[0031] The view layer includes multiple controls; the model layer includes multiple functions, each function is generated by the relational data generated by the code automatic generation tool; the controller layer is used to bind the data of the model layer and the view layer to the controls; the code of the model layer and the controller layer is the default code; the controls of the view layer are the default controls, and the view layer includes the style and layout framework of the controls.
[0032] In a possible implementation manner, the auxiliary vehicle control application development device further includes:
[0033] An acquisition module is used to obtain preset data binding rules;
[0034] A binding module is used to bind the data of the model layer and the view layer to the controls based on the data binding rules.
[0035] In a possible implementation manner, the test module is specifically used to:
[0036] In response to a preset test requirement, determining a corresponding test command based on the test requirement;
[0037] Determine required execution data in the relationship data based on the test command, send the execution data to the APP, and send the test command to the APP through a network.
[0038] In a possible implementation manner, the test module is further specifically used for:
[0039] The execution data is distributed to the model layer and the view layer through the APP, and the execution data is parsed on the model layer to obtain a parsing result matching the target function on the model layer, so as to simulate the corresponding test function; wherein the parsing result represents the actual execution information of the target function;
[0040] The parsing result is sent to the view layer, a corresponding target control is determined on the view layer based on the parsing result, and the target control is adjusted based on the parsing result to perform a corresponding test.
[0041] In a possible implementation manner, the auxiliary vehicle control application development device further includes:
[0042] A loading module, used to load corresponding external data through the APP based on a preset external loading method; wherein the external loading method includes at least a USB flash drive and a network;
[0043] A determination module is used to determine the external data as a data source of the APP, so as to generate corresponding functions on the model layer based on the external data.
[0044] In a possible implementation manner, the auxiliary vehicle control application development device further includes:
[0045] The adjustment module is used to adjust the style and layout framework of the control on the view layer based on preset project requirements.
[0046] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the auxiliary vehicle control application development method as described in any one of the first aspects.
[0047] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the auxiliary vehicle control application development method described in any one of the first aspects are executed.
[0048] An auxiliary vehicle control application development method, device, electronic device and storage medium provided in the embodiment of the present application obtains the interface interaction data provided by the system middleware of the vehicle computer, and sorts out the interface interaction data based on the preset basic table to obtain the corresponding target table, and parses the interface interaction data in the target table through the code automatic generation tool to generate the relationship data that can be directly used by the APP, and sends the relationship data to the test simulator and the APP, and sends the execution data and test commands to the APP based on the relationship data through the test simulator, so as to simulate the corresponding test function on the APP to perform the test according to the test command and the execution data. In the present application, the interface interaction data is sorted out through the basic table, and the interface interaction data in the target table is sorted out through the code automatic generation tool to generate the relationship data that can be directly used by the APP, and the execution data and test commands are sent to the APP based on the relationship data through the test simulator, so as to simulate the corresponding test function on the APP to perform the test, which can quickly realize the function development without affecting the customer's vehicle function inspection at all. The data is sorted out through the table, which simplifies the data sorting process, reduces the development difficulty, and reduces the workload and development time. In addition, by automatically generating development code and binding data, the test can be performed directly on the APP side according to the data, without waiting for the host computer, MCU and middleware to be developed, and without the need for real machine testing, thereby simplifying the test steps and reducing the difficulty of testing. In order to make the above-mentioned purposes, features and advantages of this application more obvious and easy to understand, the following is a detailed description of the preferred embodiments and the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 is a flow chart of a method for developing an auxiliary vehicle control application according to an embodiment of the present application;
[0051] Figure 2 It is a schematic diagram of the overall process of auxiliary vehicle control application development;
[0052] Figure 3 is a flow chart of an auxiliary vehicle control application development method provided according to another embodiment of the present application;
[0053] Figure 4 is a structural schematic diagram of an auxiliary vehicle control application development device provided according to an embodiment of the present application;
[0054] Figure 5It is a structural schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0055] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0056] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0057] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0058] Considering the rapid development and intelligent transformation of the automotive industry, the development of vehicle control software has become increasingly important. This type of software is mainly responsible for the control and management of various systems inside the car. With the continuous advancement of technologies such as autonomous driving and vehicle networking, the functions and complexity of vehicle control software are also increasing.
[0059] At present, vehicle control software development is mainly carried out through multiple stages such as requirements analysis and definition, software design and implementation, testing and verification, calibration and release. These stages are interrelated and supportive, and together constitute the complete process of vehicle control software development.
[0060] However, in the existing development methods, when customers conduct functional inspections on actual vehicles, the development progress of other vehicle body parts cannot be affected, so the development time is relatively urgent. The workload of sorting out vehicle body signals, interface development and data relationship binding during the development process is also large, making the development difficult. In addition, actual machine testing is required, and it is necessary to wait until the development of the host computer, MCU and middleware is completed before testing. The testing requirements are also high and the testing steps are complicated. Therefore, there are problems such as large development workload, long development time, high testing requirements and complex testing.
[0061] In response to this problem, this application provides an auxiliary vehicle control application development method, which uses basic tables to sort out interface interaction data, uses code automatic generation tools to parse the interface interaction data in the target table to generate relational data that can be directly used by the APP, and uses a test simulator to send execution data and test commands to the APP based on the relational data to simulate the corresponding test functions on the APP to perform the test. This can quickly implement function development without affecting the customer's vehicle function inspection at all. By sorting data through tables, the data sorting process is also simplified, reducing the difficulty of development, reducing the workload and development time. In addition, by automatically generating development code and binding data, you can test directly on the APP side based on the data, without waiting for the host computer, MCU and middleware to be developed, and without the need for actual machine testing, thereby simplifying the test steps and reducing the difficulty of testing.
[0062] Figure 1 It is a flowchart of the auxiliary vehicle control application development method provided according to the embodiment of the present application.
[0063] Among them, it is applied to the auxiliary vehicle control application development system; the auxiliary vehicle control application development system includes a PC end and an APP end; the PC end includes a pre-developed code automatic generation tool and a test simulator. Figure 2 As shown, the PC and APP sides of the auxiliary vehicle control application development system, as well as the automatic code generation tool and simulator (i.e., test simulator) on the PC side are shown.
[0064] like Figure 1 As shown, the auxiliary vehicle control application development method of the embodiment of the present application may specifically include:
[0065] S101, obtaining interface interaction data provided by the system middleware of the vehicle computer, and sorting the interface interaction data based on a preset basic table to obtain a corresponding target table.
[0066] S102. Parse the interface interaction data in the target table through a code automatic generation tool, generate relational data that can be directly used by the APP, and send the relational data to the test simulator and the APP.
[0067] S103, sending execution data and test commands to the APP according to the relationship data through the test simulator, so as to simulate the corresponding test function on the APP according to the test command and execution data to execute the test.
[0068] In the above auxiliary vehicle control application development method, the interface interaction data is combed through the basic table, and the interface interaction data in the target table is parsed through the code automatic generation tool to generate relational data that can be directly used by the APP. The test simulator sends execution data and test commands to the APP based on the relational data to simulate the corresponding test functions on the APP to perform the test. Functional development can be quickly realized without affecting the customer's vehicle function inspection at all. Combing data through tables also simplifies the data combing process, reduces the difficulty of development, and reduces the workload and development time. In addition, by automatically generating development code and binding data, testing can be performed directly on the APP side based on the data, without waiting for the completion of the development of the host computer, MCU and middleware, and without the need for actual machine testing, thereby simplifying the test steps and reducing the difficulty of testing.
[0069] The above exemplary steps of the embodiment of the present application are described below with reference to specific examples:
[0070] S101, obtaining interface interaction data provided by the system middleware of the vehicle computer, and sorting the interface interaction data based on a preset basic table to obtain a corresponding target table.
[0071] In the embodiment of the present application, the system middleware is the middleware of the vehicle system, for example, the Android system middleware, the interface interaction data includes the system middleware interface interaction rules and the binding control type, the interface interaction rules represent the correspondence between the interface and the control, that is, the correspondence between the interface provided by the system middleware and the UI control, the basic table is a pre-set basic table for sorting out the interface interaction data, the interface interaction data provided by the system middleware of the vehicle is obtained, and the interface interaction data is sorted out based on the basic table to obtain the corresponding target table for subsequent processing. For example, Figure 2 As shown, after combing the interface interaction data through Excel, a data combing table is obtained.
[0072] It should be noted that when combing interface interaction data based on a preset table, the system middleware interface interaction rules and binding control types are filled in the table.
[0073] S102, parsing the interface interaction data in the target table through a code automatic generation tool, generating relational data that can be directly used by the APP, and sending the relational data to the test simulator and the APP.
[0074] It should be noted that the automatic code generation tool is a host computer tool written in Python. The APP is developed using the traditional MVC framework; the APP includes a model layer (Model), a controller layer (Controller) and a view layer (View); the view layer includes multiple controls (i.e., fragmented controls); the model layer includes multiple functions, each of which is generated by the relational data generated by the automatic code generation tool; the controller layer is used to bind the data of the model layer and the view layer to the controls; the code of the model layer and the controller layer is the default code; the controls of the view layer are the default controls, and the view layer includes the style and layout framework of the controls, and the default controls display the default style and layout framework of the controls. For example, Figure 2 As shown, the view layer includes multiple fragmented controls, and the model layer includes multiple functions. The functions are parsed and converted by the relational data source and determined by the binding relationship. The controller layer is used to bind data and controls between the model layer and the view layer.
[0075] Optionally, the style and layout framework of the control are adjusted on the view layer based on the preset project requirements to obtain the style and layout framework of the adjusted control. The view layer can display the default UI corresponding to multiple default fragmented controls (functions normally, no development is required, and meets the vehicle inspection requirements of the car factory). The style and UI layout framework of the fragmented controls can be adjusted for the project later.
[0076] In the embodiment of the present application, the relational data represents the serializable data relational definition data, i.e., the serializable data relational definition data that can be directly used by the APP. The interface interaction data in the target table in step S101 is parsed by the automatic code generation tool on the PC to generate relational data that can be directly used by the APP, and the relational data is sent to the test simulator and the APP for subsequent processing. The relational data is used as the data source of the APP, i.e., the data source of the model layer. For example, Figure 2 As shown, by parsing the Excel data through the automatic code generation tool on the PC, serializable data relationship definition data that can be directly used by the APP can be generated, and the data relationship definition data is imported into the APP as a data source in the APP, that is, a kind of relational data source, and the data relationship definition data is also sent to the simulator for loading.
[0077] It should be noted that when binding the data of the model layer and the view layer with the control, a preset data binding rule is obtained; and the data of the model layer and the view layer are bound with the control based on the data binding rule.
[0078] As a possible implementation method, when parsing the interface interaction data in the target table to generate the relationship data that can be directly used by the APP, the interface interaction data in the target table is read; and the relationship data that can be directly used by the APP is generated based on the interface interaction data. Optionally, the interface interaction data is classified based on a preset basic table, and the basic table is filled in accordingly according to the classified interface interaction data.
[0079] S103, sending execution data and test commands to the APP according to the relationship data through the test simulator, so as to simulate the corresponding test function on the APP according to the test command and execution data to execute the test.
[0080] In an embodiment of the present application, the execution data represents the data actually executed in the relational data. The execution data is determined based on the relational data and the test command. The test command corresponds to the test function. The test command can implement single function testing, full function testing, and full function stress testing. The test command represents the command corresponding to the functional test. The execution data and the test command are sent to the APP based on the relational data through the test simulator to simulate the corresponding test function on the APP according to the test command and the execution data to execute the test.
[0081] Optionally, when sending execution data and test commands to the APP based on the relationship data, in response to a preset test requirement, a corresponding test command is determined based on the test requirement; based on the test command, required execution data is determined in the relationship data, and the execution data is sent to the APP, and the test command is sent to the APP via the network. Figure 2 As shown, the simulator performs a test on the APP, specifically simulating execution data, converting the execution data into middleware execution data, and parsing it.
[0082] Optionally, when simulating the corresponding test function on the APP according to the test command and execution data, the execution data is distributed to the model layer and the view layer through the APP, and the execution data is parsed on the model layer to obtain the parsing result matching the target function on the model layer to simulate the corresponding test function; the parsing result is sent to the view layer, and the corresponding target control is determined based on the parsing result on the view layer, and the target control is adjusted based on the parsing result to perform the corresponding test. Among them, the parsing result represents the actual execution information of the target function.
[0083] For example, Figure 2As shown, the APP distributes the execution data to the model layer and the view layer, and parses the original data, i.e., the execution data here, on the model layer to obtain the parsing result that matches the target function on the model layer. For example, the parsing obtains the parsing result that matches the function one on the model layer, thereby simulating the function one; then, the parsing result is sent to the view layer, and the corresponding target control is determined on the view layer based on the parsing result, and the state of the target control is adjusted based on the parsing result, thereby completing the test. For example, the parsing result obtained by parsing the execution data on the model layer indicates that function one is 1, that is, function one is turned on, such as the air conditioner is turned on. At this time, the parsing result is sent upward to the view layer, and the view layer matches the corresponding control. The control is turned on to complete the opening of function one. At the same time, the display state of the control also synchronously indicates that function one is turned on.
[0084] It can be added here that the relational data can be understood as all the status information of the air conditioner, including on and off, and the execution data is the specific execution status of the air conditioner, for example, the air conditioner is turned on.
[0085] The auxiliary vehicle control application development method provided in the embodiment of the present application obtains the interface interaction data provided by the system middleware of the vehicle computer, and sorts the interface interaction data based on the preset basic table to obtain the corresponding target table, and parses the interface interaction data in the target table through the code automatic generation tool to generate the relationship data that can be directly used by the APP, and sends the relationship data to the test simulator and the APP, and sends the execution data and test commands to the APP based on the relationship data through the test simulator, so as to simulate the corresponding test function on the APP to perform the test according to the test command and the execution data. The auxiliary vehicle control application development method of the present application, sorts the interface interaction data through the basic table, and parses the interface interaction data in the target table through the code automatic generation tool to generate the relationship data that can be directly used by the APP, and sends the execution data and test commands to the APP based on the relationship data through the test simulator, so as to simulate the corresponding test function on the APP to perform the test, which can quickly realize the function development without affecting the customer's vehicle function inspection at all, and sorts the data through the table, which also simplifies the data sorting process, reduces the development difficulty, and reduces the workload and development time. In addition, by automatically generating development code and binding data, testing can be performed directly on the APP side based on the data. There is no need to wait for the development of the host computer, MCU and middleware to be completed, and there is no need for actual machine testing, which simplifies the testing steps and reduces the difficulty of testing.
[0086] Further, such as Figure 3 As shown, the auxiliary vehicle control application development method of the embodiment of the present application may also include the following steps:
[0087] S301, loading corresponding external data through the APP based on a preset external loading method.
[0088] In the embodiment of the present application, the external loading method includes at least a USB flash drive and a network, and the APP loads the corresponding external data based on the external loading method for subsequent processing. Figure 2 As shown, the APP can load data through a USB flash drive or a network. The external data corresponding to the USB flash drive and the network are also relational data sources of the APP.
[0089] It should be noted that the data source of the APP, that is, the data source of the model layer, is the relational data generated by the automatic code generation tool. The relational data generated by the automatic code generation tool represents the built-in data of the model layer, that is, the relational data generated by the automatic code generation tool of this application can be understood as the internal data (built-in) of the APP, and the external data is the relational data obtained by external loading. Both types of data are data sources of the APP. In short, the data sources of U disk loading, network loading, and the above-mentioned data relationship definition data import constitute the three relational data sources of the APP.
[0090] S302, determining the external data as the data source of the model layer, so as to generate corresponding functions on the model layer based on the external data.
[0091] In an embodiment of the present application, external data is determined as a data source of the model layer to generate corresponding functions on the model layer based on the external data, that is, the functions of the model layer can be generated by external data.
[0092] It should be noted that the functions of the model layer can be determined not only by the relational data generated by the code automatic generation tool, but also by external data, that is, the three relational data sources of USB disk loading, network loading and the above-mentioned relational data can all determine the corresponding functions on the model layer.
[0093] Therefore, this application can achieve rapid development, simplify development, and reduce costs. Among them, it can quickly realize the development of the initial version of the function, without affecting the customer's vehicle function inspection at all. By filling in data in the form, the data combing process can be simplified, the development difficulty can be reduced, and the code automatic generation tool can be used to automatically generate development code and binding data, and test according to the data.
[0094] It should be noted that the auxiliary vehicle control application development method of the present application is also an auxiliary vehicle control application development method.
[0095] Figure 4 is a structural diagram of an auxiliary vehicle control application development device provided according to an embodiment of the present application; applied to an auxiliary vehicle control application development system; the auxiliary vehicle control application development system includes a PC end and an APP end; the PC end includes a pre-developed code automatic generation tool and a test simulator; Figure 4 As shown, the auxiliary vehicle control application development device 400 of the embodiment of the present application may specifically include:
[0096] The combing module 401 is used to obtain the interface interaction data provided by the system middleware of the vehicle computer, and comb the interface interaction data based on the preset basic table to obtain the corresponding target table; wherein the interface interaction data includes the system middleware interface interaction rules and binding control types; the interface interaction rules represent the corresponding relationship between the interface and the control.
[0097] Generation module 402 is used to parse the interface interaction data in the target table through a code automatic generation tool, generate relational data that can be directly used by the APP, and send the relational data to the test simulator and the APP; wherein the relational data represents serializable data relationship definition data; the relational data serves as the data source of the APP.
[0098] The test module 403 is used to send execution data and test commands to the APP according to the relationship data through the test simulator, so as to simulate the corresponding test function on the APP according to the test command and execution data to perform the test; wherein the test command corresponds to the test function.
[0099] In a possible implementation, the APP is developed using an MVC framework; the APP includes a model layer, a controller layer, and a view layer;
[0100] The view layer includes multiple controls; the model layer includes multiple functions, each of which is generated by relational data generated by the code automatic generation tool; the controller layer is used to bind the data of the model layer and the view layer to the controls; the code of the model layer and the controller layer is the default code; the controls of the view layer are the default controls, and the view layer includes the style and layout framework of the controls.
[0101] In a possible implementation manner, the auxiliary vehicle control application development device further includes:
[0102] An acquisition module is used to obtain preset data binding rules;
[0103] The binding module is used to bind the data of the model layer and the view layer to the controls based on the data binding rules.
[0104] In a possible implementation, the test module is specifically used to:
[0105] In response to a preset test requirement, determining a corresponding test command based on the test requirement;
[0106] The required execution data is determined in the relational data based on the test command, and the execution data is sent to the APP, and the test command is sent to the APP through the network.
[0107] In a possible implementation manner, the test module is further specifically used for:
[0108] The execution data is distributed to the model layer and the view layer through the APP, and the execution data is parsed on the model layer to obtain the parsing result that matches the target function on the model layer to simulate the corresponding test function; wherein the parsing result represents the actual execution information of the target function;
[0109] The parsing result is sent to the view layer, and the corresponding target control is determined based on the parsing result at the view layer, and the target control is adjusted based on the parsing result to perform the corresponding test.
[0110] In a possible implementation manner, the auxiliary vehicle control application development device further includes:
[0111] A loading module, used to load corresponding external data through the APP based on a preset external loading method; wherein the external loading method includes at least a USB flash drive and a network;
[0112] The determination module is used to determine the external data as the data source of the APP, so as to generate corresponding functions on the model layer based on the external data.
[0113] In a possible implementation manner, the auxiliary vehicle control application development device further includes:
[0114] The adjustment module is used to adjust the style and layout framework of the controls on the view layer based on the preset project requirements.
[0115] The auxiliary vehicle control application development device provided in the embodiment of the present application obtains the interface interaction data provided by the system middleware of the vehicle computer, and sorts the interface interaction data based on the preset basic table to obtain the corresponding target table, and parses the interface interaction data in the target table through the code automatic generation tool to generate the relationship data that can be directly used by the APP, and sends the relationship data to the test simulator and the APP, and sends the execution data and test commands to the APP based on the relationship data through the test simulator, so as to simulate the corresponding test function on the APP to perform the test according to the test command and the execution data. The auxiliary vehicle control application development device of the present application sorts the interface interaction data through the basic table, and sorts the interface interaction data in the target table through the code automatic generation tool to generate the relationship data that can be directly used by the APP, and sends the execution data and test commands to the APP based on the relationship data through the test simulator, so as to simulate the corresponding test function on the APP to perform the test, which can quickly realize the function development without affecting the customer's vehicle function inspection at all, and sorts the data through the table, which also simplifies the data sorting process, reduces the development difficulty, and reduces the workload and development time. In addition, by automatically generating development code and binding data, testing can be performed directly on the APP side based on the data. There is no need to wait for the development of the host computer, MCU and middleware to be completed, and there is no need for actual machine testing, which simplifies the testing steps and reduces the difficulty of testing.
[0116] like Figure 5 As shown, an electronic device 500 provided in an embodiment of the present application includes: a processor 501, a memory 502 and a bus, wherein the memory 502 stores machine-readable instructions executable by the processor 501. When the electronic device is running, the processor 501 communicates with the memory 502 through the bus, and the processor 501 executes the machine-readable instructions to perform the steps of the auxiliary vehicle control application development method as described above.
[0117] Specifically, the above-mentioned memory 502 and processor 501 can be general-purpose memory and processor, which are not specifically limited here. When the processor 501 runs the computer program stored in the memory 502, the above-mentioned auxiliary vehicle control application development method can be executed.
[0118] Corresponding to the above-mentioned auxiliary vehicle control application development method, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned auxiliary vehicle control application development method are executed.
[0119] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules 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 communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0120] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0121] 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.
[0122] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the deployment method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0123] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An auxiliary vehicle control application development method, applied to an auxiliary vehicle control application development system; the auxiliary vehicle control application development system includes a PC end and an APP end; the PC end includes a pre-developed code automatic generation tool and a test simulator; characterized in that, The method comprises: Acquire interface interaction data provided by the system middleware of the vehicle computer, and sort out the interface interaction data based on a preset basic table to obtain a corresponding target table; wherein the interface interaction data includes the system middleware interface interaction rules and the binding control type; the interface interaction rules represent the corresponding relationship between the interface and the control; The interface interaction data in the target table is parsed by the automatic code generation tool to generate relational data that can be directly used by the APP, and the relational data is sent to the test simulator and the APP; wherein the relational data represents serializable data relationship definition data; the relational data serves as the data source of the APP; The test simulator sends execution data and test commands to the APP according to the relationship data, so as to simulate the corresponding test function on the APP according to the test command and the execution data to perform the test; wherein the test command corresponds to the test function.
2. The method according to claim 1, characterized in that The APP is developed using the MVC framework; the APP includes a model layer, a controller layer, and a view layer; The view layer includes a plurality of controls; the model layer includes a plurality of functions, each function being generated by the relational data generated by the automatic code generation tool; The controller layer is used to bind the data of the model layer and the view layer to the controls; The codes of the model layer and the controller layer are default codes; the controls of the view layer are default controls, and the view layer includes the style and layout framework of the controls.
3. The method according to claim 2, characterized in that The method further comprises: Get the preset data binding rules; The data of the model layer and the view layer are bound to the controls based on the data binding rules.
4. The method according to claim 3, characterized in that The sending of execution data and test commands to the APP according to the relationship data includes: In response to a preset test requirement, determining a corresponding test command based on the test requirement; Determine required execution data in the relationship data based on the test command, send the execution data to the APP, and send the test command to the APP through a network.
5. The method according to claim 4, characterized in that The simulating a corresponding test function on the APP according to the test command and the execution data includes: The execution data is distributed to the model layer and the view layer through the APP, and the execution data is parsed on the model layer to obtain a parsing result matching the target function on the model layer, so as to simulate the corresponding test function; wherein the parsing result represents the actual execution information of the target function; The parsing result is sent to the view layer, a corresponding target control is determined on the view layer based on the parsing result, and the target control is adjusted based on the parsing result to perform a corresponding test.
6. The method according to claim 5, characterized in that The method further comprises: Loading corresponding external data through the APP based on a preset external loading method; wherein the external loading method at least includes a USB flash drive and a network; The external data is determined as a data source of the APP, so as to generate corresponding functions on the model layer based on the external data.
7. The method according to claim 6, characterized in that The method further comprises: Adjust the style and layout framework of controls on the view layer based on preset project requirements.
8. An auxiliary vehicle control application development device, applied to an auxiliary vehicle control application development system; the auxiliary vehicle control application development system includes a PC end and an APP end; the PC end includes a pre-developed code automatic generation tool and a test simulator; characterized in that, The device comprises: A combing module is used to obtain the interface interaction data provided by the system middleware of the vehicle computer, and comb the interface interaction data based on a preset basic table to obtain a corresponding target table; wherein the interface interaction data includes the system middleware interface interaction rules and the binding control type; the interface interaction rules represent the corresponding relationship between the interface and the control; A generation module, used to parse the interface interaction data in the target table through the automatic code generation tool, generate relational data that can be directly used by the APP, and send the relational data to the test simulator and the APP; wherein the relational data represents serializable data relationship definition data; the relational data serves as the data source of the APP; A test module is used to send execution data and test commands to the APP according to the relationship data through the test simulator, so as to simulate the corresponding test function on the APP according to the test command and the execution data to perform the test; wherein the test command corresponds to the test function.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the auxiliary vehicle control application development method as described in any one of claims 1 to 7 are performed.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the steps of the auxiliary vehicle control application development method as described in any one of claims 1 to 7.