Skip to content

Instantly share code, notes, and snippets.

@gyaresu
Last active February 4, 2016 02:34
Show Gist options
  • Save gyaresu/ab4999a3c9f9ca6b842d to your computer and use it in GitHub Desktop.
Save gyaresu/ab4999a3c9f9ca6b842d to your computer and use it in GitHub Desktop.
HackRF piped data error.
gyaresu@zaphod:~/programming/iridium-toolkit|experiment
⇒ hackrf_transfer -f 1625800000 -a1 -l40 -g20 -s 2000000 -r /dev/fd/3 3>&1 1>&2 | python extractor.py -c 1625800000 -r 2000000 -f hackrf --jobs 7 | fgrep "A:OK"
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
Ran into burst squelch at 75.776
1454552438 | i: 0/s | i_avg: 28/s | q: 12 | q_max: 12 | o: 0/s | ok: 100% | ok: 0/s | ok_avg: 100% | ok: 1 | ok_avg: 2/s | d: 0
Ran into burst squelch at 178.176
call hackrf_sample_rate_set(2000000 Hz/2.000 MHz)
call hackrf_baseband_filter_bandwidth_set(1750000 Hz/1.750 MHz)
call hackrf_set_freq(1625800000 Hz/1625.800 MHz)
call hackrf_set_amp_enable(1)
Stop with Ctrl-C
0.3 MiB / 1.000 sec = 0.3 MiB/second
0.0 MiB / 1.001 sec = 0.0 MiB/second
Couldn't transfer any bytes for one second.
Exiting... hackrf_is_streaming() result: HACKRF_TRUE (1)
Total time: 2.00075 s
hackrf_stop_rx() done
hackrf_close() done
hackrf_exit() done
fclose(fd) done
exit
RAW: i-1454552438.0209-t1 000000026 1626218890 A:OK L:OK 98% 0.109 103 <001100000011000011110011> 00110101101100010101010010001101 10111011000110001011100000010001 00111101100110010001010011000101 11111111111111111111111111111111 11111111111111111111111111111111 [100101111010110110110011001111]1001110100000110
gyaresu@zaphod:~/programming/iridium-toolkit|experiment
--- whereas this works ---
hackrf_transfer -f 1625800000 -a1 -l32 -g20 -s 2000000 -r /dev/stdout | python extractor.py -c 1625800000 -r 2000000 -f hackrf --jobs 7 --db 9| fgrep "A:OK" > /radio/32.extracted
1454552982 | i: 2/s | i_avg: 2/s | q: 0 | q_max: 4 | o: 2/s | ok: 49% | ok: 1/s | ok_avg: 49% | ok: 88 | ok_avg: 1/s | d: 0
1454553042 | i: 2/s | i_avg: 2/s | q: 0 | q_max: 2 | o: 2/s | ok: 57% | ok: 1/s | ok_avg: 53% | ok: 174 | ok_avg: 1/s | d: 0
1454553102 | i: 3/s | i_avg: 2/s | q: 0 | q_max: 4 | o: 3/s | ok: 39% | ok: 1/s | ok_avg: 47% | ok: 249 | ok_avg: 1/s | d: 0
1454553162 | i: 4/s | i_avg: 3/s | q: 0 | q_max: 6 | o: 4/s | ok: 23% | ok: 1/s | ok_avg: 39% | ok: 310 | ok_avg: 1/s | d: 0
Ran into burst squelch at 284231.68
1454553224 | i: 1/s | i_avg: 2/s | q: 0 | q_max: 18 | o: 1/s | ok: 42% | ok: 0/s | ok_avg: 40% | ok: 354 | ok_avg: 1/s | d: 0
Ran into burst squelch at 316801.024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment