User Tools

Site Tools


project:sdr:tetra:howto

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
project:sdr:tetra:howto [2016/09/12 17:20] – [Management] sqliterc jendaproject:sdr:tetra:howto [2018/10/22 23:49] (current) – [Requirements] update requisite to gcc8 jenda
Line 8: Line 8:
  
 {{ :project:sdr:tetra:tetra.png?direct&300 |}} {{ :project:sdr:tetra:tetra.png?direct&300 |}}
 +
 +<note important>We suspect there is a bug in airspy_rx with sample format 0. After several minutes, it sends us a NaN. The workaround (if you want to use Airspy) is to use osmosdr-input from [[:user:jenda:kukuruku]].</note>
  
 ===== Requirements ===== ===== Requirements =====
Line 20: Line 22:
  
   * gnuradio   * gnuradio
-  * lib32gcc-6-dev libc6-dev:i386 (or similar depending on GCC version and architecture)+  * lib32gcc-8-dev libc6-dev:i386 (or similar depending on GCC version and architecture)
   * libtalloc-dev libpcsclite-dev realpath   * libtalloc-dev libpcsclite-dev realpath
   * tshark   * tshark
Line 37: Line 39:
 ===== Building ===== ===== Building =====
  
-Install jcc from blobutils to your %%$%%PATH and run build.sh to get gr-pack and gr-unpack; get them to your %%$%%PATH too.+Install jcf from blobutils to your %%$%%PATH and run build.sh to get gr-pack and gr-unpack; get them to your %%$%%PATH too.
  
-Install libosmocore (autoreconf -i && ./configure && make && make install).+Install libosmocore-dev package (Ubuntu 16.10+, Debian 9+) or build libosmocore by hand (autoreconf -i && ./configure --disable-pcsc && make && make install).
  
 Build tetra-listener (instructions are in README). Build tetra-listener (instructions are in README).
Line 72: Line 74:
 Run it and use gethisto FCL command (echo gethisto | nc localhost 3333) to get sane gain settings. Run it and use gethisto FCL command (echo gethisto | nc localhost 3333) to get sane gain settings.
  
-Use getpwr command to get channel power and sort the results (echo getpwr | nc localhost 3333 | sort -nk 2). A better approach would be to oversample the spectrum reading by 4 and take only the 2 middle bins.+You can use this oneliner to get the list of 20 strongest channels: 
 +<code> 
 +echo getpwr | nc localhost 3333 | while read line; do n=`echo $line | cut -d " " -f 1`; if [ $(( ( $n - 1 ) % 3 )) -eq 0 ]; then echo $(( ($n - 1) / 3)) `echo $line | cut -d " " -f 2`; fi;done | LANG=C sort -nk 2 | tail -n 20 | cut -d " " -f 1 | tr "\n"
 +</code>
  
 Edit enabled channels in tetra-run.sh so they match your channels with the strongest power. Do not enable more than 30 channels per SDR (or change the offset in tetra2.py:128). Edit enabled channels in tetra-run.sh so they match your channels with the strongest power. Do not enable more than 30 channels per SDR (or change the offset in tetra2.py:128).
project/sdr/tetra/howto.1473700807.txt.gz · Last modified: 2016/09/12 17:20 by jenda