Parameter configuration method for graphics program, parameter configuration apparatus, and vehicle development debug method
The method simplifies parameter configuration in graphics programs by serializing and deserializing parameter configurations into strings, addressing the inefficiency of creating multiple parameter objects for different types, and enhancing development efficiency in vehicle software development.
Patent Information
- Application Number
- JP2025021790
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-16
- Filing Date
- 2025-02-13
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2044-01-15
AI Technical Summary
Existing methods for configuring parameters in graphics programs require creating different parameter objects for various parameter types, which complicates development efficiency, especially in vehicle software development where numerous parameterized execution units are involved.
A method and system for configuring parameters in graphics programs that involve serializing parameter configurations into strings, displaying these strings in a parameter correspondence table, and deserializing them to obtain actual parameter values required by execution units, thereby simplifying the parameter configuration process.
This approach significantly enhances development efficiency by allowing direct string-based parameter configuration, reducing the need for multiple parameter objects and streamlining the process of constructing text-formatted parameters, especially in complex scenarios like vehicle software development.
Smart Images

Figure 2025072626000001_ABST
Abstract
Description
[Technical field]
[0001] This application claims priority from Chinese Patent Application No. 202310753619.9, filed on June 25, 2023, and U.S. Patent Application No. 18 / 234,407, filed on August 16, 2023, the entire contents of which are incorporated herein by reference. The present invention belongs to the technical field of vehicle software development, and particularly relates to a parameter configuration method and system for graphics programs and a development debugging system for vehicles. [Background technology]
[0002] When configuring parameters for each execution unit in a graphics program, it is necessary to set up different parameter entries according to the different parameter types, and different parameter types require creating different parameter objects, which affects development efficiency.
[0003] The reason why different parameter objects need to be created for different parameter types is as follows: A graphics program is generally made up of blocks of different shapes and connecting lines with arrows between the blocks. The blocks can be called "execution units" and the connecting lines with arrows between the blocks represent the flow of logic or data. Execution units are typically used to perform specific operations, such as calling API functions, assignments, logical operations, etc. The dependencies or targets of these operations are called "parameters". The parameters have different types, such as a number type, a string type, an object type, etc. Summary of the Invention
[0004] The present invention relates to a parameter configuration method and system for a graphics program and a development and debugging system for a vehicle, the parameter configuration method for a graphics program comprising: Configuring a parameter of an execution unit, performing a serialization operation on a parameter configuration character string associated with the parameter, and displaying the serialized character string in a parameter correspondence table associated with the parameter; and When executing the graphics program, a deserialization operation is performed on the serialized string to obtain actual parameter values required by the execution units in the graphics program.
[0005] The present invention further provides an apparatus for configuring parameters for a graphics program, the apparatus including a computer, the computer comprising: a parameter manager used to configure parameters of the execution unit and perform a sequencing operation on the corresponding parameter configuration string; a parameter correspondence table used to display parameter names and ordered character strings; and a parameter value parser that is used to perform a de-serialization operation on the serialized string to obtain actual parameter values required by an execution unit in a graphics program.
[0006] In a third aspect, the present invention further provides a parameter configuration system for a graphics program, the system comprising a parameter configuration device for a graphics program as described above, and The computer further comprises: configured to include a graphics program including at least one execution unit; The execution units can obtain the actual parameter values required.
[0007] In a fourth aspect, the present invention further provides a parameter configuration method for a vehicle graphics program, the method comprising: Configuring vehicle parameters of the execution unit, performing an ordering operation on the corresponding vehicle parameter configuration string, and displaying the ordered string in a parameter correspondence table; When the graphics program is executed, a reverse ordering operation is performed on the string to obtain actual vehicle parameter values required by an execution unit in the graphics program.
[0008] In a fifth aspect, the present invention further provides a parameter configuration apparatus for a vehicle graphics program, the apparatus comprising a computer, the computer comprising: a vehicle parameter manager used to configure vehicle parameters of the execution unit and to perform a ranking operation on the corresponding vehicle parameter configuration string; a vehicle parameter correspondence table used to display names of vehicle parameters and sequenced character strings; and a vehicle parameter value analyzer that is used to perform a reverse sequence operation on the sequenced string to obtain actual vehicle parameter values required by an execution unit in the vehicle graphics program.
[0009] In a sixth aspect, the present invention further provides a computer readable storage medium having computer readable instructions stored thereon which, when executed by at least one processor, cause the method of parameter configuration for a graphics program as described above to be performed.
[0010] In a seventh aspect, the present invention further provides an electronic device, the electronic device comprising a processor, a readable storage medium, a communication bus, and a communication interface, wherein said processor, said readable storage medium and said communication interface are capable of communicating with each other via said communication bus. The readable storage medium is configured to store a program for executing the parameter configuration method for the graphics program, and the processor is configured to execute the program of the parameter configuration method for the graphics program.
[0011] In an eighth aspect, the present invention further provides a development and debug system for a vehicle, the system including a computer device, a bus adapter, or a programming device; The computer device includes a processor, a readable storage medium, a communication bus, and a communication interface; The readable storage medium is configured to store a program for performing the aforementioned parameter configuration method for a graphics program. The processor is configured to execute the program of the aforementioned parameter configuration method for a graphics program to generate text code. The processor, the readable storage medium and the communication interface realize communication with a bus adapter via the communication bus. The processor is further configured to compile at least one executable code of the text code. the bus adapter is configured to write the compiled executable code to a debug device; or The writer is configured to write the compiled executable code to the debug device.
[0012] In a ninth aspect, the present invention further provides a computer program product, the product including a computer readable storage medium having computer readable program code stored thereon, the computer readable program code including instructions for causing at least one processor or at least one computing device to perform a parameter configuration method for a graphics program.
[0013] The present invention is intended to provide a brief summary of some of the subject matter described herein. It should therefore be understood that the above features are merely examples and should not be construed as in any way narrowing the scope or nature of the subject matter described herein.
[0014] Other features, aspects, and advantages of the subject matter described herein will become apparent from the following specific embodiments, the accompanying drawings, and the claims. Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and obtained by the structure particularly pointed out in the description and drawings. In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. In order to more clearly describe the specific embodiments of the present invention or the technical solutions of the prior art, the following briefly describes the drawings that need to be used to describe the specific embodiments or the prior art. The drawings described in the following description are some embodiments of the present invention, and it is obvious that those skilled in the art can obtain other drawings from these drawings without creative efforts. [Brief description of the drawings]
[0015] [Figure 1] FIG. 1 illustrates a flowchart of a method for configuring parameters for a graphics program according to some embodiments. [Diagram 2] FIG. 2 shows an interface schematic diagram after a parameter AValue of type double is set to a local variable v0 in the case of some embodiments. [Diagram 3] FIG. 3 illustrates an interface schematic after setting a parameter AValue of type double in a CAN signal, in the case of some embodiments. [Figure 4]FIG. 4 is a principle block diagram of a parameter configuration device for a graphics program according to some embodiments. [Diagram 5] FIG. 5 is a principle block diagram of a parameter configuration system for a graphics program according to some embodiments. [Figure 6] FIG. 6 is a principle block diagram of a parameter configuration device for vehicle graphics programs according to some embodiments. [Figure 7] FIG. 7 is a block diagram illustrating the principle of an electronic device according to some embodiments. [Figure 8] FIG. 8 is a connection schematic diagram of a vehicle development debug system (bus adapter) according to some embodiments. [Figure 9] FIG. 9 illustrates a connection schematic diagram of a vehicle development and debugging system (programming device) according to some embodiments. [Figure 10] FIG. 10 illustrates a flow chart of a vehicle development debug method according to some embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] In order to make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the following clearly and completely describes the technical solutions of the present invention with reference to the drawings, obviously, the described embodiments are only some embodiments of the present invention, not all embodiments, based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are all within the protection scope of the present invention.
[0017] In the related art, when a graphics program needs to add an execution unit, it needs to configure the parameters required for this execution unit. Since different types require the input of different parameters, the user declares a parameter object that needs to be input for each type, and completes the setting for the parameter object before inputting the parameters, otherwise it will cause a parameter inconsistency error, thereby preventing the graphics program from running normally.
[0018] The problem is particularly prominent in the graphics program during the automobile development process. A user judges whether the vehicle speed is less than a set vehicle speed C. In the conventional way, the user must first apply a variable v, and then search for a current vehicle speed signal through a simulation engine or signal manager provided by the system (for illustration, the system and the systems mentioned in the following content are all computer software including a graphics program), and assign the value of the vehicle speed signal to the variable v. At the same time, a variable c must be applied, and the value of the set vehicle speed C is found through a parameter manager provided by the system, and assigned to the variable c. Finally, the variables v and c must be given as parameters to an execution unit that judges the vehicle speed. If an execution unit with a large number of parameters is encountered during development, the development efficiency will be significantly reduced.
[0019] Therefore, the method for configuring parameters for graphics programs provided by at least one embodiment has a very high efficiency advantage, specifically, the user can directly configure parameters by strings, simplifying the parameter configuration process to configuring parameters in text format. In scenes that are automatically generated or shared in a batch, string-type parameters have an inherent speed advantage.
[0020] Specifically, at least one embodiment provides a parameter configuration method for a graphics program, which includes configuring parameters of an execution unit, performing an ordering operation on the configured parameters, and displaying the ordered string in a parameter correspondence table, and performing a reverse ordering operation on the ordered string when executing the graphics program, to obtain actual parameter values required by the execution unit in the graphics program.
[0021] Illustratively, in some embodiments, a computer software system including a graphics program is initially designed to set a parameter configuration type of an execution unit in the graphics program to be a string, and at least one embodiment allows a user to directly configure parameters by strings, simplifying the parameter configuration process to configuring parameters in text format.
[0022] Furthermore, some embodiments set type prefixes and associate each type prefix with a corresponding parameter type, so that such different parameter configurations and parameter executions can be achieved by simply providing a parameter configuration string to the system, and the system can perform two-way conversion for the corresponding parameter configuration string, without the need to set a variable for each parameter as in the past, and first obtain the variable value and then transmit the variable to the execution unit. The arrangement of the strings can be supported by the parameter configuration module of the graphics program itself, and the user can simply click the corresponding add button to select the required parameter configuration string in the parameter manager to complete the parameter configuration, thereby effectively improving the development efficiency of the graphics program.
[0023] Various non-limiting embodiments of illustrative aspects of the present disclosure are described in detail below with reference to the accompanying drawings.
[0024] As shown in Figure 1, some embodiments provide a parameter configuration method for a graphics program. The method includes: In step S101, a parameter of an execution unit is configured, an ordering operation is performed on a parameter-configured string associated with the parameter, and the ordered string is displayed in a parameter correspondence table associated with the parameter.
[0025] In some embodiments, the ordering operation includes: in the ordering process, obtaining an ordered string by appending a type prefix to the parameter configuration string, the ordered string expression including a first part and a second part, the first part being the type prefix and the second part being the parameter configuration string;
[0026] Specifically, the first part and the second part are distinguished by a delimiter. As an alternative implementation, the delimiter can be added to the first part with brackets, quotation marks, vertical line separators, etc., and the display effects include, for example, [type prefix] parameter configuration string, “type prefix” parameter configuration string, and |type prefix| parameter configuration string. For illustrative purposes, the display effect “[type prefix] parameter configuration string” is taken as an example in some embodiments.
[0027] Specifically, the parameter configuration string associated with each parameter is user configurable.
[0028] The method of the ordering operation will be described in detail below in accordance with various cases. Take for example the method of arranging a double type parameter AValue of an execution unit in a graphics program, as shown in FIG. As an example, if the value of local variable v0 needs to be substituted for parameter AValue, it is necessary to add local variable v0 by clicking the corresponding add button (alternatively, the add button may be an arrow button located to the right of the parameter value input box) in the parameter value input box corresponding to parameter AValue. When the add operation is completed, "[Var]v0" is displayed in the parameter value input box. [Var] is a type prefix, which indicates that the value of a local variable is to be taken, and "v0" following the type prefix allows a string to be placed in the parameter set by the user. "[Var]v0" is an ordered string, the whole of which indicates that the value of local variable v0 is to be taken.
[0029] In another case, if the value of signal Signal1 of message Message1 of node Node1 in the automotive CAN network Network1 connected to program channel 1 needs to be substituted for parameter AValue, the value of the CAN signal needs to be added by clicking the corresponding add button in the parameter value input box corresponding to parameter AValue. As shown in FIG. 3, when the add operation is completed, “[CAN]0 / Network1 / Node1 / Message1 / Signal1” is displayed in the parameter value input box. [CAN] is a type prefix, which indicates that the value of the CAN signal is taken, and “0 / Network1 / Node1 / Message1 / Signal1” following the type prefix is a parameter configuration string, and the meaning of the configuration parameter string is as follows: The channel index where the signal is located starts from 0, so that 0 represents channel 1, 1 represents channel 2, and so on. Network1 is the network name, Node1 is the node name, Message1 is the message name, and Signal1 is the signal name. “[CAN]0 / Network1 / Node1 / Message1 / Signal1” is an ordered string, the entirety of which indicates the value of this CAN signal.
[0030] In some embodiments, the ordering operation further includes: In the ordering process, first, determine whether the parameter configuration string is a non-immediate number. If it is a non-immediate number, add a type prefix to the parameter configuration string to obtain an ordered string; otherwise, use the parameter configuration string as it is as the ordered string.
[0031] Specifically, a non-immediate value is a character string other than an immediate value, and an immediate value among them is, for example, a numeric type or a character string type. An example of a numeric type is 1234, 45.67, and an example of a character string type is abcde.
[0032] In the following, a method for performing non-immediate ordering operations will be described in detail with examples. Take as an example a method for arranging a parameter AValue of type double for an execution unit in a graphics program. If a numeric size of 100 needs to be substituted for the parameter AValue, then it is sufficient to enter “100” into the parameter value input box corresponding to the parameter AValue, i.e., there is no need to add a type prefix before “100” during the ordering operation.
[0033] As another example, consider how to allocate a string parameter AString for an execution unit in a graphics program. If the word “Vehicle” needs to be substituted for the parameter AString, then it is sufficient to input “Vehicle” into the parameter value input box corresponding to the parameter AString, i.e., there is no need to add a type prefix before “Vehicle” during the ordering operation.
[0034] In step S102, when the graphics program is executed, a de-ordering operation is performed on the ordered string to obtain actual parameter values required by the execution unit in the graphics program.
[0035] In some embodiments, when executing the graphics program, performing a de-ordering on the ordered string includes, in the de-ordering process, first determining whether a type prefix is present in the ordered string, extracting the type prefix if present, identifying the parameter type, and performing a de-ordering operation on the parameter configuration string based on the parameter type to obtain the actual parameter value.
[0036] The following describes the reverse ordering operation in detail for different cases. For example, the ordered string is “[CAN]0 / Network1 / Node1 / Message1 / Signal1”, first determine whether the string contains a type prefix, then identify the type of the type prefix, in this example the type prefix [CAN] indicates that it takes the value of a CAN signal, and the type prefix is followed by the ordered CAN signal.
[0037] That is, in this example, a reverse ordering operation is performed on the parameter configuration string "0 / Network1 / Node1 / Message1 / Signal1". The specific process is as follows. First, based on the type prefix [CAN], it can be known that the ordered parameter is a CAN signal type, and a specific reverse ordering operation of the CAN signal must be performed. The operation first splits the parameter configuration string into five substrings by the separator " / ", which are (1) 0, (2) Network1, (3) Node1, (4) Message1, and (5) Signal1. If the split substrings are less than or more than five, it means that the ordered information is invalid, which also means that the current parameter call is invalid, and the call will fail.
[0038] Then, the CAN signal is analyzed based on a specific reverse ordering operation to obtain five substrings. Substring (1) represents the logical channel index, starting with 0, which represents channel 1. Substring (2) represents the net name, and the obtained net name in this example is Network1. Substring (3) represents the node name, and the obtained node name in this example is Node1. Substring (4) represents the message name, and the obtained message name in this example is Message1. Substring (5) represents the signal name, and the obtained signal name in this example is Signal1. Based on the obtained five basic information, the value of the signal Signal1 in the message Message1 at the node Node1 in the network Network1 at channel 1 can finally be accessed through the CAN bus simulation engine.
[0039] In some embodiments, the method for arranging parameters for a graphics program further includes establishing a correspondence between type prefixes and parameter types. Establishing the correspondence between type prefixes and parameter types includes constructing a correspondence table between type prefixes and parameter types.
[0040] In some embodiments, the correspondence between type prefixes and parameter types may be, for example but not limited to, those shown in the table below. [Table 1]
[0041] In some embodiments, the parameter types include at least one or more of a signal parameter, a system variable, a local variable, a system constant, and a path parameter.
[0042] In some implementations, the parameter types and corresponding examples and interpretations of the examples are as shown in the following table, for example but not limited to: (One table is divided into four parts) [Table 2] [Table 3] [Table 4] [Table 5]
[0043] The following will refer to a complete case to describe in detail the process of parameter configuration for a graphics program in some embodiments. Suppose a user needs to call a function to set the value of a system variable "GearVar", the function prototype is as follows: app.set_system_var_double(const char* ACompleteName, double AValue). The function name is app.set_system_var_double. The function has two parameters: ACompleteName is of string type and is the name of the system variable to set. AValue is of double type and is the value to set.
[0044] The steps of the parameter configuration process are as follows: In step S201, the function app.set_system_var_double is selected. After the function is selected, the system automatically identifies the names and types of the two parameters of the function, and displays the two parameters in the parameter correspondence table in the form of a table. The user needs to configure the parameters in a row of the parameter values of the parameter correspondence table, which is shown in the table below. [Table 6]
[0045] In step S202, the user first places a parameter ACompleteName, opens the parameter manager, opens the system variable selector through the parameter manager, selects the system variable "GearVar" in the system variable selector, and confirms the selection.
[0046] In step S203, the parameter manager automatically generates the ordered string "GearVar" based on the user's selection and enters it into the parameter value column corresponding to the "ACompleteName" row.
[0047] In step S204, the user continues to place the parameter AValue, and assume the user needs the parameter value to be the value of a particular range signal on the bus, "Gear." Open the Parameter Manager, select CAN channel 1, find the CAN network "Powertrain" on channel 1, expand the network, select the node "Engine," expand the node, select the message it sent, "EngineData," expand the message, select the signal "Gear" in the message, and confirm the selection.
[0048] In step S205, the parameter manager automatically generates the ordered string “[CAN]0 / Powertrain / Engine / EngineData / Gear” based on the user's selection and enters it into the parameter value column corresponding to the “AValue” row.
[0049] In step S206, the arrangement of the parameter correspondence table is completed, and the table contents of the parameter correspondence table after the arrangement are as follows: [Table 7]
[0050] After the parameter configuration is completed, when the graphics program is executed, each execution unit in the graphics program executes a corresponding instruction based on the actual parameter value obtained after de-ordering.
[0051] As shown in Figure 4, some embodiments further provide a parameter configuration device for a graphics program, the device including a computer, the computer configured to include:
[0052] One is a parameter manager, which is used to configure parameters for an execution unit and perform ordering operations on the parameter configuration strings associated with the parameters. For details about the ordering operation, please refer to the above description, and the description will be omitted here.
[0053] The other is a parameter correspondence table, which is used to display the parameter name and the arranged character string related to the parameter. In one implementation, the parameter correspondence table is a three-column table, with the first row of each column being the column title.
[0054] The first column is the parameter number column, the column title is "No.", the column contents are pure numbers, counting from 1, and automatically filled in by the system. The second column is the parameter name column, the column title is "Parameter Name", the column content is the name of the signal or function parameter that needs to be set, which is automatically filled in by the system according to the actual situation. The third column is the parameter value, the column title is “Parameter Value”, the contents of the column are the parameters that need to be configured by the user, which may be filled in manually by the user or automatically filled in after selection by the parameter selector. An example of the parameter correspondence table is as follows: [Table 8]
[0055] And the other is a parameter value analyzer, which is used to perform a de-ordering operation on the ordered string to obtain the actual parameter values required by the execution units in the graphics program. For details about the reverse ordering operation, please refer to the above description, and the description will be omitted here.
[0056] 5, as a possible embodiment, some embodiments further provide a parameter configuration system for a graphics program. Like the parameter configuration device for a graphics program described above, the computer is further configured to include: One is a graphics program, which includes at least one execution unit, and the execution unit is adapted to obtain corresponding required actual parameter values.
[0057] Specifically, some embodiments can quickly and easily configure parameters for each execution unit in a graphics program through a parameter configuration module, and can quickly and easily provide actual parameter values required by each execution unit in the graphics program when the graphics program is executed, thereby effectively improving the development efficiency of graphics programs.
[0058] In some embodiments, the parameter configuration device for a graphics program is implemented in a processor. For details, the specific description of the parameter configuration method for a graphics program described above can be referred to, but the description is omitted here.
[0059] Some embodiments further provide a parameter configuration method for a vehicle graphics program, the method including: configuring vehicle parameters of an execution unit, performing an ordering operation on a vehicle parameter configuration string associated with the vehicle parameters, and displaying the ordered string in a parameter correspondence table associated with the vehicle parameters, and performing a reverse ordering operation on the ordered string when executing the graphics program, to obtain actual vehicle parameter values required by the execution unit in the graphics program.
[0060] In some embodiments, application scenes of the parameter configuration method for vehicle graphics programs include automobile development scenes and automobile test scenes.
[0061] The following will use examples to explain in detail how to configure parameters for a graphics program applied to an automobile development scene. Specifically, in the process of developing graphics programs for automobile algorithms, it is necessary to implement a decision logic, to determine whether a signal value is within a specified range, and if the signal is within the specified range, execute logic A, otherwise execute logic B. For example, determine whether an engine speed signal is between 1000 and 3000 RPM. Assume that the engine speed signal is a signal with the name EngSpeed on the FlexRay bus, which is sent by the Engine node in the message EngineData, which is located in the database Powertrain, which is located in channel 2.
[0062] When implementing the decision logic, the determined signal parameters can be populated by the parameter manager as follows: In step S301, by clicking the parameter manager, first the FlexRay type button is clicked, and then in the pop-up FlexRay signal selector, channel 2, FlexRay network Powertrain, node Engine, message EngineData, and signal EngSpeed are selected in that order, and the selection is confirmed. In step S302, the parameter manager automatically orders the signals, resulting in the ordered string “[FlexRay]1 / Powertrain / Engine / EngineData / EngSpeed”.
[0063] The type prefix [FlexRay] indicates that the signal is a FlexRay signal. The parameter configuration string following the type prefix is separated by " / " and consists of the following five elements: (1) 1 indicates channel 2 (starting from 0). (2)Powertrain indicates the network name. (3)Engine indicates the node name. (4) EngineData indicates the message name. (5) EngSpeed indicates the signal name.
[0064] The following describes in detail the parameter configuration method for a graphics program applied to an automobile test scene with reference to an example. Specifically, in automobile testing, the graphics program function “test.check_verdict” is used to judge whether the target signal is within a predetermined range, which has four parameters, and when the user chooses to call this function, the system will automatically display the parameter table of this function as follows: [Table 9] Here, AName indicates the content description that needs to be determined, and the content is a character string that can be entered into the test report, for example, "Engine speed EngSpeed". AValue denotes the signal value to be determined, for example the engine rpm read on the FlexRay bus. AMin indicates the minimum value of the judgment range. AMax indicates the maximum value of the judgment range.
[0065] When the user calls the function, he configures the parameters by following these steps: In step S401, AName is arranged, and "engine speed EngSpeed" is directly input into the corresponding parameter value column. In step S402, place AValue and click on the parameter manager, first click on the FlexRay type button, and then in the FlexRay signal selector that pops up, select channel 3, FlexRay network Powertrain, node Engine, message EngineData, and signal EngSpeed in that order, and confirm the selection. In step S403, the parameter manager automatically orders the signal, the ordered string is “[FlexRay]2 / Powertrain / Engine / EngineData / EngSpeed”, and enters it into the parameter value column corresponding to AValue in the parameter table. In step S404, placing AMin, the user can select the test parameter “RangeMin” located in the system variables by clicking on the Parameter Manager, first clicking on the system variable type button, and then in the system variable selector that pops up, selecting the system variable “RangeMin” and confirming the selection. In step S405, the parameter manager automatically orders the system variable, the ordered string is “[Sys]RangeMin”, and enters it into the parameter value column corresponding to AMin in the parameter table. In step S406, to place AMax, the user can select the test parameter “RangeMax” located in the system variables by clicking on the Parameter Manager, first clicking on the System Variable Type button, and then in the pop-up system variable selector, selecting the system variable “RangeMax” and confirming the selection. In step S407, the parameter manager automatically orders the system variable, the ordered string is “[Sys]RangeMax”, and enters it into the parameter value column corresponding to AMax in the parameter table.
[0066] In some embodiments, the specific steps of parameter configuration for vehicle graphics program are the same as the parameter configuration method for graphics program described above, and thus the description is omitted here.
[0067] As shown in FIG. 6, some embodiments further provide a parameter configuration device for a vehicle graphics program, the device including a computer, the computer comprising: a vehicle parameter manager used to configure vehicle parameters of an execution unit and perform a ranking operation on a vehicle parameter configuration string associated with the vehicle parameters; a vehicle parameter correspondence table used to display a vehicle parameter name and an ordered character string related to the vehicle parameter; and a vehicle parameter value analyzer, which is used to perform a de-serialization operation on the serialized string to obtain actual vehicle parameter values required by an execution unit in the vehicle graphics program.
[0068] The functions of the vehicle parameter manager, the vehicle parameter correspondence table, and the vehicle parameter value analyzer are the same as those of the above-mentioned parameter manager, the above-mentioned parameter correspondence table, and the above-mentioned parameter value analyzer, and therefore a description thereof will be omitted here.
[0069] In some embodiments, the specific implementation functions of the vehicle parameter manager, the vehicle parameter correspondence table and the vehicle parameter value analyzer in the parameter configuration device for a vehicle graphics program are realized in a processor or computer, and for specific details, reference can be made to the specific description of the parameter configuration method for a graphics program described above, and the description will be omitted here.
[0070] The following describes electronic devices in some embodiments of the present disclosure from the perspective of hardware processing, but does not limit the specific implementation of the electronic devices. 7, the electronic device includes a processor, a readable storage medium, a communication bus, and a communication interface, where the processor, the readable storage medium, and the communication interface realize communication between each other via the communication bus. The readable storage medium is configured to store a program for executing the parameter configuration method for the graphics program, and the processor is configured to execute the program of the parameter configuration method for the graphics program.
[0071] In other embodiments, computer equipment, industrial computers, etc. may also be considered as types of electronic equipment. It should be noted that the configuration shown in FIG. 7 is not intended to limit the electronic device and may include fewer or more components than those shown, may combine some components, or may have different arrangements of components.
[0072] In some embodiments, the communication interface may be a communication interface connectable to an external bus adapter, such as RS232, RS485, USB port, TYPE port, etc. A wired or wireless network interface may also be included, which may optionally include wired and / or wireless interfaces typically used to establish communication connections between the computing device and other electronic devices (e.g., a WI-FI interface, a Bluetooth interface, etc.).
[0073] The readable storage medium or computer readable storage medium includes at least one type of memory. The memory includes flash memory, hard disk, multimedia card, card type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, it may be an internal storage unit of the computer device, such as the hard disk of the computer device. In other embodiments, the memory may be an external storage device of the computer device, such as a plug-in hard disk mounted on the computer device, a Smart Media Card (SMC), a Secure Digital Card (SD), a Flash Card, etc. Furthermore, the memory may include both the internal storage unit of the computer device and an external storage device. The memory is used to store various data such as application software and computer program codes installed in the computer device, as well as to temporarily store output data or data to be output.
[0074] In some embodiments, the processor may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip for executing program code stored in memory or processing data, e.g., executing a computer program.
[0075] In some embodiments, the communication bus may be an I / O bus, which may be a Peripheral Component Interconnect (PCI) bus or an Enhanced Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc.
[0076] Optionally, the computer device may further include a user interface. The user interface may include an input unit such as a display, a keyboard, etc., and optionally the user interface may also include a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-type liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. In this case, the display is also called a display screen or a display unit, for displaying information processed in the computer device and for displaying a visualized user interface.
[0077] When the processor executes the program, it realizes the steps in the embodiment of the parameter configuration method for a graphics program shown in Fig. 1. For example, steps S101 to S102 shown in Fig. 1. Alternatively, when the processor executes the computer program, it realizes the functions of each module or unit in each of the embodiments of the device.
[0078] In some embodiments, the processor is specifically adapted to implement the following steps: One is to configure a parameter of an execution unit, perform an ordering operation on a parameter configuration string associated with the parameter, and display the ordered string in a parameter correspondence table associated with the parameter. The other step is to perform a de-ordering operation on the ordered string when executing the graphics program, to obtain the actual parameter values required by the execution unit in the graphics program.
[0079] Optionally, as a possible embodiment, the processor may be further used to implement the following steps: The first step is to establish a correspondence between type prefixes and parameter types. The other is to obtain an ordered string by adding a type prefix to the parameter configuration string during the ordering process, where the ordered string expression includes a first part and a second part, where the first part is the type prefix and the second part is the parameter configuration string.
[0080] Optionally, as a possible embodiment, the processor may be further used to implement the following steps: First, in the ordering process, it is first determined whether the parameter configuration string is a non-immediate value. The other step is to append a type prefix to the parameter configuration string if it is a non-immediate value to obtain an ordered string, otherwise the parameter configuration string is left as the ordered string.
[0081] Optionally, as a possible embodiment, the processor may be further used to implement the following steps: The reverse ordering process first determines whether the string contains a type prefix, and if so, extracts the type prefix, identifies the parameter type, and performs a reverse ordering operation on the parameter configuration string based on the parameter type to obtain the actual parameter value.
[0082] Optionally, as a possible embodiment, the processor may be further used to implement the following steps: Building a correspondence table between type prefixes and parameter types, and the parameter types include at least one or more of signal parameters, system variables, local variables, system constants, and path parameters.
[0083] Some embodiments further provide a computer-readable storage medium, which stores a program of a parameter configuration method for a graphics program, and when the program is executed by a processor, the specific steps of the parameter configuration method for a graphics program can be realized. Please refer to the specific description of the parameter configuration method for a graphics program, and the description will be omitted here.
[0084] 8 and 9, some embodiments further provide a development and debugging system for a vehicle, the system including a computer device, a bus adapter, or a programming device. The computer device includes a processor, a readable storage medium, a communication bus, and a communication interface; The readable storage medium is configured to store a program for executing the parameter configuration method for the graphics program. The processor is configured to execute the program of the parameter configuration method for the graphics program to generate text code. The processor, the readable storage medium and the communication interface realize communication with a bus adapter via the communication bus. The processor is further configured to compile at least one executable code of the text code. The bus adapter is configured to write the compiled executable code to a debug device; or The writer is configured to write the compiled executable code to the debug device.
[0085] 10, some embodiments further provide a development and debugging method for a vehicle. The method includes: In step S201, a computer device executes a program of a parameter configuration method for a graphics program to generate text codes, and compiles at least one execution code of the text codes. In step S202, the compiled executable code is written to the debugging device via the bus adapter, or the compiled executable code is written to the debugging device by a writing device.
[0086] In some embodiments, a computing device corresponds to the electronic device described above. In some embodiments, the parameter configuration method for a graphics program further includes establishing a correspondence between a type prefix and a parameter type, and the ordering operation includes: in the ordering process, obtaining an ordered string by appending a type prefix to a parameter configuration string, the ordered string formula including a first part and a second part, the first part being a type prefix and the second part being a parameter configuration string.
[0087] In some embodiments, the ordering operation further includes: In the ordering process, firstly, determine whether the parameter configuration string is a non-immediate value, if so, add a type prefix to the parameter configuration string to obtain an ordered string, otherwise, use the parameter configuration string as it is as the ordered string.
[0088] In some embodiments, performing a reverse ordering on the ordered string when executing the graphics program includes: The reverse ordering process includes first determining whether a type prefix exists in the ordered string, extracting the type prefix if it exists, identifying the parameter type, and performing a reverse ordering operation on the parameter configuration string based on the parameter type to obtain the actual parameter value.
[0089] In some embodiments, establishing the correspondence between the type prefixes and the parameter types includes constructing a correspondence table between type prefixes and parameter types.
[0090] The processor is configured to compile at least one executable code in the textual code. In some embodiments, compiling the textual code may be accomplished by executing a cross-compiler.
[0091] In some embodiments, the bus adapter may be a CAN bus adapter, a CAN FD bus adapter, a FastLIN bus adapter, a LIN bus adapter, an Ethernet bus adapter, or a FlexRay bus adapter. It may be one-to-one or one-to-multiple, and some other embodiments do not limit the specific implementation of the bus adapter. In some embodiments, the compiled executable code may be written by communicating with the debugging device via UDS, XCP, or CCP protocol.
[0092] In some embodiments, a writing device may be referred to as a programmer.
[0093] In some embodiments, the debugging device in the automotive field may specifically refer to an in-vehicle ECU and its related systems, such as, but not limited to, an electric power steering system EPS, an anti-lock braking system ABS, an electronic stability control system ESC, an automobile engine management system, and a battery management system BMS. These devices may be connected to a computer device via a bus system to receive and execute compiled execution code.
[0094] In the vehicle development and debugging systems of some embodiments, the specific method for configuring parameters for a graphics program is similar to the parameter configuration method for a graphics program described above, so a description thereof will be omitted here.
[0095] Some embodiments further provide a computer program product, the product including a computer readable storage medium having computer readable program code stored thereon, the computer readable program code including instructions that cause at least one processor or at least one computing device to perform any of the possible parameter configuration methods for a graphics program described above.
[0096] Some embodiments provide a computer readable storage medium having computer readable instructions stored thereon that, when executed by at least one processor, cause the method of parameter configuration for a graphics program of the above-described embodiment to be performed.
[0097] In some embodiments of the present invention, it is to be understood that the disclosed apparatus and method may be realized in other manners. The above-described apparatus embodiments are merely exemplary, and for example, the flowcharts and block diagrams in the drawings illustrate possible architectures, functions, and operations of the apparatus, methods, and computer program products according to some embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code. The module, the program segment, or the part of code includes executable instructions for implementing one or more predetermined logical functions. It is to be noted that in some alternative implementations, the functions depicted in the blocks may occur in a different order than the order depicted in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and may sometimes be executed in a reverse order depending on the functions involved. It is also to be noted that each block of the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts may be implemented in a dedicated hardware-based system that executes a predetermined function or operation, or may be implemented in a combination of dedicated hardware and computer instructions.
[0098] In addition, each functional module in each embodiment of the present invention may be integrated together to form a single independent part, each module may exist independently, or two or more modules may be integrated together to form a single independent part.
[0099] The above functions can be realized in the form of software functional modules and stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the prior art or the part of the technical solution can be expressed in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method according to each embodiment of the present invention.
[0100] The above-mentioned preferred embodiments of the present invention have been enlightened, and those skilled in the art can make various changes and modifications based on the above description without departing from the technical spirit of the present invention. The technical scope of the present invention is not limited to the contents of the specification, but should be determined based on the claims.
Claims
1. 1. A parameter configuration method for a graphics program, comprising: A computer device comprising: configuring a parameter for an execution unit and performing an ordering operation on a parameter configuration string associated with the parameter; performing a de-ordering operation on the ordered string when executing the graphics program to obtain actual parameter values required by an execution unit in the graphics program; 13. A method for configuring parameters for a graphics program, comprising:
2. The method for configuring parameters for a graphics program further comprises: establishing a correspondence between a type prefix and a parameter type; In the ordering operation, 2. The method of claim 1, wherein in the ordering step, an ordered string is obtained by adding a type prefix to the parameter configuration string, and the ordered string expression includes a first portion and a second portion, the first portion being the type prefix and the second portion being the parameter configuration string.
3. 3. The method of claim 2, wherein the first portion and the second portion are distinguished by a delimiter, the delimiter including adding brackets, quotation marks, or a vertical line separator to the first portion.
4. 2. The method of claim 1, wherein a parameter configuration string associated with each parameter is user configurable.
5. The ordering operation is In the ordering process, first, it is determined whether the parameter configuration string is a non-immediate value, 3. The method of claim 2, further comprising: if the parameter configuration string is a non-immediate value, appending a type prefix to the parameter configuration string to obtain an ordered string; otherwise, leaving the parameter configuration string as the ordered string.
6. 6. The method of claim 5, wherein the non-immediate value is a character string other than an immediate value, the character string being a numeric or character string type.
7. performing a reverse ordering on the ordered string when executing the graphics program, 2. The method of claim 1, wherein the reverse ordering step includes first determining whether a type prefix exists in the ordered string, extracting the type prefix if it exists, identifying a parameter type, and performing a reverse ordering operation on the parameter configuration string based on the parameter type to obtain an actual parameter value.
8. Establishing a correspondence between the type prefixes and the parameter types includes:
3. The method of claim 2, further comprising constructing a correspondence table between type prefixes and parameter types.
9. 3. The method of claim 2, wherein the parameter types include at least one or more of a signal parameter, a system variable, a local variable, a system constant, and a path parameter.
10. 8. The method of claim 7, further comprising displaying the ordered string in a parameter correspondence table associated with the parameter.
11. 2. The parameter configuration method for a graphics program according to claim 1, further comprising using the parameter configuration method for a graphics program in an automobile development scene and an automobile test scene.
12. 1. A parameter configuration device for a graphics program, comprising: a computer, the computer comprising: a parameter manager used to configure parameters of an execution unit and to perform ordering operations on parameter configuration strings associated with the parameters; and a parameter value analyzer that is used to perform a de-ordering operation on the ordered string to obtain actual parameter values required by an execution unit in the graphics program.
13. 13. The parameter configuration device according to claim 12, which is used in automobile development and automobile testing scenes.
14. 1. A computer-readable storage medium, comprising: A computer readable storage medium having computer readable instructions stored thereon, the instructions, when executed by at least one processor, causing execution of the method for configuring parameters for a graphics program according to any one of claims 1 to 11.
15. An electronic device, a processor, a readable storage medium, a communication bus, and a communication interface; the processor, the readable storage medium, and the communication interface realize communication between each other via the communication bus; The readable storage medium is configured to store a program for executing the parameter configuration method for a graphics program according to any one of claims 1 to 11, and the processor is configured to execute the program of the parameter configuration method for the graphics program.
16. A development and debugging method for a vehicle, comprising: Executing the program of the parameter configuration method for a graphics program according to any one of claims 1 to 11 by a computer device to generate text code, and compiling at least one execution code of the text code; 1. A vehicle development debugging method, comprising the steps of: writing a compiled execution code to a debugging device via a bus adapter or by a writing device.
17. A computer readable program comprising: A program product causing at least one processor or at least one computer device to carry out the method for configuring parameters for a graphics program according to any one of claims 1 to 11.
Citation Information
Patent Citations
Menu interface system
JP1994095832A
Execution history recording device, label substitution device and program
JP2003296137A
Source code template generator
JP2009230606A
Translation of expressions in computer environment
JP2012160214A
Network device and network system
JP2014059822A