|
A new version of the website is under development, powered by MediaWiki! You can already use it here. | |||||||||||
|
The "hello world !" of the communication with two USRPs, matlab and windows 1. Objectives of the scripts The signal to transmit is a square signal of period T=3Te where Te is the sampling frequency (or the inverse of the transmitted signal bandwidth), and equals to 1us: 2. Signal generation and transmission The following commands have been used to generate the signal
y = kron(ones(100000,1),[ones(3,1);-ones(3,1)]);
Then the USRP has been initialized:
t = (0:length(y)-1)*1e-6;
USRP_Init();
And the signal has been transmitted. We use a bandwidth of 1MHz (second parameters) and the signal has been modulated around the frequency 2422MHz (3e WiFi channel)
USRP_SendSignal(y,1,2422e6);
This last command prints some information:
3. Signal reception On the second PC that runs matlab, the following commands are used. The USRP is first initialized:
USRP_Init();
When the transmission begins on the first PC, the acquisition script is launch. It records a signal around the frequency 2422MHz over a bandwidth equal
to 1 MHz:
[t,y] = USRP_ReceiveSignal(5,1,2422e6);
The signal is then plotted:
plot(t,real(y));
The received signal is composed of delayed bursts, each one being a replica of the transmitted signal. If you zoom on one of this burst, you
should observe a signal like the following one:
|
|||||||||||
| About | Contact | Site map | Support | ||||||||||||