rf propagation and visualization
rf propagation models describe the behavior of signals as they travel through the environment. you can display transmitter sites, receiver sites, and rf propagation visualizations by using site viewer, an interactive 3-d viewer. site viewer enables you to visualize propagation models in both outdoor and indoor environments.
visualize outdoor wireless coverage
display transmitter and receiver sites on a 3-d globe, calculate the distance and angles between the sites, and analyze the signal strength of the transmitter at the receiver site. display a communication link, a coverage map, and a signal-to-interference-plus-noise ratio (sinr) map.
display sites
create a transmitter site and a receiver site. specify the position using geographic coordinates in degrees.
tx = txsite("latitude",42.3001,"longitude",-71.3504); rx = rxsite("latitude",42.3021,"longitude",-71.3764);
display the sites in site viewer. site viewer displays geographic sites on an interactive 3-d globe. you can customize the propagation environment of the 3-d globe by using dted terrain and openstreetmap® buildings.
show(tx) show(rx)
pan the map by clicking and dragging. zoom out by using the scroll wheel.
find distance and angles
calculate the distance between the sites in meters. by default, the distance
function calculates the distance along a straight line between the sites. this straight-line path is called the euclidean path and ignores all obstructions, including the earth.
dm = distance(tx,rx)
dm = 2.1556e 03
you can also calculate distance using a great circle path, which considers the curvature of the earth.
calculate the azimuth and elevation angles between the sites. for geographic sites, the angle
function returns the azimuth angle in degrees, measured counterclockwise from the east. the angle
function returns the elevation angle in degrees from the horizontal plane.
[az,el] = angle(tx,rx)
az = 174.0753
el = -0.7267
analyze signal strength
the signal strength of a transmitter at a receiver site is given by the following equation:
where:
is the power available at the receiver.
is the transmitter output power.
is the transmitter gain.
= is the receiver gain.
pathloss is the rf attenuation suffered by the transmitter signal when it arrives at the receiver.
calculate the signal strength at the desk receiver site. by default, the sigstrength
function calculates signal strength in power units (dbm). you can also calculate the signal strength in electric field strength units (dbμv/m).
ss = sigstrength(rx,tx)
ss = -67.0767
the link margin measures the robustness of the communication link. calculate the link margin by subtracting the required receiver sensitivity from the signal strength.
margin = abs(rx.receiversensitivity - ss)
margin = 32.9233
display communication link
display the communication link status between the sites. the success of the link depends on the power received by the receiver from the transmitter. by default, a green line indicates that the received power meets or exceeds the receiver sensitivity. a red line indicates unsuccessful communication.
link(rx,tx)
display coverage map
display the coverage map of the transmitter. a coverage map visualizes the service area of the transmitter, which is where the received signal strength for a reference receiver meets its sensitivity. you can create coverage maps that depict signal strength as either a power quantity (typically dbm) or a voltage quantity (typically dbμv/m).
coverage(tx,"signalstrengths",-100:5:-60)
find new transmitter site
create and display a new transmitter site that is 1 km north of the existing transmitter site. specify the antenna height as 30 m.
[lat,lon] = location(tx,1000,90); tx2 = txsite("latitude",lat,"longitude",lon,"antennaheight",30); show(tx2)
calculate sinr
calculate the sinr in decibels. the sinr of a receiver is given by the following equation:
where:
s is the received power of the signal of interest.
i is the received power of interfering signals in the network.
n is the total received noise power.
when site viewer has terrain data, the sinr
function incorporates the terrain into the calculations.
sinr([tx,tx2])
visualize indoor propagation paths
import a 3-d scene model of a conference room. display sites and find propagation paths between the sites.
import scene
import and view an stl file. the file models an indoor office with a conference room and open space separated by a partial wall. stl files contain geometry information and do not contain information about colors, surfaces, or textures.
viewer = siteviewer("scenemodel","office.stl","showorigin",false);
display sites
place one transmitter near the ceiling in the conference room. place one receiver on a desk in the open space and another receiver on a shelf. specify the position using cartesian coordinates in meters.
tx = txsite("cartesian","antennaposition",[2; 1.3; 2.5]); rx_desk = rxsite("cartesian","antennaposition",[3.6; 7.5; 1]); rx_shelf = rxsite("cartesian","antennaposition",[0.4; 3.3; 1]);
display the receivers and the line-of-sight paths.
los(tx,[rx_desk rx_shelf])
pan the scene by left-clicking, zoom by right-clicking or by using the scroll wheel, and rotate by clicking the middle button and dragging or by pressing ctrl and left-clicking and dragging.
the path to the shelf receiver is clear and the path to the desk receiver is obstructed.
display propagation paths
create a ray tracing propagation model, which matlab® represents using a raytracing
object. configure the model to use a cartesian coordinate system and wooden surface materials. by default, the model uses the shooting and bouncing rays (sbr) method.
pm = propagationmodel("raytracing", ... "coordinatesystem","cartesian", ... "surfacematerial","wood");
display propagation paths that are within the line of sight by setting the maxnumreflections
property to 0
. unlike the los
function, the raytrace
function does not show obstructed paths.
pm.maxnumreflections = 0; clearmap(viewer) raytrace(tx,[rx_desk rx_shelf],pm)
the raytrace
function finds one line-of-sight path. you can view information about the path, such as the received power, by clicking on the path.
display propagation paths with up to one reflection.
pm.maxnumreflections = 1; raytrace(tx,[rx_desk rx_shelf],pm)
display propagation paths with up to one reflection and one diffraction.
pm.maxnumdiffractions = 1; raytrace(tx,[rx_desk rx_shelf],pm)
see also
functions
- | | | |
objects
- | |