CN116679686A - Method, device and medium for verifying vehicle control function - Google Patents
Method, device and medium for verifying vehicle control function Download PDFInfo
- Publication number
- CN116679686A CN116679686A CN202310872006.7A CN202310872006A CN116679686A CN 116679686 A CN116679686 A CN 116679686A CN 202310872006 A CN202310872006 A CN 202310872006A CN 116679686 A CN116679686 A CN 116679686A
- Authority
- CN
- China
- Prior art keywords
- simulation
- model
- control function
- vehicle control
- sub
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000004088 simulation Methods 0.000 claims abstract description 214
- 238000010586 diagram Methods 0.000 claims abstract description 101
- 238000012795 verification Methods 0.000 claims abstract description 83
- 230000006870 function Effects 0.000 claims description 105
- 238000004590 computer program Methods 0.000 claims description 13
- 238000011161 development Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 claims description 5
- 230000008859 change Effects 0.000 claims description 3
- 238000005538 encapsulation Methods 0.000 claims description 3
- 238000013507 mapping Methods 0.000 claims description 3
- 230000000737 periodic effect Effects 0.000 claims description 3
- 238000013461 design Methods 0.000 abstract description 12
- 230000005540 biological transmission Effects 0.000 abstract description 10
- 238000012545 processing Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 238000004378 air conditioning Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000013101 initial test Methods 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0218—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
- G05B23/0243—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults model based detection method, e.g. first-principles knowledge model
- G05B23/0245—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults model based detection method, e.g. first-principles knowledge model based on a qualitative model, e.g. rule based; if-then decisions
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application relates to the technical field of simulation verification, and discloses a method, a device and a medium for verifying a control function of a whole vehicle, wherein a simulation circuit diagram and a connection diagram of the whole vehicle are obtained; establishing an overall simulation model according to the simulation circuit diagram and the connection diagram; variable synchronization is carried out among all simulation sub-models in the integral simulation model; and running simulation logic of each simulation sub-model to verify the whole vehicle control function. Compared with the prior art, the simulation design of the subsystem is different, so that the transmission data types are different, and the verification of the whole vehicle control function cannot be realized.
Description
Technical Field
The application relates to the technical field of simulation verification, in particular to a method, a device and a medium for verifying a whole vehicle control function.
Background
Train design is a complex system engineering with its overall control functions carried by control circuits, train level controllers and subsystem/component controllers, often requiring simulation of the subsystem/component in order to verify the function of each subsystem/component.
However, because the types of related components of the train are various and the number of the related components is large, each subsystem/component usually adopts a method for respectively designing and verifying each subsystem/component, in the prior art, when the implementation of the whole vehicle control function is related, because the development of software in each subsystem controller is generally responsible for each supplier, the development tools and simulation tools used in the design development process are different, the transmission data are possibly mismatched, the connection cannot be realized, and the whole vehicle integration enterprises cannot realize the whole vehicle control function simulation.
Therefore, the verification of how to realize the whole vehicle control function is a problem to be solved by the person skilled in the art.
Disclosure of Invention
The application aims to provide a method, a device and a medium for verifying a whole vehicle control function, which are used for avoiding the problem of unmatched transmission data between subsystems/components in train simulation in the prior art and realizing the verification of the whole vehicle control function.
In order to solve the technical problems, the application provides a vehicle control function verification method, which comprises the following steps:
acquiring a simulation circuit diagram and a connection diagram of the whole vehicle; the establishment of the connection diagram comprises the following steps: building a corresponding simulation sub-model in a whole vehicle control function verification platform according to the simulation circuit diagram; input and output variables of the simulation sub-model which are connected in an associated mode; judging whether the variable types are consistent; if yes, generating a connecting line between simulation sub-models;
establishing an overall simulation model according to the simulation circuit diagram and the connection diagram;
variable synchronization is carried out among all simulation sub-models in the integral simulation model;
and running simulation logic of each simulation sub-model to verify the whole vehicle control function.
Preferably, the method further comprises:
and the whole vehicle control function verification is carried out by connecting the industrial personal computer and the switch with the real object.
Preferably, the method comprises the steps of,
the building of the corresponding simulation sub-model in the whole vehicle control function verification platform according to the simulation circuit diagram comprises the following steps:
selecting a required simulation sub-model in a model library according to the simulation circuit diagram and generating a simulation sub-model instance;
and setting the attribute of the simulation sub-model instance.
Preferably, the attribute of the simulation sub-model instance includes: general attributes, circuit device attributes, model attributes;
the general attributes at least comprise model types, instance names and synchronization periods;
the circuit equipment attribute is used for binding pin and variable mapping of each equipment in the simulation circuit diagram;
the model attribute is used for displaying corresponding attribute settings according to the model type.
Preferably, the simulation model in the model library is a model imported through an FMU or EXE file;
further, the model imported through the FMU or EXE file is: development is performed by a simulation tool or a model formed by encapsulation is customized based on a software development tool.
Preferably, the entity establishes data communication with the vehicle control function verification platform through TCP, UDP and OPC UA interface forms.
Preferably, after the step of establishing the overall simulation model according to the simulation circuit diagram and the connection diagram, the method further includes:
traversing the association relation of each simulation sub-model in the integral simulation model;
constructing a variable pool management module;
in the variable pool management module, periodic queries or variable subscriptions are selected according to each simulation sub-model type to issue notifications when variable types change.
In order to solve the technical problem, the application also provides a vehicle control function verification device, which comprises:
the acquisition module is used for acquiring a simulation circuit diagram and a connection diagram of the whole vehicle; the establishment of the connection diagram comprises the following steps: building a corresponding simulation sub-model in a whole vehicle control function verification platform according to the simulation circuit diagram; input and output variables of the simulation sub-model which are connected in an associated mode; judging whether the variable types are consistent; if yes, generating a connecting line between simulation sub-models;
the building module is used for building an overall simulation model according to the simulation circuit diagram and the connection diagram;
the synchronization module is used for performing variable synchronization among all simulation sub-models in the integral simulation model;
and the verification module is used for running the simulation logic of each simulation sub-model to perform the function verification of the whole vehicle control.
In order to solve the technical problem, the application also provides another vehicle control function verification device, which comprises a memory for storing a computer program;
and the processor is used for realizing the steps of the whole vehicle control function verification method when executing the computer program.
In order to solve the technical problem, the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the steps of the vehicle control function verification method when being executed by a processor.
According to the vehicle control function verification method provided by the application, the simulation circuit diagram and the connection diagram of the whole vehicle are obtained; the establishment of the connection diagram comprises the following steps: building a corresponding simulation sub-model in the whole vehicle control function verification platform according to the simulation circuit diagram; input and output variables of the simulation sub-model which are connected in an associated mode; judging whether the variable types are consistent; if yes, generating a connecting line between simulation sub-models; establishing an overall simulation model according to the simulation circuit diagram and the connection diagram; variable synchronization is carried out among all simulation sub-models in the integral simulation model; and running simulation logic of each simulation sub-model to verify the whole vehicle control function. Compared with the prior art, the simulation design of the subsystems is different, so that the transmission data types are different, and the verification of the whole vehicle control function cannot be realized. The technical scheme realizes the consistency of data among connected simulation models and the verification of the whole vehicle control function.
In addition, the vehicle control function verification device and the medium provided by the application correspond to the vehicle control function verification method, and have the same effects.
Drawings
For a clearer description of embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a flowchart of a method for verifying a whole vehicle control function according to an embodiment of the present application;
FIG. 2 is a diagram of a full virtual design verification platform frame with a vehicle control function according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a vehicle control function integration verification platform applied to a reconnection working condition according to an embodiment of the present application;
fig. 4 is a block diagram of a vehicle control function verification device according to an embodiment of the present application;
fig. 5 is a block diagram of another vehicle control function verification device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present application.
The core of the application is to provide a method, a device and a medium for verifying the whole vehicle control function so as to realize the verification of the whole vehicle control function.
In order to better understand the aspects of the present application, the present application will be described in further detail with reference to the accompanying drawings and detailed description.
Fig. 1 is a flowchart of a method for verifying a vehicle control function according to an embodiment of the present application, as shown in fig. 1, where the method includes:
s10: acquiring a simulation circuit diagram and a connection diagram of the whole vehicle; the establishment of the connection diagram comprises the following steps: building a corresponding simulation sub-model in the whole vehicle control function verification platform according to the simulation circuit diagram; input and output variables of the simulation sub-model which are connected in an associated mode; judging whether the variable types are consistent; if yes, generating a connecting line between simulation sub-models;
s11: establishing an overall simulation model according to the simulation circuit diagram and the connection diagram;
s12: variable synchronization is carried out among all simulation sub-models in the integral simulation model;
s13: and running simulation logic of each simulation sub-model to verify the whole vehicle control function.
Firstly, it should be noted that the technical solution provided by the present application is mainly aimed at the function verification of the whole vehicle, supports the simulation of single-group and reconnection group, is suitable for motor train sets, inter-city, urban rail and other vehicle types, and is mainly applied to whole vehicle integrated enterprises.
It can be understood that the verification of the whole vehicle control function is performed in a simulation mode, so that a simulation model needs to be established firstly before the verification of the whole vehicle control function, and the establishment of the simulation model needs to be performed according to the entity of the train. In this embodiment, first, a simulation circuit diagram and a connection diagram of the whole vehicle need to be acquired. The simulation circuit diagram is a circuit diagram of a whole vehicle subsystem/component, and the connection diagram refers to the connection relation of the subsystems/components.
When simulation is carried out, a corresponding simulation model is required to be built in a vehicle control function verification platform, specifically, a required simulation sub-model is selected in a model library according to a simulation circuit diagram, and a simulation sub-model example is generated, wherein the model library comprises models of all subsystems/components in a train, and the models can be existing models in other simulation software or models with custom design. After the simulation sub-model instance is generated, the attribute of the simulation sub-model instance needs to be set, wherein the attribute comprises a general attribute, a circuit equipment attribute and a model attribute; wherein the general attributes include model type, instance name, synchronization period, etc.; the circuit equipment attribute is used for binding the pin and variable mapping of each equipment in the simulation circuit diagram; the model attribute is used for displaying corresponding attribute settings according to the model type.
After the simulation sub-models are built, connection among the simulation sub-models is needed, and specifically, whether the variable types are consistent or not is judged according to input and output variables of the simulation sub-models which are connected in a connection mode through connection diagrams; if yes, generating a connecting line. After the connection of all simulation sub-models is completed, the establishment of the connection diagram is completed.
In specific implementation, a technician establishes an overall simulation model through a simulation circuit diagram and a connection diagram, variable synchronization is carried out among all simulation sub-models, and the whole vehicle control function verification is carried out by running simulation logic of all the simulation sub-models.
In a specific implementation, after the step of building the simulation model according to the simulation circuit diagram and the connection diagram, the method further comprises: traversing the association relation of each simulation sub-model in the integral simulation model; constructing a variable pool management module; in the variable pool management module, periodic queries or variable subscriptions are selected according to each simulation sub-model type to issue notifications when variable types change.
According to the whole vehicle control function verification method provided by the embodiment of the application, the simulation circuit diagram and the connection diagram of the whole vehicle are obtained; the establishment of the connection diagram comprises the following steps: building a corresponding simulation sub-model in the whole vehicle control function verification platform according to the simulation circuit diagram; input and output variables of the simulation sub-model which are connected in an associated mode; judging whether the variable types are consistent; if yes, generating a connecting line between simulation sub-models; establishing an overall simulation model according to the simulation circuit diagram and the connection diagram; variable synchronization is carried out among all simulation sub-models in the integral simulation model; and running simulation logic of each simulation sub-model to verify the whole vehicle control function. Compared with the prior art, the simulation design of the subsystems is different, so that the transmission data types are different, and the verification of the whole vehicle control function cannot be realized. The technical scheme realizes the consistency of data among connected simulation models and the verification of the whole vehicle control function.
Through the description of the embodiment, the verification of the whole train control function is realized in a full virtual simulation mode, and the scheme is relatively suitable for the initial stage of the train scheme design stage. On the basis of the above embodiment, the present embodiment further provides verification of the vehicle control function suitable for the end of the construction design stage. In this embodiment, further comprising:
and the whole vehicle control function verification is carried out by connecting the industrial personal computer and the switch with the real object.
It should be noted that, in this embodiment, the present application provides a method for verifying semi-physical simulation, where in this embodiment, the whole vehicle control function verification platform is further connected with a physical object through an industrial personal computer and an exchange. When a certain real object is connected, the simulation model corresponding to the real object in the whole vehicle control function verification platform is replaced correspondingly, the initial test case is not required to be modified, the verification of the whole vehicle control function can still be realized, and the technical scheme is adopted, and the semi-real object semi-simulation verification method is adopted, so that the application is still suitable for the verification of the whole vehicle control function at the end of the construction design stage. Fig. 2 is a diagram of a full virtual design verification platform frame for a vehicle control function, where the vehicle control function includes a plurality of subsystems, such as a traction system, a brake system, and the like, as shown in fig. 2, and simulation models of the subsystems or components are input to the vehicle control function verification platform through a compatible simulation model access module. Fig. 3 is a schematic diagram of a vehicle control function integrated verification platform applied to a reconnection working condition, where each simulation computer is connected with a physical object through a switch and an industrial personal computer.
In the above embodiment, the model library of the whole vehicle control function verification platform contains models of all subsystems/components, wherein the simulation model in the model library is a model imported through an FMU or EXE file; further, the model imported through the FMU or EXE file is: development is performed by a simulation tool or a model formed by encapsulation is customized based on a software development tool. Specifically, the subsystem/component simulation models of the traction system, the braking system, the air conditioning system and the like can be developed through simulation tools such as Simulink, AMEsim, dymola and the like, or the simulation models can be formed by custom packaging based on software development tools such as Multiprog, flexisafe and the like.
When the physical connection is performed, the physical can establish data communication with the vehicle control function verification platform through interface forms such as a transmission control protocol (Transmission Control Protocol, TCP), a user datagram protocol (User Datagram Protocol, UDP), an object linking and embedding unified architecture (Object Linking and Embedding unified architecture, OPC UA) and the like.
In the above embodiments, the present application further provides a corresponding embodiment of the vehicle control function verification device. It should be noted that the present application describes an embodiment of the device portion from two angles, one based on the angle of the functional module and the other based on the angle of the hardware.
Fig. 4 is a structural diagram of a vehicle control function verification device according to an embodiment of the present application, as shown in fig. 4, where the device includes:
the acquisition module 10 is used for acquiring a simulation circuit diagram and a connection diagram of the whole vehicle; the establishment of the connection diagram comprises the following steps: building a corresponding simulation sub-model in a whole vehicle control function verification platform according to the simulation circuit diagram; input and output variables of the simulation sub-model which are connected in an associated mode; judging whether the variable types are consistent; if yes, generating a connecting line between simulation sub-models;
the establishing module 11 is used for establishing an overall simulation model according to the simulation circuit diagram and the connection diagram;
a synchronization module 12, configured to perform variable synchronization between simulation sub-models in the overall simulation model;
and the verification module 13 is used for running the simulation logic of each simulation sub-model to perform the whole vehicle control function verification.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
The device for verifying the control function of the whole vehicle provided by the embodiment of the application is characterized by obtaining a simulation circuit diagram and a connection diagram of the whole vehicle; the establishment of the connection diagram comprises the following steps: building a corresponding simulation sub-model in the whole vehicle control function verification platform according to the simulation circuit diagram; input and output variables of the simulation sub-model which are connected in an associated mode; judging whether the variable types are consistent; if yes, generating a connecting line between simulation sub-models; establishing an overall simulation model according to the simulation circuit diagram and the connection diagram; variable synchronization is carried out among all simulation sub-models in the integral simulation model; and running simulation logic of each simulation sub-model to verify the whole vehicle control function. Compared with the prior art, the simulation design of the subsystems is different, so that the transmission data types are different, and the verification of the whole vehicle control function cannot be realized. The technical scheme realizes the consistency of data among connected simulation models and the verification of the whole vehicle control function.
Fig. 5 is a block diagram of another vehicle control function verification device according to an embodiment of the present application, as shown in fig. 5, where the device includes: a memory 20 for storing a computer program;
the processor 21 is configured to execute the computer program to implement the steps of the vehicle control function verification method according to the above embodiment.
The vehicle control function verification device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in hardware in at least one of a digital signal processor (Digital Signal Processor, DSP), a Field programmable gate array (Field-Programmable Gate Array, FPGA), a programmable logic array (Programmable Logic Array, PLA). The processor 21 may also comprise a main processor, which is a processor for processing data in an awake state, also called central processor (Central Processing Unit, CPU), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with an image processor (Graphics Processing Unit, GPU) for taking care of rendering and rendering of the content that the display screen is required to display. In some embodiments, the processor 21 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, where the computer program is loaded and executed by the processor 21 to implement the relevant steps of the vehicle control function verification method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. The operating system 202 may include Windows, unix, linux, among others. The data 203 may include, but is not limited to, input-output variables, and the like.
In some embodiments, the vehicle control function verification device may further include a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
It will be appreciated by those skilled in the art that the configuration shown in fig. 5 does not constitute a limitation on the overall vehicle control function verification device, and may include more or fewer components than shown.
The device for verifying the whole vehicle control function provided by the embodiment of the application comprises a memory and a processor, wherein the processor can realize the following method when executing a program stored in the memory: acquiring a simulation circuit diagram and a connection diagram of the whole vehicle; the establishment of the connection diagram comprises the following steps: building a corresponding simulation sub-model in the whole vehicle control function verification platform according to the simulation circuit diagram; input and output variables of the simulation sub-model which are connected in an associated mode; judging whether the variable types are consistent; if yes, generating a connecting line between simulation sub-models; establishing an overall simulation model according to the simulation circuit diagram and the connection diagram; variable synchronization is carried out among all simulation sub-models in the integral simulation model; and running simulation logic of each simulation sub-model to verify the whole vehicle control function.
Compared with the prior art, the verification device for the whole vehicle control function provided by the embodiment of the application has the advantages that the transmission data types are different and verification of the whole vehicle control function cannot be realized due to different simulation designs of subsystems. The technical scheme realizes the consistency of data among connected simulation models and the verification of the whole vehicle control function.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps as described in the method embodiments above.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium for performing all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The computer readable storage medium provided by the embodiment of the application is used for acquiring the simulation circuit diagram and the connection diagram of the whole vehicle; the establishment of the connection diagram comprises the following steps: building a corresponding simulation sub-model in the whole vehicle control function verification platform according to the simulation circuit diagram; input and output variables of the simulation sub-model which are connected in an associated mode; judging whether the variable types are consistent; if yes, generating a connecting line between simulation sub-models; establishing an overall simulation model according to the simulation circuit diagram and the connection diagram; variable synchronization is carried out among all simulation sub-models in the integral simulation model; and running simulation logic of each simulation sub-model to verify the whole vehicle control function. Compared with the prior art, the simulation design of the subsystems is different, so that the transmission data types are different, and the verification of the whole vehicle control function cannot be realized. The technical scheme realizes the consistency of data among connected simulation models and the verification of the whole vehicle control function.
The method, the device and the medium for verifying the whole vehicle control function provided by the application are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the application can be made without departing from the principles of the application and these modifications and adaptations are intended to be within the scope of the application as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Claims (10)
1. The method for verifying the vehicle control function is characterized by comprising the following steps of:
acquiring a simulation circuit diagram and a connection diagram of the whole vehicle; the establishment of the connection diagram comprises the following steps: building a corresponding simulation sub-model in a whole vehicle control function verification platform according to the simulation circuit diagram; input and output variables of the simulation sub-model which are connected in an associated mode; judging whether the variable types are consistent; if yes, generating a connecting line between simulation sub-models;
establishing an overall simulation model according to the simulation circuit diagram and the connection diagram;
variable synchronization is carried out among all simulation sub-models in the integral simulation model;
and running simulation logic of each simulation sub-model to verify the whole vehicle control function.
2. The vehicle control function verification method according to claim 1, characterized by further comprising:
and the whole vehicle control function verification is carried out by connecting the industrial personal computer and the switch with the real object.
3. The method for verifying the vehicle control function according to claim 1, wherein building the corresponding simulation sub-model in the vehicle control function verification platform according to the simulation circuit diagram comprises:
selecting a required simulation sub-model in a model library according to the simulation circuit diagram and generating a simulation sub-model instance;
and setting the attribute of the simulation sub-model instance.
4. The vehicle control function verification method according to claim 3, wherein the attributes of the simulation sub-model instance include: general attributes, circuit device attributes, model attributes;
the general attributes at least comprise model types, instance names and synchronization periods;
the circuit equipment attribute is used for binding pin and variable mapping of each equipment in the simulation circuit diagram;
the model attribute is used for displaying corresponding attribute settings according to the model type.
5. The vehicle control function verification method according to claim 4, wherein the simulation model in the model library is a model imported through FMU or EXE files;
further, the model imported through the FMU or EXE file is: development is performed by a simulation tool or a model formed by encapsulation is customized based on a software development tool.
6. The method for verifying the vehicle control function according to claim 2, wherein the physical object establishes data communication with the vehicle control function verification platform through a form of TCP, UDP, OPC UA interface.
7. The method for verifying the vehicle control function according to claim 1, further comprising, after the step of establishing the overall simulation model from the simulation circuit diagram and the connection diagram:
traversing the association relation of each simulation sub-model in the integral simulation model;
constructing a variable pool management module;
in the variable pool management module, periodic queries or variable subscriptions are selected according to each simulation sub-model type to issue notifications when variable types change.
8. The utility model provides a whole car control function verifying device which characterized in that includes:
the acquisition module is used for acquiring a simulation circuit diagram and a connection diagram of the whole vehicle; the establishment of the connection diagram comprises the following steps: building a corresponding simulation sub-model in a whole vehicle control function verification platform according to the simulation circuit diagram; input and output variables of the simulation sub-model which are connected in an associated mode; judging whether the variable types are consistent; if yes, generating a connecting line between simulation sub-models;
the building module is used for building an overall simulation model according to the simulation circuit diagram and the connection diagram;
the synchronization module is used for performing variable synchronization among all simulation sub-models in the integral simulation model;
and the verification module is used for running the simulation logic of each simulation sub-model to perform the function verification of the whole vehicle control.
9. The vehicle control function verification device is characterized by comprising a memory for storing a computer program;
a processor for implementing the steps of the vehicle control function verification method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and the computer program when executed by a processor implements the steps of the vehicle control function verification method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310872006.7A CN116679686A (en) | 2023-07-17 | 2023-07-17 | Method, device and medium for verifying vehicle control function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310872006.7A CN116679686A (en) | 2023-07-17 | 2023-07-17 | Method, device and medium for verifying vehicle control function |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116679686A true CN116679686A (en) | 2023-09-01 |
Family
ID=87781196
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310872006.7A Pending CN116679686A (en) | 2023-07-17 | 2023-07-17 | Method, device and medium for verifying vehicle control function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116679686A (en) |
-
2023
- 2023-07-17 CN CN202310872006.7A patent/CN116679686A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20030016206A1 (en) | Partitioning for model-based design | |
CN106980560B (en) | ICD database based multi-bus protocol testing and simulating method and platform | |
JP6753200B2 (en) | Methods, systems and computer programs for cloud-based computing clusters for simulated operator training systems | |
CN112166428A (en) | Method for event-based simulation of a system | |
CN117725767B (en) | Automatic generation method, plug-in, system, terminal and medium for parameterized component model | |
US8768680B2 (en) | Simulator of multi-core system employing reconfigurable processor cores and method of simulating multi-core system employing reconfigurable processor cores | |
CN116028025A (en) | Method, device, equipment and medium for generating automobile service model frame | |
CN111291443B (en) | Automatic generation method, device and equipment for I/O module model of vehicle control unit software | |
CN106874562B (en) | Conversion system and method for converting architecture model into static calculation model | |
CN111399868A (en) | Software updating method, microprocessor, domain controller and readable storage medium | |
CN108228965B (en) | Simulation verification method, device and equipment for memory cell | |
CN117708029A (en) | PCIE topology structure simulation method, device, equipment and medium | |
CN116679686A (en) | Method, device and medium for verifying vehicle control function | |
CN112417800A (en) | Integrated circuit processing method, integrated circuit verification device and electronic equipment | |
EP4339779A1 (en) | Software host construction method and construction system, and software host and simulation device | |
CN114780326B (en) | Cross-platform calibration test method, device and equipment | |
EP4193225B1 (en) | Method and system for providing engineering of an industrial device in a cloud computing environment | |
CN114610648A (en) | Test method, device and equipment | |
CN111045740A (en) | MCU software parameter calibration method and system based on USBCAN | |
US12039298B2 (en) | Method for configuring model components of a system model | |
CN201812198U (en) | Device for testing automobile electronic control system | |
CN117973076B (en) | Simulation system and method based on virtual-real coupling | |
CN117518869B (en) | Power distribution network hardware-in-loop simulation method and related equipment | |
CN113238491B (en) | Simulation test method and device of execution mechanism, intelligent arm support and engineering vehicle | |
WO2023115397A1 (en) | Method and apparatus for generating automated script |
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 |