project:sdr:tetra:howto
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
project:sdr:tetra:howto [2016/12/23 16:03] – [Setup] oneliner to get the list of strongest channels jenda | project: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: | + | * lib32gcc-8-dev libc6-dev: |
* libtalloc-dev libpcsclite-dev realpath | * libtalloc-dev libpcsclite-dev realpath | ||
* tshark | * tshark | ||
Line 39: | Line 39: | ||
===== Building ===== | ===== Building ===== | ||
- | Install | + | Install |
- | Install libosmocore (autoreconf -i && ./configure && make && make install). | + | Install libosmocore-dev package (Ubuntu 16.10+, Debian 9+) or build libosmocore by hand (autoreconf -i && ./ |
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. |
- | < | + | |
- | 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 " | + | |
- | </ | + | |
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 | + | You can use this oneliner |
- | + | < | |
- | <note tip>On Czech locale, sort expects decimal comma, not decimal point. Use LANG=C sort -nk 2 to fix it.</note> | + | echo getpwr |
+ | </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: | 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: |
project/sdr/tetra/howto.1482508982.txt.gz · Last modified: 2016/12/23 16:03 by jenda