主要内容

Visualize Antenna Coverage Map and Communication Links

This example shows how to calculate and visualize signal strength between a transmitter and multiple receivers. The visualizations include an area coverage map and colored communication links. The example also shows selection of a directional antenna in order to achieve a communication link to a specific location.

定义发射器站点

%定义了Mathworks的发射机站点(3苹果山博士,纳尼克,马萨)fq = 6e9;%6 GHztx = txsite(“姓名”,“MathWorks”,..."Latitude",42.3001,..."Longitude",-71.3504,...“天线”,design(dipole,fq),..."AntennaHeight",60,...%单位:米“变送机罚款”,fq,...% Units: Hz"TransmitterPower"15);%单位:瓦特

定义接收器站点

% Define receiver sites in several surrounding towns and citiesrxNames = [..."Boston, MA","Lexington, MA","Concord, MA",“马尔堡,马”,..."Hopkinton, MA","Holliston, MA","Foxborough, MA","Quincy, MA"];rxlocations = [...42.3601 -71.0589;...% Boston42.4430 -71.2290;...% Lexington42.4604 -71.3489;...% Concord42.3459 -71.5523;...% Marlborough42.2287 -71.5226;...% Hopkinton42.2001 -71.4245;...% Holliston42.0654 -71.2478;...% Foxborough42.2529 -71.0023];%昆西% Define receiver sensitivity. Sensitivity is the minimum signal strength in% power that is necessary for the receiver to accurately detect the signal.rxSensitivity = -90;%单位:DBMrxs = rxsite(“姓名”,rxnames,..."Latitude",rxLocations(:,1),..."Longitude",rxlocations(:,2),...“天线”,设计(偶极,tx.transmitterfryce),...“接收敏感性”,rxsensitivity);%单位:DBM

在地图上显示网站

Show the transmitter and receiver sites on a map. You can display information about a site by clicking on a marker.

查看器= SiteViewer;Show(TX)显示(RXS)

Set the map imagery by using the底图property. Alternatively, open the map imagery picker in Site Viewer by clicking the second button from the right. Select "OpenStreetMap" to see streets and labels on the map. Rotate the view to show an overhead perspective.

viewer.Basemap ="openstreetmap";

使用偶极天线显示理想化的覆盖地图

显示覆盖地图。覆盖图显示了接收器将获得良好接收的地理区域,该地理区域是发送信号强度满足或超过接收器的灵敏度的位置。使用自由空间传播模型计算功率(DBM)中的传输信号强度,无忽略地形,障碍和大气效应。结果,覆盖图在没有任何超出自由空间损失的路径损失损伤的情况下显示了理想化的覆盖区域。

coverage(tx,“可用空间”,...“信号强致”,rxsensitivity)

使用偶极天线的绘制通信链路

地图上的绘图通信链接。红色链路出现在接收器在覆盖区域之外的位置,并且绿色链接出现接收器在覆盖区域内。可以单击链接行以显示链接统计信息。要对比覆盖区域和成功链接的颜色,请指定成功链接的颜色为深绿色。

sc = [0 0.3 0];链接(RXS,TX,“可用空间”,"SuccessColor",sc)

Use Rain Propagation Model

Update the coverage map and links to include path loss due to rain. Note that Boston, MA is no longer inside the coverage zone.

coverage(tx,"rain",“信号强致”,rxsensitivity)链接(Rxs,Tx,"rain","SuccessColor",sc)

Define Directional Antenna

The dipole antenna transmitter results in a few receiver sites outside of the coverage zone, including the receiver in Boston, MA. Now assume a requirement of the transmitter is to achieve a communication link with Boston. Define a directional antenna that can increase antenna gain in that direction.

% Define Yagi-Uda antenna designed for transmitter frequencyyagiAnt = design(yagiUda,tx.TransmitterFrequency);%倾斜天线以直接辐射XY平面(即地理方位角)yagiant.tilt = 90;yagiant.tiltaxis ="y"; f = figure;% Show directivity patternpatternAzimuth(yagiAnt,tx.TransmitterFrequency)

%Close the previous figureif(isvalid(f)) close(f);end

Display Coverage Map using Yagi-Uda Antenna

Update the coverage map and links. Boston is now within the coverage zone, but communication links with receivers in other directions are lost.

%更新发射器天线tx.Antenna = yagiAnt;%点主光束向波士顿,MA通过分配方位角% transmitter location and Boston receiver locationTx.antennaangle =角度(Tx,Rxs(1));% Update visualizations, using "rain" propagation modelcoverage(tx,"rain",“信号强致”,rxsensitivity)链接(Rxs,Tx,"rain","SuccessColor",sc)

Display Contoured Coverage Map using Multiple Signal Strengths

When a single signal strength is specified, the coverage map is green for the coverage region. Specify multiple signal strengths to generate a coverage map with contours for different signal levels.

%将信号强度定义为-60 dB的灵敏度sigStrengths = rxSensitivity:5:-60;%更新覆盖范围地图coverage(tx,"rain",“信号强致”,sigStrengths)

See Also

Functions

Objects

相关话题