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/12/23 16:03] – [Setup] oneliner to get the list of strongest channels jendaproject:sdr:tetra:howto [2018/10/22 23:49] (current) – [Requirements] update requisite to gcc8 jenda
Line 22: 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 39: 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 64: Line 64:
 Calibrate your SDR and edit PPMs in tetra-run.sh. Calibrate your SDR and edit PPMs in tetra-run.sh.
  
-Use your favorite SDR tool to look for Tetra BTSs and determine the center frequencies you want to listen on. Or you can use this oneliner to get the list of 20 strongest channels: +Use your favorite SDR tool to look for Tetra BTSs and determine the center frequencies you want to listen on.
-<code> +
-echo getpwr 3 | 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>+
  
 If you have different samplerate than 1.8M, edit -n and -s parameters of FCL and of course the samplerate parameter of fir.py. If you have different samplerate than 1.8M, edit -n and -s parameters of FCL and of course the samplerate parameter of fir.py.
Line 77: 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 middle bins. +You can use this oneliner to get the list of 20 strongest channels: 
- +<code> 
-<note tip>On Czech locale, sort expects decimal comma, not decimal point. Use LANG=C sort -nk 2 to fix it.</note>+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.1482508982.txt.gz · Last modified: 2016/12/23 16:03 by jenda