CN114745741A - Simulation method, device, equipment and medium for equipment communication - Google Patents

Simulation method, device, equipment and medium for equipment communication Download PDF

Info

Publication number
CN114745741A
CN114745741A CN202210649279.0A CN202210649279A CN114745741A CN 114745741 A CN114745741 A CN 114745741A CN 202210649279 A CN202210649279 A CN 202210649279A CN 114745741 A CN114745741 A CN 114745741A
Authority
CN
China
Prior art keywords
virtual
equipment
vehicle
data
rate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210649279.0A
Other languages
Chinese (zh)
Other versions
CN114745741B (en
Inventor
王昊艋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guoqi Intelligent Control Beijing Technology Co Ltd
Original Assignee
Guoqi Intelligent Control Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guoqi Intelligent Control Beijing Technology Co Ltd filed Critical Guoqi Intelligent Control Beijing Technology Co Ltd
Priority to CN202210649279.0A priority Critical patent/CN114745741B/en
Publication of CN114745741A publication Critical patent/CN114745741A/en
Application granted granted Critical
Publication of CN114745741B publication Critical patent/CN114745741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Traffic Control Systems (AREA)

Abstract

The application provides a simulation method, a device, equipment and a medium for equipment communication, which relate to the technical field of vehicle networking, and the method comprises the following steps: if the virtual vehicle-mounted equipment is detected to be in the signal coverage range of the virtual road-side equipment, the distance between the virtual road-side equipment and the virtual vehicle-mounted equipment is obtained, the data sending rate of the virtual road-side equipment and the data receiving rate of the virtual vehicle-mounted equipment are obtained according to the distance, and data communication between the virtual road-side equipment and the virtual vehicle-mounted equipment is simulated according to the data sending rate and the data receiving rate. According to the technical scheme, the virtual vehicle-mounted equipment and the virtual road side equipment are built in the simulation environment, and the communication between the RSU and the OBU in the real scene is simulated by determining the data transmission rate/the data receiving rate according to the distance between the virtual vehicle-mounted equipment and the virtual road side equipment, so that the signal interference in the simulation process can be reduced, mess is prevented from being generated, and the simulation effect is improved.

Description

Simulation method, device, equipment and medium for equipment communication
Technical Field
The application relates to the technical field of vehicle networking, in particular to a simulation method, a simulation device, equipment and a medium for equipment communication.
Background
Vehicle radio communication technology (vehicle to X, V2X), namely vehicle-to-outside information exchange, is matched with the vehicle model of the technology, and can automatically select a driving route with the best road condition through analysis of real-time traffic information in an automatic driving mode, thereby greatly relieving traffic jam. The existing V2X technology generally uses a Road Side Unit (RSU) and an On Board Unit (OBU) to complete V2X message intercommunication, but before actual use, the communication process of the RSU and the OBU needs to be simulated to facilitate development and debugging.
In the prior art, when a process of communication between an RSU and an OBU in a real scene is simulated, real RSU and OBU devices are generally used to fix the real RSU and OBU at preset positions, and then simulation is performed based on test data.
However, in the method in the prior art, when the real RSU and OBU devices are used to simulate a communication process, external signal interference, message confusion and the like are likely to occur, which results in poor simulation effect.
Disclosure of Invention
The application provides a simulation method, a simulation device, equipment and a medium for equipment communication, which are used for solving the problems that the existing simulation uses real RSU/OBU equipment, is easily interfered by external signals and has poor simulation effect.
In a first aspect, an embodiment of the present application provides a simulation method for device communication, which is applied to a computer device, where the computer device simulates to obtain a simulation scene, where the simulation scene includes a virtual road-side device and a virtual vehicle-mounted device, and the method includes:
detecting whether the virtual vehicle-mounted equipment is in a signal coverage range of the virtual road-side equipment;
if the virtual vehicle-mounted equipment is in the signal coverage range of the virtual road-side equipment, acquiring the distance between the virtual road-side equipment and the virtual vehicle-mounted equipment;
acquiring the data sending rate of the virtual road side equipment and the data receiving rate of the virtual vehicle-mounted equipment according to the distance;
and simulating data communication between the virtual road side equipment and the virtual vehicle-mounted equipment according to the data sending rate and the data receiving rate.
In one possible design of the first aspect, before the detecting whether the virtual vehicle-mounted device is within the signal coverage range of the virtual roadside device, the method further includes:
constructing a virtual road in the simulation scene;
arranging at least two virtual roadside devices at the roadside of the virtual road according to a preset spacing distance;
acquiring a three-dimensional coordinate of the virtual vehicle-mounted equipment;
and simulating the position of the virtual vehicle-mounted equipment in the virtual road according to the three-dimensional coordinates.
In another possible design of the first aspect, the detecting whether the virtual vehicle-mounted device is within a signal coverage range of the virtual roadside device includes:
acquiring position coordinates of each virtual road side device in the simulation scene;
and determining whether the virtual vehicle-mounted equipment is in the signal coverage range of the virtual road-side equipment or not according to the position of the virtual vehicle-mounted equipment in the virtual road and the position coordinates of each virtual road-side equipment in the simulation scene.
In another possible design of the first aspect, the obtaining the data sending rate of the virtual roadside device and the data receiving rate of the virtual vehicle-mounted device according to the distance includes:
if the virtual vehicle-mounted equipment is detected to be in the signal coverage range of at least two virtual road side equipment, acquiring the distance between the virtual vehicle-mounted equipment and each virtual road side equipment of the at least two virtual road side equipment;
acquiring the data receiving rate of the virtual vehicle-mounted equipment and the data sending rate of each virtual road side equipment according to the distance between the virtual vehicle-mounted equipment and each virtual road side equipment;
the simulating data communication between the virtual roadside device and the virtual vehicle-mounted device according to the data sending rate and the data receiving rate comprises:
acquiring a target virtual road side device from the at least two virtual road side devices according to the data transmission rate of each virtual road side device, wherein the target virtual road side device is the minimum data transmission rate of the at least two virtual road side devices;
and simulating data communication between the virtual vehicle-mounted equipment and the target virtual road-side equipment according to the data sending rate of the target virtual road-side equipment and the data receiving rate of the virtual vehicle-mounted equipment.
In yet another possible design of the first aspect, the method further includes:
acquiring the data transmission amount of the virtual road side equipment in unit time according to the data transmission rate;
acquiring the data receiving amount of the virtual vehicle-mounted equipment in unit time according to the data receiving rate;
and determining whether communication abnormality exists in data communication between the virtual road side equipment and the virtual vehicle-mounted equipment or not according to the data sending quantity and the data receiving quantity.
In yet another possible design of the first aspect, the simulating data communication between the virtual roadside apparatus and the virtual vehicle-mounted apparatus according to the data transmission rate and the data reception rate includes:
detecting whether the data sending rate is greater than a preset upper limit value and/or the data receiving rate is less than a preset lower limit value;
if the data sending rate is greater than a preset upper limit value and/or the data receiving rate is less than a preset lower limit value, cutting off data communication between the virtual road side equipment and the virtual vehicle-mounted equipment;
and if the data sending rate is less than or equal to the preset upper limit value and the data receiving rate is greater than or equal to the preset lower limit value, controlling the virtual road side equipment and the virtual vehicle-mounted equipment to carry out data communication according to the data sending rate and the data receiving rate.
In yet another possible design of the first aspect, obtaining the data receiving rate of the virtual vehicle-mounted device according to the distance includes:
acquiring preset signal transmission intensity as the signal transmission intensity of the virtual road side equipment;
acquiring the signal receiving intensity of the virtual vehicle-mounted equipment according to the distance and the signal sending intensity;
and acquiring the data receiving rate of the virtual vehicle-mounted equipment according to the signal receiving strength.
In another possible design of the first aspect, the obtaining of the signal reception strength of the virtual vehicle-mounted device according to the distance and the signal transmission strength includes:
acquiring a horizontal distance and a vertical distance between the virtual road side equipment and the virtual vehicle-mounted equipment according to the distance;
and acquiring the signal receiving intensity according to the horizontal distance, the vertical distance and the signal sending intensity.
In another possible design of the first aspect, obtaining the data transmission rate of the virtual roadside device according to the distance includes:
acquiring preset signal receiving intensity as the signal receiving intensity of the virtual vehicle-mounted equipment;
acquiring the signal sending intensity of the virtual road side equipment according to the distance and the preset signal receiving intensity;
and acquiring the data transmission rate of the virtual road side equipment according to the signal transmission strength.
In another possible design of the first aspect, the obtaining the signal transmission strength of the virtual roadside device according to the distance and the preset signal reception strength includes:
acquiring a horizontal distance and a vertical distance between the virtual road side equipment and the virtual vehicle-mounted equipment according to the distance;
and acquiring the signal sending intensity according to the horizontal distance, the vertical distance and the signal receiving intensity.
In yet another possible design of the first aspect, the method further includes:
and when the virtual vehicle-mounted equipment leaves the signal coverage range of the virtual road side equipment, controlling the data communication between the virtual road side equipment and the virtual vehicle-mounted equipment to be cut off.
In a second aspect, an embodiment of the present application provides an apparatus for simulating device communication, including:
the device detection module is used for detecting whether the virtual vehicle-mounted device is in a signal coverage range of the virtual road side device;
the distance obtaining module is used for obtaining the distance between the virtual road side equipment and the virtual vehicle-mounted equipment if the virtual vehicle-mounted equipment is in the signal coverage range of the virtual road side equipment;
the speed acquisition module is used for acquiring the data sending speed of the virtual roadside equipment and the data receiving speed of the virtual vehicle-mounted equipment according to the distance;
and the communication simulation module is used for simulating data communication between the virtual road side equipment and the virtual vehicle-mounted equipment according to the data sending rate and the data receiving rate.
In a third aspect, an embodiment of the present application provides a computer device, including: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored by the memory to implement the methods described above.
In a fourth aspect, the present application provides a readable storage medium, in which computer instructions are stored, and when executed by a processor, the computer instructions are used to implement the method described above.
According to the simulation method, the simulation device, the simulation equipment and the simulation medium for equipment communication, the virtual vehicle-mounted equipment and the virtual road side equipment are built in a simulation environment, and the communication between the RSU and the OBU in a real scene is simulated by determining the data transmission rate/the data receiving rate according to the distance between the virtual vehicle-mounted equipment and the virtual road side equipment, so that the signal interference in the simulation process can be reduced, the mess of messages is prevented, and a more accurate simulation test result is output. Meanwhile, the position of the virtual road side equipment can be dynamically adjusted and set, so that the position of the virtual road side equipment is dynamically corresponding to the coordinates in the simulation scene, the complete simulation environment of the road side equipment is realized, and the simulation effect is improved.
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;
fig. 1 is a scene schematic diagram of a simulation method for device communication according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a simulation method for device communication according to an embodiment of the present application;
fig. 3 is a schematic view of a simulation scenario provided in an embodiment of the present application;
fig. 4 is a schematic diagram of a radio attenuation curve provided by an embodiment of the present application;
FIG. 5 is a schematic diagram of a simulation scenario provided in another embodiment of the present application;
fig. 6 is a schematic structural diagram of an emulation apparatus for device communication according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms referred to in this application are explained first:
a Road Side Unit (RSU) is a device that is installed at the Road Side and communicates with an on-board Unit by using a dedicated short-range communication technology.
An On Board Unit (OBU) is a microwave device that communicates with an RSU using a dedicated short-range communication technology.
Fig. 1 is a scene schematic diagram of a simulation method of device communication according to an embodiment of the present application, and as shown in fig. 1, in a related roadside technical introduction development test, real vehicle-mounted devices (i.e., OBUs)/roadside devices (i.e., RSUs) are generally used, where the vehicle-mounted devices are generally mounted in a vehicle 10, the roadside devices 20 are fixedly disposed on the road side, and the vehicle-mounted devices and the roadside devices 20 are both connected to a computer 30. Wherein, the computer 30 runs with simulation software, and a simulation scene (such as a traffic flow scene) can be established through the simulation software. The simulation software sends the main information (such as the instant speed, the driving direction and the angle) of the vehicle 10 to the vehicle-mounted equipment in the vehicle 10, the roadside information is sent to the roadside equipment 20, the roadside equipment 20 sends the roadside information to the vehicle-mounted equipment, the vehicle-mounted equipment carries out analysis and judgment based on the information of the vehicle-mounted equipment and the roadside information, a driving strategy is formed and sent to the computer, the simulation of the computer is compared and observed based on an expected driving strategy and the driving strategy formed by the vehicle-mounted equipment to obtain a simulation result, and development and testing personnel develop and debug based on the simulation result. The simulation test mode depends on real RSU and OBU equipment, so that serious signal interference and message confusion can be caused if one set of RSU/OBU equipment is used in the simulation test, the position of the real RSU equipment is usually fixed and cannot be dynamically corresponding to coordinates in a simulation scene simulated by simulation software, so that a complete simulation environment of the road side equipment cannot be realized in the simulation software, the accuracy of a simulation result is reduced, and the simulation effect is poor.
In order to solve the above problems, the simulation method, apparatus, device and medium for device communication provided in the embodiments of the present application need to avoid using a real RSU/OBU device for simulation in order to improve a simulation effect and reduce signal interference and message confusion. Specifically, the communication between the RSU and the OBU is simulated by constructing the virtual RSU and the virtual OBU in the simulation environment and determining the data transmission rate/data receiving rate according to the distance between the virtual RSU and the virtual OBU, so that the external signal interference can be reduced, the mess can be prevented, and a more accurate simulation test result can be output. Meanwhile, the position of the virtual RSU can be dynamically adjusted and set, so that the virtual RSU is dynamically corresponding to the coordinates in the simulation scene, the complete simulation environment of the road side equipment is realized, and the simulation effect is improved.
The technical solution of the present application will be described in detail below with reference to specific examples. It should be noted that the following several specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 2 is a schematic flowchart of a simulation method for device communication according to an embodiment of the present application. The method can be applied to equipment with a simulation function, such as computer equipment, and the like, taking the computer equipment as an execution main body as an example, the computer equipment can simulate a simulation scene through simulation software, and simulate virtual road side equipment (namely RSU equipment in a simulated real scene) and virtual vehicle-mounted equipment (namely OBU equipment in the simulated real scene) in the simulation scene. For example, the simulation scenario may be a lane of a motor vehicle. The method comprises the following steps:
step S201, whether the virtual vehicle-mounted equipment is in the signal coverage range of the virtual road-side equipment is detected.
Real RSU devices typically have a scanning function that scans for OBU devices present within a signal coverage area. In this embodiment, the signal coverage of the virtual roadside apparatus is adjustable, for example, the signal coverage of the virtual roadside apparatus is set to 300 meters.
For example, fig. 3 is a schematic diagram of a simulation scene provided in the embodiment of the present application, as shown in fig. 3, the simulation scene may be a motor lane, the virtual roadside device 31 (simulated as an actual RSU device) and the virtual roadside device 33 (simulated as an actual RSU device) may be disposed at a side of the motor lane at intervals, and the virtual vehicle-mounted device (simulated as an actual OBU device) may be mounted on the virtual vehicle 32 or the virtual vehicle 34, so as to simulate data communication between the virtual roadside device and the virtual vehicle-mounted device by simulating that the virtual vehicle travels on the motor lane.
In the present embodiment, taking fig. 3 as an example, when the virtual vehicle travels on a lane, there is a possibility that the virtual vehicle enters a signal coverage area of a certain virtual roadside device (indicated by an area covered by a dotted line in fig. 3, that is, the signal coverage area), and at this time, the analog virtual roadside device and the virtual vehicle-mounted device are connected and perform data communication. For example, in other embodiments, the virtual vehicle may be within the signal coverage of two or more virtual roadside devices at the same time, so that data communication between the virtual vehicle-mounted device and the multiple virtual roadside devices may be simulated.
Step S202, if the virtual vehicle-mounted equipment is in the signal coverage range of the virtual road side equipment, the distance between the virtual road side equipment and the virtual vehicle-mounted equipment is obtained.
In this embodiment, during the simulation of the computer device, the user may set the coordinates of the virtual roadside device and the coordinates of the virtual vehicle-mounted device in the simulation scene by inputting the position information in the virtual positioning device. Meanwhile, the driving strategy can be input to enable the simulation software to simulate the driving process of the vehicle in the simulation scene. The virtual in-vehicle device can be mounted in a vehicle and move along with the movement of the vehicle.
Continuing with fig. 3 as an example, two virtual roadside devices are arranged in the simulation scene, and the vehicle 32 is in the signal coverage range of the virtual roadside device 31, at this time, the distance between the virtual vehicle-mounted device and the virtual roadside device 31 may be calculated according to the coordinates of the vehicle-mounted device in the vehicle 32 and the coordinates of the virtual roadside device 31.
For example, as the vehicle 32 moves, the virtual vehicle-mounted device mounted on the vehicle 32 may leave the signal coverage of the virtual roadside device 31 and enter the signal coverage of the virtual roadside device 33, at this time, the virtual vehicle-mounted device is disconnected from the virtual roadside device 31 and connected with the virtual road-side device 33, and the computer device recalculates the distance between the virtual roadside device 33 and the virtual vehicle-mounted device.
Step S203, acquiring the data sending rate of the virtual road side equipment and the data receiving rate of the virtual vehicle-mounted equipment according to the distance.
In an actual scenario, due to the fact that the RSU and the OBU are dedicated short-range communication technologies, a dedicated wireless end frequency band is used, and the RSU and the OBU need to be in a short distance, generally within 300 meters. While the radio produces attenuation effects in the atmosphere, attenuation factors typically include meteorological data (e.g., air temperature, dry air, moisture, etc.). In the present embodiment, the data transmission rate and the data reception rate are controlled to simulate the fading effect according to the distance between the virtual roadside apparatus and the virtual in-vehicle apparatus.
In the method, the distance and radio attenuation characteristic curves in an actual scene can be combined to determine the corresponding relation between the distance and the rate, and the data sending rate of the RSU and the data receiving rate of the OBU are controlled according to the corresponding relation.
In this embodiment, when determining the corresponding relationship between the distance and the velocity, the velocity can be represented by the signal strength, and in general, the stronger the signal is, the higher the velocity is. For this purpose, the signal strength can be determined on the basis of the distance. Fig. 4 is a schematic diagram of a radio attenuation curve provided in the embodiment of the present application, as shown in fig. 4, where the X-axis represents radio frequency in GHz, and the Y-axis represents attenuation rate in dB/Km, which represents the power value of signal attenuation per kilometer distance. Specifically, the relationship between the magnitude of the radio signal strength and the distance may be determined by referring to the radio attenuation characteristic curve equation in the ITU-R p.676-11 recommendation, calculating the signal strength according to the specific distance according to the curve equation, and determining the relationship between the signal strength and the rate based on the mathematical model of the signal curve therein.
And S204, simulating data communication between the virtual road side equipment and the virtual vehicle-mounted equipment according to the data sending rate and the data receiving rate.
In this embodiment, the computer device may simulate data communication between the virtual roadside device and the virtual vehicle-mounted device according to the data transmission rate and the data reception rate, that is, control the virtual roadside device to perform data transmission according to the data transmission rate, and control the virtual vehicle-mounted device to perform data reception according to the data reception rate.
According to the embodiment of the application, the virtual RSU and the virtual OBU are constructed in the simulation environment, so that the data transmission rate/data receiving rate can be determined according to the distance between the virtual RSU and the virtual OBU to simulate the communication between the RSU and the OBU, the external signal interference can be reduced, mess is prevented from being generated, and a more accurate simulation test result is output.
In some embodiments, the simulation method for device communication may further include the following steps:
constructing a virtual road in a simulation scene; arranging at least two virtual roadside devices at the roadside of the virtual road according to a preset spacing distance; acquiring a three-dimensional coordinate of the virtual vehicle-mounted equipment; and simulating the position of the virtual vehicle-mounted equipment in the virtual road according to the three-dimensional coordinates.
In this embodiment, fig. 5 is a schematic view of a simulation scene provided in another embodiment of the present application, as shown in fig. 5, in the simulation scene, a virtual roadside device 501 and a virtual roadside device 502 are disposed at a side of a virtual road, and signal coverage areas of the virtual roadside device 501 and the virtual roadside device 502 are overlapped (an overlapping area of a dotted line in the figure), which is mainly determined by a preset spacing distance and a size of the signal coverage area. For example, the signal coverage of the virtual roadside apparatus is 300 meters, and if the distance between two virtual roadside apparatuses is 200 meters, there may be an area where signal coverage overlaps.
In the virtual road of the simulation scene, a moving virtual vehicle 503 (in an overlapping area of dotted lines, that is, in a signal coverage area of the virtual roadside apparatus 501 and a signal coverage area of the virtual roadside apparatus 502) and a virtual vehicle 504 (in a signal coverage area of the virtual roadside apparatus 502) are included. Wherein the three-dimensional coordinates of the virtual vehicle 503 may change over time. For example, the movement of the position of the virtual in-vehicle device may be simulated based on the three-dimensional coordinates of the vehicle in the simulation scenario. And after the virtual vehicle-mounted equipment enters the signal coverage range, the computer equipment simulates the connection with the virtual road side equipment to simulate the data communication process.
According to the embodiment of the application, the virtual road side equipment RSU is arranged on the road side, the position of the virtual vehicle-mounted equipment OBU is further simulated by inputting the three-dimensional coordinate, the actual communication process of the RSU and the OBU can be more fit, and the simulation effect is improved.
On the basis of the foregoing embodiments, in some embodiments, the step S201 may be specifically implemented by the following steps: acquiring position coordinates of each virtual road side device in a simulation scene; and determining whether the virtual vehicle-mounted equipment is in the signal coverage range of the virtual road-side equipment or not according to the position of the virtual vehicle-mounted equipment in the virtual road and the position coordinates of each virtual road-side equipment in the simulation scene.
In this embodiment, the position coordinates of the virtual roadside apparatus may be determined by the computer apparatus being input by the user in advance at the time of simulation, and the position coordinates of the virtual vehicle-mounted apparatus may change as the virtual vehicle moves due to being mounted on the virtual vehicle. Thus, the virtual vehicle-mounted device is possibly in the signal coverage range of the two virtual road-side devices at the same time.
When determining whether the virtual vehicle-mounted device is within the signal coverage range of the virtual road-side device, the distance between the virtual vehicle-mounted device and each virtual road-side device can be calculated according to the current position coordinate of the virtual vehicle-mounted device and the position coordinate of each virtual road-side device, and then whether the virtual vehicle-mounted device is within the signal coverage range of each virtual road-side device is determined based on the signal coverage range of each virtual road-side device.
According to the embodiment of the application, whether the virtual vehicle-mounted equipment is located in the signal coverage range of one or more virtual road side equipment in the simulation scene or not can be determined by utilizing the position coordinates of the virtual vehicle-mounted equipment and the position coordinates of the virtual road side equipment, so that the data communication between the computer equipment simulation virtual vehicle-mounted equipment and the one or more virtual road side equipment is facilitated, and the simulation effect is improved.
Continuing with fig. 5, the virtual vehicle-mounted device is located within the signal coverage range of the two virtual roadside devices, in other embodiments, if it is detected that the virtual vehicle-mounted device is located within the signal coverage range of the at least two virtual roadside devices, the distance between the virtual vehicle-mounted device and each virtual roadside device of the at least two virtual roadside devices may be obtained, and the data receiving rate of the virtual vehicle-mounted device and the data transmitting rate of each virtual roadside device may be obtained according to the distance between the virtual vehicle-mounted device and each virtual roadside device. Meanwhile, the computer equipment acquires target virtual road side equipment from at least two pieces of virtual road side equipment according to the data transmission rate of each piece of virtual road side equipment; and simulating data communication between the virtual vehicle-mounted equipment and the target virtual road-side equipment according to the data sending rate of the target virtual road-side equipment and the data receiving rate of the virtual vehicle-mounted equipment. And the data transmission rate of the target virtual road side equipment is minimum.
In this embodiment, the computer device simulates that when the virtual vehicle-mounted device is within the signal coverage range of two or more virtual roadside devices, data transmission is performed with the virtual roadside device with the strongest signal strength.
For example, in other embodiments, when the virtual vehicle-mounted device is within the signal coverage range of at least two virtual road-side devices, the computer device may also simulate the virtual vehicle-mounted device to perform data communication with the virtual road-side devices simultaneously. Specifically, the distance between the virtual vehicle-mounted device and each of the virtual road-side devices may be calculated, the data sending rate of each virtual road-side device may be determined based on the distance, the data receiving rate of the virtual vehicle-mounted device may be adjusted, and a data communication scene between the virtual road-side devices and the virtual vehicle-mounted device may be simulated based on the data sending rate and the data receiving rate. Therefore, the influence on the vehicle-mounted equipment when a plurality of road side equipment and the vehicle-mounted equipment are in communication in a real scene can be simulated, and therefore how the vehicle-mounted equipment processes data of the plurality of road side equipment in the real scene is known.
For example, in another embodiment, when the virtual vehicle-mounted device is within the signal coverage range of multiple virtual roadside devices, there may be a case where the virtual vehicle-mounted device is far away from the virtual roadside devices due to the fact that the multiple virtual roadside devices are far away from each other, and the signal strength is low, and data communication with the virtual roadside devices is not possible. Therefore, the signal blind area in a real scene can be simulated for research of development and test personnel.
According to the embodiment of the application, when the virtual vehicle-mounted device OBU is located in the signal coverage range of the RSUs, the computer device can simulate the virtual vehicle-mounted device OBU to perform data communication with the RSUs, so that the situation of multi-party communication in an actual scene can be fitted better, and the simulation effect is improved.
In some embodiments, the method for simulating device communication may further include: acquiring the data transmission amount of the virtual road side equipment in unit time according to the data transmission rate; acquiring the data receiving amount of the virtual vehicle-mounted equipment in unit time according to the data receiving rate; and determining whether the data communication between the virtual road side equipment and the virtual vehicle-mounted equipment is abnormal or not according to the data transmission quantity and the data receiving quantity.
In this embodiment, the data transmission amount of the virtual roadside device during the simulation process should be equivalent to the data reception amount of the virtual vehicle-mounted device, and if the data transmission amount is different, it indicates that there may be a communication abnormality during the simulation process, and there is an error in the simulation process. Illustratively, taking a simulation step time as a unit time, the amount of data received in a simulation step = simulation step time × current data receiving rate. The data sent by the virtual vehicle-mounted equipment mainly comprises information such as the instant speed, the driving direction and the angle of the vehicle, and the data sent by the virtual road-side equipment mainly comprises road-side information such as road conditions.
According to the embodiment of the application, whether errors exist in the simulation process of the computer equipment can be checked by calculating the data sending quantity and the data receiving quantity in unit time, and the simulation effect is improved.
In some embodiments, the step S204 may be specifically implemented by the following steps: detecting whether the data sending rate is greater than a preset upper limit value and/or the data receiving rate is less than a preset lower limit value; if the data sending rate is greater than a preset upper limit value and/or the data receiving rate is less than a preset lower limit value, cutting off data communication between the virtual road side equipment and the virtual vehicle-mounted equipment; and if the data sending rate is less than or equal to the preset upper limit value and the data receiving rate is greater than or equal to the preset lower limit value, controlling the virtual road side equipment and the virtual vehicle-mounted equipment to carry out data communication according to the data sending rate and the data receiving rate.
In this embodiment, the data sending rate of the virtual roadside device may be controlled to be fixed, and the data receiving rate of the virtual vehicle-mounted device may be adjusted based on the distance between the virtual vehicle-mounted device and the virtual roadside device. Or the data receiving rate of the virtual vehicle-mounted equipment can be controlled to be fixed, and the data sending rate of the virtual road-side equipment is adjusted based on the distance between the virtual road-side equipment and the virtual vehicle-mounted equipment. The data sending rate and the data receiving rate can be adjusted simultaneously based on the distance between the virtual road side equipment and the virtual vehicle-mounted equipment.
When the data sending rate is greater than the preset upper limit value or the data receiving rate is smaller than the preset lower limit value, the situation that the distance between the vehicle-mounted equipment and the road side equipment is too far and is lower than a certain signal intensity, and the communication between the vehicle-mounted equipment and the road side equipment is disconnected in a real scene is simulated.
According to the embodiment of the application, the OBU and the RSU are too far away from each other and cannot be connected in an actual scene by cutting off data communication between the virtual vehicle-mounted equipment and the virtual road side equipment during simulation, so that more scenes can be simulated, and the simulation effect is improved.
Further, in some embodiments, the data receiving rate of the virtual vehicle-mounted device may be calculated by: acquiring preset signal transmission intensity as the signal transmission intensity of the virtual road side equipment; acquiring the signal receiving intensity of the virtual vehicle-mounted equipment according to the distance and the signal sending intensity; and acquiring the data receiving rate of the virtual vehicle-mounted equipment according to the signal receiving strength.
In this embodiment, the signal transmission intensity of the virtual roadside apparatus may be set to a fixed value (i.e., a preset signal transmission intensity), and as the distance decreases, the signal intensity of the virtual vehicle-mounted apparatus when received is smaller than the fixed value. Specifically, the final received signal strength can be obtained by calculating a signal attenuation value according to factors such as distance and weather according to an attenuation characteristic curve equation in reference to ITU-t-R P676-10 recommendation-attenuation of radio waves in atmospheric gas.
The relation between the received signal strength and the data reception rate can be determined, among other things, on the basis of the ITU-R P676-10 recommendation-a mathematical model of the correlation signal curve in the attenuation of radio waves in atmospheric gases.
In this embodiment, when the signal reception strength is lower than a certain value, the connection between the virtual vehicle-mounted device and the virtual roadside device may be disconnected at this time to simulate a situation in which the RSU and the OBU are disconnected in communication due to an excessively long distance in a real scene.
According to the embodiment of the application, the signal receiving intensity of the virtual vehicle-mounted equipment is calculated by utilizing the distance and the signal sending intensity of the virtual road side equipment, the data receiving rate is controlled based on the signal receiving intensity, the scene of radio signal intensity attenuation caused by the distance influence between the RSU and the OBU in a real scene is simulated, and the simulation effect is improved.
Further, on the basis of the above embodiments, in some embodiments, when determining the signal receiving strength of the virtual vehicle-mounted device, the horizontal distance and the vertical distance between the virtual roadside device and the virtual vehicle-mounted device may be obtained according to the distance; and acquiring the signal receiving intensity according to the horizontal distance, the vertical distance and the signal sending intensity.
In real scenarios, different directions have completely different effects on radio attenuation, similar to polarized antennas. In this embodiment, the distance between the virtual vehicle-mounted device and the virtual roadside device may be composed of a distance in the horizontal direction and a distance in the vertical direction. When the signal attenuation value is calculated based on ITU-t R P676-10 recommendation-attenuation of radio waves in atmospheric gas according to the attenuation characteristic curve equation thereof and based on factors such as distance and weather, the distance can be further divided into a distance in the vertical direction and a distance in the horizontal direction, and the signal attenuation value in the horizontal direction and the signal attenuation value in the vertical direction are integrated to obtain a total signal attenuation value, thereby determining the signal reception intensity.
According to the embodiment of the application, the distance between the virtual vehicle-mounted equipment and the virtual road side equipment is split into the distance in the horizontal direction and the distance in the vertical direction, the attenuation values in the horizontal direction and the vertical direction can be accurately determined, the signal receiving strength after attenuation can be more accurately obtained, and the data accuracy in the simulation process is improved.
In some embodiments, the data receiving rate of the virtual roadside device may be calculated by: acquiring preset signal receiving intensity as the signal receiving intensity of the virtual vehicle-mounted equipment; acquiring the signal sending intensity of the virtual road side equipment according to the distance and the preset signal receiving intensity; and acquiring the data transmission rate of the virtual vehicle-mounted equipment according to the signal transmission intensity.
In this embodiment, the signal reception intensity of the virtual in-vehicle device may be set to a fixed value (i.e., a preset signal reception intensity). In the process of sending the radio signal by the virtual road side device, the signal intensity of the radio signal is attenuated along with the distance, and in order to ensure that the signal intensity when the virtual vehicle-mounted device receives the signal is the fixed preset signal receiving intensity, the signal sending intensity of the virtual road side device needs to be increased. Specifically, the ITU-R P676-10 recommendation-attenuation of radio waves in atmospheric gas can be referred to, a signal attenuation value is calculated according to factors such as distance and weather according to an attenuation characteristic curve equation, and then the final received and transmitted intensity is calculated based on the preset signal received intensity fixed by the virtual vehicle-mounted device.
The relation between the transmission signal strength and the data transmission rate can be determined based on the ITU-R P676-10 recommendation-mathematical model of the correlation signal curve in the attenuation of radio waves in atmospheric gases.
In this embodiment, when the signal transmission strength is greater than a certain value, the connection between the virtual vehicle-mounted device and the virtual roadside device may be disconnected at this time to simulate a situation in which the RSU and the OBU are disconnected in communication due to an excessively long distance in a real scene.
According to the embodiment of the application, the signal sending intensity of the virtual road side equipment is calculated by utilizing the distance and the signal receiving intensity fixed by the virtual vehicle-mounted equipment, the data sending rate is controlled based on the signal sending intensity, the scene of radio signal intensity attenuation caused by the distance influence between the RSU and the OBU in a real scene is simulated, and the simulation effect is improved.
Further, in other embodiments, the horizontal distance and the vertical distance between the virtual roadside device and the virtual vehicle-mounted device may be obtained according to the distance; and acquiring the signal sending intensity according to the horizontal distance, the vertical distance and the signal receiving intensity.
In real scenarios, different directions have completely different effects on radio attenuation, similar to polarized antennas. In this embodiment, the spacing between the virtual vehicle-mounted device and the virtual roadside device may be made up of a distance in the horizontal direction and a distance in the vertical direction. When the signal attenuation value is calculated according to the attenuation characteristic curve equation in the air based on ITU-t R P676-10 recommendation-attenuation of radio waves in the atmosphere, based on factors such as distance and weather, the distance can be further divided into a distance in the vertical direction and a distance in the horizontal direction, and the signal attenuation value in the horizontal direction and the signal attenuation value in the vertical direction are integrated to obtain a total signal attenuation value, thereby determining the signal transmission strength.
According to the embodiment of the application, the distance between the virtual vehicle-mounted equipment and the virtual road side equipment is split into the distance in the horizontal direction and the distance in the vertical direction, the attenuation values in the horizontal direction and the vertical direction can be accurately determined, the signal sending intensity after attenuation can be more accurately obtained, and the data accuracy in the simulation process is improved.
In other embodiments, because the virtual vehicle-mounted device is mounted on the virtual vehicle, the virtual vehicle-mounted device may be farther and farther away from the current virtual roadside device along with the movement of the virtual vehicle, and when the virtual vehicle-mounted device leaves the signal coverage range of the virtual roadside device, the data communication between the virtual roadside device and the virtual vehicle-mounted device may be controlled to be cut off.
According to the embodiment of the application, after the virtual vehicle-mounted equipment leaves the signal coverage range, data communication between the virtual vehicle-mounted equipment and the virtual road side equipment is disconnected, the fact that the distance between the RSU and the OBU is too far when a vehicle moves in a real scene is simulated, the communication scene is disconnected, and the simulation effect is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 6 is a schematic structural diagram of a simulation apparatus for device communication according to an embodiment of the present application, where the simulation apparatus may be integrated on a computer device. As shown in fig. 6, the device communication simulation apparatus 600 includes a device detection module 610, a distance acquisition module 620, a rate acquisition module 630, and a communication simulation module 640. The device detection module 610 is configured to detect whether the virtual vehicle-mounted device is within a signal coverage range of the virtual road-side device. The distance obtaining module 620 is configured to obtain a distance between the virtual road side device and the virtual vehicle mounted device if the virtual vehicle mounted device is within a signal coverage range of the virtual road side device. The rate obtaining module 630 is configured to obtain a data sending rate of the virtual roadside device and a data receiving rate of the virtual vehicle-mounted device according to the distance. The communication simulation module 640 is configured to simulate data communication between the virtual roadside device and the virtual vehicle-mounted device according to the data sending rate and the data receiving rate.
In some embodiments, the simulation apparatus for device communication further includes a scene building module, configured to:
constructing a virtual road in a simulation scene; arranging at least two virtual roadside devices at the roadside of the virtual road according to a preset spacing distance; acquiring a three-dimensional coordinate of the virtual vehicle-mounted equipment; and simulating the position of the virtual vehicle-mounted equipment in the virtual road according to the three-dimensional coordinates.
In some embodiments, the device detection module may be specifically configured to:
acquiring position coordinates of each virtual road side device in a simulation scene; and determining whether the virtual vehicle-mounted equipment is in the signal coverage range of the virtual road-side equipment or not according to the position of the virtual vehicle-mounted equipment in the virtual road and the position coordinates of each virtual road-side equipment in the simulation scene.
In some embodiments, the rate obtaining module may be specifically configured to:
if the virtual vehicle-mounted equipment is detected to be in the signal coverage range of the at least two virtual road side equipment, acquiring the distance between the virtual vehicle-mounted equipment and each virtual road side equipment in the at least two virtual road side equipment; and acquiring the data receiving rate of the virtual vehicle-mounted equipment and the data sending rate of each virtual road side equipment according to the distance between the virtual vehicle-mounted equipment and each virtual road side equipment.
The communication simulation module may be specifically configured to:
acquiring target virtual road side equipment from at least two virtual road side equipment according to the data transmission rate of each virtual road side equipment; and simulating data communication between the virtual vehicle-mounted equipment and the target virtual road-side equipment according to the data sending rate of the target virtual road-side equipment and the data receiving rate of the virtual vehicle-mounted equipment.
And the data transmission rate of the target virtual road side equipment is minimum.
In some embodiments, the simulation apparatus for device communication further includes an anomaly detection module, configured to:
acquiring the data transmission amount of the virtual road side equipment in unit time according to the data transmission rate; acquiring the data receiving amount of the virtual vehicle-mounted equipment in unit time according to the data receiving rate; and determining whether the data communication between the virtual road side equipment and the virtual vehicle-mounted equipment is abnormal or not according to the data transmission quantity and the data receiving quantity.
In some embodiments, the communication simulation module may be specifically configured to:
detecting whether the data sending rate is greater than a preset upper limit value and/or determining whether the data receiving rate is smaller than a preset lower limit value; if the data sending rate is greater than a preset upper limit value and/or the data receiving rate is less than a preset lower limit value, cutting off data communication between the virtual road side equipment and the virtual vehicle-mounted equipment; and if the data sending rate is less than or equal to the preset upper limit value and the data receiving rate is greater than or equal to the preset lower limit value, controlling the virtual road side equipment and the virtual vehicle-mounted equipment to carry out data communication according to the data sending rate and the data receiving rate.
In some embodiments, the rate extraction module may be specifically configured to:
acquiring preset signal transmission intensity as the signal transmission intensity of the virtual road side equipment; acquiring the signal receiving intensity of the virtual vehicle-mounted equipment according to the distance and the signal sending intensity; and acquiring the data receiving rate of the virtual vehicle-mounted equipment according to the signal receiving strength.
In some embodiments, the rate obtaining module may be specifically configured to:
according to the distance, acquiring a horizontal distance and a vertical distance between the virtual road side equipment and the virtual vehicle-mounted equipment; and acquiring the signal receiving intensity according to the horizontal distance, the vertical distance and the signal sending intensity.
In some embodiments, the rate obtaining module may be specifically configured to:
acquiring preset signal receiving intensity as the signal receiving intensity of the virtual vehicle-mounted equipment; acquiring the signal sending intensity of the virtual road side equipment according to the distance and the preset signal receiving intensity; and acquiring the data transmission rate of the virtual road side equipment according to the signal transmission intensity.
In some embodiments, the rate obtaining module may be specifically configured to:
according to the distance, acquiring a horizontal distance and a vertical distance between the virtual road side equipment and the virtual vehicle-mounted equipment; and acquiring the signal sending intensity according to the horizontal distance, the vertical distance and the signal receiving intensity.
In some embodiments, the device communication simulation apparatus further includes a communication control module, configured to control data communication disconnection between the virtual roadside device and the virtual vehicle-mounted device when the virtual vehicle-mounted device leaves a signal coverage range of the virtual roadside device.
The apparatus provided in the embodiment of the present application may be configured to perform the method in the above embodiment, and the implementation principle and technical effects are similar, which are not described herein again.
It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can all be implemented in the form of software invoked by a processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the device detection module may be a processing element separately set up, or may be implemented by being integrated in a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and a processing element of the apparatus calls and executes the functions of the device detection module. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element here may be an integrated circuit with signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
Fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 7, the computer device 70 includes: at least one processor 71, a memory 72, a bus 73, and a communication interface 74. Wherein: the processor 71, the communication interface 74 and the memory 72 communicate with each other via a bus 73. The communication interface 74 is used for communication with other devices. The communication interface comprises a communication interface for data transmission, a display interface or an operation interface for man-machine interaction and the like.
The processor 71 is configured to execute the computer instructions stored in the memory 72, and may specifically execute the relevant steps in the method described in the above embodiments. The processor may be a central processing unit, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The computer device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs. The memory is used for storing computer instructions. The memory may comprise high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
The present embodiment also provides a readable storage medium, in which computer instructions are stored, and when the computer instructions are executed by at least one processor of the computer device, the computer device executes the simulation method for device communication provided by the above various embodiments.
In the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a alone, A and B together, and B alone, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship; in the formula, the character "/" indicates that the preceding and following related objects are in a relationship of "division". "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
It is to be understood that the various numerical references referred to in the embodiments of the present application are merely for convenience of description and distinction and are not intended to limit the scope of the embodiments of the present application. In the embodiment of the present application, the sequence numbers of the above-mentioned processes do not mean the sequence of execution, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill 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 application.

Claims (14)

1. A simulation method of device communication is characterized in that the method is applied to computer equipment, the computer equipment simulates to obtain at least one simulation scene, the simulation scene comprises virtual road side equipment and virtual vehicle-mounted equipment, and the method comprises the following steps:
detecting whether the virtual vehicle-mounted equipment is in a signal coverage range of the virtual road-side equipment;
if the virtual vehicle-mounted equipment is in the signal coverage range of the virtual road-side equipment, acquiring the distance between the virtual road-side equipment and the virtual vehicle-mounted equipment;
acquiring the data sending rate of the virtual road side equipment and the data receiving rate of the virtual vehicle-mounted equipment according to the distance;
and simulating data communication between the virtual road side equipment and the virtual vehicle-mounted equipment according to the data sending rate and the data receiving rate.
2. The method of claim 1, wherein prior to detecting whether the virtual vehicle-mounted device is within signal coverage of the virtual roadside device, the method further comprises:
constructing a virtual road in the simulation scene;
arranging at least two virtual roadside devices at the roadside of the virtual road according to a preset spacing distance;
acquiring a three-dimensional coordinate of the virtual vehicle-mounted equipment;
and simulating the position of the virtual vehicle-mounted equipment in the virtual road according to the three-dimensional coordinates.
3. The method of claim 2, wherein the detecting whether the virtual vehicle-mounted device is within a signal coverage range of the virtual roadside device comprises:
acquiring position coordinates of each virtual road side device in the simulation scene;
and determining whether the virtual vehicle-mounted equipment is in the signal coverage range of the virtual road-side equipment or not according to the position of the virtual vehicle-mounted equipment in the virtual road and the position coordinates of each virtual road-side equipment in the simulation scene.
4. The method according to claim 1, wherein the obtaining of the data sending rate of the virtual roadside device and the data receiving rate of the virtual vehicle-mounted device according to the distance comprises:
if the virtual vehicle-mounted equipment is detected to be in the signal coverage range of at least two virtual road side equipment, acquiring the distance between the virtual vehicle-mounted equipment and each virtual road side equipment of the at least two virtual road side equipment;
acquiring the data receiving rate of the virtual vehicle-mounted equipment and the data sending rate of each virtual road side equipment according to the distance between the virtual vehicle-mounted equipment and each virtual road side equipment;
the simulating data communication between the virtual road side equipment and the virtual vehicle-mounted equipment according to the data sending rate and the data receiving rate comprises:
according to the data transmission rate of each virtual road side device, acquiring a target virtual road side device from the at least two virtual road side devices, wherein the target virtual road side device is the virtual road side device with the minimum data transmission rate;
and simulating data communication between the virtual vehicle-mounted equipment and the target virtual road-side equipment according to the data sending rate of the target virtual road-side equipment and the data receiving rate of the virtual vehicle-mounted equipment.
5. The method of claim 1, further comprising:
acquiring the data transmission amount of the virtual road side equipment in unit time according to the data transmission rate;
acquiring the data receiving amount of the virtual vehicle-mounted equipment in unit time according to the data receiving rate;
and determining whether communication abnormality exists in data communication between the virtual road side equipment and the virtual vehicle-mounted equipment or not according to the data sending quantity and the data receiving quantity.
6. The method according to claim 1, wherein simulating data communication between the virtual roadside apparatus and the virtual vehicle-mounted apparatus according to the data transmission rate and the data reception rate comprises:
detecting whether the data sending rate is greater than a preset upper limit value and/or the data receiving rate is smaller than a preset lower limit value;
if the data sending rate is greater than a preset upper limit value and/or the data receiving rate is less than a preset lower limit value, cutting off data communication between the virtual road side equipment and the virtual vehicle-mounted equipment;
and if the data sending rate is less than or equal to the preset upper limit value and the data receiving rate is greater than or equal to the preset lower limit value, controlling the virtual road side equipment and the virtual vehicle-mounted equipment to carry out data communication according to the data sending rate and the data receiving rate.
7. The method according to any one of claims 1-6, wherein obtaining the data reception rate of the virtual in-vehicle device according to the distance comprises:
acquiring preset signal transmission intensity as the signal transmission intensity of the virtual road side equipment;
acquiring the signal receiving intensity of the virtual vehicle-mounted equipment according to the distance and the signal sending intensity;
and acquiring the data receiving rate of the virtual vehicle-mounted equipment according to the signal receiving strength.
8. The method according to claim 7, wherein the obtaining the signal receiving strength of the virtual vehicle-mounted device according to the distance and the signal sending strength comprises:
acquiring a horizontal distance and a vertical distance between the virtual road side equipment and the virtual vehicle-mounted equipment according to the distance;
and acquiring the signal receiving intensity according to the horizontal distance, the vertical distance and the signal sending intensity.
9. The method according to any one of claims 1 to 6, wherein obtaining the data transmission rate of the virtual roadside apparatus according to the spacing comprises:
acquiring preset signal receiving intensity as the signal receiving intensity of the virtual vehicle-mounted equipment;
acquiring the signal sending intensity of the virtual road side equipment according to the distance and the preset signal receiving intensity;
and acquiring the data transmission rate of the virtual road side equipment according to the signal transmission strength.
10. The method according to claim 9, wherein the obtaining the signal transmission strength of the virtual roadside device according to the distance and the preset signal reception strength comprises:
acquiring a horizontal distance and a vertical distance between the virtual road side equipment and the virtual vehicle-mounted equipment according to the distance;
and acquiring the signal sending intensity according to the horizontal distance, the vertical distance and the signal receiving intensity.
11. The method according to any one of claims 1-6, further comprising:
and when the virtual vehicle-mounted equipment leaves the signal coverage range of the virtual road side equipment, controlling the data communication between the virtual road side equipment and the virtual vehicle-mounted equipment to be cut off.
12. An apparatus for simulating device communication, comprising:
the device detection module is used for detecting whether the virtual vehicle-mounted device is in a signal coverage range of the virtual road side device;
the distance obtaining module is used for obtaining the distance between the virtual road side equipment and the virtual vehicle-mounted equipment if the virtual vehicle-mounted equipment is in the signal coverage range of the virtual road side equipment;
a rate obtaining module, configured to obtain, according to the distance, a data sending rate of the virtual roadside device and a data receiving rate of the virtual vehicle-mounted device;
and the communication simulation module is used for simulating data communication between the virtual road side equipment and the virtual vehicle-mounted equipment according to the data sending rate and the data receiving rate.
13. A computer device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of any of claims 1-11.
14. A readable storage medium having stored therein computer instructions, which when executed by a processor, are adapted to implement the method of any one of claims 1-11.
CN202210649279.0A 2022-06-10 2022-06-10 Simulation method, device, equipment and medium for equipment communication Active CN114745741B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210649279.0A CN114745741B (en) 2022-06-10 2022-06-10 Simulation method, device, equipment and medium for equipment communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210649279.0A CN114745741B (en) 2022-06-10 2022-06-10 Simulation method, device, equipment and medium for equipment communication

Publications (2)

Publication Number Publication Date
CN114745741A true CN114745741A (en) 2022-07-12
CN114745741B CN114745741B (en) 2023-03-24

Family

ID=82287276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210649279.0A Active CN114745741B (en) 2022-06-10 2022-06-10 Simulation method, device, equipment and medium for equipment communication

Country Status (1)

Country Link
CN (1) CN114745741B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327559A (en) * 2012-03-23 2013-09-25 北京新岸线移动多媒体技术有限公司 Vehicular communication method and communication node
US20170024500A1 (en) * 2015-07-21 2017-01-26 Tata Elxsi Limited System and method for enhanced emulation of connected vehicle applications
CN110442037A (en) * 2019-07-03 2019-11-12 华人运通(江苏)技术有限公司 Vehicle communication scenario simulation method, apparatus and emulation simulator
CN111797475A (en) * 2020-06-30 2020-10-20 北京经纬恒润科技有限公司 V2X test method and system
CN112581633A (en) * 2020-12-24 2021-03-30 北京亮道智能汽车技术有限公司 In-loop virtual simulation test method and system for vehicle with automatic driving function
CN113453263A (en) * 2021-06-30 2021-09-28 常州工学院 Vehicle-road cooperative V2I simulation test system and method thereof
CN113792428A (en) * 2021-09-14 2021-12-14 北京五一视界数字孪生科技股份有限公司 Vehicle testing method and device under virtual scene and electronic equipment
CN114018591A (en) * 2021-11-03 2022-02-08 蔚来汽车科技(安徽)有限公司 Vehicle hardware simulation test system, method, vehicle and storage medium
WO2022078289A1 (en) * 2020-10-14 2022-04-21 广州小鹏自动驾驶科技有限公司 Simulation test system and method for autonomous driving

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327559A (en) * 2012-03-23 2013-09-25 北京新岸线移动多媒体技术有限公司 Vehicular communication method and communication node
US20170024500A1 (en) * 2015-07-21 2017-01-26 Tata Elxsi Limited System and method for enhanced emulation of connected vehicle applications
CN110442037A (en) * 2019-07-03 2019-11-12 华人运通(江苏)技术有限公司 Vehicle communication scenario simulation method, apparatus and emulation simulator
CN111797475A (en) * 2020-06-30 2020-10-20 北京经纬恒润科技有限公司 V2X test method and system
WO2022078289A1 (en) * 2020-10-14 2022-04-21 广州小鹏自动驾驶科技有限公司 Simulation test system and method for autonomous driving
CN112581633A (en) * 2020-12-24 2021-03-30 北京亮道智能汽车技术有限公司 In-loop virtual simulation test method and system for vehicle with automatic driving function
CN113453263A (en) * 2021-06-30 2021-09-28 常州工学院 Vehicle-road cooperative V2I simulation test system and method thereof
CN113792428A (en) * 2021-09-14 2021-12-14 北京五一视界数字孪生科技股份有限公司 Vehicle testing method and device under virtual scene and electronic equipment
CN114018591A (en) * 2021-11-03 2022-02-08 蔚来汽车科技(安徽)有限公司 Vehicle hardware simulation test system, method, vehicle and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李晓洁: "虚拟交通场景的信号感知建模与仿真研究", 《中国优秀博硕士学位论文全文数据库(硕士)工程科技Ⅱ辑》 *

Also Published As

Publication number Publication date
CN114745741B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
US20200348408A1 (en) Vehicle Positioning Method and Vehicle Positioning Apparatus
EP2443760B1 (en) Characterisation of a wireless communications link
CN103592565B (en) Position detection method and device for fault of cable
CN110782465B (en) Ground segmentation method and device based on laser radar and storage medium
EP4336864A1 (en) Vehicle-road cooperative positioning method and apparatus, vehicle-mounted positioning system, and roadside unit
CN101277511B (en) Method and apparatus for wireless orientation
EP4216462A1 (en) Communication method and apparatus
CN104540148B (en) The detection method and device of a kind of area covered
CN110879380A (en) GNSS interference source positioning method based on mobile phone
CN111988785B (en) 5G network coverage processing method and device
CN114745741B (en) Simulation method, device, equipment and medium for equipment communication
US6389294B1 (en) Method of determining effect of radio wave multipath fading
CN111638487B (en) Automatic parking test equipment and method
CN108140304B (en) Method for determining a blocked end in road traffic and device associated therewith
Tchouankem et al. Measurement-based evaluation of interference in vehicular ad-hoc networks at urban intersections
Hofer et al. Evaluation of vehicle-in-the-loop tests for wireless V2X communication
CN109462854B (en) Testing device and method for base station site selection
CN109660935B (en) Interference positioning method for base station side array antenna system
CN111669726A (en) Deterministic channel simulator and channel simulation method for Internet of vehicles
WO2020133280A1 (en) Mobile platform-based antenna testing method and apparatus and information processing device
CN113820141A (en) Vehicle testing method, device, equipment and storage medium
KR101396887B1 (en) Method for displaying communication line of sight on 3d map
Lei et al. Challenges and opportunities on intelligent vehicle tests in anechoic chamber
CN103997430B (en) Laboratory verification test method for directional communication networking capability
CN112027107A (en) Unmanned aerial vehicle avoidance test system, method and device, terminal equipment and storage 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
GR01 Patent grant
GR01 Patent grant