ARL-TR-8601 ● DEC 2024 US Army Research Laboratory Software-Defined Radio Angle of Arrival Measurement of Modulated Signals
by Michael Don and Dakota Wessel Approved for public release; distribution is unlimited.
NOTICES
Disclaimers
The findings in this report are not to be construed as an official Department of the Army position unless so designated by other authorized documents.
Citation of manufacturer’s or trade names does not constitute an official endorsement or approval of the use thereof.
Destroy this report when it is no longer needed. Do not return it to the originator.
ARL-TR-8601 ● DEC 2024
US Army Research Laboratory
Software-Defined Radio Angle of Arrival Measurement of Modulated Signals
by Michael Don
Weapons and Materials Research Directorate, ARL
Dakota Wessel
Drexel University, Philadelphia, PA
Approved for public release; distribution is unlimited.
REPORT DOCUMENTATION PAGE Form Approved OMB No. 0704-0188 Public reporting burden for this collection of information is estimated to average 1 hour per response, including the time for reviewing instructions, searching existing data sources, gathering and maintaining the data needed, and completing and reviewing the collection information. Send comments regarding this burden estimate or any other aspect of this collection of information, including suggestions for reducing the burden, to Department of Defense, Washington Headquarters Services, Directorate for Information Operations and Reports (0704-0188), 1215 Jefferson Davis Highway, Suite 1204, Arlington, VA 22202-4302. Respondents should be aware that notwithstanding any other provision of law, no person shall be subject to any penalty for failing to comply with a collection of information if it does not display a currently valid OMB control number. PLEASE DO NOT RETURN YOUR FORM TO THE ABOVE ADDRESS. 1. REPORT DATE (DD-MM-YYYY) 2. REPORT TYPE 3. DATES COVERED (From - To) December 2024 4. TITLE AND SUBTITLE Technical Report March–August 2024 5a. CONTRACT NUMBER Software-Defined Radio Angle of Arrival Measurement of Modulated Signals 5b. GRANT NUMBER 5c. PROGRAM ELEMENT NUMBER 6. AUTHOR(S) 5d. PROJECT NUMBER Michael Don and Dakota Wessel 5e. TASK NUMBER 5f. WORK UNIT NUMBER 7. PERFORMING ORGANIZATION NAME(S) AND ADDRESS(ES) 8. PERFORMING ORGANIZATION REPORT NUMBER US Army Research Laboratory ATTN: RDRL-WML-F Aberdeen Proving Ground, MD 21005 9. SPONSORING/MONITORING AGENCY NAME(S) AND ADDRESS(ES) ARL-TR-8601 10. SPONSOR/MONITOR'S ACRONYM(S) 11. SPONSOR/MONITOR'S REPORT NUMBER(S) 12. DISTRIBUTION/AVAILABILITY STATEMENT Approved for public release; distribution is unlimited. 13. SUPPLEMENTARY NOTES 14. ABSTRACT The US Army Research Laboratory (ARL) is investigating localization technologies for GPS-denied environments. One such technology is RF angle of arrival (AoA). Previous research at ARL demonstrated the feasibility of RF AoA for swarm localization using continuous wave signals. This report applies this research to modulated signals, allowing for data communications as well as AoA measurement. Two modulation schemes are examined for their suitability for AoA measurement, culminating in a laboratory experiment successfully demonstrating AoA measurement with modulated signals. 15. SUBJECT TERMS angle of arrival, software-defined radio, localization, modulation, direction finding 16. SECURITY CLASSIFICATION OF: a. REPORT b. ABSTRACT c. THIS PAGE 17. LIMITATION OF ABSTRACT 18. NUMBER OF PAGES 19a. NAME OF RESPONSIBLE PERSON Michael Don 19b. TELEPHONE NUMBER (Include area code) Unclassified Unclassified Unclassified UU 31 410-306-0775
Standard Form 298 (Rev. 8/98) Prescribed by ANSI Std. Z39.18
ii
Contents List of Figures List of Tables 1. Introduction 2.
Theory
2.1 RF AoA Measurement
2.2 IQ Modulation and Demodulation
3. Evaluation of Modulation Schemes
3.1 BPSK 3.2 BFSK
4. Laboratory Experiment 5. Conclusion 6.
References
Appendix A. Binary Phase Shift Keying Modulation Appendix B. Modulation Simulation MATLAB Code List of Symbols, Abbreviations, and Acronyms Distribution List
Approved for public release; distribution is unlimited.
iii
iv iv 1 1
1 4
6
6 7
10 12 13 15 19 24 25
List of Figures Fig. 1 Fig. 2 Fig. 3 Fig. 4 Fig. 5 Fig. 6 Fig. 7 Fig. 8 Fig. 9
AoA system with two antennas............................................................. 2 ???? as a function of ?? ............................................................................ 3 AoA error as a function of angle........................................................... 3 IQ modulator ......................................................................................... 4 IQ demodulator ..................................................................................... 5 BPSK modulation ................................................................................. 6 BFSK modulation ................................................................................. 8 BFSK demodulation.............................................................................. 9 AoA laboratory experiment setup ....................................................... 11
Fig. A-1 BPSK modulation (Fig. 6 in main text) .............................................. 16 Fig. A-2 BPSK demodulation............................................................................ 17 Fig. A-3 BPSK demodulation using a higher carrier frequency ....................... 18
List of Tables Table 1 Table 2
AoA laboratory experiment results using a 3-ft cable length ............. 11 AoA laboratory experiment results using a 3-ft-1-inch cable length .. 12
Approved for public release; distribution is unlimited.
iv
1. Introduction The global positioning system (GPS) is currently the backbone of the military’s position, navigation, and timing infrastructure. But GPS is vulnerable to jamming and other malicious attacks,1 necessitating the development of other localization technologies.2 One such technology is radio frequency (RF) angle of arrival (AoA). There are various methods to calculate AoA, but frequently it is determined from the phase differences between the elements of an antenna array.3 RF AoA has been used in the past for naval and aircraft navigation and can provide an alternative to GPS in challenging environments.4
Building on previous research with software-defined radio (SDR),5,6 the US Army Research Laboratory (ARL) demonstrated RF AoA measurement of continuous wave (CW) using an SDR.7 SDR, as the name suggests, is a radio platform where most of the functionality is defined in software instead of hardware. This makes it a flexible system for specialized applications such as AoA. SDR can be further employed to measure the AoA of modulated signals, allowing a network of agents to use the same signals for communications and angle measurements. A sinusoid can be modulated though its amplitude, frequency, and phase, resulting in amplitude modulation (AM), frequency modulation, and phase modulation. This report analyzes AoA measurement using modulated signals, exploring the suitability of modulation schemes for AoA, and demonstrating angle measurements using an SDR.
First, AoA theory is reviewed. Next, the SDR inphase/quadrature (IQ) modulation and demodulation are presented. Two modulation methods are then compared for their suitability for AoA measurement, binary phase shift keying (BPSK) and binary frequency shift keying (BFSK). AM methods are excluded from consideration because they have poor noise performance and are generally not employed alone in modern wireless communications. Finally, the results of a laboratory experiment using BFSK are presented.
2. Theory 2.1 RF AoA Measurement
The AoA of an RF signal can be determined using the system in Fig. 1.3 ??1 and ??2 indicate the position of two antennas spaced a distance ?? apart. The red lines indicate the RF signal’s direction of propagation from the source to the antennas. If the distance from the signal source to the antennas is much greater than ??, these
Approved for public release; distribution is unlimited.
1
lines can be assumed to be parallel. The angle of arrival, ??, is shown as the angle off center of the incoming RF signal that intersects ??2. Since ??+??=90°, and ??+∠????1??2=90°, then ∠????1??2 is also ??. The length of ?????????2 is the difference in distance the RF signal must travel to ??2 as compared to ??1. Given an RF signal with wavelength ??, assuming ??≤???2 and ?90°≤??≤90°, the phase difference betwen the received signals at ??1 and ??2 is given by
Δ??=2??(
??sin??
), ??
(1)
where ???≤Δ??≤??. Here and in the rest of this report, phases are in radians while angles are in degrees. Given a measured phase difference between ??1 and ??2, the angle of arrive is then
Δ????(2??)
??=sin?1().
??
(2)
RF Source ?? P ?? A2 d Fig. 1
?? A1
AoA system with two antennas
From Eq. 1, if ??>???2, Δ?? can exceed the range of ???≤Δ??≤??. This causes an ambiguity problem since values of Δ?? and Δ??±2?? cannot be distinguished from each other at the antennas, leading to multiple solutions for ??. In order to correct this problem, an integer ?? can be added to Eq. 2 to account for the phase rollovers.
??=sin
?1
(
??(
Δ??
+??)2??
??
). (3)
Typically, a third antenna is used to obtain the extra information required to resolve the ambiguity.8,9 Alternatively, another Δ?? measurement using a different
Approved for public release; distribution is unlimited.
2
wavelength can be used for ambiguity resolution.7 In this report, the ambiguity problem will be ignored and it will be assumed ??≤???2.
The performance of AoA measurement is not constant across ??. Figure 2 shows Δ?? as a function of ??. At larger angles, a small change in Δ?? corresponds to a large change in ??. This makes ?? more sensitive to noise at larger angles. Figure 3 shows average angle error versus angle for three levels of noise. The noise values refer to the standard deviation of Gaussian noise added to a unit amplitude input signal.
Fig. 2
???? as a function of ??
Fig. 3
AoA error as a function of angle
Approved for public release; distribution is unlimited.
3
2.2 IQ Modulation and Demodulation
Now that AoA measurement has been reviewed, we describe how an SDR processes RF signals. In wireless communications, information is transmitted by using a modulation signal to vary a high-frequency carrier signal. Given a sinusoidal carrier of frequency ????, information can be encoded by modulating the amplitude (??(??)), frequency (??(??)), or phase (??(??)).
??(??)=??(??)cos (2??(????+??(??))+??(??)).
(4)
SDR typically implements this modulation by reformulating Eq. 4 in terms of IQ
data applied to a carrier signal (cosine) and a 90° shifted version of the carrier (sine) to produce the desired amplitude, frequency, and phase changes.
??(??)??????(2??(????+??(??))+??(??))=??(??)cos(2????????)???(??)sin(2????????).
(5)
The modulation is formatted in this manner because the RF transmitter hardware outlined in Fig. 4 is relatively simple to implement.
Fig. 4
IQ modulator
After the modulated signal is transmitted, it is received and demodulated to extract the encoded information. A block diagram of demodulation is shown in Fig. 5.
Approved for public release; distribution is unlimited.
4
Fig. 5
IQ demodulator
Starting with the demodulation of the ?? data, an input RF signal formulated in terms of IQ data as in Eq. 5 gives
???(??)=2??????(2????????)(??(??)cos(2????????)???(??)sin(2????????)).
(6)
Using the double angle formulas
???(??) becomes
???(??)=??(??)+??(??)??????(4????????)???(??)sin(4????????).
(9)
cos(2??)+1
2
sin(??)cos (??)=sin (2??), cos2(??)=
(7) (8)
This leaves the baseband ?? data with additional signals at twice the carrier
frequency. Filtering out these higher frequencies using a low-pass filter will restore the original ?? data. Similarly, for the ?? data
???(??)=?2??????(2????????)(??(??)cos(2????????)???(??)sin(2????????)).
(10)
With the additional double-angle formula
???(??) becomes
1?cos(2??)
sin??)=,
2
2(
(11)
???(??)=???(??)??????(4????????)+??(??)???(??)cos(4????????).
(12)
Here the baseband ?? data are left with additional high-frequency signals. Filtering
out these high frequencies will restore the original ?? data.
Approved for public release; distribution is unlimited.
5
Real modulation and demodulation hardware may make use of intermediate frequencies in the conversion process of IQ data to the carrier frequency, but the basic modulation theory remains the same as outlined here.
3. Evaluation of Modulation Schemes 3.1 BPSK
BPSK is a type of modulation that encodes information in the phase of the signal.10 Figure 6 shows binary data, IQ data, and the modulated carrier signal. A more extensive treatment of BPSK is included in Appendix A, with the source MATLAB11 code for the plots in Appendix B. The phase changes in the modulated signal can clearly be seen to line up with the data bits. Examining the IQ data, we concluded that BPSK is not well suited to AoA measurements. As explained previously in reference to Fig. 1, AoA is calculated by comparing the phase of the received signals at the two antennas. However, SDR demodulates the BPSK signals into its original IQ data, where the ?? signal is constant, and the ?? is binary. A constant signal certainly cannot be used to measure Δ??, and a binary signal can only measure phase at the bit boundaries, a small minority of full signal.
Fig. 6
BPSK modulation
Approved for public release; distribution is unlimited.
6
3.2 BFSK
BFSK is a modulation technique that changes the frequency of a carrier signal to encode information.10 Binary symbols 0 and 1 correspond to a frequency deviation of +???? and ?????, respectively.
??1(??)=cos(2????(????+????)). ??0(??)=cos(2????(????+????)).
(13) (14)
Using the angle-sum identity,
cos(??+??)=cos(??)cos(??)?sin(??)sin(??).
(15)
The IQ data can be formed as follows:
??1(??)=??(??)??????(2????????)+??(??)??????(2????????),
??(??)=cos(?2????????),??(??)=sin(?2????????). ??0(??)=??(??)??????(2????????)+??(??)??????(2????????),??(??)=cos(2????????),??(??)=sin(2????????).
(16) (17)
Figure 7 shows the process of BFSK modulation. The top plot shows the data. The
next plot shows the phase angle used to generate the IQ data. The phase angle is the angle of the sine and cosine terms of the IQ data in Eqs. 16 and 17. This gives the phase angle a slope of ?2?????? for a data bit of 1, and a slope of 2?????? for a data bit of 0. The third plot shows the IQ data itself generated from the phase angle. The last plot shows the modulated signal with higher frequencies corresponding to a 1 and lower frequencies corresponding to a 0.
Approved for public release; distribution is unlimited.
7
Fig. 7
BFSK modulation
Figure 8 shows the demodulation process. The top plot shows the received signal. The next plot shows the recovered IQ data. Since the ?? and ?? data were formed from the cosine and sine of the phase angle, the phase angle can be recovered from the inverse tangent of the ?? data divided by the I data.
??(??)(18) ). ??(??)
The original data can then be extracted from the slope of the phase angle through differentiation, which is shown in the bottom plot where the recovered data overlap the original data.
??(??)=???????1(
Approved for public release; distribution is unlimited.
8
Fig. 8
BFSK demodulation
Examining the IQ data in Fig. 7, it is apparent that BFSK is well suited to AoA measurement. Both the ?? and ?? are sinusoidal, allowing for Δ?? to be measured. The ?? data in Fig. 8, unlike the ideal ?? data in Fig. 7, have more gradual phase transitions at the bit boundaries. This can cause some variability in the Δ?? measurement, but it can be easily corrected by only using the ?? data in the middle of the bits away from the boundaries.
Although AoA measurements from phase differences have been reviewed, and IQ demodulation and modulation have been presented, the relationship between Δ?? in the IQ data and Δ?? in the RF signals has yet to be shown. Starting with a single RF sinusoid with frequency ????+???? given as
??(??)=cos(2????(????+????)),
(19)
the received signals at antennas ??1 and ??2are then
??1(??)=cos(2????(????+????)+??1) ??2(??)=cos(2????(????+????)+??2).
9
(20) (21)
Approved for public release; distribution is unlimited.
Using the cosine-sum formula
cos(??+??)=cosαcosβ?sinαsinβ,
(22)
with ??=2????????+?? and ??=2????????, Eqs. 23 and 24 can be written as
??1(??)=cos(2????????+??1 )cos(2???????? )?sin(2????????+??1)sin(2????????) ??2(??)=cos(2????????+??2 )cos(2???????? )?sin(2????????+??2)sin(2????????).
(23) (24)
This is the IQ-signal representation in Eq. 5, with ??1(??)=cos(2????????+??1) and ??1(??)=sin(2????????+??1).??2 has an identical IQ representation. The phase can then be calculated from ??1(??) or ??1(??) as
??1(??)
=tan(2????????+??1) ??1(??)
??1(??)?1
??1=tan()?2????????.
??1(??)
(25) (26)
with identical equations for ??2. This leads to a Δ?? measurement of
Δ??=tan
?1
??1(??)??2(??)?1()?tan(), ??1(??)??2(??)
(27)
where the 2???????? terms cancel out. Thus, the recovered IQ data preserve the phase
information of the antenna signals. This proof for ????+???? also applies to ?????????, allowing Δ?? to be extracted for BFSK signals. Typically, ????? ????, allowing a single value of ?? based on ???? alone to be used for AoA calculations without any noticeable degradation of accuracy.
4. Laboratory Experiment A laboratory experiment was conducted to demonstrate AoA measurements with modulated signals. Figure 9 shows the experiment setup. In order to avoid multipath, cables were used to simulate an AoA. A Universal Software Radio Peripheral (USRP) B200mini12 acts as the signal source, transmitting a BFSK signal from a saved BFSK waveform file. The signal passes through a 3-ft cable to an RF splitter where it divides into two paths. The length of these paths can be used to create a phase difference in the signals. A USRP E31013 with two receiver front ends receives and records the signals for processing.
Approved for public release; distribution is unlimited.
10
E310 Splitter B200minE310?i Second cable added to simulate angle
Fig. 9
AoA laboratory experiment setup
The two front ends of the E310 use separate, unsynchronized oscillators creating an unknown phase bias between the two receiver channels. Using two 3-ft cables for each transmit path, this bias was measured as 3.146 rad. A second 3-ft cable was then added to one of the transmit paths to simulate an AoA, and the bias was subtracted from the measured Δ?????????????????? to produce the Δ???????? values listed in Table 1. Using Eq. 2, ?????????????? was calculated using ??=??/2 as a suitable antenna spacing. The speed of electricity in a cable differs from the speed of light by the velocity factor of the cable. These cables have velocity factor14 of 0.695, which was used in the wavelength calculations. The experiment was repeated for the four frequencies listed.
Table 1
AoA laboratory experiment results using a 3-ft cable length
?????????? 1.767 0.388 –0.99 –0.369
?????????? 1.74 0.4734 –1.254 –2.577
???????? 34.236 7.108 –18.369 –48.937
?????????????? 33.632 8.667 –23.526 –55.113
?? Error 0.604 –1.559 5.157 6.176
Frequency (MHz)
50 100 150 200
The first two frequencies have a very small error, while the second two measurements have a larger error. As ?? decreases, angle errors are magnified, so it is expected that error will increase as the d values decrease. Also, the phase bias was measured once at the beginning of the experiment before the 50-MHz test.
Approved for public release; distribution is unlimited.
11
Phase-bias measurements between each frequency change may help to reduce error. In previous research,7 phase-bias measurement was shown to be fairly accurate, resulting in only a 0.17° angle error. More significant sources of error probably include inaccuracies caused by cable-length measurement errors and the variability of connector components. For example, Table 2 shows the same calculations as in Table 1, but with 1 inch added to the 3-ft cable length. The extra inch may represent connector lengths and cable variability, and has significantly decreased the overall angle error. Considering these factors, the experiment results verify the theoretical results demonstrating that an SDR can measure AoA from modulated signals.
Table 2
AoA laboratory experiment results using a 3-ft-1-inch cable length
?????????? 1.729 0.312 –1.105 –2.522
?????????? 1.74 0.4734 –1.254 –2.577
???????? 33.395 5.702 –20.591 –53.394
?????????????? 33.632 8.667 –23.526 –55.113
?? Error –0.237 –2.965 2.934 1.719
???? (MHz) 50 100 150 200
5. Conclusion Alternative localization technologies are critical in GPS-denied environments. RF AoA is a promising localization technology that can be integrated into small embedded form factors using SDR. This report applies previous AoA research on CW signals to modulated signals. BPSK was examined and found unsuitable for AoA measurement. BFSK was determined to be more suitable for AoA measurements, leading to a successful laboratory experiment demonstrating AoA measurement using BFSK signals. Future possible research areas include the following:
? ? ? ?
Transition the laboratory experiment to a real-time field test Add more antennas to determine a 2-D AoA15 Explore subspace AoA algorithms16
Use AoA measurements to localize networked agents
Approved for public release; distribution is unlimited.
12
6. References 1. Bachrach A, Prentice S, He R, Roy N. RANGE–robust autonomous navigation
in GPS-denied environments. J Field Robo. 2011;28. 2. Lockspeiser JR, Don ML, Hamaoui M. Radio frequency ranging for swarm
relative localization. Aberdeen Proving Ground (MD): Army Research Laboratory (US); 2017 Oct. Report No.: ARL-TR-8194. 3. Read W. Review of conventional tactical radio direction finding systems.
Ottawa (Ontario): Defence Research Establishment; 1989 May. 4. Howeth LS. History of communications electronics in the United States Navy.
Washington (DC): GPO; 1963.
5. Don M. A low-cost software-defined telemetry receiver. Proceedings of the
51st International Telemetering Conference; 2015 Oct 26–29; Las Vegas, NV. 6. Don M. Advances in a low-cost software-defined telemetry system. Presented
at the 53rd International Telemetering Conference Proceedings; 2017 Oct; Las Vegas, NV.
7. Don ML. The feasibility of radio direction finding for swarm localization.
Aberdeen Proving Ground (MD): Army Research Laboratory (US); 2017 Aug. Report No.: ARL-TR-8114.
8. Jacobs E, Ralston EW. Ambiguity resolution in interferometry. IEEE Trans
Aero E Sys. 1981(6):766–80. 9. Guerin D. Passive direction finding. Worcester (MA): Worcester Polytechnic
Institute; 2012 Oct 10.
10. Proakis JG, Manolakis DG. Digital signal processing: principles algorithms
and applications. 4th ed. Mumbai (India): Pearson Education India; 2007.
11. MATLAB. Natick (MA): The Mathworks, Inc.; 2015 [accessed 2024 Sep 4].
www.mathworks.com.
12. USRP B200mini series data sheet. Santa Clara (CA): Ettus Research [accessed
2024 Sep 4] https://www.ettus.com/content/files/USRP_B200mini_Data_ Sheet.pdf.
13. USRP E310 portable and stand-alone data sheet. Santa Clara (CA): Ettus
Research [accessed2024Sep4] www.ettus.com/content/files/USRP_E310_Data sheet.pdf.
Approved for public release; distribution is unlimited.
13
14. Cable velocity factor and loss data. Atlanta (GA): American Febo Enterprises;
c1996–2024 [updated 2012 Oct 19; accessed 2024 Sep 4]. https://www.febo.com/reference/cable_data.html.
15. Doi Y, Moriya H, Ichige K, Arai H, Hayashi T, Matsuno H, Nakano M. Low-cost antenna array via antenna switching for high resolution 2-D DOA estimation. Proceedings of the 2013 IEEE Workshop on InSignal Processing Systems (SiPS); 2013 Oct 16–18; Taipei City, Taiwan. p. 83–88. 16. Krim H, Viberg M. Two decades of array signal processing research: the
parametric approach. IEEE Signal Processing. 1996;13(4):67–94.
Approved for public release; distribution is unlimited.
14
Appendix A. Binary Phase Shift Keying Modulation Approved for public release; distribution is unlimited.
15
Binary phase shift keying (BPSK) is a type of modulation that encodes information in the phase of the signal.1 It uses two phases to encode binary symbols 0 and 1 into the carrier signal.
??1(??)=cos(2????????). ??0(??)=cos(2????????+??).
(A-1) (A-2)
Since a phase shift of ?? is equivalent to negating the cosine, the modulated signal
can be formed by setting the ?? data to –1 and 1 for symbols 0 and 1, respectively. The ?? data are set to 0 giving
??1(??)=??(??)cos(2????????),??0(??)=??(??)cos(2????????),
??(??)=1 ??(??)=?1 .
(A-3) (A-4)
Example data, I and Q modulation signals, and the modulated carrier signal are shown for BPSK in Fig. A-1. Note the phase change of the carrier at each bit boundary of the data. BPSK is a simple example of modulation since the ?? data are essentially the same as the input data itself.
Fig. A-1 BPSK modulation (Fig. 6 in main text)
1
Proakis JG, Manolakis DG. . Digital signal processing: principles algorithms and applications. 4th ed. Mumbai (India): Pearson Education India; 2007.
Approved for public release; distribution is unlimited.
16
After the modulated signal is formed and transmitted, the signal is received and the original data are extracted in the demodulation process. Since the original data are equivalent to the ?? data, demodulation of BPSK is simply the process of recovering the ?? data described previously. Figure A-2 illustrates the demodulation process. The top plot shows a received modulated signal with the addition of some channel noise. The middle plot shows the received signal multiplied by a carrier signal, reintroducing the baseband and ?? data along with additional signals at twice the carrier frequency. Finally, the bottom plot shows the demodulated signal with the high frequencies filtered out. The demodulated data are distorted but clearly visible. Much of this distortion is due to the fact that the data rate and carrier frequency are relatively close. This was done so that the frequency modulation can be clearly observed. Figure A-3 shows a version of Fig. A-2 with a higher carrier frequency, resulting in much less distortion in the demodulated data.
Fig. A-2 BPSK demodulation
Approved for public release; distribution is unlimited.
17
Fig. A-3 BPSK demodulation using a higher carrier frequency
Approved for public release; distribution is unlimited.
18
Appendix B. Modulation Simulation MATLAB Code ?This appendix appears in its original form, without editorial change.
Approved for public release; distribution is unlimited.
19
bpsk.m:
%create data N=10;
data=[1 0 1 0 0 1 0 1 1 0]; rate=100e3; fc=225e3; fs=20e6;
%upsample
samples_per_bit=fs/rate;
data_fs=ones(samples_per_bit,1)*data; data_fs=data_fs(:);
t=((0:size(data_fs)-1)/fs)'; figure(1)
subplot(3,1,1) plot(t,data_fs); title('Data');
axis([0 t(end) -0.4 1.4]) xlabel('Time (s)') ylabel('Amplitude')
%create IQ data i=2*data_fs-1; q=0*data_fs; subplot(3,1,2) plot(t,i); hold on
plot(t,q,'r');
title('I/Q Data');
axis([0 t(end) -1.4 1.4]) xlabel('Time (s)') ylabel('Amplitude') legend('I','Q') hold off
%create tx signal fi=cos(t*2*pi*fc); fq=sin(t*2*pi*fc); tx=i.*fi+q.*fq; subplot(3,1,3) plot(t,tx);
title('Modulated carrier signal'); xlabel('Time (s)') ylabel('Amplitude')
%channel noise=0.1;
tx=tx+noise*randn(length(t),1); figure(2)
subplot(3,1,1) plot(t,tx)
title('Received modulated signal'); xlabel('Time (s)') ylabel('Amplitude')
Tmodulation
Approved for public release; distribution is unlimited.
20
freq_error=fc*0; phase_error=2*pi*0;
carrier=cos(t*2*pi*(fc+freq_error)+phase_error); rx=tx.*fi;
subplot(3,1,2) plot(t,rx)
title('Received signal multiplied by carrier'); xlabel('Time (s)') ylabel('Amplitude')
%filter
cuttoff_freq=rate*2;
[b,a] = butter(9,cuttoff_freq/(fs/2),'low'); rx = filter(b,a,rx); figure(2)
subplot(3,1,3) plot(t,rx) hold on
plot(t,data_fs-0.5,'r')
title('Demodulated signal and original data'); xlabel('Time (s)') ylabel('Amplitude')
legend('Recieved','Original')
bfsk.m:
%create data N=10;
data=[1 0 1 0 0 1 0 1 1 0]; rate=100e3; fc=1e6; fs=20e6;
fdev=300e3; %fm deviation +/-
%upsample
samples_per_bit=fs/rate;
data_fs=ones(samples_per_bit,1)*data; data_fs=data_fs(:);
t=((0:size(data_fs)-1)/fs)'; figure(1)
subplot(4,1,1) plot(t,data_fs); title('Data');
axis([0 t(end) -0.4 1.4]) xlabel('Time (s)') ylabel('Amplitude')
%create phase angle data_fs=data_fs*2-1;
phase=-2*pi*data_fs*fdev/fs; phase=cumsum(phase); subplot(4,1,2) plot(t,phase)
title('I/Q Phase angle'); xlabel('Time (s)')
Approved for public release; distribution is unlimited.
21
ylabel('Phase (radians)')
%create IQ data i=cos(phase); q=sin(phase); subplot(4,1,3) plot(t,i) hold on
plot(t,q,'r') legend('I','Q') title('I/Q Data'); xlabel('Time (s)') ylabel('Amplitude') hold off
%create transmit signal
tx=i.*cos(t*2*pi*fc)+q.*sin(t*2*pi*fc); subplot(4,1,4) plot(t,tx)
title('Modulated carrier signal'); xlabel('Time (s)') ylabel('Amplitude')
% Plot single-sided amplitude spectrum. L=length(t); y=tx;
NFFT = 2^nextpow2(L); % Next power of 2 from length of y Y = fft(y,NFFT)/L;
f = fs/2*linspace(0,1,NFFT/2+1); figure(2)
plot(f,2*abs(Y(1:NFFT/2+1)))
title('Single-Sided Amplitude Spectrum of TX') xlabel('Frequency (Hz)') ylabel('|TX|')
%channel figure(3)
subplot(4,1,1) noise=0.05;
tx=tx+noise*randn(length(t),1); plot(t,tx)
title('Received modulated signal'); xlabel('Time (s)') ylabel('Amplitude')
%recover IQ
i2=tx.*2.*cos(t*2*pi*fc); q2=tx.*2.*sin(t*2*pi*fc); %filter
[b,a] = butter(9,fdev*2/(fs/2),'low'); i2 = filter(b,a,i2); q2 = filter(b,a,q2); subplot(4,1,2) plot(t,i2) hold on
plot(t,q2,'r')
Approved for public release; distribution is unlimited.
22
axis([0 t(end) -1.4 1.4]) title('Recovered I/Q data'); xlabel('Time (s)') ylabel('Amplitude') legend('I','Q') hold off
%recover phase angle rx=atan2(q,i); rx=unwrap(rx); figure(3)
subplot(4,1,3) plot(t,rx)
title('Phase Angle'); xlabel('Time (s)')
ylabel('Phase (radians)')
%recover data gain=-10;
rx=diff(rx)*gain; subplot(4,1,4) rx=[rx(1) rx']; plot(t,rx) hold on
plot(t,data_fs,'r') xlabel('Time (s)') ylabel('Amplitude')
title('Recovered and original data'); legend('Recovered','Original') hold off
Approved for public release; distribution is unlimited.
23
List of Symbols, Abbreviations, and Acronyms 2-D AM AoA ARL BFSK BPSK CW GPS IQ RF SDR USRP
two-dimensional amplitude modulation angle of arrival
US Army Research Laboratory binary frequency shift keying binary phase shift keying continuous wave global positioning system inphase/quadrature radio frequency software-defined radio
Universal Software Radio Peripheral
Approved for public release; distribution is unlimited.
24
1 DEFENSE TECHNICAL (PDF) INFORMATION CTR DTIC OCA
2 DIR ARL (PDF) IMAL HRA RECORDS MGMT RDRL DCL TECH LIB
23 DIR USARL (PDF) RDRL WML F
B ALLIK B J ACKER T G BROWN S BUGGS
E BUKOWSKI J COLLINS J CONDON B DAVIS M DON
D EVERSON R HALL
J HALLAMEYER M HAMAOUI T HARKINS M ILG B KLINE J MALEY C MILLER B NELSON D PETRICK K PUGH
N SCHOMER B TOPPER
Approved for public release; distribution is unlimited.
25