CN115795845A - Construction method, device, equipment and storage medium of integrated test simulation platform - Google Patents

Construction method, device, equipment and storage medium of integrated test simulation platform Download PDF

Info

Publication number
CN115795845A
CN115795845A CN202211469524.6A CN202211469524A CN115795845A CN 115795845 A CN115795845 A CN 115795845A CN 202211469524 A CN202211469524 A CN 202211469524A CN 115795845 A CN115795845 A CN 115795845A
Authority
CN
China
Prior art keywords
data
simulation platform
micro
electronic controller
sensor
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
Application number
CN202211469524.6A
Other languages
Chinese (zh)
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.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile 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 Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202211469524.6A priority Critical patent/CN115795845A/en
Publication of CN115795845A publication Critical patent/CN115795845A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method, a device, equipment and a storage medium for constructing an integrated test simulation platform. The method comprises the following steps: acquiring performance data of each sensor in the vehicle, and performing virtualization processing on each sensor to obtain each virtualized sensor; acquiring the integration function of each electronic controller unit, integrating each virtualized sensor to the corresponding electronic controller unit, and deploying a micro-service architecture; and writing a test scheme, realizing the communication of each micro service architecture through a communication protocol, and constructing an integrated test simulation platform. A single electronic controller is virtualized to be deployed as a version mirror image blueprint into micro services, a plurality of electronic controllers are virtualized into micro service clusters, and interaction is carried out, so that integrated deployment and testing are realized. And then mapping the simulation platform into a whole vehicle model based on the whole platform, and transmitting data generated by interaction with the environment in the simulation environment to each electronic controller micro-service to realize integrated simulation test. The development cost is reduced, and the iteration efficiency is improved.

Description

Construction method, device, equipment and storage medium of integrated test simulation platform
Technical Field
The application relates to the technical field of software testing, in particular to a method, a device, equipment and a storage medium for constructing an integrated testing simulation platform.
Background
Before the vehicle is put into production, the vehicle needs to be subjected to performance testing. Generally, a simulation test method is used, in a traditional vehicle-mounted ECU (electronic control unit) embedded software development test process, different service modules need to be deployed on different ECU nodes, and data is transmitted between the ECU nodes in a CAN bus manner, so as to realize communication and control between services.
The existing vehicle simulation test method usually adopts a mode of combining software test and hardware test, namely after the development of each functional module of the ECU is completed, data transmission among the ECUs is realized through a mode of jointly adjusting and testing the hardware. However, this method has strong dependence on hardware support, and before the hardware resources are not supported, the vehicle-end embedded software cannot quickly enter a sufficient test stage, and especially when a plurality of nodes are tested in an integrated manner, the hardware resources of one node are not supported, which may affect the progress of the whole joint debugging. In addition, the test mode of the strong dependence of the hardware requires that developers have hardware knowledge and need to connect and build an environment by themselves in many cases. However, business developers are concerned about the operation of software and the operation of business processes, and do not want to spend much effort on the debugging of software, especially on some hardware links, so that the business process verification of the business developers has no progress. Therefore, a method, an apparatus, a device and a storage medium for constructing an integrated test simulation platform are needed.
Disclosure of Invention
In view of the above drawbacks of the prior art, the present invention provides a method, an apparatus, a device and a storage medium for constructing an integrated test simulation platform, so as to solve the above technical problems.
The invention provides a method for constructing an integrated test simulation platform, which comprises the following steps:
acquiring performance data of each sensor in a vehicle, and performing virtualization processing on each sensor according to the performance data to obtain each virtualized sensor;
acquiring the integration function of each electronic controller unit according to the name of each electronic controller unit in the vehicle, integrating each virtualized sensor to the corresponding electronic controller unit, and deploying a micro-service architecture, wherein the integration function of each electronic controller unit corresponds to one or more virtualized sensors;
and writing a corresponding test scheme according to the function of each micro service architecture, realizing communication among the micro service architectures through a preset communication protocol, and constructing an integrated test simulation platform.
In an embodiment of the invention, the test solution is written into a corresponding container of the micro service architecture in a form of a blueprint.
In an embodiment of the present invention, the communication protocol is HTTP, and the implementing communication between the micro service architectures through a preset communication protocol includes:
receiving a connection request sent by one of the micro service frameworks;
judging whether a connection confirmation response is generated within a preset response time length or not according to the connection request, and sending the generated connection confirmation response to the micro service architecture sending the connection request;
and receiving confirmation information sent by the micro service architecture sending the connection request to establish communication connection with the micro service architecture sending the connection request, wherein the confirmation information is information generated according to the connection confirmation response.
In an embodiment of the present invention, after the communication between the micro services is implemented through the preset communication rule, the method further includes:
carrying out simulation modeling according to preset road information, obstacle information, house information and people flow information, and constructing a virtual simulation map;
constructing a whole vehicle model according to the performance parameters of the vehicle;
deploying the whole vehicle model in the simulation map, and performing driving operation to obtain driving data;
and transmitting the driving data to each micro-service architecture so that each micro-service architecture controls the whole vehicle model to perform corresponding operation based on the driving data.
In an embodiment of the invention, the integrated test simulation platform is a visual operation interface.
In an embodiment of the present invention, the process of testing using the integrated test simulation platform includes:
inputting a software test requirement into the integrated test simulation platform, and reading data required by a preset test requirement;
according to the data required by the test requirement, searching the electronic controller unit corresponding to the data from a pre-stored data table, and sending a data acquisition request to the corresponding electronic controller unit;
and receiving data sent by each electronic controller unit within preset time, judging whether each data meets a preset standard, and completing the test when the data meets the standard.
In an embodiment of the present invention, after determining whether each data satisfies a predetermined criterion, the method further includes: if one data does not meet the preset standard, returning test failure information, and sending out warning information on the integrated test simulation platform.
In an embodiment of the present invention, a device for constructing an integrated test simulation platform is further provided, where the device includes:
the system comprises a virtualized sensor acquisition module, a data processing module and a data processing module, wherein the virtualized sensor acquisition module is configured to acquire performance data of each sensor in a vehicle and perform virtualization processing on each sensor according to the performance data to obtain each virtualized sensor;
the micro-service architecture deployment module is configured to acquire an integration function of each electronic controller unit according to the name of each electronic controller unit in the vehicle, integrate each virtualization sensor to the corresponding electronic controller unit, and deploy a micro-service architecture; wherein the integrated functionality of each electronic controller unit corresponds to one or more virtualized sensors;
and the simulation platform construction module is configured to write in a corresponding test scheme according to the functions of the micro service architectures, realize communication among the micro service architectures through a preset communication protocol and construct an integrated test simulation platform.
In an embodiment of the present invention, an electronic device is further provided, including:
one or more processors;
the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic equipment is enabled to realize the construction method of the integrated test simulation platform.
In an embodiment of the present invention, there is further provided a computer-readable storage medium, having computer-readable instructions stored thereon, which, when executed by a processor of a computer, cause the computer to execute any one of the above-mentioned methods for constructing an integrated test simulation platform.
The invention has the beneficial effects that: according to the invention, after the performance data of each sensor is obtained, the sensors can be virtualized, so that the virtualized sensors are obtained. In order to associate the virtualized sensors into the vehicle model. By acquiring the integrated functions of different electronic controller units, corresponding virtualized sensors can be selected, and the virtualized sensors are integrated on the electronic controller units related to the functions of the virtualized sensors, so that the micro-service architecture is deployed. And providing a corresponding test scheme according to the functions of each micro service architecture, and constructing an integrated test simulation platform. And virtualizing each electronic controller unit component of the whole vehicle in a micro-service mode, and performing uniform deployment and management, wherein a service module where a test scheme deployed in the electronic controller unit component is located is correspondingly deployed in a corresponding micro-service architecture. The integrated deployment and unified management of the vehicle-mounted embedded software in different areas of the whole vehicle are realized, and the full test of the service flow in the early development stage is carried out in a pure software platform, so that the development cost is reduced, and the iteration efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 is a schematic diagram of an implementation environment of a method for building an integrated test simulation platform according to an exemplary embodiment of the present application;
FIG. 2 is a flow chart illustrating a method of building an integrated test simulation platform according to an exemplary embodiment of the present application;
FIG. 3 is a flow diagram of micro service architecture communication in the embodiment shown in FIG. 2 in an exemplary embodiment;
FIG. 4 is a flow diagram of a simulation map construction in the embodiment shown in FIG. 2 in an exemplary embodiment;
FIG. 5 is a flow diagram of a test procedure in the embodiment shown in FIG. 2 in an exemplary embodiment;
FIG. 6 is a block diagram of an apparatus for building an integrated test simulation platform according to an exemplary embodiment of the present application;
FIG. 7 is a block diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
Detailed Description
Other advantages and effects of the present invention will become apparent to those skilled in the art from the disclosure herein, wherein the embodiments of the present invention are described in detail with reference to the accompanying drawings and preferred embodiments. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, and are not intended to limit the scope of the present invention.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
In the following description, numerous details are set forth to provide a more thorough explanation of embodiments of the present invention, however, it will be apparent to one skilled in the art that embodiments of the present invention may be practiced without these specific details, and in other embodiments, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring embodiments of the present invention.
Fig. 1 is a schematic environment for implementing a monitoring method for an information distribution cycle according to an exemplary embodiment of the present application. The smart terminal 110 shown in fig. 1 may be any monitoring terminal device supporting an installation information distribution cycle, such as a smart phone, a vehicle-mounted computer, a tablet computer, a notebook computer, or a wearable device, but is not limited thereto. The filling server 120 shown in fig. 1 is a navigation server, and may be, for example, an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud information base, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a CDN (content delivery network), and a macro information and artificial intelligence platform, which is not limited herein. The intelligent terminal 110 may communicate with the navigation server 220 through a wireless network such as 3G (third generation mobile information technology), 4G (fourth generation mobile information technology), 5G (fifth generation mobile information technology), etc., which is not limited herein.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for constructing an integrated test simulation platform according to an exemplary embodiment of the present application. The method may be applied to the implementation environment shown in fig. 1 and specifically executed by the intelligent terminal 110 in the implementation environment. It should be understood that the method may be applied to other exemplary implementation environments and is specifically executed by devices in other implementation environments, and the embodiment does not limit the implementation environment to which the method is applied.
As shown in fig. 2, in an exemplary embodiment, the method for constructing the integrated test simulation platform at least includes steps S210 to S240, which are described in detail as follows:
step S210, acquiring performance data of each sensor in the vehicle, and performing virtualization processing on each sensor according to the performance data to obtain each virtualized sensor.
When an integrated test simulation platform is constructed, various data of a vehicle are acquired firstly. Since data of a vehicle is acquired by a sensor, it is necessary to virtualize the sensor at first in an early stage of constructing an integrated test simulation platform. Specifically, performance data of each sensor may be obtained first, where the performance data may visually represent various performance indicators of the sensor, and the performance data includes, but is not limited to, sensitivity, frequency range of use, dynamic range, phase shift parameters, and the like of the sensor. For example, for a displacement sensor, the performance data may be sensitivity, zero temperature drift, output mode, measurement range, sensor gain, dynamic range, and the like. Therefore, for different sensors, the required performance data is different, it should be noted that each sensor may select one or more performance data, and those skilled in the art may adaptively select corresponding performance data according to actual needs according to the type of the sensor, so as to perform virtualization processing on the sensor, where specific performance data is not limited herein. The virtualized sensors obtained by virtualizing the sensors can correctly identify various physical quantities such as pressure, temperature, speed, distance and the like in the simulation environment, can also identify vehicles, pedestrians, static obstacles, traffic infrastructures and the like in the simulation environment, and output related physical data quantities to be provided for a micro-service architecture deployed in an integrated test simulation platform. In order to enable the integrated test simulation platform to be applicable to more types of vehicles, sensors of various vehicles may be virtualized in an initial stage of construction of the integrated test simulation platform, and if sensor performance parameters of two types of vehicles are consistent, the sensors may be simultaneously applied to the two types of vehicles. Therefore, the problem that time and labor are wasted due to the fact that all sensors are required to be subjected to virtualization treatment when a new vehicle type is introduced every time can be effectively solved. Of course, only one sensor of a specific vehicle type may be selected for virtualization, and those skilled in the art may freely select the sensor, which is not limited herein.
Step S220, acquiring the integration function of each electronic controller unit according to the name of each electronic controller unit in the vehicle, integrating each virtualization sensor to the corresponding electronic controller unit, and deploying a micro-service architecture, wherein the integration function of each electronic controller unit corresponds to one or more virtualization sensors.
Because the vehicle is controlled by the ECU, all the behaviors of the vehicle are controlled by the ECU. The ECU is referred to as a drive computer, an electronic control unit, and the like. The ECU is an electronic component which is very central on the vehicle and can monitor various data input by the automobile and various conditions during the running of the vehicle in real time. By integrating each virtualized sensor to the corresponding electronic controller unit, the data acquired by each virtualized sensor can be timely transmitted to the corresponding electronic controller unit for analysis, and the vehicle test is realized. In this embodiment, according to the name of each electronic controller unit in the vehicle, the integrated function of each electronic controller unit and the virtualization sensor required by the electronic controller unit can be queried in a pre-stored information table. Illustratively, in a driving system, the name of the electronic controller unit is a driving electronic controller unit, the corresponding integrated functions of which are to control the speed and direction of travel of the vehicle, and the corresponding virtualized sensors of which are a speed sensor and a direction sensor. The interfaces of the two virtualized sensors are connected with the driving electronic controller unit, so that the data of the virtualized sensors can be transmitted to the driving electronic controller unit. Further, in this embodiment, each electronic controller unit not only has functions in a conventional physical vehicle, but also CAN be virtualized into a form of a plug-in for integration required by container mirror image selection of the microservice architecture, such as 5G network communication, a CAN network controller, various sensor data receiving interfaces, and the like. The micro service container mirror image virtualized by each electronic controller unit node can integrate corresponding virtualized sensors according to different operating systems and basic function interfaces, dynamically generate a service mirror image version, and deploy a micro service architecture according to the service mirror image. In an embodiment of the present invention, the test solution is written into the corresponding container of the microservice architecture in the form of a blueprint. The method is equivalent to the method that embedded business function software is deployed in an electronic controller unit of a certain part of an automobile in actual operation. The test scheme is a preset test for the vehicle, and the test scheme comprises a plurality of test schemes, and each test scheme can test one or more associated performances of the vehicle. Since each time the test solution is developed, a new version of the test solution is generated, and the operator can directly deploy the new test solution to the container of the microservice architecture. Thus, in the container of each micro-service architecture, there are a plurality of different versions of the test protocol, and each test protocol is associated with a function of the electronic controller unit corresponding to that micro-service architecture. Different part interfaces and sensors can have different versions, and an operator can select a test scheme of a required version and dynamically select a test scheme of an integrated corresponding version according to actual test requirements. Through the operation interface, virtual micro-services of each electronic controller unit component can be managed, such as operations of starting, deleting, upgrading blueprint versions of application test schemes, checking micro-service operation conditions, occupying resources by each application module and the like.
And step S230, writing in a corresponding test scheme according to the functions of the micro service architectures, realizing communication among the micro service architectures through a preset communication protocol, and constructing an integrated test simulation platform.
Since there is a container in each microservice architecture for storing the corresponding test scenario. Therefore, when the integrated test simulation platform is constructed, the corresponding test scheme can be written according to the function of each micro-service architecture, namely the function of the corresponding electronic controller unit. Through interconnection and intercommunication among all test schemes, summarization and analysis of test data are realized, and thus an integrated test simulation platform is constructed. The communication between the containers in each micro-service architecture corresponds to the communication between the test solutions in the different electronic controller unit nodes of the automobile in reality. Therefore, in the integrated test simulation platform, not only can interconnection and intercommunication among different test schemes be realized, but also functions of data uploading, issuing, inquiring, controlling and the like between the vehicle-mounted software and the vehicle cloud platform can be simulated.
In an embodiment of the present invention, for a test solution in a single micro service architecture, the data manner acquired by the virtualized sensor may include direct acquisition and indirect acquisition. The direct acquisition can adopt physical data generated for capturing by the virtual sensor and then provided to the service module by the virtual sensor, and the indirect acquisition is to directly send virtual data to a container of the electronic controller unit in a script mode to trigger service.
As shown in fig. 3, fig. 3 is a flow diagram of micro service architecture communication in the embodiment shown in fig. 2 in an exemplary embodiment. In an embodiment of the present invention, the communication protocol is HTTP, and the implementing communication between the micro service architectures through a preset communication protocol includes:
step S310, receiving a connection request sent by one of the micro service architectures;
step S320, judging whether a connection confirmation response is generated within a preset response time length according to the connection request, and sending the generated connection confirmation response to the micro service framework sending the connection request;
step S330, receiving confirmation information sent by the micro service architecture sending the connection request to establish a communication connection with the micro service architecture sending the connection request, where the confirmation information is generated according to the connection confirmation response.
In this embodiment, data transmission is performed between the micro service architectures through an HTTP protocol, and specifically, when communication connection is required between two micro service architectures, one of the micro service architectures serves as a current micro service architecture and receives a connection request sent by the other micro service architecture. The current micro service architecture may generate a connection confirmation response within a preset response duration according to the content of the connection request. And then sending a connection confirmation response to the micro service framework sending the connection request, wherein if confirmation information sent by the micro service framework sending the connection request is received within a preset time length, the two micro service frameworks are indicated to establish communication connection, and data transmission can be realized. If the confirmation information sent by the micro service architecture for sending the connection request is not received within the preset time length, the data transmission is wrong, and therefore the operation needs to be interrupted and the next connection request is waited. Similarly, if the connection confirmation response is not generated within the preset response duration, it indicates that the current micro-service architecture has a problem in network or data transmission, and the operation also needs to be interrupted.
FIG. 4, as shown in FIG. 4, is a flow diagram of the construction of a simulation map in the embodiment shown in FIG. 2 in an exemplary embodiment. In an embodiment of the present invention, after the communication between the microservices is implemented through the preset communication rule, the method further includes:
s410, carrying out simulation modeling according to preset road information, obstacle information, house information and people flow information, and constructing a virtual simulation map;
s420, constructing a whole vehicle model according to the performance parameters of the vehicle;
s430, deploying the whole vehicle model in the simulation map, performing driving operation, and acquiring driving data;
and S440, transmitting the driving data to each micro service architecture so that each micro service architecture controls the whole vehicle model to perform corresponding operation based on the driving data.
In order to make the test result more fit to the reality, a virtual simulation map can be constructed, and the simulation modeling can be carried out on roads, obstacles, characters, houses and the like in the map. And virtually modeling the vehicle by acquiring various performance parameters of the vehicle to construct a whole vehicle model. It can be understood that there may be a plurality of vehicle models, each corresponding to a vehicle type. In actual operation, an operator can select a corresponding whole vehicle model for testing. And deploying the whole vehicle model with the virtualized components in the virtualized simulation map to perform driving motion operation. The simulation of the virtualized sensor is also deployed in a micro-service mode, and the data source of the virtualized sensor is the interaction between the whole vehicle model and elements in the virtualized map. The driving data acquired by the virtualization sensor is transmitted to the corresponding micro service frameworks, and the micro service frameworks perform corresponding driving operation according to the driving data, so that a series of test data can be acquired. Illustratively, in the whole vehicle model, a service function module and a virtualized sensor data receiving function are integrated in a virtual machine of each component node, the whole vehicle model simulates moving driving in a virtualized map, in the process, the whole vehicle model interacts with various elements in the virtual simulation map, and generated physical signals can be captured by the virtual sensor in each virtual machine of the whole vehicle model and transmitted to a corresponding container in a micro-service architecture. The container can perform corresponding operations according to the received physical signals, or interact with containers in other micro-service architectures, or interact with the vehicle cloud platform. The scene can be applied to algorithm testing of intelligent driving, can also be applied to testing of vehicle-mounted software under the conditions of simulating impact and collision, and can reduce hardware resource loss in actual testing. The mode of transmitting data to the electronic controller unit can adopt a publishing mode, and the electronic controller unit can also selectively subscribe the data of the target virtual sensor, so that the effective transmission of the data is realized. The virtual simulation map is created, the virtual sensor is built, the whole vehicle model is loaded in the simulation map, the processes of driving movement and the like are simulated, and the service software flow data in the simulation process are output, so that the final test result is closer to a real scene, and the error rate of the test is reduced.
Further, in order to facilitate an operator to observe various data more intuitively, in an embodiment of the present invention, the integrated test simulation platform is a visual operation interface. The whole vehicle model is composed of a plurality of component models. Each component can be split, so that during actual testing, an operator can directly select a basic functional component and a virtual sensor component which are required to be integrated on a target component according to the target component which needs to be tested, and dynamically generate a container mirror image version for deployment. And observing a test result through an integrated test simulation platform. Various virtualization capacity plug-ins can be selectively integrated through plug-in type virtualization of various basic capacities of vehicle-mounted electronic controller unit components and container virtualization of various components of the whole vehicle, and container images representing vehicle-mounted electronic controller unit nodes are dynamically generated. And thus can be adapted to a variety of different blueprint versions. After the communication connection between different micro service architectures is established, an automatic test flow can be established in the micro service architecture with the user interaction application software deployed, man-machine interaction is simulated, and the service flow between vehicle-mounted nodes in actual operation is simulated by triggering the interaction process of containers between different micro service architectures. By establishing the automatic testing process, the workload of testing and acceptance can be effectively reduced in the subsequent process of upgrading and expanding the functions of each service module.
As shown in FIG. 5, FIG. 5 is a flow diagram of a testing process in the embodiment shown in FIG. 2 in an exemplary embodiment. In an embodiment of the present invention, the process of testing by using the integrated test simulation platform includes:
s510, inputting test requirements into the integrated test simulation platform, and reading data required by preset software test requirements;
s520, searching the electronic controller unit corresponding to the data from a pre-stored data table according to the data required by the test requirement, and sending a data acquisition request to the corresponding electronic controller unit;
s530, receiving data sent by each electronic controller unit within preset time, judging whether each data meets preset standards, and completing the test when the data meets the standards.
When the integrated test simulation platform is used for software test, specific test requirements are input into the integrated test simulation platform by an operator, and the integrated test simulation platform can automatically read data required by the test requirements. And the operator can select corresponding test data in the integrated test simulation platform through a pull-down menu and then start testing through the integrated test simulation platform. During testing, after the integrated test simulation platform reads required data, the name of the electronic controller unit related to the data is inquired from a data table prestored in the platform, and a data acquisition request is sent to the electronic controller unit to indicate that the electronic controller unit needs to operate so as to acquire the corresponding data. And after receiving the request, the electronic controller unit acquires corresponding data by controlling the operation of the whole vehicle model and sends the data to an interface of the integrated test simulation platform within preset time. And the judgment unit of the integrated test simulation platform judges whether the data meet the test requirements of operators or not and determines whether the data meet the standards or not. And if all the data meet the test requirements, the standard is met, the test is completed, and a test completion report is pushed to an operator, wherein the report contains all the data of the test. In an embodiment of the present invention, after determining whether each data satisfies a preset standard, the method further includes: if one data does not meet the preset standard, test failure information is returned, and warning information is sent out on the integrated test simulation platform. Meanwhile, a test failure report can be pushed to an operator, wherein the test failure report can comprise data of test failure and judgment of a possibly caused reason.
It should be noted that the present invention can be implemented in many different forms and is not limited to the embodiments described herein, such as may be based on different operating systems: including but not limited to linux, qnx, and other operating systems, based on different hardware platforms: including but not limited to x86, xavier, orin, etc. hardware platforms.
According to the invention, after the performance data of each sensor is obtained, the sensors can be virtualized, so that the virtualized sensors are obtained. In order to associate the virtualized sensors into the vehicle model. By acquiring the integrated functions of different electronic controller units, corresponding virtualized sensors can be selected, and the virtualized sensors are integrated on the electronic controller units related to the functions of the virtualized sensors, so that the micro-service architecture is deployed. And providing a corresponding test scheme according to the functions of each micro service architecture, and constructing an integrated test simulation platform. Hardware decoupling is provided for integrated testing of embedded software of vehicle-mounted electronic controller units, and by constructing the integrated testing simulation platform which runs by pure software, research personnel responsible for development of service software of each local node can be coordinated and supported by the platform in a unified manner. The interference of a hardware environment is avoided, the problem positioning is more efficient, and a more sufficient test scene can be provided by the support of an automatic test case. The whole vehicle model is combined with physical simulation, the motion driving of the whole vehicle model in a virtualized map is simulated, physical signals generated in the process are transmitted to corresponding business modules in the micro-service architecture, and the interaction flow among the business modules is triggered. The driving simulation of the whole vehicle model under the virtual map can also simulate the motion scene under some extreme conditions, reduce the times of real objects and artificial driving and save the development cost. Further, in the application, a visual integrated test simulation platform is created based on the whole vehicle model, and the service module is deployed in the micro-service container corresponding to the electronic controller unit. For the electronic controller units on different CAN buses, the micro-services corresponding to the electronic controller units CAN be positioned in different network segments, and the interconnection and intercommunication of information in different network segments CAN be realized. Virtualization is performed through hardware devices, sensors, bottom layer protocols and the like, and virtualization of a single electronic controller unit is achieved. The single virtualized electronic controller is then deployed as a version mirror blueprint to the microservice. And a plurality of electronic controllers are virtualized into a micro service cluster, and the functions of integrated deployment and integrated test are realized through mutual interaction. And then mapping the data into a whole vehicle model based on the whole platform, and transmitting the data generated by interaction with the environment in the simulation environment into each ECU micro-service to realize integrated simulation test.
Fig. 6 is a block diagram illustrating a building apparatus of an integrated test simulation platform according to an exemplary embodiment of the present application. The apparatus can be applied to the implementation environment shown in fig. 2, and is specifically configured in the intelligent terminal 210. The apparatus may also be applied to other exemplary implementation environments, and is specifically configured in other devices, and the embodiment does not limit the implementation environment to which the apparatus is applied.
As shown in fig. 6, the exemplary building apparatus 600 for an integrated test simulation platform includes:
a virtualized sensor acquisition module 601 configured to acquire performance data of each sensor in the vehicle, and perform virtualization processing on each sensor according to the performance data to obtain each virtualized sensor; the microservice architecture deployment module 602 is configured to obtain an integration function of each electronic controller unit according to a name of each electronic controller unit in the vehicle, integrate each virtualized sensor to the corresponding electronic controller unit, and deploy a microservice architecture; wherein the integrated functionality of each electronic controller unit corresponds to one or more virtualized sensors; the simulation platform building module 603 is configured to write a corresponding test scheme according to the function of each micro service architecture, and implement communication between the micro service architectures through a preset communication protocol to build an integrated test simulation platform.
In another exemplary embodiment, the microservice architecture deployment module 602 includes:
a connection request receiving unit configured to receive a connection request sent by one of the microservices architecture;
the connection confirmation response generation unit is configured to judge whether a connection confirmation response is generated within a preset response duration according to the connection request, and send the generated connection confirmation response to the micro service architecture sending the connection request;
and the communication connection unit is configured to receive confirmation information sent by the micro service architecture sending the connection request so as to establish communication connection with the micro service architecture sending the connection request, wherein the confirmation information is information generated according to the connection confirmation response.
In another exemplary embodiment, the microservice architecture deployment module 602 includes:
the simulation map building unit is configured to perform simulation modeling according to preset road information, obstacle information, house information and people flow information to build a virtual simulation map;
the whole vehicle model acquisition unit is configured to construct a whole vehicle model according to the performance parameters of the vehicle;
the driving data acquisition unit is configured to deploy the whole vehicle model in the simulation map, perform driving operation and acquire driving data;
and the control unit is configured to transmit the driving data to each micro service architecture so that each micro service architecture controls the whole vehicle model to perform corresponding operation based on the driving data.
In another exemplary embodiment, the simulation platform building module 603 includes:
the data reading unit is configured to input a software testing requirement into the integrated testing simulation platform and read data required by a preset testing requirement;
the request sending unit is configured to search the electronic controller unit corresponding to the data from a pre-stored data table according to the data required by the test requirement, and send a data acquisition request to the corresponding electronic controller unit;
and the testing unit is configured to receive the data sent by each electronic controller unit within the preset time, judge whether each data meets the preset standard or not, and complete the test when the data meets the standard.
It should be noted that, the apparatus for constructing an integrated test simulation platform provided in the foregoing embodiment and the method for constructing an integrated test simulation platform provided in the foregoing embodiment belong to the same concept, and specific ways of performing operations by each module and unit have been described in detail in the method embodiment, and are not described herein again. In practical applications, the integrated test simulation platform device provided in the above embodiment may distribute the functions through different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above, which is not limited herein.
An embodiment of the present application further provides an electronic device, including: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device is enabled to realize the building method of the integrated test simulation platform provided in the above embodiments.
FIG. 7 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application. It should be noted that the computer system 700 of the electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate actions and processes, such as executing the methods described in the above embodiments, according to a program stored in a Read-only memory (ROM) 702 or a program loaded from a storage portion 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data necessary for system operation are also stored. The CPU701, the ROM702, and the RAM703 are connected to each other via a bus 704. An Input/Output (I/O) interface 705 is also connected to the bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN (local area network) card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, according to embodiments of the present application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method illustrated by the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program executes various functions defined in the system of the present application when executed by a Central Processing Unit (CPU) 701.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer-readable signal medium may comprise a propagated data signal with a computer-readable computer program embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
Another aspect of the present application also provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor of a computer, causes the computer to execute the method for building an integrated test simulation platform as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist alone without being assembled into the electronic device.
Another aspect of the application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the building method of the integrated test simulation platform provided in the above embodiments.
The foregoing embodiments are merely illustrative of the principles of the present invention and its efficacy, and are not to be construed as limiting the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention are covered by the claims of the present invention.

Claims (10)

1. A method for constructing an integrated test simulation platform is characterized by comprising the following steps:
acquiring performance data of each sensor in the vehicle, and performing virtualization processing on each sensor according to the performance data to obtain each virtualized sensor;
acquiring the integration function of each electronic controller unit according to the name of each electronic controller unit in the vehicle, integrating each virtualized sensor to the corresponding electronic controller unit, and deploying a micro-service architecture, wherein the integration function of each electronic controller unit corresponds to one or more virtualized sensors;
and writing in a corresponding test scheme according to the functions of each micro service architecture, realizing communication among the micro service architectures through a preset communication protocol, and constructing an integrated test simulation platform.
2. The method for constructing an integrated test simulation platform according to claim 1, wherein the test solution is written into a container of the corresponding micro service architecture in a form of a blueprint.
3. The method for constructing the integrated test simulation platform according to claim 1, wherein the communication protocol is HTTP, and the implementing of communication between the micro service architectures through a preset communication protocol includes:
receiving a connection request sent by one of the micro service frameworks;
judging whether a connection confirmation response is generated within a preset response time length or not according to the connection request, and sending the generated connection confirmation response to the micro service framework sending the connection request;
receiving confirmation information sent by the micro service architecture sending the connection request to establish communication connection with the micro service architecture sending the connection request, wherein the confirmation information confirms according to the connectionResponding to the generated information
4. The method for constructing an integrated test simulation platform according to claim 1, after the communication between the micro services is realized through the preset communication rule, the method further comprises:
carrying out simulation modeling according to preset road information, obstacle information, house information and people flow information, and constructing a virtual simulation map;
constructing a whole vehicle model according to the performance parameters of the vehicle;
deploying the whole vehicle model in the simulation map, and performing driving operation to obtain driving data;
and transmitting the driving data to each micro-service architecture so that each micro-service architecture controls the whole vehicle model to perform corresponding operation based on the driving data.
5. The method for constructing an integrated test simulation platform according to claim 1, wherein the integrated test simulation platform is a visual operation interface.
6. The method for constructing the integrated test simulation platform according to claim 1, wherein the process of testing by using the integrated test simulation platform comprises:
inputting a software test requirement into the integrated test simulation platform, and reading data required by a preset test requirement;
according to the data required by the test requirement, searching the electronic controller unit corresponding to the data from a pre-stored data table, and sending a data acquisition request to the corresponding electronic controller unit;
and receiving data sent by each electronic controller unit within preset time, judging whether each data meets a preset standard, and completing the test when the data meets the standard.
7. The method for constructing an integrated test simulation platform according to claim 6, wherein after determining whether each datum meets a predetermined criterion, the method further comprises: if one data does not meet the preset standard, returning test failure information, and sending out warning information on the integrated test simulation platform.
8. An integrated test simulation platform construction device, the device comprising:
the system comprises a virtualized sensor acquisition module, a data processing module and a data processing module, wherein the virtualized sensor acquisition module is configured to acquire performance data of each sensor in a vehicle and perform virtualization processing on each sensor according to the performance data to obtain each virtualized sensor;
the micro-service architecture deployment module is configured to acquire an integration function of each electronic controller unit according to the name of each electronic controller unit in the vehicle, integrate each virtualization sensor to the corresponding electronic controller unit, and deploy a micro-service architecture; wherein the integrated functionality of each electronic controller unit corresponds to one or more virtualized sensors;
and the simulation platform construction module is configured to write in a corresponding test scheme according to the functions of the micro service architectures, realize communication among the micro service architectures through a preset communication protocol and construct an integrated test simulation platform.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the electronic device to implement the method of building an integrated test simulation platform according to any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to execute the method of constructing an integrated test simulation platform according to any one of claims 1 to 7.
CN202211469524.6A 2022-11-22 2022-11-22 Construction method, device, equipment and storage medium of integrated test simulation platform Pending CN115795845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211469524.6A CN115795845A (en) 2022-11-22 2022-11-22 Construction method, device, equipment and storage medium of integrated test simulation platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211469524.6A CN115795845A (en) 2022-11-22 2022-11-22 Construction method, device, equipment and storage medium of integrated test simulation platform

Publications (1)

Publication Number Publication Date
CN115795845A true CN115795845A (en) 2023-03-14

Family

ID=85440214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211469524.6A Pending CN115795845A (en) 2022-11-22 2022-11-22 Construction method, device, equipment and storage medium of integrated test simulation platform

Country Status (1)

Country Link
CN (1) CN115795845A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116361150A (en) * 2023-02-22 2023-06-30 广州汽车集团股份有限公司 Method, device and system for testing vehicle in whole vehicle simulation environment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116361150A (en) * 2023-02-22 2023-06-30 广州汽车集团股份有限公司 Method, device and system for testing vehicle in whole vehicle simulation environment
CN116361150B (en) * 2023-02-22 2024-03-01 广州汽车集团股份有限公司 Method, device and system for testing vehicle in whole vehicle simulation environment

Similar Documents

Publication Publication Date Title
EP3761605B1 (en) Vehicle diagnosis method, related device and system
CN111611054B (en) Application deployment method and device
JP2021500686A (en) Code module selection for device design
CN112639734B (en) Simulation task scheduling method, execution method, simulation implementation method and device
CN115795845A (en) Construction method, device, equipment and storage medium of integrated test simulation platform
CN116028025A (en) Method, device, equipment and medium for generating automobile service model frame
CN115879323B (en) Automatic driving simulation test method, electronic equipment and computer readable storage medium
CN113468070A (en) Consistency test method for vehicle-mounted Ethernet
CN115185205A (en) Intelligent driving simulation method, system, terminal device and readable storage medium
CN116257438A (en) Updating method of interface test case and related equipment
Kirchhof et al. Simulation as a service for cooperative vehicles
US10585771B1 (en) Pluggable hardware simulation test execution system
CN115934263A (en) Data processing method and device, computer equipment and storage medium
CN116126710A (en) Vehicle-mounted software simulation method, device, equipment and medium
CN115629599B (en) CAN bus simulation test method and system
CN111506393A (en) ARM-based virtualization device and use method thereof
CN116342773A (en) Automatic driving information visualization method and device based on rendering engine and vehicle
CN115877819A (en) Vehicle remote diagnosis management method, device, equipment and medium
CN115145630A (en) Cabin software version management method, device, equipment and medium
CN114328229A (en) Over-the-air technology test system
CN114905501A (en) Generation method, application method and device of robot simulator
CN111177877A (en) Local simulation method and device based on application container engine and storage medium
CN113935100B (en) Cloud modeling method, cloud modeling device and cloud modeling system
CN113553730B (en) Automobile industry multi-equipment joint debugging scene simulation method, device, equipment and medium
CN114937369B (en) Autonomous agent parking method, system, vehicle, parking lot end, device and medium

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