close all
clc
clear
format compact
display('running sat_sat.m')
c = 299792458;
k = 1.39e-23;
run distances
run modulation
freq = 6e9 ;
lambda = c/freq;
freqlimit = (freq + BW/2)/1e9
freqlimt = (freq -BW/2)/1e9
display('These are the link calcs from Sat to Sat')
Pt = [1:100];
G_ant = 20;
r_sat_ant = ((((10^(G_ant/10))/.8)*(lambda^2))/(4*pi^2))^(1/2)
EIRP = 10*log10(Pt) + G_ant;
beamwidth = sqrt(30000/10^(G_ant/10))
Q = 50;
Tsys = 20;
Pr = EIRP + G_ant-20*log10(4*pi/lambda*dist_sats);
Pn = 10*log10((k*Tsys*BW) + (10.^(Pr./10)*(Q-1)));
SNR_despread = Pr-Pn + procgain;
SNR_uncoded = SNR_despread+coding_gain;
x = sqrt(2*10.^(SNR_uncoded./10));
BER_downlink = 1/2*erfc(x/sqrt(2));
figure(1), semilogy(Pt, BER_downlink);
title('Pt of Satellite vs BER')
xlabel('Pt of Satellite(W)');
ylabel('BER');
grid on
indexBER = find(BER_downlink <1e-6, 1, 'first');
Pt = Pt(indexBER)
SNR_uncoded = SNR_uncoded(indexBER)
BER_downlink = BER_downlink(indexBER)
running sat_sat.m
dist_sats =
3.5382e+07
beamwidth_sat =
22.5609
freqlimit =
6.2430
freqlimt =
5.7570
These are the link calcs from Sat to Sat
r_sat_ant =
0.0889
beamwidth =
17.3205
Pt =
7
SNR_uncoded =
10.7522
BER_downlink =
5.3943e-07
|