This project demonstrates the collection of IQ samples using GNU Radio, leveraging the USRP (Universal Software Radio Peripheral) hardware for signal reception and transmission. The flowgraph is designed to capture and visualize signals with a specific configuration.
The flowgraph consists of the following main components:
- UHD: USRP Source - Configured to receive IQ samples from a specified frequency and bandwidth.
- QT GUI Sink - Displays the real-time FFT plot of the received signal.
- UHD: USRP Sink - Optionally used for transmitting signals for testing purposes.
- Sampling Rate (
samp_rate
): 23.04 MSps - Center Frequency (
center_freq
): 2.5 GHz - Bandwidth: 20 MHz
- Gain (Rx): 50
- Gain (Tx): 40
- Antenna: TX/RX
- Real-time FFT visualization of the received signal.
- Adjustable parameters for quick experimentation.
- USRP Device: Supports TX/RX operations (e.g., B200, N210).
- Antenna: Compatible with the frequency of operation.
To use this flowgraph, ensure the following are installed on your system:
- GNU Radio: Version >= 3.8
- UHD Drivers: Ensure compatibility with your USRP model.
- Python: For runtime execution of the generated script.
-
Setup and Connect Hardware:
- Connect your USRP device to the host computer via USB or Ethernet.
- Attach a suitable antenna to the TX/RX port.
-
Run the Flowgraph:
- Open the
.grc
file in GNU Radio Companion. - Ensure the UHD Source and Sink blocks are correctly configured for your hardware.
- Execute the flowgraph to start receiving IQ samples.
- Open the
-
Visualize and Analyze:
- Use the QT GUI Sink to observe the spectrum of the received signal.
- Adjust gain, frequency, or other parameters to fine-tune the signal capture.
-
Modify or Extend:
- The flowgraph can be extended to include file sinks for saving IQ samples or additional processing blocks for demodulation or decoding.
To save the collected IQ samples:
- Add a File Sink block in the flowgraph.
- Connect the output of the UHD: USRP Source to the File Sink.
- Configure the file path and format in the File Sink block.
- Ensure the USRP drivers are properly installed and recognized by your system.
- Check that the antenna is appropriate for the frequency band of interest.
- Verify that the sampling rate and bandwidth do not exceed the limits of your USRP model.
This project can be customized for various use cases, such as:
- Spectrum monitoring
- Signal recording
- Real-time signal processing
Feel free to adapt the flowgraph to suit your requirements.
This project is provided under the MIT License. See the LICENSE file for details.
- GNU Radio community for the powerful open-source SDR platform.
- Ettus Research for the USRP hardware and UHD drivers.