CN116842763B - Simulation test method, simulation test device, electronic equipment and storage medium - Google Patents

Simulation test method, simulation test device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116842763B
CN116842763B CN202311110729.XA CN202311110729A CN116842763B CN 116842763 B CN116842763 B CN 116842763B CN 202311110729 A CN202311110729 A CN 202311110729A CN 116842763 B CN116842763 B CN 116842763B
Authority
CN
China
Prior art keywords
task
simulation test
simulation
configuration information
processing unit
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.)
Active
Application number
CN202311110729.XA
Other languages
Chinese (zh)
Other versions
CN116842763A (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.)
Guoqi Beijing Intelligent Network Association Automotive Research Institute Co ltd
Original Assignee
Guoqi Beijing Intelligent Network Association Automotive Research Institute 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 Guoqi Beijing Intelligent Network Association Automotive Research Institute Co ltd filed Critical Guoqi Beijing Intelligent Network Association Automotive Research Institute Co ltd
Priority to CN202311110729.XA priority Critical patent/CN116842763B/en
Publication of CN116842763A publication Critical patent/CN116842763A/en
Application granted granted Critical
Publication of CN116842763B publication Critical patent/CN116842763B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • 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/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects

Abstract

The embodiment of the application provides a simulation test method, a simulation test device, electronic equipment and a storage medium, wherein the simulation test method is applied to the simulation test device, the simulation test device comprises a task information processing unit and a task allocation core unit, corresponding configuration information can be automatically allocated to a simulation test unit based on configuration information identifiers corresponding to a plurality of simulation test units, the operation is simple and convenient, different configuration information is simultaneously issued to the corresponding simulation test unit by creating a plurality of partitions, and the simulation test is performed by the plurality of simulation test units based on simulation files and configuration parameters of the corresponding configuration information at the same time, so that the simulation test time cost is saved.

Description

Simulation test method, simulation test device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of electronics, in particular to a simulation test method, a simulation test device, electronic equipment and a storage medium.
Background
Along with the rapid development of the automatic driving technology, how to perform scientific and efficient simulation evaluation and how to improve the development iteration efficiency of an automatic driving algorithm becomes a difficulty in research.
At present, software in-Loop Testing (SIL Testing for short) is a mainstream automatic driving simulation Testing method because the Software in-Loop Testing (SIL Testing for short) does not involve complex hardware assembly and does not need specific site support, and the use characteristics of the Software are light and flexible when the Software is started.
However, in the loop test, the software needs to manually use a simulation tool to import the corresponding simulation file into the corresponding simulation test unit, so that the operation is complicated, and when a plurality of test tasks exist at the same time, the plurality of test tasks need to be queued for processing, so that the simulation test time cost is high.
Disclosure of Invention
The embodiment of the application provides a simulation test method, a simulation test device, electronic equipment and a storage medium, which are used for solving the problems that in the related art, in the loop test of software, corresponding simulation files are required to be imported into corresponding simulation test units by manually utilizing simulation tools, the operation is complex, and when a plurality of test tasks exist at the same time, the plurality of test tasks are required to be queued for processing, so that the cost of simulation test time is high.
In a first aspect, an embodiment of the present application provides a simulation test method, which is applied to a simulation test device, where the simulation test device includes a task information processing unit and a task allocation core unit, and the simulation test method includes:
The task information processing unit acquires simulation test task information, wherein the simulation test task information comprises test task parallelism and configuration information corresponding to each of a plurality of simulation test tasks, and the configuration information comprises configuration parameters and a reference path of at least one simulation file corresponding to the simulation test tasks in a file storage system;
the task information processing unit creates a plurality of partitions based on the test task parallelism and the current partition creation capability;
the task information processing unit distributes a plurality of configuration information to each partition according to the simulation test task;
the task information processing unit sends the plurality of partitions, the configuration information corresponding to each of the plurality of partitions and the corresponding configuration information identifiers to the task allocation core unit;
the task allocation core unit sends configuration information identifiers corresponding to different simulation test tasks to different simulation test units, and the simulation test units are used for acquiring corresponding configuration information from the task allocation core unit based on the configuration information identifiers corresponding to the simulation test units, so that the simulation test units execute the test tasks based on the configuration parameters corresponding to the configuration information identifiers and the simulation files corresponding to the reference paths.
In a second aspect, an embodiment of the present application provides a simulation test apparatus, where the simulation test apparatus includes a task information processing unit and a task allocation core unit, and the simulation test apparatus includes:
the task information processing unit is used for acquiring simulation test task information, wherein the simulation test task information comprises test task parallelism and configuration information corresponding to each of a plurality of simulation test tasks, and the configuration information comprises configuration parameters and a reference path of at least one simulation file corresponding to the simulation test tasks in the file storage system;
the task information processing unit is further used for creating a plurality of partitions based on the test task parallelism and the current partition creation capability;
the task information processing unit is also used for distributing a plurality of configuration information to each partition according to the simulation test task;
the task information processing unit is further configured to send the plurality of partitions, configuration information corresponding to each of the plurality of partitions, and corresponding configuration information identifiers to the task allocation core unit;
the task allocation core unit is used for sending configuration information identifiers corresponding to different simulation test tasks to different simulation test units, and is used for a plurality of simulation test units to acquire corresponding configuration information from the task allocation core unit based on the respective corresponding configuration information identifiers so that the plurality of simulation test units execute the test tasks based on the respective configuration parameters corresponding to the respective configuration information identifiers and the simulation files corresponding to the at least one reference path.
In a third aspect, an embodiment of the present application provides an electronic device, including a processing component, a storage component, and a display component, where the storage component stores one or more computer instructions, and the one or more computer instructions are used to be invoked and executed by the processing component to implement the simulation test method in the first aspect.
In a fourth aspect, embodiments of the present application provide a computer storage medium storing a computer program, where the computer program is executed by a computer to implement the simulation test method according to the first aspect.
The embodiment of the application provides a simulation test method, a simulation test device, electronic equipment and a storage medium, wherein the simulation test method is applied to the simulation test device, the simulation test device comprises a task information processing unit and a task allocation core unit, and the simulation test device comprises the following components: the task information processing unit acquires simulation test task information, wherein the simulation test task information comprises test task parallelism and configuration information corresponding to each of a plurality of simulation test tasks, and the configuration information comprises configuration parameters and a reference path of at least one simulation file corresponding to the simulation test tasks in a file storage system; the task information processing unit creates a plurality of partitions based on the test task parallelism and the current partition creation capability; the task information processing unit distributes a plurality of configuration information to each partition according to the simulation test task; the task information processing unit sends the plurality of partitions, the configuration information corresponding to each of the plurality of partitions and the corresponding configuration information identifiers to the task allocation core unit; the task allocation core unit sends configuration information identifiers corresponding to different simulation test tasks to different simulation test units, so that the simulation test units can acquire corresponding configuration information from the task allocation core unit based on the configuration information identifiers corresponding to the simulation test units, and the simulation test units can execute the test tasks based on the configuration parameters corresponding to the simulation test units and the simulation files corresponding to the reference paths. Based on the configuration information identifiers corresponding to the simulation test units, the corresponding configuration information can be automatically distributed to the simulation test units, the operation is simple and convenient, and different configuration information is simultaneously issued to the corresponding simulation test units by creating a plurality of partitions, so that the simulation test units perform simulation test based on the simulation files of the corresponding configuration information at the same time, and the cost of simulation test time is saved
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application and do not constitute an undue limitation on the application.
Fig. 1 shows a schematic view of a scenario of a simulation test method provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of a simulation test method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of another simulation test method according to an embodiment of the present application;
FIG. 4 is a schematic flow chart of another simulation test method according to an embodiment of the present application;
fig. 5 shows a schematic structural diagram of a simulation test apparatus according to an embodiment of the present application;
fig. 6 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are intended to be illustrative of the application and are not intended to be limiting. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present application by showing examples of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples consistent with some aspects of the present application as detailed in the accompanying claims.
Before describing the solution of the present application, the background technology of the present application is first described:
benefits of SIL testing include:
cost effectiveness: SIL testing is more cost effective than testing on actual hardware devices, without the use of expensive physical equipment.
Early discovery of problems: SIL testing can discover and debug problems at an early stage of software development, and is helpful for repairing defects in advance, and reducing cost and risk at a subsequent development stage.
Controllability: running software in a computer environment can better control the test parameters and environmental conditions, making the test more repeatable and controllable.
However, performing SIL testing locally lacks time and concurrency considerations, e.g., performing software locally on a loop test is typically performed in a serial fashion, i.e., test cases are executed one by one. This may not adequately take into account the critical characteristics of concurrency and real-time, as multiple tasks may be involved in concurrent execution when running on actual hardware.
In this regard, the inventors have discovered through a series of exploration that the current cloud service may be combined with SIL testing to form an intelligent networking automotive cloud simulation technique. Therefore, how to utilize intelligent network connection automobile cloud simulation technology to carry out scientific and efficient simulation evaluation becomes the core of researches of vast scientific researchers.
The following is an explanation of the terms used in the examples of the present application:
kafka: kafka adopts a publish/subscribe mode, and is a high-throughput, durable and distributed message queue system for publish/subscribe. Kafka has a distributed information processing function, and the invention uses the Kafka to construct a series of real-time data stream processing pipelines for transmitting task information of simulation participants. Kafka creates a real-time data stream processing pipeline with a unique label for each simulation project, realizes stable and reliable data transmission between a task distribution core unit and a simulation test unit, and ensures atomicity and stability of simulation task information transmission.
K8S: K8S is known as kubernetes and is an open source system for automatically deploying, expanding and contracting and managing containerized applications. The invention is mainly responsible for the management operations such as load balancing and elastic capacity expansion of the simulation unit. The K8S creates a resource object, ingress, which can be configured for a uniform resource location system (uniform resource locator, URL), load balancing traffic, that provides external access services. The K8S realizes the health check of the simulation container through the active probe and the ready probe, and the K8S judges the coming-to-health state of the simulation container according to the state returned by the probe and determines whether to execute the recovery operations such as restarting the simulation container.
MySQL: the system belongs to a relational database management system, and saves data in different tables, and has the advantages of small volume, high speed, high flexibility and low total possession cost. The intelligent network-connected automobile cloud simulation platform provides basic data storage, provides a path of a simulation necessary file in a file storage system for a task distribution core unit, provides necessary temporary storage space for a task information processing unit, and provides necessary index support for the file storage unit.
MinIO: the cloud storage service is a mass, safe, low-cost and high-reliability cloud storage service, and can store any type of files. The capacity and the processing capacity support elastic expansion, various storage types are selected, and the storage cost is comprehensively optimized. And (3) building a high-performance object storage platform based on object storage, classifying and returning the data of each simulation test unit in a customized mode, and providing high-efficiency and convenient simulation exhibition effects for simulation test platform users through expandability and support of cloud protogenesis.
Redis: i.e., REmote DIctionary Server (dis), is a NoSQL database that stores data in the form of key-value pairs (key-value) based on memory. It supports relatively more value types stored and is atomic to the manipulation of data. The method is used for caching and preloading task information and partial task results created by the simulation user on the intelligent network-connected automobile cloud simulation platform.
In addition, fig. 1 is a schematic view of a scenario of a simulation test method provided in an embodiment of the present application, as shown in fig. 1, where the scenario includes: the N servers are respectively a first server and a second server … … nth server.
The N servers can communicate with each other, and the communication modes comprise wired communication, wireless communication and the like. Where the wired communication may be through a physical medium such as a cable, fiber optic. Such as a telephone line, a Local Area Network (LAN), a Wide Area Network (WAN), etc. The wireless communication may transmit information through a wireless signal such as radio waves or infrared rays. Such as radio, mobile communications (e.g., cell phone, cellular network), wi-Fi, bluetooth, etc.
Wherein each server corresponds to a basic operating system such as Ubuntu 20.04 or Ubuntu 22.04, etc., and each server installs the necessary compiled running components to ensure that network communications are unimpeded, such as build-essential, net-tools, telnet, inetutils-ping, etc.
A certain server in the N servers is configured as a platform scheduling server, for example, a first server is configured as a platform scheduling server, the platform scheduling server comprises a simulation testing device, the simulation testing device comprises a task allocation scheduling unit, a task message processing unit and a cloud simulation platform, the task allocation scheduling unit needs to be provided with a JRE8 as operation support, and the task cancellation information processing unit needs to be provided with kafka and redis as basic support. The deployment of the intelligent network connection automobile cloud simulation platform is characterized in that other required component libraries are installed besides the necessary web servers such as the nginx and the like due to platform diversity.
The scene also comprises a data storage server, wherein the data storage server comprises a database and a file storage unit, the file storage unit is used for storing the simulation file, and the database is used for storing the reference path of the simulation file in the file storage unit. Wherein the database may be MySQL and the file storage unit may be MinIO. MySQL and MinIO can directly pull the corresponding mirror image through ubuntu's apt command. The mirror image can be uniformly managed through a docker-compound, so that complicated operation steps of starting writing and using shell scripts by multiple containers are avoided.
The platform scheduling server can acquire the reference path of the simulation file from the database.
The method comprises the steps of configuring N servers into a plurality of cloud simulation node servers, wherein one server is a K8S master node server, the plurality of servers are K8S slave node servers, performing clustered configuration on all the cloud simulation node servers, and installing a network communication plug-in kube-flannel and an internal communication plug-in pause. Typically, the master node server is a platform scheduling server.
Further, a dock warehouse is built on the cloud simulation master node server and is used for storing simulation test unit images developed based on containers and algorithm images uploaded by users through the intelligent network-connected automobile cloud simulation platform. Meanwhile, a dock warehouse is built on the cloud simulation main node server to provide management work of the simulation test unit and the mirror image of the simulation algorithm to be tested, and in the embodiment, the dock warehouse is simultaneously responsible for real-time updating, version management, downloading distribution and the like of the containerized simulation assembly.
The master node server can create a simulation test unit, configure a corresponding algorithm and configuration information identification of a simulation file for the simulation test unit, and further send the configured simulation test unit to a plurality of slave node servers according to a load balancing strategy.
The simulation test unit acquires a simulation file and configuration parameters corresponding to the configuration information, and performs simulation test based on the simulation file, the configuration parameters and an algorithm.
In order to solve the problems in the prior art, the embodiment of the application provides a simulation test method, a simulation test device, electronic equipment and a storage medium. The simulation test method provided in the embodiment of the present application is first described below.
Fig. 2 is a flow chart of a simulation test method according to an embodiment of the present application. As shown in fig. 2, the execution apparatus of the method may be the platform scheduling server in fig. 1, where the platform scheduling server includes a task information processing unit and a task allocation core unit, and the method may include:
s201, the task information processing unit acquires simulation test task information.
The simulation test task information comprises test task parallelism and configuration information corresponding to each of a plurality of simulation test tasks, wherein the configuration information comprises configuration parameters and a reference path of at least one simulation file corresponding to the simulation test tasks in a file storage system.
The simulation file can comprise a scene file, a road file, a rendering file and the like; the configuration parameters include sensor parameters, dynamics parameters, simulation duration, etc.
The parallelism of the test tasks can be the number of tasks which are tested simultaneously, and can be determined according to the grades of users, such as the users of the first grade, the authority is 5 for the tasks which are tested simultaneously, the authority is 4 for the users of the second grade, and the like.
It is worth noting that the platform scheduling server further comprises a cloud simulation platform. The simulation test task information is sent to the task information processing unit for the cloud simulation platform.
The cloud simulation platform receives simulation file identifiers of a plurality of simulation test tasks configured by a user, sends the simulation file identifiers to the database, and acquires simulation file configuration information corresponding to the simulation file identifiers from the database.
In order to identify the configuration information of the same simulation test task, the intelligent network-connected automobile cloud simulation platform can send simulation test task parameters and corresponding simulation file identifiers to a database, and acquire the configuration information corresponding to the same simulation test task from the database.
In some examples, the intelligent network-connected automobile cloud simulation platform receives simulation file identifiers of a plurality of simulation test tasks configured by a user, where the simulation file identifiers are respectively: simulation test task 1: simulation file 1, simulation file 2 and simulation file 3; simulation test task 2: simulation file 1, simulation file 3, and simulation file 5. Simulation test task 1: simulation file 1, simulation file 2 and simulation file 3; simulation test task 2: the simulation file 1, the simulation file 3 and the simulation file 5 are sent to a database, and simulation file configuration information corresponding to a plurality of simulation test tasks is obtained from the database: simulation test task 1: configuration information 1, configuration information 2, and configuration information 3; simulation test task 2: configuration information 1, configuration information 3, and configuration information 5.
S202, the task information processing unit creates a plurality of partitions based on the test task parallelism and the current partition creation capability.
To enhance the parallelism of simulation tests, multiple partitions may be created to temporarily store multiple configuration information, such that the configuration information is sent through the multiple partitions simultaneously.
Wherein the task information processing unit may be provided with a maximum partition creation capability, and the task information processing unit may have created a plurality of partitions at the time of creating the partitions, the current partition creation capability may be determined based on the maximum partition creation capability and the number of created partitions, for example, the maximum partition creation capability is 5, the number of created partitions is 3, and the current partition creation capability is 2.
Further, the number of current creatable partitions may be determined based on the test task parallelism and the current partition creation capability.
In some embodiments, the number of creatable partitions is determined based on the current partition creation capability if the test task parallelism is greater than the current partition creation capability, and the number of creatable partitions is determined based on the test task parallelism if the test task parallelism is not greater than the current partition creation capability.
The partition is a partition in Kafka, is a logic concept of a message, and is used for dividing and storing a plurality of configuration information in the task information processing unit. Each task information processing unit may have one or more partitions, and each partition is an ordered, immutable message log.
And the partitioning has the following functions:
concurrent consumption: multiple consumers can consume messages of different partitions independently, thereby enabling the ability to consume concurrently. Each consumer can independently read and process its own assigned partition, improving concurrency of consumption. In the embodiment of the application, the consumer is a simulation test unit.
Therefore, the concurrency of the simulation test unit for executing the test tasks can be improved by creating a plurality of partitions so as to save the cost of simulation test time.
And by creating a plurality of partitions, the acquired simulation test tasks can be processed in parallel under the condition of more simulation test tasks, so that the throughput of the task information processing unit is improved.
S203, the task information processing unit distributes a plurality of configuration information to each partition according to the simulation test task.
As described above, the simulation test task and the simulation file identifier may have a corresponding relationship, so that configuration information corresponding to the same simulation test task may be allocated to the same partition.
Wherein, the average allocation can be based on the number of simulation test tasks and the number of partitions, for example, 6 simulation test tasks and 2 partitions, then each partition can be allocated to 3 simulation test tasks.
Of course, the correspondence between the partitions and the configuration information may be preconfigured. And distributing the plurality of configuration information to each partition based on the corresponding relation.
S204, the task information processing unit sends the plurality of partitions, the configuration information corresponding to the plurality of partitions and the corresponding configuration information identifiers to the task allocation core unit.
It may be understood that the plurality of configuration information is to be pulled to the simulation test unit, and the task information processing unit cannot send the corresponding configuration information to the simulation test unit due to its own limitation, so that the plurality of partitions and the configuration information corresponding to the plurality of partitions and the configuration information identifier respectively may be sent to the task allocation core unit, so that the simulation test unit pulls the configuration information at the task allocation core unit based on the corresponding configuration information identifier.
S205, the task allocation core unit sends configuration information identifiers corresponding to different simulation test tasks to different simulation test units.
The task allocation core unit is used for acquiring corresponding configuration information from the task allocation core unit based on the corresponding configuration information identification of the plurality of simulation test units so that the plurality of simulation test units execute test tasks based on the corresponding configuration parameters of the plurality of simulation test units and the corresponding simulation files of the at least one reference path.
After receiving the configuration information and the configuration information identifier, the task allocation core unit may send the configuration information identifiers corresponding to different simulation test tasks to different simulation test units, so that the different simulation test units are configured with the configuration information identifiers, and may obtain the corresponding configuration information from the task allocation core unit based on the configuration information identifiers. And the simulation test task can be completed by combining a preconfigured algorithm.
Before the task allocation core unit sends the configuration information corresponding to different simulation test tasks to different simulation test units, the simulation test method further comprises the following steps:
the task information processing unit creates simulation test units with the corresponding quantity of the test task parallelism;
and the task information processing unit respectively sends the simulation test units with the quantity corresponding to the test task parallelism to the simulation servers with the quantity corresponding to the test task parallelism.
The task allocation core unit sends configuration information identifiers corresponding to different simulation test tasks to different simulation test units, and the task allocation core unit comprises:
and the task allocation core unit respectively sends configuration information identifiers corresponding to different simulation test tasks to simulation servers with the numbers corresponding to the parallelism of the test tasks.
Wherein the simulation server may be a K8S slave node server.
In an alternative embodiment, the parallelism of the test tasks is consistent with the number of the simulation test units, so that the simulation test units of the parallelism of the test tasks can be operated simultaneously, and the simulation test efficiency is improved to the greatest extent.
It can be appreciated that, because the processing capability of the platform scheduling server is limited, the simulation test unit cannot be operated, the simulation test unit and the configuration information identifier can be sent to the corresponding K8S slave node server, so that the simulation test unit can acquire the corresponding configuration parameters and the simulation file based on the configuration information identifier to perform the simulation test.
Therefore, the task allocation core unit can simultaneously acquire the configuration information identifiers from the multiple partitions and simultaneously send the corresponding configuration information identifiers to the corresponding simulation test units so that the multiple simulation test units execute test tasks based on simulation files of the corresponding configuration information.
The embodiment of the application provides a simulation test method. The method is applied to a simulation test device, wherein the simulation test device comprises a task information processing unit and a task allocation core unit, and comprises the following steps: the task information processing unit acquires simulation test task information, wherein the simulation test task information comprises test task parallelism and configuration information corresponding to each of a plurality of simulation test tasks, and the configuration information comprises configuration parameters and a reference path of at least one simulation file corresponding to the simulation test tasks in a file storage system; the task information processing unit creates a plurality of partitions based on the test task parallelism and the current partition creation capability; the task information processing unit distributes a plurality of configuration information to each partition according to the simulation test task; the task information processing unit sends the plurality of partitions, the configuration information corresponding to each of the plurality of partitions and the corresponding configuration information identifiers to the task allocation core unit; the task allocation core unit sends configuration information identifiers corresponding to different simulation test tasks to different simulation test units, so that the simulation test units can acquire corresponding configuration information from the task allocation core unit based on the configuration information identifiers corresponding to the simulation test units, and the simulation test units can execute the test tasks based on the configuration parameters corresponding to the simulation test units and the simulation files corresponding to the reference paths. Based on the configuration information corresponding to each of the plurality of simulation test units, the corresponding configuration information can be automatically distributed to the simulation test units, the operation is simple and convenient, and different configuration information is simultaneously issued to the corresponding simulation test units by creating a plurality of partitions, so that the plurality of simulation test units perform simulation tests based on the simulation files and the configuration parameters of the corresponding configuration information at the same time, and the simulation test time cost is saved.
In some embodiments, configuration information corresponding to the same simulation test task may be allocated to the same partition, and S203, the task information processing unit allocates a plurality of configuration information to each partition according to the simulation test task, including:
the task information processing unit stores configuration information of at least one simulation file corresponding to the same test task to the same event set;
the task information processing unit allocates a plurality of event sets to the corresponding partitions.
The event set may be composed of a plurality of event in Kafka, where the event is configuration information in the embodiment of the present application.
Further, the plurality of event sets may be distributed to the plurality of partitions based on an average of the number of simulation test tasks and the number of partitions; the correspondence between the event sets and the configuration information may be preconfigured, and the plurality of event sets may be allocated to the plurality of partitions based on the correspondence.
In some embodiments, in order to accurately locate and read an event set in a partition, the event set is generally identified and distinguished, and the task information processing unit distributes a plurality of configuration information to each partition according to a simulation test task, including:
for any partition, the task information processing unit configures set identifiers for a plurality of event sets of the partition according to a target sequence, wherein the target sequence is the time sequence of the plurality of event sets distributed to the partition;
The task information processing unit distributes the event sets and set identifiers corresponding to the event sets to corresponding partitions.
Wherein the set identification may be an offset, i.e. the position of each event set in the partition.
It can be understood that, the plurality of configuration information included in any partition is stored in the partition in the form of a message, and in this embodiment of the present application, in order to improve efficiency of sending configuration information, each event set may be determined as one message, that is, one message includes a plurality of configuration information of the same test task, so that an objective of sending a plurality of configuration information simultaneously may be achieved by sending one event set.
In order to identify the position of the event set in any partition, corresponding set identifiers may be allocated to the event sets according to the sequence allocated to the partition, and the event sets and the set identifiers corresponding to the event sets may be allocated to the corresponding partition.
In some embodiments, in Kafka, each partition has a unique identifier, i.e. a partition identifier, and S205, the task allocation core unit sends configuration information corresponding to each of the plurality of partitions to a corresponding simulation test unit, including:
The task allocation core unit receives a set identifier and a partition identifier which are respectively corresponding to a plurality of simulation test units and are sent by the simulation test units;
for the set identification and the partition identification of any simulation test unit, the task allocation core unit sends the event set corresponding to the set identification in the partition corresponding to the partition identification to the simulation test unit.
It can be understood that each simulation test unit is preconfigured with a set identifier and a partition identifier, and under the condition that a test instruction is received, the simulation test unit obtains matching information corresponding to the set identifier from a partition corresponding to the partition identifier in the task allocation core unit based on the set identifier and the partition identifier.
In some embodiments, the simulation test task information further includes a task identifier, and before the task information processing unit distributes the plurality of configuration information to each partition according to the simulation test task, the simulation test task further includes:
the task information processing unit creates a theme corresponding to the task identifier;
the task information processing unit creates a plurality of partitions based on the test task parallelism and the current partition creation capability, including:
the task information processing unit obtains the created number of the partitions in the theme and the maximum created number of the partitions;
The task information processing unit determines the current creatable quantity based on the maximum creation quantity and the created quantity;
under the condition that the number of the creatable test parallelism is larger than or equal to that of the creatable test parallelism, the task information processing unit creates a test parallelism partition;
in the case where the creatable number is smaller than the test parallelism, the task information processing unit creates the current creatable number of partitions.
Among these, topic in kafka is the logical classification and container of messages. It is the most basic unit of message publishing and subscribing. All messaging and reception is subject-based.
The creation of the theme needs to be supported by related components such as zookeeper and the like, and needs to be installed in a platform scheduling server by a developer in advance. The creation of the theme may exist in the form of a shell script in the platform scheduling server or the creation command may be directly embedded in the task message processing unit.
The topic may be used to logically categorize and categorize messages. Different topics may represent different business data, event streams, and the like. Thus, the subject may be categorized and stored to the same event set by classifying configuration information of at least one simulation file corresponding to the same test task.
The task identification may be an identification of a task category, which may include: orders, merchandise, vehicle simulation tests, etc., in embodiments of the present application, the task identifier may be an identifier of the vehicle simulation test.
It should be noted that each piece of simulation test task information includes a task identifier, and each task identifier corresponds to a theme, so that stability and isolation of each piece of simulation test task information can be ensured.
Because each theme can receive the configuration information corresponding to each simulation test task at the same time, in order to ensure the stability and the real-time performance of the transmission of the configuration information, a plurality of partitions can be created in the theme, the configuration information is transmitted in parallel, and the throughput of the task information processing unit is improved.
The number of current creatable partitions may be determined based on the test task parallelism and the current partition creation capability.
In some embodiments, the number of creatable partitions is determined based on the current partition creation capability if the test task parallelism is greater than the current partition creation capability, and the number of creatable partitions is determined based on the test task parallelism if the test task parallelism is not greater than the current partition creation capability.
In some embodiments, the simulation test apparatus further includes a cloud simulation platform, and after the task allocation core unit sends the configuration information corresponding to each of the plurality of partitions to the corresponding simulation test unit, the simulation test method further includes:
and the cloud simulation platform responds to the task state checking instruction and acquires the running state of the simulation task from the file storage unit.
The running state includes a running result and a running state.
The simulation test unit can send the running result and the running state to the file storage unit, so that the cloud simulation platform responds to the task state checking instruction and obtains the running state of the simulation task from the file storage unit.
It can be understood that in order to improve accuracy of the simulation test, the simulation algorithm needs to be adjusted based on the simulation result, so that the running state of the simulation task can be obtained from the file storage unit when the task state checking instruction input by the user is received.
For describing the simulation test method in detail, fig. 3 shows a flow chart of a simulation test method provided in an embodiment of the present application, and as shown in fig. 3, the method includes:
s10: the simulation platform obtains configuration information of the simulation file.
After the user configures simulation data and issues simulation tasks, basic task frame information is stored in a database. Meanwhile, the platform can request the database for the storage paths of the scene files, the road files and the rendering files required by simulation in the file storage system unit.
S20: and the task information processing unit acquires simulation test task information sent by the cloud simulation platform.
And the simulation platform sends the obtained simulation test task, part of user rights and configuration information to the task message processing unit. The user rights and configuration information include, but are not limited to, the number of simulated test elements that a simulated user can use.
S30: the task message processing unit creates a new topic (kafka-topic) according to the task identity of the test task.
kafka-topic is a logical concept, similar to a folder in a file system, a table in a database, a unit of interaction between a producer and a consumer. kafka-topic organizes the relevant events together, forming an event collection and saves. The task identifier of each simulation test task information and the kafka-topic have unique corresponding relation so as to ensure the isolation and stability of each simulation test task in the cloud simulation platform. The creation of kafka-topic requires support by related components such as zookeeper, and requires that the developer install in advance in the platform scheduling server. The creation of the kafka-topic may exist in the form of a shell script in the platform scheduling server or the creation command may be embedded directly in the task message handling unit component.
S40: the task message processing unit creates a plurality of partitions (kafka-sections) according to the parallelism of the simulation test task.
The kafka-partition is the smallest memory cell in the kafka component, which holds a piece of data of kafka-topic. Each kafkaf-part is a separate log file into which each record has been written in an appended form. And the task message processing unit uniformly distributes all simulation test tasks to each kafka-part according to the parallel qualification of the simulation user according to the load balancing principle.
S50: the task message processing unit configures a set identifier (kafka-offset) for a plurality of event sets in the kafka-part.
kafka-offset is an increasing, unchangeable number. Under the conventional condition, the kafka-offset is automatically maintained by the kafka, so that in order to perform more accurate control and finer classified storage on each simulation event, the resource waste caused by the kafka-offset built-in information integrated service system is avoided, and in the embodiment, the kafka-offset is uniformly managed by the task message processing unit, so that the effects of load balancing and high efficiency and convenience are achieved.
S60: the task information processing unit sends the plurality of partitions and configuration information corresponding to the plurality of partitions to the task allocation core unit.
After the above preparation configuration is completed, the task message processing unit transmits the event of all simulation test tasks to the task distribution core unit according to the configured kafka-topic, kafka-partition, and kafka-offset, and waits for the simulation test unit to perform subsequent event pulling operation.
S70: the task information processing unit creates simulation test units with the corresponding quantity of the test task parallelism.
The task message processing unit creates and starts a corresponding number of simulation test units through the k8s-api-server according to the parallelism requirement of the simulation task content issued by the simulation user on the intelligent network-connected automobile cloud simulation platform.
S80: the task allocation core unit sends configuration information identifiers corresponding to different simulation test tasks to different simulation test units, so that the plurality of simulation test units acquire corresponding configuration information from the task allocation core unit based on the configuration information identifiers corresponding to the simulation test units.
The simulation test unit is provided by a simulation tool developer, wherein the containerized simulation test tool is used for executing an actual simulation test task, and the auxiliary simulation flow control component is responsible for pulling event information required by simulation from the task allocation core unit.
And after analyzing the content of the held simulation event, the simulation test unit executes a corresponding simulation task. After the execution is finished, the simulation test unit returns the simulation result to the file storage system unit.
S90: and the cloud simulation platform responds to the task state checking instruction and acquires the running state of the simulation task from the file storage unit.
The user can check the running state of the simulation task through the intelligent network-connected automobile cloud simulation platform at any time. After the simulation test unit completes the simulation task, the user can also check the running result of the simulation task.
In order to illustrate the overall flow of the simulation test method, fig. 4 shows a flow diagram of a simulation test method provided in an embodiment of the present application, as shown in fig. 4:
the task information processing unit acquires simulation test task information sent by the cloud simulation platform, wherein the simulation test task information comprises a task A, the parallelism is 3, a file packet A corresponding to a simulation file and a configuration parameter args_a.
Based on the task identification of the test task, a new topic A is created, the topic A associates simulation files of the same test task together to form 6 event sets, and three partitions are created based on the partition creation capability and parallelism of the topic A, namely partition 1, partition 2 and partition 3.
Further, the task information processing unit evenly distributes 6 event sets to three partitions, each partition distributes set identifiers for each event set according to a distribution sequence, wherein a reference path of a true file of a theme A/partition 1/event set 1 is/minio/a 1.Xosc, and a configuration parameter is args_a; the reference path of the visit file of the theme A/partition 1/event set 2 is/minio/a 2.Xosc, and the configuration parameter is args_a; the reference path of the theme A/partition 2/event set 1 visit true file is/minio/a 3.Xosc, and the configuration parameter is args_a; the reference path of the theme A/partition 2/event set 2 visit file is/minio/a 4.Xosc, and the configuration parameter is args_a; the reference path of the theme A/partition 3/event set 1 visit true file is/minio/a 5.Xosc, and the configuration parameter is args_a; the reference path of the theme A/partition 3/event set 2 visit true file is/minio/a 6.Xosc, and the configuration parameter is args_a.
The task information processing unit sends the parallelism and each event set to the task distribution core unit, wherein each event set is sent according to the topic identification, the partition identification and the event set identification of the set.
The task allocation core unit sends configuration information identifiers corresponding to different simulation test tasks to different simulation test units according to load balancing, namely, a theme A/partition 1/event set 1 is sent to the simulation test unit 1, a theme A/partition 2/event set 1 is sent to the simulation test unit 2, and a theme A/partition 3/event set 1 is sent to the simulation test unit 3.
Under the condition that a simulation instruction is received, the simulation test unit 1 acquires a reference path and a configuration parameter of a simulation file of the event set 1 from the partition 1 of the theme A in the task allocation core unit, the simulation test unit 2 acquires the reference path and the configuration parameter of the simulation file of the event set 1 from the partition 2 of the theme A in the task allocation core unit, the simulation test unit 3 acquires the reference path and the configuration parameter of the simulation file of the event set 1 from the partition 3 of the theme A in the task allocation core unit, and further each simulation test unit acquires the simulation file corresponding to each reference path from the file storage unit and performs simulation test in combination with the configuration parameter.
Based on the simulation test method provided by the above embodiment, correspondingly, the application also provides a simulation test device, as shown in fig. 5.
As shown in fig. 5, the simulation test apparatus provided in the embodiment of the present application may include: a task information processing unit 501 and a task allocation core unit 502.
The task information processing unit 501 is configured to obtain simulation test task information, where the simulation test task information includes a test task parallelism, configuration information corresponding to each of a plurality of simulation test tasks, and the configuration information includes configuration parameters and a reference path of at least one simulation file corresponding to the simulation test task in a file storage system;
The task information processing unit 501 is further configured to create a plurality of partitions based on the test task parallelism and the current partition creation capability;
the task information processing unit 501 is further configured to distribute a plurality of the configuration information to each partition according to a simulation test task;
the task information processing unit 501 is further configured to send the plurality of partitions, configuration information corresponding to each of the plurality of partitions, and a corresponding configuration information identifier to the task allocation core unit 502;
the task allocation core unit 502 is configured to send configuration information identifiers corresponding to different simulation test tasks to different simulation test units, so that the multiple simulation test units acquire corresponding configuration information from the task allocation core unit 502 based on the respective configuration information identifiers, so that the multiple simulation test units execute the test tasks based on the respective configuration parameters corresponding to the respective configuration information identifiers and the simulation files corresponding to the at least one reference path.
The embodiment of the application provides a simulation test device, which comprises a task information processing unit and a task allocation core unit, and comprises: the task information processing unit acquires simulation test task information, wherein the simulation test task information comprises test task parallelism and configuration information corresponding to each of a plurality of simulation test tasks, and the configuration information comprises configuration parameters and a reference path of at least one simulation file corresponding to the simulation test tasks in a file storage system; the task information processing unit creates a plurality of partitions based on the test task parallelism and the current partition creation capability; the task information processing unit distributes a plurality of configuration information to each partition according to the simulation test task; the task information processing unit sends the plurality of partitions, the configuration information corresponding to each of the plurality of partitions and the corresponding configuration information identifiers to the task allocation core unit; the task allocation core unit sends configuration information identifiers corresponding to different simulation test tasks to different simulation test units, so that the simulation test units can acquire corresponding configuration information from the task allocation core unit based on the configuration information identifiers corresponding to the simulation test units, and the simulation test units can execute the test tasks based on the configuration parameters corresponding to the simulation test units and the simulation files corresponding to the reference paths. Based on the configuration information corresponding to each of the plurality of simulation test units, the corresponding configuration information can be automatically distributed to the simulation test units, the operation is simple and convenient, and different configuration information is simultaneously issued to the corresponding simulation test units by creating a plurality of partitions, so that the plurality of simulation test units perform simulation tests based on the simulation files and the configuration parameters of the corresponding configuration information at the same time, and the simulation test time cost is saved.
In some embodiments, the task information processing unit 501 is further configured to create a simulation test unit corresponding to the number of parallelism of the test task;
the task information processing unit 501 is further configured to send the simulation test units with the corresponding numbers of the test task parallelism to different simulation servers respectively;
the task allocation core unit 502 is specifically configured to send configuration information identifiers corresponding to different simulation test tasks to the different simulation servers respectively
The task allocation core unit 502 is further configured to send configuration information corresponding to each of the plurality of partitions to a simulation test unit corresponding to the number of parallelism of the test task.
In some embodiments, the task information processing unit 501 is specifically configured to:
storing configuration information of at least one simulation file corresponding to the same test task to the same event set;
and a plurality of event sets are distributed to corresponding partitions.
In some embodiments, the task information processing unit 501 is further specifically configured to:
configuring set identifiers for a plurality of event sets of any partition according to a target sequence, wherein the target sequence is the time sequence of the event sets distributed to the partition;
And distributing the event sets and set identifications corresponding to the event sets to corresponding partitions.
In some embodiments, task allocation core unit 502 is specifically configured to:
receiving the plurality of event sets and set identifiers corresponding to the plurality of event sets sent by the task information processing unit 501;
respectively transmitting the set identifiers corresponding to the event sets to different simulation test units
In some embodiments, the simulation test task information further includes a task identifier, and the task information processing unit 501 is further specifically configured to:
creating a theme corresponding to the task identification.
Creating a plurality of partitions based on the test task parallelism and the current partition creation capability, including:
acquiring the created number of the partitions in the theme and the maximum created number of the partitions;
determining a current creatable quantity based on the maximum created quantity and the created quantity;
creating test parallelism partitions under the condition that the number of the creatable test parallelism is greater than or equal to the number of the creatable test parallelism;
in the case where the number of creatable partitions is smaller than the test parallelism, the current creatable number of partitions is created.
In some embodiments, the simulation test device further includes a cloud simulation platform, where the cloud simulation platform is configured to obtain an operation state of the simulation task from the file storage unit in response to the task state viewing instruction.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 6, the electronic device may include a processor 601 and a memory 602 storing computer programs or instructions.
In particular, the processor 601 may include a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured as one or more integrated circuits that implement embodiments of the present invention.
Memory 602 may include mass storage for data or instructions. By way of example, and not limitation, memory 602 may include a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the above. The memory 602 may include removable or non-removable (or fixed) media, where appropriate. Memory 602 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In a particular embodiment, the memory 602 is a non-volatile solid state memory. The Memory may include read-only Memory (Read Only Memory image, ROM), random-Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash Memory devices, electrical, optical, or other physical/tangible Memory storage devices. Thus, in general, the memory comprises one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors) it is operable to perform the operations described in the scene data acquisition methods provided by the embodiments described above.
The processor 601 implements any of the scene data acquisition methods of the above embodiments by reading and executing computer program instructions stored in the memory 602.
In one example, the electronic device may also include a communication interface 603 and a bus 610. As shown in fig. 6, the processor 601, the memory 602, and the communication interface 603 are connected to each other through a bus 610 and perform communication with each other.
The communication interface 603 is mainly used for implementing communication among the modules, devices, units and/or devices in the embodiment of the present invention.
Bus 610 includes hardware, software, or both, that couple components of the electronic device to one another. By way of example, and not limitation, the buses may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a micro channel architecture (MCa) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus, or a combination of two or more of the above. Bus 610 may include one or more buses, where appropriate. Although embodiments of the invention have been described and illustrated with respect to a particular bus, the invention contemplates any suitable bus or interconnect.
The electronic equipment can execute the simulation test method in the embodiment of the invention, thereby realizing the simulation test method described in the embodiment.
In addition, in combination with the simulation test method in the above embodiment, the embodiment of the invention may be implemented by providing a readable storage medium. The readable storage medium has stored thereon program instructions which, when executed by a processor, implement any of the simulation test methods of the above embodiments.
It should be understood that the invention is not limited to the particular arrangements and instrumentality described above and shown in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between steps, after appreciating the spirit of the present invention.
The functional blocks shown in the above block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this disclosure describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, or may be performed in a different order from the order in the embodiments, or several steps may be performed simultaneously.
Aspects of the present application are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to being, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware which performs the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In the foregoing, only the specific embodiments of the present invention are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present invention is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and they should be included in the scope of the present invention.

Claims (10)

1. A simulation test method, which is applied to a simulation test device, wherein the simulation test device comprises a task information processing unit and a task allocation core unit, and the simulation test method comprises the following steps:
the task information processing unit acquires simulation test task information, wherein the simulation test task information comprises test task parallelism and configuration information corresponding to each of a plurality of simulation test tasks, the configuration information comprises configuration parameters and a reference path of at least one simulation file corresponding to the simulation test tasks in a file storage system, and the simulation file comprises a scene file, a road file and a rendering file; the configuration parameters comprise sensor parameters, dynamic parameters and simulation duration; the parallelism of the test tasks is the number of tasks which are tested simultaneously, and can be determined according to the grade of a user; the current partition creation capability is determined based on the maximum partition creation capability and the number of created partitions;
The task information processing unit creates a plurality of partitions based on the test task parallelism and the current partition creation capability;
the task information processing unit distributes a plurality of configuration information to each partition according to the simulation test task;
the task information processing unit sends the plurality of partitions, the configuration information corresponding to each of the plurality of partitions and the corresponding configuration information identifiers to the task allocation core unit;
the task allocation core unit sends configuration information identifiers corresponding to different simulation test tasks to different simulation test units, and the simulation test units are used for acquiring corresponding configuration information from the task allocation core unit based on the configuration information identifiers corresponding to the simulation test units, so that the simulation test units execute the test tasks based on the configuration parameters corresponding to the configuration information identifiers and the simulation files corresponding to the reference paths.
2. The method of claim 1, wherein before the task allocation core unit sends configuration information corresponding to different simulation test tasks to different simulation test units, the simulation test method further comprises:
The task information processing unit creates simulation test units with the corresponding quantity of the test task parallelism;
the task information processing unit respectively sends simulation test units with the corresponding quantity of the test task parallelism to different simulation servers;
the task allocation core unit sends configuration information identifiers corresponding to different simulation test tasks to different simulation test units, and the task allocation core unit comprises:
and the task allocation core unit sends the configuration information identifiers corresponding to different simulation test tasks to the different simulation servers respectively.
3. The method according to claim 1, wherein the task information processing unit allocates the plurality of configuration information to each partition in accordance with a simulation test task, comprising:
the task information processing unit stores configuration information corresponding to the same test task into the same event set;
the task information processing unit allocates a plurality of the event sets to corresponding partitions.
4. The method according to claim 3, wherein the task information processing unit allocates a plurality of the configuration information to each partition in accordance with a simulation test task, comprising:
For any partition, the task information processing unit configures set identifiers for a plurality of event sets of the partition according to a target sequence, wherein the target sequence is a time sequence of the event sets allocated to the partition;
the task information processing unit allocates the plurality of event sets and set identifications corresponding to the plurality of event sets to corresponding partitions.
5. The method of claim 4, wherein the task allocation core unit sends configuration information identifiers corresponding to different simulation test tasks to different simulation test units, comprising:
the task allocation core unit receives the plurality of event sets and the set identifiers corresponding to the event sets respectively, which are sent by the task information processing unit;
and the task allocation core unit sends the set identifiers corresponding to the event sets to different simulation test units respectively.
6. The method of claim 1, wherein the simulated test task information further comprises a task identification, wherein the task information processing unit, prior to creating the plurality of partitions, further comprises, based on the test task parallelism and current partition creation capability:
The task information processing unit creates a theme corresponding to the task identifier;
the task information processing unit creates a plurality of partitions based on the test task parallelism and the current partition creation capability, including:
the task information processing unit obtains the created number of the partitions and the maximum created number of the partitions in the theme;
the task information processing unit determines a current creatable number based on the maximum created number and the created number;
the task information processing unit creates the test task parallelism partitions under the condition that the current creatable number is larger than or equal to the test task parallelism;
in the case where the current creatable number is smaller than the test task parallelism, the task information processing unit creates the current creatable number of partitions.
7. The method of claim 1, wherein the simulation test apparatus further comprises a cloud simulation platform, and wherein after the task allocation core unit sends the configuration information corresponding to each of the plurality of partitions to the corresponding simulation test unit, the simulation test method further comprises:
and the cloud simulation platform responds to the task state checking instruction and acquires the running state of the simulation task from the file storage unit.
8. A simulation test apparatus, characterized in that the simulation test apparatus includes a task information processing unit and a task allocation core unit, the simulation test apparatus comprising:
the task information processing unit is used for acquiring simulation test task information, wherein the simulation test task information comprises test task parallelism and configuration information corresponding to each of a plurality of simulation test tasks, the configuration information comprises configuration parameters and a reference path of at least one simulation file corresponding to the simulation test tasks in a file storage system, and the simulation file comprises a scene file, a road file and a rendering file; the configuration parameters comprise sensor parameters, dynamic parameters and simulation duration; the parallelism of the test tasks is the number of tasks which are tested simultaneously, and can be determined according to the grade of a user; the current partition creation capability is determined based on the maximum partition creation capability and the number of created partitions;
the task information processing unit is further used for creating a plurality of partitions based on the test task parallelism and the current partition creation capability;
the task information processing unit is also used for distributing a plurality of configuration information to each partition according to the simulation test task;
The task information processing unit is further configured to send the plurality of partitions, configuration information corresponding to each of the plurality of partitions, and corresponding configuration information identifiers to the task allocation core unit;
the task allocation core unit is used for sending configuration information identifiers corresponding to different simulation test tasks to different simulation test units, and is used for a plurality of simulation test units to acquire corresponding configuration information from the task allocation core unit based on the respective corresponding configuration information identifiers so that the plurality of simulation test units execute the test tasks based on the respective configuration parameters corresponding to the respective configuration information identifiers and the simulation files corresponding to the at least one reference path.
9. An electronic device comprising a processor and a memory storing computer program instructions;
the processor performs a simulation test method implementing any of claims 1-7.
10. A computer readable storage medium, having stored thereon computer program instructions which, when executed by a processor, implement the simulation test method of any of claims 1-7.
CN202311110729.XA 2023-08-31 2023-08-31 Simulation test method, simulation test device, electronic equipment and storage medium Active CN116842763B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311110729.XA CN116842763B (en) 2023-08-31 2023-08-31 Simulation test method, simulation test device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311110729.XA CN116842763B (en) 2023-08-31 2023-08-31 Simulation test method, simulation test device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116842763A CN116842763A (en) 2023-10-03
CN116842763B true CN116842763B (en) 2024-01-26

Family

ID=88167482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311110729.XA Active CN116842763B (en) 2023-08-31 2023-08-31 Simulation test method, simulation test device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116842763B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10181000B1 (en) * 2017-03-27 2019-01-15 Cadence Design Systems, Inc. Scheduling parallel processing of multiple partitions for signal electromigration analysis
CN111443990A (en) * 2020-03-25 2020-07-24 中南大学 Edge calculation task migration simulation system
CN111859638A (en) * 2020-07-06 2020-10-30 中国人民解放军海军航空大学航空作战勤务学院 Real-time efficient distributed virtual-real combined simulation system and construction method
CN112115657A (en) * 2020-10-14 2020-12-22 深圳安捷丽新技术有限公司 Chip security simulation analysis method and device for preventing single time attack
CN112152780A (en) * 2020-10-29 2020-12-29 深圳安捷丽新技术有限公司 SEMA attack-preventing to-be-tested circuit security simulation analysis method and device
CN116628028A (en) * 2023-05-24 2023-08-22 中国空间技术研究院 Real-time acquisition, processing and storage system and method for simulation process data

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8893009B2 (en) * 2009-01-28 2014-11-18 Headwater Partners I Llc End user device that secures an association of application to service policy with an application certificate check
US9392462B2 (en) * 2009-01-28 2016-07-12 Headwater Partners I Llc Mobile end-user device with agent limiting wireless data communication for specified background applications based on a stored policy
CN106445640B (en) * 2016-10-20 2019-06-18 南京南瑞继保电气有限公司 A kind of embedded type virtual device operation method and system
US20220014512A1 (en) * 2020-07-13 2022-01-13 Headwater Research Llc End User Device That Secures an Association of Application to Service Policy With an Application Certificate Check

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10181000B1 (en) * 2017-03-27 2019-01-15 Cadence Design Systems, Inc. Scheduling parallel processing of multiple partitions for signal electromigration analysis
CN111443990A (en) * 2020-03-25 2020-07-24 中南大学 Edge calculation task migration simulation system
CN111859638A (en) * 2020-07-06 2020-10-30 中国人民解放军海军航空大学航空作战勤务学院 Real-time efficient distributed virtual-real combined simulation system and construction method
CN112115657A (en) * 2020-10-14 2020-12-22 深圳安捷丽新技术有限公司 Chip security simulation analysis method and device for preventing single time attack
CN112152780A (en) * 2020-10-29 2020-12-29 深圳安捷丽新技术有限公司 SEMA attack-preventing to-be-tested circuit security simulation analysis method and device
CN116628028A (en) * 2023-05-24 2023-08-22 中国空间技术研究院 Real-time acquisition, processing and storage system and method for simulation process data

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
General-Purpose Gate-level Simulation with Partition-Agnostic Parallelism;Zizheng Guo etcl;2023 60th ACM/IEE Design Automation Conference;全文 *
xPC实时半物理仿真平台中并行执行模型的设计;张云山;电子设计工程(第18期);全文 *
云平台支撑下的虚实网络融合仿真方法;邓博等;小型微型计算机系统(第03期);全文 *
仿真标准试验验证及技术服务平台建设探讨;陈杰等;机械工业标准化与质量(第02期);全文 *
分布式认知网络多域并行入侵实时预警仿真;王红玉;计算机仿真(第04期);全文 *
基于UML&SystemC的GPU片段处理TLM建模;姜丽云等;计算机技术与发展(第09期);全文 *

Also Published As

Publication number Publication date
CN116842763A (en) 2023-10-03

Similar Documents

Publication Publication Date Title
CN107807815B (en) Method and device for processing tasks in distributed mode
CN110753089B (en) Method, device, medium and electronic equipment for managing client
CN104461856A (en) Performance test method, device and system based on cloud computing platform
CN106970880A (en) A kind of distributed automatization method for testing software and system
CN112650478B (en) Dynamic construction method, system and equipment for embedded software development platform
CN104978276B (en) Method, apparatus and system for inspection software
CN111010317A (en) Bluetooth production and test method and system based on serial port and Bluetooth low-energy consumption dual protocol
CN114896108A (en) Test verification system
CN116842763B (en) Simulation test method, simulation test device, electronic equipment and storage medium
CN106933646B (en) Method and device for creating virtual machine
CN117041111A (en) Vehicle cloud function test method and device, electronic equipment and storage medium
CN109144864B (en) Method and device for testing window
CN111382058B (en) Service testing method and device, server and storage medium
Hetu et al. Similitude: Interfacing a traffic simulator and network simulator with emulated android clients
CN103425707A (en) Data analyzing method and data analyzing device
CN111294250B (en) Pressure testing method, device and system
CN105530140A (en) Cloud scheduling system, method and device for removing tight coupling of use case and environment
CN112799682B (en) Data acquisition and processing system and method for operating multi-version application thereof
CN114490318A (en) Environment management system and method for realizing weak isolation based on bytecode enhancement
US20170286181A1 (en) Deployment and execution of sensing and computational tasks in a network of computing devices
CN109151007B (en) Data processing method, core server and transmission server for application scheduling
CN113296972A (en) Information registration method, computing device and storage medium
CN106339797A (en) Point inspection data processing method and device
CN112395363A (en) Data synchronization method, device, equipment and readable storage medium
CN111414152A (en) Method, system, readable medium and electronic device for implementing business logic

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