[Hackrf-dev] hackrf_transfer receives 1kB (at most) of valid data
Brent Thorne
brentathorne at gmail.com
Fri Feb 12 01:43:57 EST 2016
Hi all,
Got to lesson 5 in the tutorial and I think I broke something after
upgrading to hackrf-2015.07.2 (firmware and cpld images) . I can only
capture 1kB using 'hackrf_transfer -r'. Help me understand if I'm
doing something wrong.
"""
$ hackrf_info
Found HackRF board 0:
USB descriptor string: 0000000000000000406464c8234b984b
Board ID Number: 2 (HackRF One)
Firmware Version: 2015.07.2
Part ID Number: 0xa000cb3c 0x006a4f56
Serial Number: 0x00000000 0x00000000 0x406464c8 0x234b984b
$ hackrf_transfer -r rx.raw
call hackrf_sample_rate_set(10000000 Hz/10.000 MHz)
call hackrf_baseband_filter_bandwidth_set(9000000 Hz/9.000 MHz)
call hackrf_set_freq(900000000 Hz/900.000 MHz)
Stop with Ctrl-C
19.9 MiB / 1.000 sec = 19.9 MiB/second
19.9 MiB / 1.000 sec = 19.9 MiB/second
19.9 MiB / 1.000 sec = 19.9 MiB/second
^CCaught signal 2
4.7 MiB / 0.224 sec = 21.1 MiB/second
User cancel, exiting...
Total time: 3.22409 s
hackrf_stop_rx() done
hackrf_close() done
hackrf_exit() done
fclose(fd) done
exit
$ hexdump rx.raw | head -10
0000000 ff00 ffff ff00 ff00 ff00 ff00 0000 ff00
0000010 ff00 ff00 ff00 ff00 0000 ffff ff00 ffff
0000020 fe00 ff00 ff00 ff00 ff00 ff00 ffff ff00
0000030 ffff ff00 ff00 ff00 ff00 0000 ff00 0000
0000040 ff00 ff00 fe00 ff00 ff00 ff00 ff00 ff00
0000050 ff00 ff00 ff00 ff00 fe00 ff00 ff00 fe00
0000060 0000 ff00 ff00 ff00 ff00 ff00 ff00 ff00
0000070 ff00 ff00 ff00 ff00 ff00 fe00 ff00 ff00
0000080 ff00 ff00 ff00 0000 ff00 ff00 ff00 ff00
0000090 ffff ff00 ff00 ff00 ffff ff00 ff00 ff00
...
"""
In the above rf capture not even the first 1KB looks valid. Tried
reverting to fw/cpld image 2014.08.1 but the behaviour is the same,
however cannot say for sure that if 'hackrf_transfer -r' captured
valid data before upgrade.
The FM radio build in lesson one works as expected as does osmocom_fft.
Best,
Brent
More information about the HackRF-dev
mailing list