You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/hackrf_sweep.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,9 @@ Usage
14
14
[-p antenna_enable] # Antenna port power, 1=Enable, 0=Disable
15
15
[-l gain_db] # RX LNA (IF) gain, 0-40dB, 8dB steps
16
16
[-g gain_db] # RX VGA (baseband) gain, 0-62dB, 2dB steps
17
-
[-n num_samples] # Number of samples per frequency, 8192-4294967296
18
-
[-w bin_width] # FFT bin width (frequency resolution) in Hz
17
+
[-w bin_width] # FFT bin width (frequency resolution) in Hz, 2445-5000000
19
18
[-1] # one shot mode
19
+
[-N num_sweeps] # Number of sweeps to perform
20
20
[-B] # binary output
21
21
[-I] # binary inverse FFT output
22
22
-r filename # output file
@@ -112,8 +112,8 @@ Running ``hackrf_sweep -f 2400:2490`` gives the following example results:
112
112
- -66.02
113
113
- -62.12
114
114
115
-
Two ranges of 5 MHz are analyzed at once from the same set of samples, so a single timestamp applies to the whole range.
115
+
Each sweep across the entire specified frequency range is given a single time stamp.
116
116
117
117
The fifth column tells you the width in Hz (1 MHz in this case) of each frequency bin, which you can set with ``-w``. The sixth column is the number of samples analyzed to produce that row of data.
118
118
119
-
Each of the remaining columns shows the power detected in each of several frequency bins. In this case there are five bins, the first from 2400 to 2401 MHz, the second from 2401 to 2402 MHz, and so forth.
119
+
Each of the remaining columns shows the power detected in each of several frequency bins. In this case there are five bins, the first from 2400 to 2401 MHz, the second from 2401 to 2402 MHz, and so forth.
These low level functions are intended for debugging purposes only.
201
+
200
202
201
203
HackRF MAX2837 Read
202
204
^^^^^^^^^^^^^^^^^^^
@@ -282,7 +284,7 @@ Updating Firmware
282
284
HackRF CPLD Write
283
285
^^^^^^^^^^^^^^^^^
284
286
285
-
Device will need to be reset after hackrf_cpld_write.
287
+
A bitstream is written to the CPLD by the firmware during normal operation (since release 2021.03.1). This function writes a bitstream to the CPLD's flash which is not necessary for normal use. The device will need to be reset by physically pressing the reset button after hackrf_cpld_write.
@@ -462,35 +464,37 @@ These values identify the board type of the connected hardware. This value can b
462
464
463
465
* - Board
464
466
- Frequency range
465
-
- Bandwidth
467
+
- Sample Rate
466
468
- Antenna port power
467
469
* - HackRF One
468
-
- 1MHz - 6Ghz
469
-
- 20MHz
470
+
- 1 MHz–6 GHz
471
+
- 20 Msps
470
472
- Yes
471
473
* - Jawbreaker
472
-
- 10MHz - 6GHz
473
-
- 20MHz
474
+
- 10 MHz–6 GHz
475
+
- 20 Msps
476
+
- No
477
+
* - rad1o
478
+
- 50 MHz–4 GHz
479
+
- 20 Msps
474
480
- No
475
-
* - Rad1o
476
-
- 50MHz - 4GHz
477
-
- 20MHz
478
-
- Unknown
479
481
* - Jellybean
480
482
- N/A
481
-
- 20MHz
483
+
- 20 Msps
482
484
- No
483
485
484
-
Most boards will identify as HackRF One, Jawbreaker or Rad1o. Jellybean was a pre-production revision of HackRF. No hardware device should intentionally report itself with an invalid board ID.
486
+
Most boards will identify as HackRF One, Jawbreaker, or rad1o. Jellybean was a pre-production revision of HackRF that is no longer supported. No hardware device should intentionally report itself with an unrecognized or undetected board ID.
485
487
486
488
.. code-block :: sh
487
489
488
490
enum hackrf_board_id {
489
491
BOARD_ID_JELLYBEAN = 0,
490
492
BOARD_ID_JAWBREAKER = 1,
491
-
BOARD_ID_HACKRF_ONE = 2,
493
+
BOARD_ID_HACKRF1_OG = 2,
492
494
BOARD_ID_RAD1O = 3,
493
-
BOARD_ID_INVALID = 0xFF,
495
+
BOARD_ID_HACKRF1_R9 = 4,
496
+
BOARD_ID_UNRECOGNIZED = 0xFE,
497
+
BOARD_ID_UNDETECTED = 0xFF,
494
498
};
495
499
496
500
@@ -512,18 +516,19 @@ USB Product IDs
512
516
Transceiver Mode
513
517
^^^^^^^^^^^^^^^^
514
518
515
-
HackRF can operate in three main transceiver modes, Receive, Transmit and Signal Source. There is also a CPLD update mode which is used to write firmware images to the CPLD.
519
+
HackRF can operate in four main transceiver modes: Receive, Transmit, Signal Source, and Sweep. There is also a CPLD update mode which is used to write firmware images to the CPLD flash.
516
520
517
521
The transceiver mode can be changed with ``hackrf_set_transceiver_mode`` with the value parameter set to one of the following:
518
522
519
523
.. code-block:: sh
520
524
521
525
enum transceiver_mode_t {
522
-
TRANSCEIVER_MODE_OFF = 0,
523
-
TRANSCEIVER_MODE_RX = 1,
524
-
TRANSCEIVER_MODE_TX = 2,
525
-
TRANSCEIVER_MODE_SS = 3,
526
-
TRANSCEIVER_MODE_CPLD_UPDATE = 4
526
+
HACKRF_TRANSCEIVER_MODE_OFF = 0,
527
+
HACKRF_TRANSCEIVER_MODE_RECEIVE = 1,
528
+
HACKRF_TRANSCEIVER_MODE_TRANSMIT = 2,
529
+
HACKRF_TRANSCEIVER_MODE_SS = 3,
530
+
TRANSCEIVER_MODE_CPLD_UPDATE = 4,
531
+
TRANSCEIVER_MODE_RX_SWEEP = 5,
527
532
};
528
533
529
534
Receive mode (TRANSCEIVER_MODE_RX) is used to stream samples from the radio to the host system. Use ``hackrf_set_freq`` to set the center frequency of receiver and ``hackrf_set_sample_rate`` to set the sample rate (effective bandwidth).
0 commit comments