root / host / docs / calibration.rst @ f68a9271
History | View | Annotate | Download (2.23 KB)
| 1 |
======================================================================== |
|---|---|
| 2 |
UHD - Calibration Application Notes |
| 3 |
======================================================================== |
| 4 |
|
| 5 |
.. contents:: Table of Contents |
| 6 |
|
| 7 |
------------------------------------------------------------------------ |
| 8 |
Self-calibration |
| 9 |
------------------------------------------------------------------------ |
| 10 |
The UHD comes with several self-calibration utilities for minimizing IQ imbalance and DC offset. |
| 11 |
These utilities perform calibration sweeps using transmit leakage into the receive path |
| 12 |
(special equipment is not required). |
| 13 |
The results from a calibration are written to a csv file in the user's home directory. |
| 14 |
UHD will automatically apply corrections at runtime when the user changes settings. |
| 15 |
Calibration results are specific to an individual RF board. |
| 16 |
|
| 17 |
UHD comes with the following calibration utilities: |
| 18 |
|
| 19 |
* **uhd_cal_rx_iq_balance:** - mimimizes RX IQ imbalance vs LO frequency |
| 20 |
* **uhd_cal_tx_dc_offset:** - mimimizes TX DC offset vs LO frequency |
| 21 |
* **uhd_cal_tx_iq_balance:** - mimimizes TX IQ imbalance vs LO frequency |
| 22 |
|
| 23 |
|
| 24 |
The following RF frontends are supported by the self-calibration utilities: |
| 25 |
|
| 26 |
* WBX transceiver board |
| 27 |
* SBX transceiver board |
| 28 |
* more to come... |
| 29 |
|
| 30 |
******************************************** |
| 31 |
Basic tool usage |
| 32 |
******************************************** |
| 33 |
|
| 34 |
UHD installs the calibration utilities into <install-path>/bin. |
| 35 |
Run the following from the command line: |
| 36 |
:: |
| 37 |
|
| 38 |
uhd_cal_rx_iq_balance --verbose --args=<optional device args> |
| 39 |
uhd_cal_tx_iq_balance --verbose --args=<optional device args> |
| 40 |
uhd_cal_tx_dc_offset --verbose --args=<optional device args> |
| 41 |
|
| 42 |
See the output given by --help for more advanced options, such as: |
| 43 |
manually choosing the frequency range and step size for the sweeps. |
| 44 |
|
| 45 |
******************************************** |
| 46 |
Calibration files |
| 47 |
******************************************** |
| 48 |
Calibration files are stored in the user's home/application directory. |
| 49 |
They can easily be moved from machine to another by copying the "cal" directory. |
| 50 |
Re-running a calibration utility will replace the existing calibration file. |
| 51 |
The old calibration file will be renamed so it may be recovered by the user. |
| 52 |
|
| 53 |
* **Unix:** ${HOME}/.uhd/cal
|
| 54 |
* **Windows:** %APPDATA%\.uhd\cal |
| 55 |
|