Disclosure of Invention
The invention provides a simulation test method and a simulation test device for a vehicle-mounted short-distance communication network based on real-time traffic road conditions, which are used for testing the vehicle-mounted short-distance communication network in a real and real-time traffic scene.
In order to achieve the above object, the technical solution of the present invention provides a method for simulation testing of a vehicle-mounted short-distance communication network based on real-time traffic road conditions, comprising: and acquiring static road information, and restoring the road according to the static road information and the longitude and latitude information to obtain road restoration information. And acquiring dynamic road information, and constructing road condition mapping based on the dynamic road information and the road restoration information to obtain a real-time traffic restoration scene. A plurality of dynamic test areas are set in a real-time traffic reduction scene, and each dynamic test area synchronously or asynchronously performs radio wave transmission performance test, data packet collision performance test and application scene test. And the area of the dynamic test area is not more than twice of the communication range of the vehicle-mounted node.
As a preferred aspect of the foregoing technical solution, preferably, the acquiring static road information, and restoring the road according to the static road information and the longitude and latitude information to obtain the road restoration information includes: and acquiring the road information and the surrounding environment information of the designated area of the public map. And drawing the contents included in the regional road information and the surrounding environment information according to the longitude and latitude information to generate road restoration information. The regional road information comprises the name of a road, the width of the road, the number and the trend of lanes, a traffic intersection and the lane direction at the traffic intersection; the surrounding environment information comprises roadside building height, building types and signal lamps.
As a preferred aspect of the above technical solution, preferably, the acquiring dynamic road information, and constructing a road condition mapping based on the dynamic road information and the road restoration information to obtain a real-time traffic restoration scene includes: and acquiring real-time road traffic conditions at the longitude and latitude positions of the simulation points. And constructing traffic condition mapping based on the system parameters, the number of lanes in the road restoration information, the lane direction at the traffic intersection and the real-time traffic road traffic condition to obtain a real-time traffic restoration scene. Wherein the system parameters include: the number of vehicles in hundred meters, the types of vehicles in urban areas/suburban areas and the density of the vehicles respectively correspond to each traffic road condition.
Preferably, the moving method of the dynamic test area includes: a start point travel mode, a free travel mode are specified.
As a preferable aspect of the above technical solution, preferably, the radio wave transmission performance test includes: and classifying the occlusion type and the environmental reflection type in the transmission scene, and manufacturing a typical environment model according to the classification result. And matching the electric wave transmission environment of the vehicle pairs in the dynamic test area, and matching the corresponding typical environment model according to the matching result. And after the channel model parameters of the models and the factors are combined, calculating path loss, shadow fading, small-scale fading, signal-to-noise ratio estimation coverage, transmission reliability and transmission delay according to electric wave transmission parameters, and outputting a radio wave transmission performance test result. Wherein the number of the typical environment models is equal to the number of the categories in the classification result.
Preferably, the data packet collision performance test includes: and further mapping the mapping relation and the mapping quantity of the vehicle quantity and the vehicle speed information included in the traffic condition mapping to threads with the same quantity. And executing a tested channel distribution scheme, judging whether more than two vehicles exist on the same channel, if so, failing to send the data packet, counting the sending failure times, obtaining the collision rate and reliability of the data packet through calculation, and comprehensively obtaining the collision performance test result of the data packet through the delay generated by collision of the data packet.
Preferably, the application scenario test includes: the method comprises the following steps of testing a straight scene, a steering scene, an intersection auxiliary scene and a lane change scene, wherein the front collision early warning test in the straight scene test comprises the following steps: after setting measurement parameters for vehicles right in front of a target vehicle and in front of two sides of the target vehicle, testing the adjusting capability of V2X on the state of the target vehicle when the different vehicle speeds and driving states of the three front vehicles are changed respectively according to the signal intensity parameter, the transmission reliability and the transmission delay parameter in the radio wave transmission performance test result of the dynamic test area; wherein the measurement parameters include: acceleration, deceleration, lane change, whether a rear vehicle is inserted, target vehicle acceleration, inter-vehicle distance between two vehicles, weather conditions and road conditions;
the emergency brake lamp test in the straight-driving scene test comprises the following steps: and carrying out emergency braking on each vehicle in the dynamic test area, and testing whether the rear vehicle of each vehicle can decelerate in time and brake safely by combining the radio wave transmission performance test result and the data packet collision performance test result.
As a preferable aspect of the foregoing technical solution, preferably, the steering application scenario mainly includes: forbidding to pass through early warning scene, supplementary scene of turning left, the test to forbidding to pass through early warning scene includes: and according to the restored vehicle density and road width in the dynamic test area, according to the test area signal intensity parameter in the radio wave transmission performance test result and the reliability and delay parameter of the data packet in the data packet collision performance test result, testing the reliability and delay parameter sent by the V2X to the target vehicle when the target vehicle overtakes the vehicle in the blind area, recording the time of the driver reacting and calculating the accident probability. The test of the left-turn auxiliary scene comprises the following steps: and according to the restored vehicle density and road width in the dynamic test area, combining the speed of the target vehicle and the vehicle speed of the vehicles around the target vehicle, and further according to the test area signal intensity parameters in the line electric wave transmission performance test result and the reliability and delay parameters of the data packet in the data packet collision performance test result, testing the early warning capability of the target vehicle in a left turning blind area when the target vehicle turns left at a non-line-of-sight distance, including reminding and decelerating the target vehicle.
Preferably, the intersection scene test includes: according to the restored vehicle density, road width and lane trend at the traffic intersection in the dynamic test area, according to the test area signal intensity parameter in the radio wave transmission performance test result and the reliability and delay parameter of the data packet in the data packet collision performance test result, testing whether the V2X can give an early warning to collision or not under the non-line-of-sight condition by combining the speed and acceleration of the target vehicle and the speed and acceleration of the vehicles around the target vehicle, and if the early warning is successful, further testing whether the V2X can brake the target vehicle or not.
As a preferable aspect of the foregoing technical solution, preferably, the lane change application scenario includes: in the blind area reminding/lane changing early warning scene, according to the restored vehicle density and vehicle speed in the dynamic test area, carrying out overtaking operation on each vehicle in the area, according to the test area signal intensity parameter in the radio wave transmission performance test result and the reliability and delay parameter of the data packet in the data packet collision performance test result, testing whether the overtaking of the V2X can be successfully early warned under the condition that each vehicle has a visual blind area in a non-line-of-sight test environment so as to obtain the reliability and timeliness of the V2X transmission data packet
The technical scheme of the invention provides a simulation test method of a vehicle-mounted short-distance communication network based on real-time traffic road conditions, which comprises the following steps: and restoring the road according to the road static information and the longitude and latitude information to obtain road restoration information. And constructing road condition mapping based on the road dynamic information and the road restoration information to obtain a real-time traffic restoration scene. In the scene, a plurality of dynamic test areas are set, and each dynamic test area synchronously or asynchronously performs radio wave transmission performance test, data packet collision performance test and application scene test. And the area of the dynamic test area is not more than twice of the communication range of the vehicle-mounted node.
The method has the advantage that the simulation of the real-time actual road scene corresponding to the V2X is realized by converting the real-time traffic information and the road information into the vehicle information of the actual road. The V2X algorithms are tested in real time under the actual road scene, so that simulation and performance test of the actual scene of the actual road in different time periods and different areas are realized, the performance of the algorithms under the actual road is obtained, and an approximately real test environment is provided for the algorithms of the V2X.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Now, the architecture of the present invention is explained primarily, as shown in fig. 1, fig. 1 is a schematic diagram of an implementation framework of the technical solution provided by the present invention.
First, road and surrounding information is captured. And then, carrying out data processing on the captured information to realize real-time traffic road condition acquisition and scene restoration, and finally mapping the simulation scene and carrying out performance test on the V2X network.
Now further explaining the technical solution of the present invention, fig. 2 is a schematic flow chart provided in the embodiment of the present invention, and as shown in fig. 2, the method includes:
step 201, collecting static road information, and restoring the road according to the static road information and the longitude and latitude information to obtain road restoration information.
And collecting road information and surrounding environment information of the designated area in the public map. The contents (data) included in the regional road information and the surrounding environment information are arranged according to the longitude and latitude to generate road restoration information. The regional road information includes, but is not limited to, the name of a road, the width of the road, the number and the trend of lanes, a traffic intersection and the lane direction at the traffic intersection; the surrounding environment information comprises roadside building height, building types and signal lamps.
Step 202, collecting road dynamic information, and constructing road condition mapping based on the road dynamic information and the road restoration information to obtain a real-time traffic restoration scene.
The method comprises the step of obtaining real-time road traffic conditions at the longitude and latitude positions of a simulation point. And constructing mapping according to the system parameters and the road restoration information to obtain a real-time traffic restoration scene. Specifically, after the number of lanes and the lane direction at the traffic intersection in the road restoration information are combined with the system parameters, the system parameters are combined with the real-time traffic road traffic condition in step 201, so that traffic condition mapping is constructed, and finally a real-time traffic restoration scene is obtained. Among these, system parameters include, but are not limited to: the number of vehicles in hundred meters, the types of vehicles in urban areas/suburban areas and the density of the vehicles respectively correspond to each traffic road condition.
Step 203, setting a plurality of dynamic test areas in the real-time traffic reduction scene, and testing the radio wave transmission performance and the data packet collision performance.
The radio wave transmission performance test and the data packet collision performance test between the dynamic test areas can be carried out simultaneously or separately.
A radio wave transmission performance test comprising: and classifying the occlusion types and the environmental reflection types in the transmission scene, and manufacturing a corresponding typical environmental model according to the classified number of the types. And matching the electric wave transmission environment of every two vehicles in the dynamic test area, and matching the vehicles with corresponding typical environment models according to matching results. And after the channel model parameters of the models and the factors are combined, calculating path loss, shadow fading, small-scale fading, signal-to-noise ratio estimation coverage, transmission reliability and transmission delay according to electric wave transmission parameters, and outputting a radio wave transmission performance test result.
The data packet collision performance test comprises the following steps: and mapping the mapping relation and the mapping quantity of the vehicle quantity and the vehicle speed information included in the traffic condition mapping to the threads with the same quantity. And executing a tested channel distribution scheme, judging whether more than two vehicles exist on the same channel, if so, failing to send the data packet, counting the sending failure times, obtaining the collision rate and reliability of the data packet through calculation, and comprehensively obtaining the collision performance test result of the data packet through the delay generated by collision of the data packet.
And step 204, combining the test results to test in a restored application scene.
The application scenario test comprises the following steps: the method comprises the following steps of straight-going scene testing, turning scene testing, intersection auxiliary scene testing and lane-changing scene testing.
And the area of the dynamic test area is not more than twice of the communication range of the vehicle-mounted node. The moving mode of the dynamic test area comprises the following steps: a start point travel mode, a free travel mode are specified.
The invention is described in further detail below with reference to the following figures and examples, as shown in fig. 3:
and step 301, acquiring and restoring road and surrounding information.
Specifically, the road information may be acquired in two ways: 1. the method comprises the steps of obtaining road and surrounding environment information of a designated area of a public map through a web crawler program, wherein the information comprises the name of the road, the number of road lanes, the trend of road traffic intersections and the lanes, and the size and height information of buildings along the road. 2. Road information is directly acquired through a road map, such as opentreeetmap, and then building information around the road is acquired through a public map, such as poi (point of interest).
In actual practice, one of the two modes can be selected, and the two modes can also be combined.
After the road information is obtained, the road and building data contained in the road and building information are arranged and stored according to the longitude and latitude sequence, and the road and surrounding building graphs are dynamically drawn according to the road information according to the test requirements, so that the road and surrounding building information is restored.
And step 302, acquiring real-time traffic road conditions.
Specifically, the road information may be acquired in two ways: 1. and acquiring the real-time road traffic condition of the current point through an API (application program interface) provided by the electronic map according to the longitude and latitude of the simulation point. 2. And obtaining the traffic condition of the current point by the map crawler, and marking different colors as different road congestion conditions by using the traffic condition of the current point represented by the color depth. In actual practice, one of the two modes can be selected, and the two modes can also be combined.
And step 303, restoring the real-time traffic scene.
According to the acquired real-time road traffic conditions, based on the parameters set by the system (at least including the number of vehicles in hectometer corresponding to different traffic conditions and the vehicle type distribution corresponding to urban/suburban areas), the different road traffic conditions are mapped into different scenes of different numbers, speeds and vehicle types of actual traffic conditions by combining the restored road information (the number of lanes and the direction of lanes at the traffic intersection) acquired in step 301, and scene restoration of the real-time road traffic conditions is completed.
And step 304, setting a dynamic test area.
And selecting a dynamic test area, wherein the size of the area is larger than the communication range D of the vehicle-mounted node and smaller than 2D, the area runs along the road by using the road and the surrounding information data collected by the first part, and fills the vehicle information corresponding to the test range into the dynamic test area by using the real-time traffic road condition of the current point acquired in the step 302 and performing scene restoration. The moving mode of the dynamic test area comprises the following steps: a start point travel mode, a free travel mode are specified. Specifying a start point travel pattern: the dynamic test area is navigated from the start point to the end point. Free-running mode: and randomly selecting a road in front after the dynamic test area reaches the intersection. The embodiment can generate a plurality of dynamic test areas to be tested simultaneously.
The V2X test is mainly divided into: the method comprises the following steps of testing radio wave transmission performance, testing data packet collision performance and testing the performance of main application scenes (straight running, steering, intersection and lane changing), wherein the testing method comprises the following steps:
and 305, simulating scene mapping and performance testing and obtaining a test result.
And step 3051, carrying out a radio wave transmission performance test.
Specifically, the purpose of the radio wave transmission test is to test the coverage, reliability and delay of V2X signal transmission under various road conditions and surrounding environments.
Firstly, classifying common transmission scenes, and making a typical environment model, wherein the shielding type is as follows: line of sight (LOS) scene transmission, metal car body shielding, non line of sight (NLOS) shielding for short and short buildings, and shielding for tall and large buildings. The reflection type is: ground reflection, building single-path reflection, multi-path reflection.
And matching the electric wave transmission environments of the vehicles in the area pairwise according to the density of the vehicles restored in the dynamic test area and the environment around the road, and obtaining a matched typical environment model after matching. And combining channel model parameters of multiple matched model factors for a matched typical environment model, respectively calculating path loss, shadow fading and small-scale fading according to the distance, the working frequency, different antenna installation positions and antenna types of the vehicle-mounted node, and simultaneously calculating dynamic time delay and a Doppler spectrum type. And estimating the coverage, transmission reliability and time delay according to the signal-to-noise ratio obtained by calculation, and storing the related data.
And step 3052, testing the collision performance of the data packet.
The embodiment is explained by adopting a multithread processing mode, specifically, each thread runs the same idle channel detection and occupation strategy to simulate the performance of data packet collision, reliability and delay caused by different schemes under different vehicle densities under actual road scenes.
Mapping the number of vehicles and the vehicle speed in the dynamic test area restored in the step 302 to threads with the same number, then taking the electric wave transmission parameters obtained in the step 3051 as performance parameters of pairwise transmission of the vehicles in the area, and executing a tested channel allocation scheme: if more than two vehicles occupy the same channel, the vehicles are considered to be collided, and the transmission fails. And counting failed transmission, calculating the collision rate and reliability of the data packet, and further calculating the time delay of the data packet due to collision.
In the V2X channel allocation strategies according to different schemes, the channel utilization rate and the packet collision performance are different when the number of vehicles per unit density is the same.
And step 306, performing the performance test of the main application scene according to the simulation scene mapping and the test result of the performance test.
The main application scenarios include: front Collision Warning (FCW), emergency brake lights (EEBL) in a straight-ahead application scenario; forbidden pass early warning (DNPW) and Left Turn Assist (LTA) in a steering application scene; intersection assistance (IMA) for an intersection assistance application scenario; blind zone reminding/lane change warning (BSW + LCW) in a lane change application scenario.
Step 3061, front collision early warning scenario test (FCW): according to the density and the road width of the vehicles restored in the dynamic test area, the acceleration, the deceleration, the lane changing, the rear vehicle inserting and the target vehicle acceleration are respectively set for the vehicles in front of each vehicle and in front of two vehicles in the dynamic test area, the two-vehicle distance (the target vehicle and the front vehicle thereof), the weather conditions (wind, rain, snow, fog, hail and clear days), the road conditions (the road surface state and the lane line type), and the processing capacity of V2X on the states of the front vehicles with different speeds and different driving states is tested according to the test area signal intensity parameters obtained by the step 3051 radio wave transmission and the reliability and delay parameters obtained by the step 3052 data packet collision performance test. Wherein the braking performance of the vehicle is set by the system for different vehicle types.
Step 3062, emergency brake light scene test (EEBL): and (4) performing emergency braking operation on each vehicle according to the density and the running speed of the vehicles restored in the dynamic test area, and testing whether the rear vehicle (relative to the target vehicle) can be decelerated and safely braked in time by using the V2X performance parameters obtained in the steps 3051 and 3052.
Step 3063, forbidding passing of early warning scenario test (DNPW): according to the density and the road width of the vehicles restored in the dynamic test area, the signal intensity parameter of the test area obtained through the radio wave transmission in the step 3051 and the reliability and the delay parameter obtained through the data packet collision performance test in the step 3052, the reliability and the delay of the target vehicle are informed through V2X, the time for the driver to react is calculated for the collision hidden danger of the vehicle beyond the front vehicle and outside the visual line, and the accident probability is calculated.
Step 3064, left turn assist scenario test (LTA): according to the density of vehicles, the width of roads, the speed of target vehicles and the speed of surrounding vehicles restored in the dynamic test area, when the target vehicles turn left and the left-side vehicles come from the left side are in a non-line-of-sight condition, the reliability that the V2X reminds the target vehicles and enables the target vehicles to decelerate is detected according to the strength parameters of test area signals obtained through electric wave transmission in the step 3051 and the reliability and delay parameters obtained through the packet collision performance test in the step 3052.
Step 3065, intersection auxiliary scene testing (IMA): and according to the vehicle density restored in the dynamic test area, the road turning condition of the intersection and the road width, the safety performance of the intersection of each vehicle in the test area is tested by the aid of the signal intensity parameters of the test area obtained through electric wave transmission in the step 3051 and the reliability and delay parameters obtained through the data packet collision performance test in the step 3052. Under the condition of non-line-of-sight, the test V2X can give an early warning to the risk factors and brake reliably according to the speed and the acceleration of the target vehicle and the surrounding vehicles.
Step 3066, blind area reminding/lane changing early warning scene test (BSW + LCW): and carrying out overtaking operation on each vehicle in the dynamic test area according to the density and the speed of the vehicles restored in the dynamic test area, and testing the reliability and the timeliness of the V2X by testing whether the vehicles can be early warned in time when overtaking under the condition that the non-line-of-sight test vehicles have a vision blind area according to the test area signal intensity parameter obtained by the electric wave transmission in the step 3051 and the reliability and the delay parameter obtained by the data packet collision performance test in the step 3052.
For the test of V2I (vehicle-roadside node), roadside nodes can be set at traffic intersections in a map, or roadside nodes can be set in hot spot areas, and the structure of the roadside nodes is the same as that of vehicle-mounted nodes, but the antenna deployment position is high, the coverage area is large, so parameters can be properly adjusted, and similar tests can be performed.
And the results are continuously stored in a database along with the movement of the dynamic test area, and after the test is finished, the test data stored in the process is subjected to statistical analysis, and a test report is output.
The technical scheme of the invention provides a simulation test method of a vehicle-mounted short-distance communication network based on real-time traffic road conditions, which comprises the following steps: and restoring the road according to the road static information and the longitude and latitude information to obtain road restoration information. And constructing road condition mapping based on the road dynamic information and the road restoration information to obtain a real-time traffic restoration scene. In the scene, a plurality of dynamic test areas are set, and each dynamic test area synchronously or asynchronously performs radio wave transmission performance test, data packet collision performance test and application scene test. And the area of the dynamic test area is not more than twice of the communication range of the vehicle-mounted node.
The method has the advantage that the simulation of the real-time actual road scene corresponding to the V2X is realized by converting the real-time traffic information and the road information into the vehicle information of the actual road. The V2X algorithms are tested in real time under the actual road scene, so that simulation and performance test of the actual scene of the actual road in different time periods and different areas are realized, the performance of the algorithms under the actual road is obtained, and an approximately real test environment is provided for the algorithms of the V2X.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.