A memory database and simulation test system

By designing an in-memory database and simulation testing system containing five database forms, the problem that the existing technology cannot meet the high-performance database access requirements in real-time simulation testing is solved, and efficient data interaction and performance improvement is achieved.

CN114138889BActive Publication Date: 2025-03-25BEIJING JINGWEI HIRAIN TECH CO INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111476536.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-06
Publication Date
2025-03-25
Estimated Expiration
2041-12-06

AI Technical Summary

Technical Problem

Existing disk databases and in-memory databases accessed based on network communication protocols cannot meet the requirements of complex models for high-performance database access in real-time simulation tests, and cannot be directly applied to the real-time simulation test field.

Method used

An in-memory database and simulation test system was designed, which includes five database forms: overall information list unit, variable name data dictionary unit, variable numerical list offset data dictionary unit, model variable information list unit, IO channel information list unit, and model variable numerical list unit. Through these forms, efficient data interaction between simulation monitoring subsystem, vehicle dynamic model and IO task subsystem is realized.

Benefits of technology

It improves the access performance of the database, meets the high-performance access requirements of more than 100,000 times within the 1ms simulation step of complex models in simulation tests, and meets the functional requirements of real-time simulation tests by setting specific forms in the in-memory database.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114138889B_ABST
    Figure CN114138889B_ABST
Patent Text Reader

Abstract

The present invention discloses a memory database and a simulation test system. The memory database includes five database forms, namely, a general information list unit, a variable name data dictionary unit, a variable value list offset data dictionary unit, a model variable information list unit, an IO channel information list unit, and a model variable value list unit. The simulation monitoring subsystem, the vehicle dynamics model, and the IO task subsystem required for the simulation test interact with the corresponding database forms in the memory database to realize the simulation test. In the present invention, the simulation monitoring subsystem, the IO task subsystem, and the vehicle dynamics model can directly access the memory address in the memory database, thereby improving the access performance of the database. By setting the database form in the memory database, the simulation monitoring subsystem, the vehicle dynamics model, and the IO task subsystem can complete data interaction through each database form, thereby meeting the functional requirements of the simulation test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of simulation test technology, and more specifically, to a memory database and a simulation test system. Background Art

[0002] Existing commercial databases and open source databases generally use disks for data storage, collectively referred to as disk databases. Disk databases can store data for a long time. However, due to disk access, data interaction between disk and memory, read and write buffer management and other links, the execution time of disk database read and write transactions is greatly increased, so the access speed of disk database is low. In order to solve the problem of low access rate of disk database, a small number of databases use memory storage at the physical medium level, collectively referred to as memory databases. For example, the cache database in the Internet industry is actually a memory database. However, due to the distributed requirements of the Internet industry, network communication is required at the database access interface level, that is, network ports are required to access memory databases. Therefore, although the bandwidth of network communication is getting larger and larger, the parsing time of the network communication protocol used to access the memory database is still very large, resulting in a low access speed for the memory database.

[0003] However, in real-time simulation testing, in order to meet the solution of complex models such as vehicle dynamics, the solution step size is required to be 1ms, and because the number of variables in complex models is huge, at least 100,000 database accesses are required within the solution step size of 1ms. Therefore, the above-mentioned disk database and the memory database accessed based on the network communication protocol cannot meet the requirements of real-time simulation testing for high-performance database access. In addition, the existing disk database and memory database are both positioned as general databases and do not have the forms required for real-time simulation testing. Therefore, they cannot be directly applied to the field of real-time simulation testing. Summary of the invention

[0004] In view of this, the present invention discloses a memory database and a simulation test system to improve the access performance of the database and meet the high-performance access requirement of more than 100,000 times to the database within a 1 ms simulation step of a complex model in the simulation test. At the same time, in view of the functional requirements of the real-time simulation test, a database form is set in the memory database, so that the simulation monitoring subsystem, vehicle dynamics model and IO task subsystem required for the real-time simulation test can complete efficient data interaction through each database form in the memory database, thereby meeting the functional requirements of the simulation test.

[0005] A memory database includes five database forms, namely: an overall information list unit, a variable name data dictionary unit, a variable value list offset data dictionary unit, a model variable information list unit, an IO channel information list unit and a model variable value list unit;

[0006] The overall information list unit is used to record the overall information of the memory database;

[0007] The variable name data dictionary unit is used for the vehicle dynamics model to obtain model variable information of the required access variable, so that the vehicle dynamics model can complete the reading and writing of the model variable value list unit according to the description of the data item in the model variable information;

[0008] The variable value list offset data dictionary unit is used for the simulation monitoring subsystem to read the model variable information of the required access variable to perform simulation status monitoring;

[0009] The model variable information list unit is used for the IO task subsystem to obtain the IO channel information corresponding to the model variable one by one, and store the IO channel information as the value of the model output variable into the corresponding memory of the model variable value list unit, or for the IO task subsystem to read the value of the model output variable in the corresponding memory and send it to the corresponding IO channel;

[0010] The IO channel information list unit is used to describe the association between the model variables and the IO channels;

[0011] The model variable value list unit is used to store the variable values ​​of all models so that the simulation monitoring subsystem, the vehicle dynamics model and the IO task subsystem can read and write the variable values.

[0012] Optionally, the overall information includes: the total number of model variables, the number of single-value variables, the number of array variables, and the total number of array variable elements;

[0013] The total number of model variables, the number of elements of the variable name data dictionary unit, the number of elements of the variable value list offset data dictionary unit and the number of data elements of the model variable information list unit are the same;

[0014] The total number of model variables in the memory database is the sum of the number of single-value variables and the number of array variables;

[0015] The total number of array variable elements is the sum of all array variable elements.

[0016] Optionally, the variable name data dictionary unit is specifically used for:

[0017] When the vehicle dynamics model is initialized, the offset of the variable information in the model variable information list unit is obtained from the variable name data dictionary unit through the model variable name, and then the offset of the model variable value list unit is obtained from the model variable information, and the offset of the model variable value list unit is recorded in the vehicle dynamics model;

[0018] When the vehicle dynamics model is running in real time, the memory address of the memory data is directly operated according to the offset of the model variable value list unit recorded when the vehicle dynamics model is initialized, so as to complete the reading of the value of the model input variable from the model variable value list unit and the writing of the value of the model output variable into the model variable value list unit.

[0019] Optionally, the model variable information list unit includes: variable name, variable type, array dimension, variable maximum value, variable minimum value, linear formula constant, IO channel information list unit offset and model variable value list unit offset.

[0020] Optionally, also include:

[0021] When the variable value to be written is greater than the variable maximum value, writing the variable maximum value into the model variable value list unit;

[0022] When the variable value to be written is less than the minimum value of the variable, the minimum value of the variable is written into the model variable value list unit.

[0023] Optionally, the linear formula constants include a gain a in the linear formula and an offset b in the linear formula;

[0024] In real-time simulation, the IO task subsystem uses the read board input as the original value, converts the original value using the linear formula to obtain the physical value required for solving the vehicle dynamics model, and stores the physical value in the memory database for use in solving the vehicle dynamics model. The expression of the physical value is as follows:

[0025] Physical value = a*original value + b.

[0026] Optionally, the model variable information list unit only contains description items of variable information, the model variable information describes the offset of the IO channel corresponding to the model variable in the IO channel information list unit, and the IO channel information corresponding to the model variable describes the board ID and channel number.

[0027] Optionally, also include:

[0028] The address of the model variable in the model variable value list unit can be obtained according to the model variable value list unit offset in the model variable information, so as to complete the reading and writing of the model variable value.

[0029] A simulation test system, comprising: a simulation monitoring subsystem, an IO task subsystem, a vehicle dynamics model and the above-mentioned memory database;

[0030] The simulation monitoring subsystem is used to access the memory database to read and write model variables so as to monitor the simulation status;

[0031] The IO task subsystem is used to read the board input quantity and store the board input quantity into the memory database;

[0032] The vehicle dynamics model is used to read the board input from the memory database, perform vehicle dynamics model calculation on the board input to obtain the value of the model output variable, and store the value of the model output variable in the memory database;

[0033] The IO task subsystem is also used to read the value of the model output variable from the memory database, and output the value of the model output variable to the IO channel of the board.

[0034] Optionally, the IO task subsystem is further used for:

[0035] Traverse the model variable information list unit, obtain the IO channel information corresponding to the model input variable according to the IO channel information list unit offset in the model variable information list unit, obtain the input data of the corresponding channel of the board according to the board ID and channel number in the IO channel information, and store it in the model variable value list unit as the value of the input variable for use in vehicle dynamics model solution; or read the value of the model output variable after the model is settled, and send it to the corresponding IO channel according to the board ID and channel number in the IO channel information.

[0036] It can be seen from the above technical solution that the present invention discloses a memory database and a simulation test system. The memory database includes five database forms, namely: a general information list unit, a variable name data dictionary unit, a variable value list offset data dictionary unit, a model variable information list unit, an IO channel information list unit and a model variable value list unit. When performing a simulation test, the simulation monitoring subsystem, the vehicle dynamics model and the IO task subsystem interact with the corresponding database forms in the memory database to realize the simulation test. The memory database in the present invention is the center of data interaction in the simulation test system, which is used by the simulation monitoring subsystem, IO task subsystem and vehicle dynamics model, so that the simulation monitoring subsystem, IO task subsystem and vehicle dynamics model can directly access the memory address in the memory database. Compared with the traditional disk database and the memory database accessed by network communication, the present invention improves the access performance of the database and meets the high-performance access requirements of more than 100,000 times of the database within a 1ms simulation step of the complex model in the simulation test. At the same time, in view of the functional requirements of the real-time simulation test, a database form is set in the memory database, so that the simulation monitoring subsystem, vehicle dynamics model and IO task subsystem required for the real-time simulation test can complete efficient data interaction through each database form in the memory database, thereby meeting the functional requirements of the simulation test. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the disclosed drawings without paying creative work.

[0038] Figure 1 A schematic diagram of the structure of a simulation test system disclosed in an embodiment of the present invention;

[0039] Figure 2 A system block diagram of an in-memory database disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] The embodiment of the present invention discloses a memory database and a simulation test system. The memory database includes five database forms, namely: an overall information list unit, a variable name data dictionary unit, a variable value list offset data dictionary unit, a model variable information list unit, an IO channel information list unit and a model variable value list unit. When performing a simulation test, the simulation monitoring subsystem, the vehicle dynamics model and the IO task subsystem interact with the corresponding database forms in the memory database to realize the simulation test. In the present invention, the memory database is the center of data interaction in the simulation test system, which is used by the simulation monitoring subsystem, the IO task subsystem and the vehicle dynamics model, so that the simulation monitoring subsystem, the IO task subsystem and the vehicle dynamics model can directly access the memory address in the memory database. Compared with the traditional disk database and the memory database accessed by the network communication method, the present invention improves the access performance of the database, and meets the high-performance access requirements of more than 100,000 times of the database within the simulation step of 1ms for the complex model in the simulation test. At the same time, in view of the functional requirements of the real-time simulation test, a database form is set in the memory database, so that the simulation monitoring subsystem, the vehicle dynamics model and the IO task subsystem required for the real-time simulation test can complete efficient data interaction through each database form in the memory database, thereby meeting the functional requirements of the simulation test.

[0042] See also Figure 1 , a structural diagram of a simulation test system disclosed in an embodiment of the present invention, the simulation test system includes: a simulation monitoring subsystem 11, an IO task subsystem 12, a vehicle dynamics model 13 and a memory database 14.

[0043] in:

[0044] The simulation monitoring subsystem 11 is used to access the memory database 14 to read and write model variables so as to monitor the simulation status.

[0045] During the simulation process, the execution process of a simulation step is completed by the IO task subsystem 12, the vehicle dynamics model 13 and the memory database 14, and the process is as follows:

[0046] The IO task subsystem 12 is used to read the board input quantity and store the board input quantity into the memory database 14.

[0047] In the present invention, the IO task subsystem 12 is specifically the IO task subsystem of the board.

[0048] The vehicle dynamics model 13 is used to read the board input from the memory database 14, perform vehicle dynamics model calculation on the board input to obtain the value of the model output variable, and store the value of the model output variable in the memory database 14. The vehicle dynamics model 13 is used to test various controllers of the vehicle. The model uses the output of the tested controller for settlement and feeds the result back to the controller, which is equivalent to the model simulating the vehicle environment to achieve the purpose of testing the controller in an environment without a real vehicle.

[0049] The IO task subsystem 12 is also used to read the values ​​of the model output variables from the memory database 14 and output the values ​​of the model output variables to the IO channels of the board.

[0050] From the above, it can be seen that the memory database 14 in the present invention is the center of data interaction in the simulation test system, and is used by the simulation monitoring subsystem 11, the IO task subsystem 12 and the vehicle dynamics model 13, so that the simulation monitoring subsystem 11, the IO task subsystem 12 and the vehicle dynamics model 13 can directly access the memory address in the memory database 14. Therefore, compared with the traditional disk database and the memory database accessed by network communication, the database access performance is improved, and the high-performance access requirement of more than 100,000 times to the database within a simulation step of 1 ms for complex models in simulation tests is met.

[0051] In view of the database form requirements raised by the simulation test function, the present invention Figure 1 The in-memory database 14 shown has database tables set therein.

[0052] See also Figure 2 , a system block diagram of a memory database disclosed in an embodiment of the present invention, the memory database is Figure 1 The memory database in the memory database mainly includes five database forms, namely: overall information list unit 21, variable name data dictionary unit 22, variable value list offset data dictionary unit 23, model variable information list unit 24, IO channel information list unit 25 and model variable value list unit 26.

[0053] in:

[0054] The general information list unit 21 is used to record the general information of the memory database.

[0055] The variable name data dictionary unit 22 is used for the vehicle dynamics model to obtain the model variable information of the required access variable, so that the vehicle dynamics model can complete the reading and writing of the model variable value list unit according to the description of the data item in the variable information.

[0056] In actual applications, when external access is made to variables stored in a memory database, the variable name can be used as a key to perform database lookup.

[0057] The variable value list offset data dictionary unit 23 is used for the simulation monitoring subsystem to read the model variable information of the required access variable to perform simulation status monitoring.

[0058] When externally accessing variables stored in the memory database, the variable value list offset can be used as the key to perform database lookup.

[0059] In the present invention, the variable value list offset data dictionary unit 23 is mainly used for the simulation monitoring subsystem to access the memory database, and is used as follows: when the simulation monitoring subsystem reads and writes a variable, the offset of the variable in the model variable information list unit 24 is obtained through the offset of the variable in the model variable information list unit 24, and then the variable type is obtained from the model variable information. According to the variable type and the offset of the model variable value list unit 26, the memory of the corresponding variable in the model variable value list unit 26 is directly operated to complete the reading and writing of the simulation monitoring subsystem to the memory.

[0060] The model variable information list unit 24 is used for the IO task subsystem to obtain the IO channel information corresponding to the model variables one by one, and store the IO channel information as the value of the model output variable into the corresponding memory of the model variable value list unit 26, or for the IO task subsystem to read the value of the model output variable in the corresponding memory and send it to the corresponding IO channel.

[0061] In this embodiment, the model variable information list unit 24 is mainly used to describe the information of all variables in the memory database. The simulation monitoring subsystem and the vehicle dynamics model need to obtain the corresponding model variable information through the variable value list offset data dictionary unit 23 when accessing the variables in the database. The IO task subsystem also needs to traverse the model variable information list unit 24 to write the read IO channel data into the corresponding memory of the model variable value list unit 26; or read the value of the model output variable in the corresponding memory in the model variable value list unit 26 and send it to the corresponding IO channel.

[0062] The IO channel information list unit 25 is used to describe the association relationship between the model variables and the IO channels.

[0063] In actual applications, the variable information describes the offset of the IO channel corresponding to the model variable in the IO channel information list unit 25. The IO channel information corresponding to the model variable describes the board ID and the channel number.

[0064] The model variable value list unit 26 is used to store the variable values ​​of all models so that the simulation monitoring subsystem, the vehicle dynamics model and the IO task subsystem can read and write the variable values.

[0065] In actual applications, the simulation monitoring subsystem, vehicle dynamics model and IO task subsystem can obtain the offset of the model variable value list unit 26 from the model variable information through the model variable value list unit 26, directly operate the address of the model variable in the model variable value list unit 26, and complete direct reading and writing of the memory.

[0066] In summary, the present invention discloses a memory database, including five database forms, namely: a general information list unit 21, a variable name data dictionary unit 22, a variable value list offset data dictionary unit 23, a model variable information list unit 24, an IO channel information list unit 25 and a model variable value list unit 26. When performing simulation testing, the simulation monitoring subsystem, the vehicle dynamics model and the IO task subsystem interact with the corresponding database forms in the memory database to realize simulation testing. The memory database in the present invention is the center of data interaction in the simulation test system, which is used by the simulation monitoring subsystem, IO task subsystem and vehicle dynamics model, so that the simulation monitoring subsystem, IO task subsystem and vehicle dynamics model can directly access the memory address in the memory database. Compared with the traditional disk database and the memory database accessed by network communication, the present invention improves the access performance of the database and meets the high-performance access requirements of more than 100,000 times of the database within a 1ms simulation step of the complex model in the simulation test. At the same time, in view of the functional requirements of the real-time simulation test, a database form is set in the memory database, so that the simulation monitoring subsystem, vehicle dynamics model and IO task subsystem required for the real-time simulation test can complete efficient data interaction through each database form in the memory database, thereby meeting the functional requirements of the simulation test.

[0067] In this embodiment, the overall information of the memory database recorded in the overall information list unit 21 mainly includes: the total number of model variables, the number of single-value variables, the number of array variables and the total number of array variable elements.

[0068] Specifically, (1) the total number of model variables

[0069] The overall information list unit 21 is used to establish a variable name data dictionary unit 22 , a variable value list offset data dictionary unit 23 and a model variable information list unit 24 .

[0070] Among them, the total number of model variables, the number of elements of the variable name data dictionary unit 22, the number of elements of the variable value list offset data dictionary unit 23, and the number of data elements of the model variable information list unit 24 are the same.

[0071] That is, the total number of model variables in the memory database = the number of elements in the variable name data dictionary unit 22 = the number of elements in the variable value list offset data dictionary unit 23 = the number of data elements in the model variable information list unit 24 .

[0072] (2) Number of single-valued variables

[0073] The overall information list unit 21 is used to establish the model variable value list unit 26 .

[0074] The size of the model variable value list unit 26 = (number of single-value variables + total number of all array variable elements) * 8, where 8 represents the size (number of bytes) occupied by the variable in the memory database.

[0075] (3) Number of digital variables

[0076] Among them, the total number of model variables in the memory database = the number of single-value variables + the number of array variables.

[0077] (4) Total number of array variable elements

[0078] The total number of array variable elements = the number of elements in array variable 1 + the number of elements in array variable 2 + … + the number of elements in array variable N.

[0079] In this embodiment, the variable name data dictionary unit 22 records each variable name and the corresponding model variable information list offset, such as Figure 2 The name of variable N and the offset of variable information list, the name of variable N+1 and the offset of variable information list, where N is a positive integer.

[0080] The variable name data dictionary unit 22 is mainly used for the vehicle dynamics model to access the database. The usage is as follows:

[0081] (1) When the model is initialized, the offset of the variable information in the model variable information list unit 24 is obtained from the variable name data dictionary unit 22 through the model variable name, and then the offset of the model variable value list unit 26 is obtained from the model variable information, and the offset of the model variable value list unit 26 is recorded in the vehicle dynamics model.

[0082] (2) When the model is running in real time, the memory address of the memory data is directly operated according to the offset of the model variable value list unit 26 recorded when the model is initialized, so as to complete the reading of the value of the model input variable from the model variable value list unit 26 and the writing of the value of the model output variable into the model variable value list unit 26.

[0083] In this embodiment, the variable value list offset data dictionary unit 23 records each variable value list offset and the corresponding model variable information list offset, such as Figure 2 The variable N value list offset and the corresponding model variable information list offset, the variable N+1 value list offset and the corresponding model variable information list offset, N is a positive integer.

[0084] In this embodiment, the model variable information list unit 24 includes: variable name, variable type, array dimension, variable maximum value, variable minimum value, linear formula constant, IO channel information list unit offset and model variable value list unit offset.

[0085] (1) Variable name

[0086] The variable name in this embodiment refers to the model variable name.

[0087] (2) Variable type

[0088] Since integer values ​​and floating-point values ​​are arranged differently in database memory addresses, the reading and writing of variable values ​​to the model variable value list unit 26 need to be arranged according to the variable type in the variable information, for example, the values ​​arranged at the corresponding addresses are written to the memory corresponding to the variables in the model variable value list unit 26.

[0089] (3) Array dimensions

[0090] The array dimension corresponding to a single-value variable is 1, the array dimension corresponding to a one-dimensional array is 1*N, and the array dimension corresponding to a two-dimensional array is M*N. The reading and writing of variable values ​​to the model variable value list unit 26 requires determining the number of elements read and written to the array variable according to the array dimension in the variable information.

[0091] (4) Maximum and minimum values ​​of variables

[0092] The simulation monitoring subsystem, vehicle dynamics model and IO task subsystem complete the writing of variable values ​​into the model variable value list unit 26 , and need to constrain the variable values ​​according to the maximum and minimum values ​​of the variables in the model variable information list unit 24 .

[0093] When the variable value to be written is greater than the maximum value of the variable, the maximum value of the variable is written into the model variable value list unit 26;

[0094] When the variable value to be written is less than the variable minimum value, the variable minimum value is written into the model variable value list unit 26 .

[0095] (5) Linear formula constant a and linear formula constant b

[0096] In real-time simulation, the IO task subsystem reads the board input as the original value, converts the original value using a linear formula to obtain the physical value required for the vehicle dynamics model solution, and stores the physical value in the memory database for the vehicle dynamics model solution. Linear formula: physical value = a*original value + b, a is the gain in the linear formula; b is the offset in the linear formula, the original value is the input of the board read by the IO task subsystem, that is, the physical value of the board acquisition is the value after the original value is converted by the linear formula, and stored in the database for model settlement.

[0097] (6)IO channel information list unit offset

[0098] The IO task subsystem traverses the model variable information list unit, obtains the IO channel information corresponding to the model input variable according to the IO channel information list unit offset in the model variable information list unit 24, obtains the input data of the corresponding channel of the board according to the board ID and channel number in the IO channel information, and stores it in the model variable value list unit 26 as the value of the input variable for use in solving the vehicle dynamics model; or the IO task subsystem reads the value of the model output variable after the model is settled, and sends it to the corresponding IO channel according to the board ID and channel number in the IO channel information.

[0099] (7) Model variable value list unit offset

[0100] The model variable information list unit 24 only contains the description items of the variable information, and the numerical values ​​of the model variables are stored in the model variable numerical value list unit 26. According to the model variable numerical value list unit offset in the variable information, the address of the model variable in the model variable numerical value list unit 26 can be obtained to complete the reading and writing of the model variable numerical value.

[0101] In this embodiment, the IO channel information list unit 25 describes the association between the model variable and the IO channel. The variable information describes the offset of the IO channel corresponding to the model variable in the IO channel information list unit 25. The board ID and channel number are described in the IO channel information corresponding to the model variable.

[0102] (1) Board ID

[0103] A board that represents the association of model variables.

[0104] (2) Channel number

[0105] Represents the model variables associated with the channel of the board.

[0106] (3) Channel initialization parameters

[0107] In addition to the board ID and channel number used to describe the variable association relationship, the IO channel information also includes the initialization parameters of the channel. When the real-time simulation is initialized, the IO task subsystem configures the parameters to the board and channel, such as channel mode, channel enable, etc.

[0108] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0109] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0110] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A memory database, characterized in that: It includes five database forms, namely: overall information list unit, variable name data dictionary unit, variable value list offset data dictionary unit, model variable information list unit, IO channel information list unit and model variable value list unit; The overall information list unit is used to record the overall information of the memory database; The variable name data dictionary unit is used for the vehicle dynamics model to obtain model variable information of the required access variable, so that the vehicle dynamics model can complete the reading and writing of the model variable value list unit according to the description of the data item in the model variable information; The variable value list offset data dictionary unit is used for the simulation monitoring subsystem to read the model variable information of the required access variable to perform simulation status monitoring; The model variable information list unit is used for the IO task subsystem to obtain the IO channel information corresponding to the model variable one by one, and store the IO channel information as the value of the model output variable into the corresponding memory of the model variable value list unit, or for the IO task subsystem to read the value of the model output variable in the corresponding memory and send it to the corresponding IO channel; The IO channel information list unit is used to describe the association between the model variables and the IO channels; The model variable value list unit is used to store the values ​​of all model variables so that the simulation monitoring subsystem, the vehicle dynamics model and the IO task subsystem can read and write the variable values.

2. The in-memory database according to claim 1, characterized in that: The overall information includes: the total number of model variables, the number of single-value variables, the number of array variables and the total number of array variable elements; The total number of model variables, the number of elements of the variable name data dictionary unit, the number of elements of the variable value list offset data dictionary unit and the number of data elements of the model variable information list unit are the same; The total number of model variables in the memory database is the sum of the number of single-value variables and the number of array variables; The total number of array variable elements is the sum of all array variable elements.

3. The in-memory database according to claim 1, characterized in that: The variable name data dictionary unit is specifically used for: When the vehicle dynamics model is initialized, the offset of the model variable information in the model variable information list unit is obtained from the variable name data dictionary unit through the model variable name, and then the offset of the model variable value list unit is obtained from the model variable information, and the offset of the model variable value list unit is recorded in the vehicle dynamics model; When the vehicle dynamics model is running in real time, the memory address of the memory data is directly operated according to the offset of the model variable value list unit recorded when the vehicle dynamics model is initialized, so as to complete the reading of the value of the model input variable from the model variable value list unit and the writing of the value of the model output variable into the model variable value list unit.

4. The in-memory database according to claim 1, characterized in that: The model variable information list unit includes: variable name, variable type, array dimension, variable maximum value, variable minimum value, linear formula constant, IO channel information list unit offset and model variable value list unit offset.

5. The in-memory database according to claim 4, characterized in that: Also includes: When the value of the model variable to be written is greater than the maximum value of the variable, writing the maximum value of the variable into the model variable value list unit; When the model variable value to be written is less than the minimum value of the variable, the minimum value of the variable is written into the model variable value list unit.

6. The in-memory database according to claim 4, characterized in that: The linear formula constants include a gain in the linear formula and an offset in the linear formula; In real-time simulation, the IO task subsystem uses the read board input as the original value, converts the original value using the linear formula to obtain the physical value required for solving the vehicle dynamics model, and stores the physical value in the memory database for use in solving the vehicle dynamics model. The expression of the physical value is as follows: Physical value = a*original value + b.

7. The in-memory database according to claim 1, characterized in that: The model variable information list unit only contains description items of the model variable information. The model variable information describes the offset of the IO channel corresponding to the model variable in the IO channel information list unit. The IO channel information corresponding to the model variable describes the board ID and channel number.

8. The in-memory database according to claim 7, characterized in that: Also includes: The address of the model variable in the model variable value list unit can be obtained according to the model variable value list unit offset in the model variable information, so as to complete the reading and writing of the model variable value.

9. A simulation test system, characterized in that: include: A simulation monitoring subsystem, an IO task subsystem, a vehicle dynamics model, and a memory database as described in any one of claims 1 to 8; The simulation monitoring subsystem is used to access the memory database to read and write model variables so as to monitor the simulation status; The IO task subsystem is used to read the board input quantity and store the board input quantity into the memory database; The vehicle dynamics model is used to read the board input from the memory database, perform vehicle dynamics model calculation on the board input to obtain the value of the model output variable, and store the value of the model output variable in the memory database; The IO task subsystem is also used to read the value of the model output variable from the memory database, and output the value of the model output variable to the IO channel of the board.

10. The simulation test system according to claim 9, characterized in that: The IO task subsystem is also used to: Traverse the model variable information list unit, obtain the IO channel information corresponding to the model input variable according to the IO channel information list unit offset in the model variable information list unit, obtain the input data of the corresponding channel of the board according to the board ID and channel number in the IO channel information, and store it in the model variable value list unit as the value of the input variable for use in solving the vehicle dynamics model; Or it is used to read the value of the model output variable after the model is settled, and send it to the corresponding IO channel according to the board ID and channel number in the IO channel information.

Citation Information

Patent Citations

  • Universal simulated flight simulation environment evaluating system

    CN107516452A

  • Variable-based dynamic data operation and management system

    CN110175115A