CN115951973A - Model processing method and device, terminal device and storage medium - Google Patents

Model processing method and device, terminal device and storage medium Download PDF

Info

Publication number
CN115951973A
CN115951973A CN202310097835.2A CN202310097835A CN115951973A CN 115951973 A CN115951973 A CN 115951973A CN 202310097835 A CN202310097835 A CN 202310097835A CN 115951973 A CN115951973 A CN 115951973A
Authority
CN
China
Prior art keywords
port
connection
target
determining
target data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310097835.2A
Other languages
Chinese (zh)
Other versions
CN115951973B (en
Inventor
陈顺喜
范俊波
李宗阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kunyi Electronic Technology Shanghai Co Ltd
Original Assignee
Kunyi Electronic Technology Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kunyi Electronic Technology Shanghai Co Ltd filed Critical Kunyi Electronic Technology Shanghai Co Ltd
Priority to CN202410217684.4A priority Critical patent/CN117971397B/en
Priority to CN202310097835.2A priority patent/CN115951973B/en
Publication of CN115951973A publication Critical patent/CN115951973A/en
Application granted granted Critical
Publication of CN115951973B publication Critical patent/CN115951973B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45516Runtime code conversion or optimisation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application discloses a model processing method, a model processing device, terminal equipment and a storage medium, wherein the method comprises the following steps: determining a target simulation model needing port connection and a data port available for connection in the target simulation model in a plurality of simulation models of an HIL system; determining target data ports in the data ports, and acquiring port description information of each target data port; and determining the connection relation between the target data ports according to the port description information and a preset port connection rule so as to transmit signals based on the connection relation when the target simulation model works. By the mode, the relation between the models is realized without writing glue codes, the coupling is low, modularization is easy to realize, and the models are compatible with various hardware, and the development efficiency is effectively improved.

Description

Model processing method, device, terminal equipment and storage medium
Technical Field
The present application relates to the field of hardware-in-the-loop simulation technologies, and in particular, to a model processing method and apparatus, a terminal device, and a storage medium.
Background
Hardware is in the Loop, HIL (Hardware-in-the-Loop), i.e., hardware is in the Loop. The hardware-in-the-loop system, the HIL system, is a hardware-in-the-loop simulation test system, simulates the running state of a controlled object by running a simulation model through a real-time processor, is connected with an ECU to be tested through an I/O interface, and performs comprehensive and systematic test on the ECU to be tested.
The hardware-in-the-loop test system generally comprises a simulation model, IO hardware of a rack and an object to be tested, the simulation model is generally generated by modeling software and is generally a mathematical model, and the input and the output of the simulation model are unrelated to the IO board card of the rack.
In the prior art, establishing a direct connection between a simulation model and a simulation model is realized by manually writing glue codes. However, this method has strong coupling, is not easy to realize modularization, cannot be compatible with various hardware, and has low efficiency in manual writing of glue codes, which is not beneficial to improving development efficiency.
Disclosure of Invention
The embodiment of the application provides a model processing method, a model processing device, a terminal device and a storage medium, which are used for solving the problems in the background art.
In a first aspect, an embodiment of the present application provides a model processing method, where the method includes:
determining a target simulation model needing port connection and a data port available for connection in the target simulation model in a plurality of simulation models of an HIL system;
determining target data ports in the data ports, and acquiring port description information of each target data port;
and determining the connection relation between the target data ports according to the port description information and a preset port connection rule so as to transmit signals based on the connection relation when the target simulation model works.
In a second aspect, an embodiment of the present application further provides a model processing apparatus, where the apparatus includes:
a first determining module for determining the simulation model of HIL system Determining a target simulation model needing port connection and the target simulation model can be connected in the target simulation modelA data port for connection;
an obtaining module, configured to determine a target data port in the data ports, and obtain port description information of each target data port;
and the second determining module is used for determining the connection relation between the target data ports according to the port description information and a preset port connection rule so as to transmit signals based on the connection relation when the target simulation model works.
In a third aspect, an embodiment of the present application further provides a terminal device, which includes a memory and a processor, where the memory is used to store instructions and data, and the processor is used to execute the model processing method described above.
In a fourth aspect, the present application further provides a storage medium, where a plurality of instructions are stored, and the instructions are adapted to be loaded by a processor to execute the model processing method described above.
According to the model processing method in the embodiment of the application, the target simulation model needing port connection and the data ports available for connection are determined in the HIL system, the target data ports in the data ports are determined, the port description information of each target data port is obtained according to the scene creation requirement, and the connection relation between the target data ports is determined according to the port description information and the preset port connection rule, so that the target simulation model can carry out signal transmission according to the connection relation when in work. In the embodiment of the application, the association between the models is not required to be realized through glue codes, and the development efficiency can be effectively improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a model processing method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a frame according to an embodiment of the present disclosure.
Fig. 3 is a schematic view of a connection structure between frames provided in the embodiment of the present application.
Fig. 4 is a schematic structural diagram of a model processing apparatus according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the embodiments of the present application, it should be understood that the terms "first", "second", and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or to implicitly indicate the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the embodiments of the present application, "a plurality" means two or more unless specifically defined otherwise.
The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known processes have not been described in detail so as not to obscure the description of the embodiments of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed in the embodiments of the present application.
Embodiments of the present application provide a model processing method, an apparatus, a terminal device, and a storage medium, which will be described in detail below.
Referring to fig. 1, fig. 1 is a flowchart of a model processing method according to an embodiment of the present application, including the following steps:
101. in a plurality of simulation models of the HIL system, a target simulation model needing port connection and a data port available for connection in the target simulation model are determined.
The embodiment of the application aims at port connection of simulation models in an HIL system, and can be port connection of ports between the simulation models or port connection of ports between the same simulation model. The HIL system comprises a plurality of simulation models, and the simulation models needing port connection are used as target simulation models so as to realize the port connection of the target simulation models. The target simulation model can work on an upper computer, can also work on a simulation board card, and can also work on any equipment of the HIL system.
In some embodiments of the application, a target simulation model to be subjected to port connection is determined, and the target simulation model may be determined according to conditions such as a scene creation requirement and a scene creation specification. Before a target simulation model needing port connection is determined, a simulation model to be contained in a scene and a model type of the simulation model are determined according to scene creation requirements, a JSON file with unconfigured parameters corresponding to the simulation model is determined according to the model type, and the JSON file is subjected to parameter configuration according to the scene requirements and functional requirements of the simulation model to obtain the JSON file with the parameter configuration completed. After the JSON file with the parameter configuration completed is subjected to mutation, compilation and other processing, a model instance of a corresponding simulation model can be generated, that is, a simulation model in a final model file corresponding to the model instance can be obtained, and the simulation model in the final model file can include at least one of the following:
an analog input model, an analog output model, a digital input model, a digital output model, a PWM input model, a PWM output model, a CAN model, a LIN model, a timer model, a presenter model, a sensor model, a BSU model, a BMS model, and the like.
It can be seen that the simulation model may be an environmental channel model, which may be a Simulink model, a generic model, or other custom model.
After a specific simulation model is generated, when port connection between the simulation models is performed or when connection between ports of the simulation models themselves is performed, a target simulation model for performing port connection is determined as necessary. After the target simulation model is determined, a final model file corresponding to the target simulation model is acquired from a database or a disk of the HIL system through a preset incidence relation, or the final model file corresponding to the target simulation model is acquired from the database or the disk connected with the HIL system. The final model file may record information corresponding to the target simulation model, including model characteristics, data port, port description information, and the like. Furthermore, the information such as the port description information may also be derived from a model description file describing the simulation model, and further, the information described by the model description file at least includes the data port and the port description information, and may also include model characteristics and the like.
Optionally, in some embodiments, step 101 includes:
101a: obtaining a model description file of the target simulation model, compiling the model description file to generate a final model file corresponding to a model instance of the target simulation model,
101b: importing the final model file into a connection tool for file reading;
101c: and displaying the data port and the frame tool corresponding to the data port on a display interface of the connection tool based on the file reading result.
101a may be executed at any time, for example, a final model file may be generated in advance for each simulation model, where the final model file of the target simulation model is naturally included, and then the final model file may be generated by processing such as compiling before the target simulation model is determined, and then the final model file of the target simulation model is imported into the connection tool after the target simulation model is determined; in some examples, the final model file may be generated after determining which simulation model and which simulation model the target simulation model is.
The execution of 101b may be performed at any time after 101a, for example, after generating the final model file, the final model file may be imported into the connection tool for reading, but only when the target simulation model is determined and the connection relationship needs to be established, the execution of 101c is performed in response to the operation of the user, and the corresponding data port and frame are displayed.
Because the model description file has predefined and recorded the relevant information of the data port of the target simulation model, after compiling the model description file to obtain the corresponding final model file, reading the file of the final model file through the connection tool, and generating the corresponding frame, wherein the frame can display the included data port and the port name of each data port and/or the display name of the data port on the display interface of the connection tool, which is also recorded in the result of reading the file.
As shown in fig. 2, the frame in the embodiment of the present application is used to describe the setting manner of the data ports included in the model description file and the final model file, and the setting manner includes the port direction, the position of the port relative to the frame, the port number of the data ports, the port function, and the like. These can also be understood as the result of a file read.
It should be noted that the schematic structural diagram of the frame shown in fig. 2 is only an example provided in the embodiment of the present application, and the structure of the frame is not limited to the structure shown in fig. 2. In other embodiments, the structure of the frame may be altered.
Optionally, the connection tool is a connection setter, and is a tool for connecting data ports on the framework corresponding to the target simulation model. After the final model file is imported into the connection tool, the corresponding frame tool can be determined through reading the file, and the frame tool is displayed on the display interface, so that port connection is realized through operation on the display interface.
If the number of the target simulation models for port connection is one, importing the final model file corresponding to the target simulation model into the connection tool, and displaying a frame corresponding to the imported final model file on a display interface of the connection tool. The port connection is realized by the connection operation of the data port of the frame on the display interface.
If the number of the target simulation models for port connection is multiple, the final model file corresponding to each target simulation model is imported into the connection tool, and the frame corresponding to each final model file is displayed on the display interface of the connection tool. The connection of the ports is realized through the connection operation of the data ports of the frames or between the frames on the display interface, and the connection between the target simulation models is realized.
102. And determining target data ports in the data ports, and acquiring port description information of each target data port.
Data ports include input ports, output ports, and other types of functional data ports. In the embodiment of the present application, the port connection between the output port and the input port is mainly based on, and the target data port at least includes one target output port and at least one target input port, and the port connection between the target data ports is performed by using the target output port to point to the target input port.
Optionally, the included data port may be known through the structure of the frame, and the port description information corresponding to the data port may be displayed by clicking the data port on the frame.
For example, a frame displayed on the display interface includes an input port and an output port, and by clicking the position of the input port on the frame, the position on the display interface corresponding to the input port displays the port description information of the input port in a small window manner.
For example, a frame displayed on the display interface includes an input port and an output port, and by clicking the position of the output port on the frame, the display interface is switched to a corresponding interface displaying the port description information, and the port description information of the input port is displayed on the interface.
After the frame tool is displayed on the display interface of the connection tool, the contained data port can be known through the structure of the frame tool. However, when performing port connection, not all data ports on the frame need to be port-connected, but a data port that needs to be port-connected is determined from the data ports as a target data port according to a scene creation requirement and a port function of the data port, and the target data port may be port-connected.
And if the data ports of the frame are determined to be only needed to be subjected to port connection according to the scene creation requirement and the port functions of the data ports, taking the data ports determined on the frame as target data ports to be subjected to port connection. And if the situation that all the data ports of the frame are subjected to port connection is determined according to the scene creation requirement and the port function of each data port, taking all the data ports on the frame as target data ports to perform port connection.
Optionally, in an embodiment of the present application, the port description information includes a port name, a byte order, an item number, a display name on a display interface, a port type, a queue attribute, a structure attribute, a port direction, path information, and the like.
As shown in table 1 below, table 1 below is an example of port description information:
port name AOUT[0]
Byte order LSBfirst
Number of items 1
Display name AOUT[0]
Port type Double
Whether to queue or not False
Whether structure is False
Direction of port Input
Route(s) InputPort/AOUT[0]
TABLE 1
The byte order describes whether the sequence during storage and the sequence during input (output) are first-come first or last-come first, the item number describes the set number of the target data port in the corresponding frame, whether the queue describes whether the target data port has a queue attribute or not, whether the structure describes whether the target data port has a structure attribute or not, and the port type describes the type of the target data port. It should be noted that in other embodiments, the port description information may be set separately.
Optionally, the port type of the target data port (i.e., the data type of the data transmitted by the target data port) may include an Int type, a Uint type, a Float type, a Double type, a Same struct type, a Diff struct type, and so on.
103. And determining the connection relation between the target data ports according to the port description information and a preset port connection rule so as to transmit signals based on the connection relation when the target simulation model works.
After the connection relation between the target data ports of the target simulation model is determined, the target data ports with the connection relation are subjected to port connection, namely the target data ports of the target simulation model are subjected to port connection, or the target data ports of the target simulation model are subjected to port connection with the target data ports of other target simulation models.
For example, it is determined that one target simulation model requiring port connection is used, and it is determined that the target simulation model includes two target data ports, where the two target data ports are a target output port and a target input port, respectively, and then the target output port and the target input port are subjected to port connection to implement data transmission.
For example, it is determined that the target simulation model requiring port connection includes a first target simulation model and a second target simulation model, a target data port of the first target simulation model is determined to be a first target data port, a target data port of the second target simulation model is determined to be a second target data port, the first target data port is a target output port, and the second target data port is a target input port. The target output port and the target input port are subjected to port connection to realize data transmission and realize connection between the simulation model and the simulation model.
In the embodiment of the application, the port connection rule is preset, and when the port connection is performed, the port connection rule is combined to implement the port connection.
A port connection rule, which is understood to be a relationship between a result of defining whether or not a connection is allowed and/or recommended between ports and port description information; furthermore, any rule based on the port description information and based on whether the connection is allowed and/or recommended among the ports can be used as an implementation mode of the port connection rule;
port description information, which may be understood as any information describing a corresponding port; for example, may include information describing or embodying at least one of:
the data type of the data transmitted by the corresponding data port;
the data transmission direction of the corresponding data port;
whether the corresponding data port has a queue attribute (or can be understood as a queue identification);
whether the corresponding data port has a structural attribute; and the specific content of the structural attributes;
the structural attributes are used for characterizing: the data that can be transmitted by the corresponding target data port includes multiple sets of data that are transmitted in a specified order, each set of data having a corresponding data type.
As shown in table 2 below, table 2 below is a partial example of a port connection rule:
Figure BDA0004072372790000091
TABLE 2
As shown in table 2, defined in table 2 are collocation rules for different port types. Wherein "√" means connectable, as can be understood to allow connection, "! "indicates connectable but generates a warning, which is understood not to recommend connection, and" x "indicates not connectable, which is understood not to allow connection.
Optionally, in some embodiments, step 103 includes: and responding to the connection operation of the target data port on the display interface, forming the connection relation, and determining that the connection relation and the port description information meet the port connection rule.
The target data port having the connection relationship may be a connection between the data port and the data port of the frame corresponding to one target simulation model, or a connection between data ports of frames corresponding to a plurality of target simulation models.
As shown in fig. 3, illustrated in fig. 3 is a connection between target data ports between two chassis to show the connection of the two chassis.
For example, the target simulation model to be subjected to port connection includes a first target simulation model and a second target simulation model, and it is determined that a connection relationship exists between a first target data port of the first target simulation model and a second target data port of the second target simulation model, and the first target data port is a target output port and the second target data port is a target input port. After the frames corresponding to the two target simulation models are displayed on a display interface of the connection tool, the first target data port and the second target data port are connected in a connection operation mode on the display interface, and port connection between the target output port and the target input port is achieved.
Due to the limitation of the preset port connection rule, the operation results of correct connection, incapability of connecting, line connection warning and the like can occur after the connection operation is performed. If the operation result is warning line connection, corresponding prompt information is displayed on a display interface of the connection tool, and the content of the prompt information can be 'warning line connection and please check'.
Setting a display mode aiming at an operation result of the connection operation, for example, when the connection is correct, the connection line is displayed on a display interface, but prompt information cannot be displayed; when the warning line is connected, the display interface displays the connecting line, but can display prompt information; if the connection cannot be achieved, the display interface can automatically clear the invalid connection and display corresponding prompt information.
Under the condition that the warning line is connected and cannot be connected, besides displaying corresponding prompt information, automatic analysis can be performed according to corresponding port description information and port connection rules, and an analysis result is displayed on a display interface for a connecting person to refer.
Optionally, in some embodiments, step 103 includes: and according to the port description information, determining the data type and the data transmission direction of the data transmitted by the target data port, and according to the port connection rule, determining that the data types of the target data ports connected in the connection relation are the same and the data transmission directions are corresponding.
This process may be understood as an implementation manner of "determining that the connection relationship and the port description information satisfy the port connection rule", that is, "the data types are the same, and the data transmission direction corresponds to" being an essential condition or a necessary condition that the connection relationship and the port description information satisfy the port connection rule ".
In other embodiments, the process may also be understood as an implementation manner of automatically determining the connection relationship in step 103.
Wherein, the data transmission direction correspondence can be understood as: one of the two destination data ports connected is an input port and the other is an output port.
As shown in FIG. 3, FIG. 3 shows the structure of two frames, the frame on the left side is set as the first frame, the frame on the right side is set as the second frame, the first target data port on the first frame is AIN [2], and the second target data port on the second frame is AOUT [2]. When the first target data port and the second target data port have a connection relationship, the port direction of the first target data port in the drawing is the right side, and the port direction of the second target data port is the left side, then the port directions of the first target data port and the second target data port are corresponding, and the port types of the first target data port and the second target data port are the same and are both input and output ports.
Optionally, after determining the port type and the port direction, the port connection is performed in combination with the port connection rule. For example, if the first target data port AIN [2] shown in fig. 3 is an output port of Int8 and the second target data port AOUT [2] is an input port of Int16, the first target data port and the second target data port may be wired, and after the wiring operation is performed, the display is as shown in fig. 3, and the two target data ports in fig. 3 are connections from the output port to the input port.
Optionally, in some embodiments, step 103 includes: and determining whether the target data port has the queue attribute according to the port description information, and determining that the target data port which does not have the queue attribute and serves as the input port in the connection relation is connected with only one target data port according to the port connection rule.
This process may be understood as an implementation manner of "determining that the connection relationship and the port description information satisfy the port connection rule", that is, "a target data port having no queue attribute and serving as an input port is connected to only one target data port" is an essential condition or a necessary condition that "the connection relationship and the port description information satisfy the port connection rule".
In other embodiments, the process may also be understood as an implementation manner of automatically determining the connection relationship in step 103.
Meanwhile, according to the port connection rule, the target data port which has queue attribute and is used as an input port in the connection relation can be connected with one target data port or a plurality of target data ports; in addition, generally speaking, an input port may be selectively configured to have queue attributes.
In some examples, the output port may not be configured, for example, a target data port as the output port may be connected to both one target data port and a plurality of target data ports. In other examples, the output port may also be selectively configured to have queue attributes,
the queue attribute may also be understood as a queue identifier for identifying whether a corresponding port allows to connect multiple target data ports, and further, may also be understood as: in the corresponding simulation model, whether a mechanism is designed is that: a mechanism for sequentially processing data input (or output) for different connected data ports based on the queue;
in some embodiments, the queue attribute may also be understood as a port connection mode for describing a data port, and after the target data port is determined, whether the target data port has the queue attribute may be known through port description information of the target data port. If so, performing port connection according to the queue attribute and the port connection rule. If not, the target data port determines that the port connection can be carried out in a one-to-one port connection mode.
For example, the target simulation model to be ported includes a first target simulation model including a first target data port, a second target simulation model including a second target data port, and a third target simulation model including a third target data port. The first target data port, the second target data port and the third target data port have a connection relation, wherein the first target data port is an output port, and the second target data port and the third target data port are input ports. If the first target data port has the queue attribute, the port connection mode corresponding to the queue attribute is one-to-many connection. Then, when port connection is performed according to the connection relationship, the first target data port is respectively connected with the second target data port and the third target data port.
For example, a target simulation model to be ported includes a first target simulation model including a first target data port and a second target simulation model including a second target data port. The first target data port and the second target data port have a connection relation, wherein the first target data port is an output port, and the second target data port is an input port. If the first target data port does not have the queue attribute, the port connection mode of the first target data port is one-to-one connection. Then, when port connection is performed according to the connection relationship, the first target data port and the second target data port are connected.
Optionally, in some embodiments, step 103 includes: and determining whether the target data port has the structural attribute and the attribute information of the structural attribute of the target data port according to the port description information, and determining that the structural attributes of the target data ports with the structural attribute connected in the connection relationship are the same according to a preset port connection rule.
This process may be understood as an implementation manner of "determining that the connection relationship and the port description information satisfy the port connection rule", that is, "the structural attribute of the target data port having the structural attribute connected in the connection relationship is the same" is an essential condition or a necessary condition that the connection relationship and the port description information satisfy the port connection rule ".
In other embodiments, the process may also be understood as an implementation manner of automatically determining the connection relationship in step 103. For example, after two simulation models needing to be connected are determined, data ports with the same structural attributes can be automatically connected together;
wherein the attribute information of the structural attribute is used for representing: the data that can be transmitted by the corresponding target data port includes multiple groups of data transmitted in a designated sequence, each group of data has a corresponding data type, and further, the data port with structural attributes is generally complex, and multiple groups of data of different data types need to be transmitted. In other words, for two data ports with completely identical attribute information of the structure attribute, the way of processing and writing data when the corresponding simulation model outputs data corresponds to the way of extracting and analyzing data when the corresponding simulation model receives data, that is: for any group of data, the simulation model writes and extracts the group of data in the same data bit, and performs the processing before the writing and the analysis after the extraction in the same data type processing mode.
The configuration attributes may also be understood to describe whether the corresponding target data port has a configuration. With respect to the definition of structure, it is understood that the structure comprises a plurality of members (i.e., each set of data for a given sequential transmission may be considered a member), each member having a corresponding data type. For example, one structure includes a group of Int8 data types of data, a group of Uint8 data types of data, and a group of Uint16 data types of data, and further, three groups of data need to be transmitted, and then the structure includes three members.
When the connection relationship between the target data ports with the structural attributes is determined, the target data ports with the connection relationship have the same structural attributes, and then the port connection can be carried out. The definition of the same structure attribute is that the name of the structure to which the target data port to be connected belongs, the number of ports of the structure to which the target data port to be connected belongs, the type of the ports of the structure to which the target data port to be connected belongs, and the sequence of the ports of the structure to which the target data port to be connected belongs are all the same.
Multiple types of structures can be predefined, and corresponding names are set for each type, so that when determining whether the structure attributes of the target data ports needing to be connected are the same, the structure names can be determined by judging the structure attributes.
In one embodiment, after two target simulation models to be connected are determined, if it is assumed that the two target simulation models are a fourth target simulation model and a fifth target simulation model, the target data port may also be determined by the following steps:
acquiring one or more historical connection records of a simulation model of a fourth target simulation model (namely a first simulation model) and a simulation model of a fifth target simulation model (namely a second simulation model); the historical connection record represents a connection relation which occurs in the past in a data port between the first type simulation model and the second type simulation model; for example, the first type of simulation model has three input ports, i.e., input ports x, y and z, the second type of simulation model has five output ports, i.e., output ports a, b, c, d and e, in a past historical connection record, x is connected with a, y is connected with b and z is connected with c, in another past historical connection record, x is connected with a, y is connected with c and z is connected with e, and in another past historical connection record, x is connected with a and the others are not connected;
if the number of the historical connection records is multiple, the occurrence frequency of each historical connection record can be counted; forming a recommended connecting line in the interface based on the times; furthermore, the final connection line may be determined in response to the user's operation on the recommended connection line, that is, the connection operation referred to above may be the user's operation on the recommended connection line.
In one example, a connection mode of a historical connection record with the highest frequency can be used as the recommended connection; furthermore, a connecting line can be formed between the frames of the two simulation models in the interface by a virtual line or/and a colored line, the connecting line is a recommended connecting line, and a user can click any part of the recommended connecting line to indicate that the recommended connecting line is agreed to be adopted as a final connecting line;
in another example, a connection mode of a plurality of historical connection records (for example, three) with the highest times can be adopted as three recommended connections; furthermore, according to the order of the times, a virtual line or/and a colored line can be formed between the frames of the two simulation models in the interface in sequence, and then the user can indicate that the recommended line is used as the final line through operations such as selection of an option frame.
If the number of the historical connection records is one, the connection mode can be directly selected as the recommended connection.
Through the mode, the connecting experience of the past connecting relation can be used for reference, the connecting efficiency is improved, and meanwhile, mistakes and omissions of engineers with shallow experiences during connection are avoided or reduced.
In a further example, each historical connection record may further be configured with a mapped scenario identifier for identifying characteristics of a test scenario, such as a scenario for testing a chassis domain controller, a scenario for testing a smart driving domain controller, and the like, where the characteristics of the scenario are not limited to the domain-based differentiation, and may further include, for example, a manufacturer, a use, and the like of the tested controller.
Furthermore, in the process of acquiring one or more historical connection records of a simulation model of the fourth target simulation model (i.e., the first-type simulation model) and a simulation model of the fifth target simulation model (i.e., the second-type simulation model), only the historical connection record of which the scene identifier is completely or partially the same as the currently tested scene may be acquired.
Furthermore, the connection records with strong correlation can be applied to the test, and the connection recommendation is guaranteed to be beneficial to a certain extent.
The model processing method of the embodiment of the application comprises the following steps: determining a target simulation model needing port connection and a data port available for connection in the target simulation model in a plurality of simulation models of the HIL system; determining target data ports in the data ports, and acquiring port description information of each target data port; and determining the connection relation between the target data ports according to the port description information and a preset port connection rule so as to transmit signals based on the connection relation when the target simulation model works. Therefore, the relation between the models is established in a mode of determining the connection relation and carrying out port connection according to the connection relation without writing glue codes, the coupling is low, modularization is easy to realize, various hardware is compatible and adaptive, and the development efficiency is effectively improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a model processing apparatus 200 according to an embodiment of the present disclosure, including the following modules:
a first determining module 201 for determining the simulation model of the HIL system And determining a target simulation model needing port connection and data ports available for connection in the target simulation model.
The obtaining module 202 is configured to determine a target data port in the data ports, and obtain port description information of each target data port.
The second determining module 203 is configured to determine a connection relationship between the target data ports according to the port description information and a preset port connection rule, so that when the target simulation model works, signal transmission is performed based on the connection relationship.
Optionally, the second determining module 202 may include the following sub-modules:
and the file compiling sub-module is used for acquiring the model description file of the target simulation model, compiling the model description file and generating a final model file corresponding to the model instance of the target simulation model.
And the reading submodule is used for importing the final model file into a connection tool for file reading.
And the display sub-module is used for displaying the data port and the frame tool corresponding to the data port on a display interface of the connecting tool based on the file reading result.
Accordingly, the second determining module 203 may include the following sub-modules:
and the relation forming submodule is used for responding to the connection operation of the target data port on the display interface, forming a connection relation and determining that the connection relation and the port description information meet the port connection rule.
The operation result of the connection operation comprises correct connection, incapability of connecting and warning line connection, and prompt information is displayed on the display interface when the operation result is warning line connection.
Optionally, the second determining module 203 may further include the following sub-modules:
and the first determining submodule is used for determining the data type and the data transmission direction of the data transmitted by the target data port according to the port description information.
And the second determining submodule is used for determining that the data types of the target data ports connected in the connection relation are the same and the data transmission directions are corresponding according to the port connection rule.
Optionally, the second determining module 203 may further include the following sub-modules:
and the third determining submodule is used for determining whether the target data port has the queue attribute or not according to the port description information.
And the fourth determining submodule is used for determining that the target data port which does not have the queue attribute and is used as the input port is only connected with one target data port in the connection relation according to the port connection rule.
Optionally, the second determining module 203 may further include the following sub-modules:
a fifth determining submodule, configured to determine whether the target data port has a structural attribute and attribute information of the structural attribute of the target data port according to the port description information; the attribute information of the structure attribute is used for representing: the data that can be transmitted by the corresponding target data port includes multiple sets of data transmitted in a specified order, each set of data having a corresponding data type.
And the sixth determining submodule is used for determining that the structural attributes of the target data ports which are connected in the connection relationship and have the structural attributes are the same according to a preset port connection rule.
Optionally, the model processing apparatus 200 according to the embodiment of the present application may further include other modules and sub-modules, which are not described herein again.
The model processing apparatus 200 according to the embodiment of the present application includes: a first determining module 201, configured to determine, in multiple simulation models of the HIL system, a target simulation model that needs to be connected to a port, and a data port that is available for connection in the target simulation model; an obtaining module 202, configured to determine a target data port in the data ports, and obtain port description information of each target data port; the second determining module 203 is configured to determine a connection relationship between the target data ports according to the port description information and a preset port connection rule, so that when the target simulation model works, signal transmission is performed based on the connection relationship. In the method, the association between the models is established in a mode of determining the connection relation and carrying out port connection according to the connection relation without writing glue codes, the problems of low coupling, easy realization of modularization and compatible adaptation to various hardware are solved, and the development efficiency is effectively improved.
Optionally, the model processing apparatus 200 includes a memory 120, one or more processors 180, and one or more applications, wherein the one or more applications are stored in the memory 120 and configured to be executed by the processors 180; the processor 180 may include a first determination module 201, an acquisition module 202, and a second determination module 203. For example, the structures and connection relationships of the above components may be as follows:
the memory 120 may be used to store applications and data. The memory 120 stores applications containing executable code. The application programs may constitute various functional modules. The processor 180 executes various functional applications and the respective steps of the model processing method by running the application program stored in the memory 120. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 access to the memory 120.
The processor 180 is a control center of the device, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the device and processes data by running or executing an application program stored in the memory 120 and calling data stored in the memory 120, thereby monitoring the entire device. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like.
Specifically, in this embodiment, the processor 180 loads the executable code corresponding to the processes of one or more application programs into the memory 120 according to the following instructions, and the processor 180 runs the application programs stored in the memory 120, thereby implementing various functions:
determining a target simulation model needing port connection and a data port available for connection in the target simulation model in a plurality of simulation models of an HIL system;
determining target data ports in the data ports, and acquiring port description information of each target data port;
and determining the connection relation between the target data ports according to the port description information and a preset port connection rule so as to transmit signals based on the connection relation when the target simulation model works.
In some embodiments, the determining, in the multiple simulation models of the HIL system, a target simulation model to which a port connection is required and a data port available in the target simulation model for connection include:
obtaining a model description file of the target simulation model, compiling the model description file, and generating a final model file corresponding to a model instance of the target simulation model;
importing the final model file into a connection tool for file reading;
and displaying the data port and a frame tool corresponding to the data port on a display interface of the connection tool based on the file reading result.
In some embodiments, the determining a connection relationship between the target data ports according to the port description information and a preset port connection rule includes:
and responding to the connection operation of the target data port on the display interface, forming the connection relation, and determining that the connection relation and the port description information meet the port connection rule.
In some embodiments, the operation result of the connection operation includes that the connection is correct, and the connection cannot be performed with the warning line, wherein when the operation result is that the warning line is connected, a prompt message is displayed on the display interface.
In some embodiments, the determining a connection relationship between the target data ports according to the port description information and a preset port connection rule includes:
determining the data type and the data transmission direction of the data transmitted by the target data port according to the port description information;
and according to the port connection rule, determining that the data types of the target data ports connected in the connection relation are the same, and the data transmission directions are corresponding.
In some embodiments, the determining a connection relationship between the target data ports according to the port description information and a preset port connection rule includes:
determining whether the target data port has a queue attribute according to the port description information;
and according to the port connection rule, determining that the target data port which does not have the queue attribute and is used as the input port in the connection relation is only connected with one target data port.
In some embodiments, the determining a connection relationship between the target data ports according to the port description information and a preset port connection rule includes:
determining whether the target data port has a structural attribute and attribute information of the structural attribute of the target data port according to the port description information; the attribute information of the structural attribute is used for representing that: the data which can be transmitted by the corresponding target data port comprises a plurality of groups of data which are transmitted in a specified sequence, and each group of data has a corresponding data type;
and according to a preset port connection rule, determining that the structural attributes of the target data ports with the structural attributes connected in the connection relation are the same.
The embodiment of the application further provides the terminal equipment. The terminal equipment can be a computer, a server, a smart phone, a computer, a tablet computer and the like.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application, where the terminal device 1200 may be used to implement the model processing method provided in the foregoing embodiment. The terminal device 1200 may be a computer, a smart phone, or a tablet computer.
As shown in fig. 5, the terminal device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown in the figure), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown in the figure), and a power supply 190. Those skilled in the art will appreciate that the terminal device 1200 configuration shown in fig. 5 does not constitute a limitation of terminal device 1200, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components. Wherein:
the RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the model processing method in the above-described embodiments, and the processor 180 executes various functional applications and steps of the model processing method by operating the software programs and modules stored in the memory 120. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include memory located remotely from the processor 180, which may be connected to the terminal device 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch-sensitive display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using any suitable object or attachment such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. Alternatively, the touch-sensitive surface 131 may comprise two parts, a touch detection device and a touch controller. The touch detection device detects a touch direction of a user, detects a signal brought by touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphic user interfaces of the terminal apparatus 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 5 touch sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments touch sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the terminal device 1200 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the terminal device 1200, detailed descriptions thereof are omitted.
The audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between the user and the terminal device 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 1200.
The terminal device 1200, which may assist the user in sending and receiving e-mails, browsing web pages, accessing streaming media, etc., through the transmission module 170 (e.g., wi-Fi module), provides the user with wireless broadband internet access. Although fig. 5 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the terminal device 1200, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal device 1200, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the terminal device 1200 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
Terminal device 1200 also includes a power supply 190 for powering the various components, which in some embodiments may be logically coupled to processor 180 via a power management system to manage power discharge and power consumption via the power management system. The power supply 190 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal device 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit 140 of the terminal device 1200 is a touch screen display, the terminal device 1200 further includes a memory 120, and one or more programs, wherein the one or more programs are stored in the memory 120, and the one or more programs configured to be executed by the one or more processors 180 include steps for:
determining a target simulation model needing port connection and a data port available for connection in the target simulation model in a plurality of simulation models of an HIL system;
determining target data ports in the data ports, and acquiring port description information of each target data port;
and determining the connection relation between the target data ports according to the port description information and a preset port connection rule so as to transmit signals based on the connection relation when the target simulation model works.
In some embodiments, the determining, in the multiple simulation models of the HIL system, a target simulation model to which a port connection is required and a data port available in the target simulation model for connection include:
obtaining a model description file of the target simulation model, compiling the model description file, and generating a final model file corresponding to a model instance of the target simulation model;
importing the final model file into a connection tool for file reading;
and displaying the data port and a frame tool corresponding to the data port on a display interface of the connection tool based on the file reading result.
In some embodiments, the determining a connection relationship between the target data ports according to the port description information and a preset port connection rule includes:
and responding to the connection operation of the target data port on the display interface, forming the connection relation, and determining that the connection relation and the port description information meet the port connection rule.
In some embodiments, the operation result of the connection operation includes correct connection, connection failure, and connection of a warning line, where when the operation result is that the warning line is connected, a prompt message is displayed on the display interface.
In some embodiments, the determining a connection relationship between the target data ports according to the port description information and a preset port connection rule includes:
determining the data type and the data transmission direction of the data transmitted by the target data port according to the port description information;
and according to the port connection rule, determining that the data types of the target data ports connected in the connection relation are the same, and the data transmission directions are corresponding.
In some embodiments, the determining a connection relationship between the target data ports according to the port description information and a preset port connection rule includes:
determining whether the target data port has a queue attribute according to the port description information;
and according to the port connection rule, determining that the target data port which does not have the queue attribute and is used as the input port in the connection relation is only connected with one target data port.
In some embodiments, the determining a connection relationship between the target data ports according to the port description information and a preset port connection rule includes:
determining whether the target data port has a structural attribute and attribute information of the structural attribute of the target data port according to the port description information; the attribute information of the structural attribute is used for representing: the data which can be transmitted by the corresponding target data port comprises a plurality of groups of data which are transmitted in a specified sequence, and each group of data has a corresponding data type;
and determining that the structural attributes of the target data ports with the structural attributes connected in the connection relation are the same according to a preset port connection rule.
An embodiment of the present application further provides a storage medium, where a computer program is stored, and when the computer program runs on a computer, the computer executes the model processing method according to any one of the above embodiments.
It should be noted that, for the model processing method described in this application, it can be understood by those skilled in the art that all or part of the process of implementing the model processing method described in this application may be implemented by controlling related hardware through a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of a terminal device, and executed by at least one processor in the terminal device, and during the execution process, the process of implementing the embodiment of the model processing method may be included. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the model processing apparatus according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The model processing method, apparatus, terminal device and storage medium provided in the embodiments of the present application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method of model processing, the method comprising:
determining a target simulation model needing port connection and a data port available for connection in the target simulation model in a plurality of simulation models of an HIL system;
determining target data ports in the data ports, and acquiring port description information of each target data port;
and determining the connection relation between the target data ports according to the port description information and a preset port connection rule so as to transmit signals based on the connection relation when the target simulation model works.
2. The method of claim 1, wherein the determining, among the plurality of simulation models of the HIL system, a target simulation model to which a port connection is required and a data port available for connection in the target simulation model includes:
obtaining a model description file of the target simulation model, compiling the model description file, and generating a final model file corresponding to a model instance of the target simulation model;
importing the final model file into a connection tool for file reading;
and displaying the data port and a frame tool corresponding to the data port on a display interface of the connection tool based on the file reading result.
3. The model processing method according to claim 1, wherein the determining the connection relationship between the target data ports according to the port description information and a preset port connection rule comprises:
and responding to the connection operation of the target data port on the display interface, forming the connection relation, and determining that the connection relation and the port description information meet the port connection rule.
4. The model processing method of claim 3, wherein the operation result of the connection operation comprises correct connection, connection failure and connection of a warning line, and when the operation result is connection of the warning line, a prompt message is displayed on the display interface.
5. The model processing method according to claim 1, wherein the determining the connection relationship between the target data ports according to the port description information and a preset port connection rule comprises:
determining the data type and the data transmission direction of the data transmitted by the target data port according to the port description information;
and according to the port connection rule, determining that the data types of the target data ports connected in the connection relation are the same, and the data transmission directions are corresponding.
6. The model processing method according to claim 1, wherein the determining the connection relationship between the target data ports according to the port description information and a preset port connection rule comprises:
determining whether the target data port has a queue attribute according to the port description information;
and according to the port connection rule, determining that the target data port which does not have the queue attribute and is used as the input port in the connection relation is only connected with one target data port.
7. The model processing method according to claim 1, wherein the determining the connection relationship between the target data ports according to the port description information and a preset port connection rule comprises:
determining whether the target data port has a structural attribute and attribute information of the structural attribute of the target data port according to the port description information; the attribute information of the structural attribute is used for representing: the data which can be transmitted by the corresponding target data port comprises a plurality of groups of data which are transmitted in a specified sequence, and each group of data has a corresponding data type;
and according to a preset port connection rule, determining that the structural attributes of the target data ports with the structural attributes connected in the connection relation are the same.
8. A model processing apparatus, characterized in that the apparatus comprises:
a first determining module for determining the simulation model of HIL system Determining a target simulation model needing port connection and a data port available for connection in the target simulation model;
the acquisition module is used for determining target data ports in the data ports and acquiring port description information of each target data port;
and the second determining module is used for determining the connection relation between the target data ports according to the port description information and a preset port connection rule so as to transmit signals based on the connection relation when the target simulation model works.
9. A terminal device comprising a memory for storing instructions and data and a processor for performing the model processing method of any one of claims 1-7.
10. A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the model processing method of any one of claims 1-7.
CN202310097835.2A 2023-01-20 2023-01-20 Model processing method, device, terminal equipment and storage medium Active CN115951973B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202410217684.4A CN117971397B (en) 2023-01-20 2023-01-20 Model processing method, device, terminal equipment and storage medium
CN202310097835.2A CN115951973B (en) 2023-01-20 2023-01-20 Model processing method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310097835.2A CN115951973B (en) 2023-01-20 2023-01-20 Model processing method, device, terminal equipment and storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202410217684.4A Division CN117971397B (en) 2023-01-20 2023-01-20 Model processing method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115951973A true CN115951973A (en) 2023-04-11
CN115951973B CN115951973B (en) 2024-03-19

Family

ID=87289624

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310097835.2A Active CN115951973B (en) 2023-01-20 2023-01-20 Model processing method, device, terminal equipment and storage medium
CN202410217684.4A Active CN117971397B (en) 2023-01-20 2023-01-20 Model processing method, device, terminal equipment and storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202410217684.4A Active CN117971397B (en) 2023-01-20 2023-01-20 Model processing method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (2) CN115951973B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117608590A (en) * 2024-01-24 2024-02-27 长沙科梁科技有限公司 Data group package unpacking method and device and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289210A (en) * 2010-05-24 2011-12-21 通用汽车环球科技运作有限责任公司 Vehicle simulation system with software-in-the-loop bypass control
CN110543652A (en) * 2018-05-29 2019-12-06 帝斯贝思数字信号处理和控制工程有限公司 Method for determining physical connection topology of real-time tester
CN113589787A (en) * 2021-07-22 2021-11-02 上汽通用五菱汽车股份有限公司 Hardware-in-loop test method, test device, test system and readable storage medium
CN115562065A (en) * 2022-09-16 2023-01-03 中国电力科学研究院有限公司 Real-time interface device, interaction method and medium of multi-controller hardware-in-the-loop
CN115586732A (en) * 2022-10-12 2023-01-10 中国航发四川燃气涡轮研究院 Joint simulation device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111077798A (en) * 2019-12-09 2020-04-28 武汉光庭信息技术股份有限公司 Simulation scene real-time control method and device
WO2022120717A1 (en) * 2020-12-10 2022-06-16 华为技术有限公司 Simulation task scheduling method, execution method, simulation implementation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289210A (en) * 2010-05-24 2011-12-21 通用汽车环球科技运作有限责任公司 Vehicle simulation system with software-in-the-loop bypass control
CN110543652A (en) * 2018-05-29 2019-12-06 帝斯贝思数字信号处理和控制工程有限公司 Method for determining physical connection topology of real-time tester
CN113589787A (en) * 2021-07-22 2021-11-02 上汽通用五菱汽车股份有限公司 Hardware-in-loop test method, test device, test system and readable storage medium
CN115562065A (en) * 2022-09-16 2023-01-03 中国电力科学研究院有限公司 Real-time interface device, interaction method and medium of multi-controller hardware-in-the-loop
CN115586732A (en) * 2022-10-12 2023-01-10 中国航发四川燃气涡轮研究院 Joint simulation device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117608590A (en) * 2024-01-24 2024-02-27 长沙科梁科技有限公司 Data group package unpacking method and device and computer equipment
CN117608590B (en) * 2024-01-24 2024-04-09 长沙科梁科技有限公司 Data group package unpacking method and device and computer equipment

Also Published As

Publication number Publication date
CN115951973B (en) 2024-03-19
CN117971397B (en) 2024-09-06
CN117971397A (en) 2024-05-03

Similar Documents

Publication Publication Date Title
US10284705B2 (en) Method and apparatus for controlling smart device, and computer storage medium
CN106341300B (en) Method, device and system for task release
CN105867751B (en) Operation information processing method and device
CN109947650B (en) Script step processing method, device and system
CN111178012A (en) Form rendering method, device and equipment and storage medium
CN108958629B (en) Split screen quitting method and device, storage medium and electronic equipment
CN109993234B (en) Unmanned driving training data classification method and device and electronic equipment
CN109739758B (en) Test case conversion method and device
CN109451130B (en) Mobile terminal testing method and device, mobile terminal and storage medium
CN110908627A (en) Screen projection method and first electronic device
CN107403104A (en) A kind of apparatus and method for realizing tables of data inquiry limitation
CN108037885A (en) A kind of operation indicating method and mobile terminal
CN107766548A (en) Method for information display, device, mobile terminal and readable storage medium storing program for executing
CN117971397B (en) Model processing method, device, terminal equipment and storage medium
CN112415367A (en) Drive chip abnormality detection method and device, electronic equipment and readable storage medium
CN110069407B (en) Function test method and device for application program
CN109815349B (en) Information acquisition method and terminal equipment
CN110457631A (en) It jumps exception information and determines method and device
WO2016019695A1 (en) Voice interaction method and terminal
CN111310165B (en) Account switching or registering method and electronic equipment
CN109274814B (en) Message prompting method and device and terminal equipment
CN116112556A (en) Data processing method, device, medium and equipment
CN115328770A (en) Application program testing method and device, electronic equipment and storage medium
CN109783379B (en) Script execution exception determining method and device
CN111045588B (en) Information viewing method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant