Tetra decoding

Status
Not open for further replies.

sq5bpf

Member
Joined
Jan 23, 2014
Messages
517
Reaction score
15
I'm listening to different network but on some of them they are using the same SSI's. To make clear what I'm listening to I use the discriptions file. The same SSI's on differnet networks makes it sometimes a little confusing. Is there an option to make the SSI's in the discriptions network dependent ?

RTFM :)

the file that contains the descriptions is configurable via the TETRA_SSI_DESCRIPTIONS environment variable (the faq section in the documentation contains a description of all variables, and also a brief description is in the rxx script comments)

so one way would be to copy rxx to rxx_mynetwork1, and modify this script so that it has the line:
export TETRA_SSI_DESCRIPTIONS=/tetra/ssi_descriptions_mynetwork1


edit:
while you're at it, you can also preset some useful filter expression specific to this network, change the startup options (for example enable recording, and mute the audio), set the file name that will get the kml location data which can be viewed in google earth, and the log file. every setting is documented
 
Last edited:

sq5bpf

Member
Joined
Jan 23, 2014
Messages
517
Reaction score
15
BTW everything that should be configurable is configurable via environment variables.

or at least that was the plan, i might have missed something.
 

sm0vec

Member
Joined
Dec 8, 2014
Messages
46
Reaction score
0
BTW everything that should be configurable is configurable via environment variables.

or at least that was the plan, i might have missed something.

I think all we need is included. I can confirm that it's easy to create multiple systems like described.

I've created different startup script which startup different networks:
- new tetra-folders for each network (to separate the output files)
- new rxx-scripts for each telive (including different alias files)
- calling different top_block phyton scripts for each network

Even though I made this many times the easiest thing to forget is to update the paths in the tetrad and tplay scripts in the new /tetra_mynetwork/bin folders.

When all is done it works like a charm... so convenient to scrip the startup of different networks and get the output results in the right places.

The only thing I miss is the possiblity to create one logfile per date, but I know it's also a quite easy task, either by some external script or just some modification to the code... but that's a taks saved for a rainy day.
 

sq5bpf

Member
Joined
Jan 23, 2014
Messages
517
Reaction score
15
The only thing I miss is the possiblity to create one logfile per date, but I know it's also a quite easy task, either by some external script or just some modification to the code... but that's a taks saved for a rainy day.

you could get fancy and use logrotate, this will allow to rotate, compress and delete old logs.

or if you don't want to bother, then a simple 1-line script should be enough (don't you just love unix?), something like this (not tested):

#!/bin/sh
mv "$1" "`dirname ${1}`/`date +'%Y%m%d_%H%M'`_`basename ${1}`"

call it with the log filename (full path), something like this:
/path/to/script /tetra/telive.log

it will prefix the filename with the date and time, so for example it will rename /tetra/telive.log to /tetra/20150521_2142_telive.log

call it from cron once per day (or however else you like)
 

giannit

Member
Joined
Nov 29, 2014
Messages
32
Reaction score
0
Hello I am trying to make a gnuradio update from 3.6 to 3.7 but was not able to run the script again telive . I have to reinstall everything clean , what do you recommend ?
 

sq5bpf

Member
Joined
Jan 23, 2014
Messages
517
Reaction score
15
Hello I am trying to make a gnuradio update from 3.6 to 3.7 but was not able to run the script again telive . I have to reinstall everything clean , what do you recommend ?

i'd recomend debian 8, because all of the development is done on debian. i've heard from one user that the software also works on linux mint with gnuradio from the distribution packages. it should work under ubuntu, as mint is derived from that.
 

oz1jua

Member
Joined
Dec 15, 2014
Messages
134
Reaction score
31
Location
Copenhagen
Installing osmo-tetra error

I have try to install as you descibe. I am using these 3 commands
------------------------------------
git clone -b test-3.7 https://github.com/sq5bpf/osmo-tetra-sq5bpf
cd osmo-tetra-sq5bpf/src
make
--------------------------------------------------------------

But I get all these errors. I have installed all the rest of it without errors. And I have GNU Radio up and running with no errors. But Telive will not work. Telive is started but did not receive anny data.

install osmo-tetra.....
Cloning into 'osmo-tetra-sq5bpf'...
remote: Counting objects: 599, done.
remote: Total 599 (delta 0), reused 0 (delta 0), pack-reused 599
Receiving objects: 100% (599/599), 164.70 KiB | 0 bytes/s, done.
Resolving deltas: 100% (404/404), done.
Checking connectivity... done.
cc -g -O0 -Wall `pkg-config --cflags libosmocore 2> /dev/null` -I. -c conv_enc_test.c -o conv_enc_test.o
conv_enc_test.c: In function ‘main’:
conv_enc_test.c:310:11: warning: unused variable ‘out’ [-Wunused-variable]
uint16_t out;
^
conv_enc_test.c:309:6: warning: unused variable ‘err’ [-Wunused-variable]
int err, i;
^

Have any one a clue what is missing. I am running Telive on GNU 3.6 on severel PCs OK.
 

sq5bpf

Member
Joined
Jan 23, 2014
Messages
517
Reaction score
15
But I get all these errors. [...]

conv_enc_test.c:309:6: warning: unused variable ‘err’ [-Wunused-variable]
int err, i;

it's not an error, it's a warning that some variables are declared but not used.

the software should work, this wasn't touched during the gr3.6 -> 3.7 change
 

sq5bpf

Member
Joined
Jan 23, 2014
Messages
517
Reaction score
15
i've posted a small change to the gnuradio 3.7 flowgraphs. without this fix the receiver would end up on the wrong frequency (only telive_1ch_simple_gr37.grc worked correctly).

tnx udat for the bug report
 
Last edited:

oz1jua

Member
Joined
Dec 15, 2014
Messages
134
Reaction score
31
Location
Copenhagen
Installing osmo-tetra error / Warnings

OK but I have not seen all these warnings before. I will the post all message. And some I do not think is warning. But correct me if i am wrong.
I have added a txt file with all the output.
 

Attachments

  • warning.txt
    10.5 KB · Views: 260

sq5bpf

Member
Joined
Jan 23, 2014
Messages
517
Reaction score
15
OK but I have not seen all these warnings before. I will the post all message. And some I do not think is warning. But correct me if i am wrong.
I have added a txt file with all the output.

if it ways warning: xxxx then it's a warning :)
looks like you have a new gcc versian that takes the -Wall flag too seriously.

but judging from the output everything compiled fine. did you actually try to run the software (and it didn't work)?
 

oz1jua

Member
Joined
Dec 15, 2014
Messages
134
Reaction score
31
Location
Copenhagen
if it ways warning: xxxx then it's a warning :)
looks like you have a new gcc versian that takes the -Wall flag too seriously.

but judging from the output everything compiled fine. did you actually try to run the software (and it didn't work)?

Yes I did run the software and Telive starts up fine. I have problems with RECEIVER1 it stops all time and I think that GNU Radio Companion is the problem. I thinnk you have made a fix earlier that continuly Run the RECEIVER. I think that the sample setup in GNU dose not work. Nothing is display in GNU and the freq. is some way wrong. I have try to get a new install of telive with grc files. But i can not get one of them to work.
 

oz1jua

Member
Joined
Dec 15, 2014
Messages
134
Reaction score
31
Location
Copenhagen
Install files for GR3.7

I have made some install script files for GR3.7 I can share if some want a simple way to install Telive.
You have to edit install_telive script with YOURGROUP.YOURUSER. But all the scripts will run fine in a terminal Window. This is what I have done. Extract the zip file to your home. And run the folloing commands:

./install_preq
./build-gnuradio_new
./install_libosmocore
./install_osmo-tetra
./install_telive

I have a copy of the TETRA Codecs from GR3.6 and copy them to /tetra/bin.
Be aware that build-gnuradio_new will run for long long time. On my Virtuel system it took about 5 hours.
It is a good thing to do a update of the system before running build-gnuradio_new.
I have only testet this on a fresh Desktop Linux Mint US 64 Bit. Do not use other language but US I ran in to lot of trouble becouse of
setting other language. Then you are warned.
 

Attachments

  • install_telive_gr37.zip
    10.7 KB · Views: 140
Last edited:

oz1jua

Member
Joined
Dec 15, 2014
Messages
134
Reaction score
31
Location
Copenhagen
I have made some install script files for GR3.7 I can share if some want a simple way to install Telive.
You have to edit install_telive script with YOURGROUP.YOURUSER. But all the scripts will run fine in a terminal Window. This is what I have done. Extract the zip file to your home. And run the folloing commands:

./install_preq
./build-gnuradio_new
./install_libosmocore
./install_osmo-tetra
./install_telive

I have a copy of the TETRA Codecs from GR3.6 and copy them to /tetra/bin.
Be aware that build-gnuradio_new will run for long long time. On my Virtuel system it took about 5 hours.
It is a good thing to do a update of the system before running build-gnuradio_new.
I have only testet this on a fresh Desktop Linux Mint US 64 Bit. Do not use other language but US I ran in to lot of trouble becouse of
setting other language. Then you are warned.

Before you can execute the scripts you have to change permission to execute the scripts.
Use following commands before you run the scripts.
chmod +x install_preq build-gnuradio_new install_libosmocore install_osmo-tetra install_telive
 

oz1jua

Member
Joined
Dec 15, 2014
Messages
134
Reaction score
31
Location
Copenhagen
install_telive scipts upate.

I have made another update to install_telive script:

sudo chown -R `whoami` /tetra

I am not shure this will work. But can any test it. It does automatic chown to who am i user.
 

Attachments

  • install_telive_gr37.zip
    10.7 KB · Views: 105

giannit

Member
Joined
Nov 29, 2014
Messages
32
Reaction score
0
Hello, I run a clean install with mint 17 and finally I was able to run with telive gnuradio 3.7, then I installed gqrx 2.3 which is working with gnuradio 3.7. When I try to restart telive but I realized that does not work on the terminal and with receiver gives me this error:

Traceback (most recent call last):
File "demod/python/simdemod2.py", line 18, in <module>
import osmosdr
File "/usr/local/lib/python2.7/dist-packages/osmosdr/__init__.py", line 26, in <module>
from osmosdr_swig import *
File "/usr/local/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py", line 28, in <module>
_osmosdr_swig = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py", line 24, in swig_import_helper
_mod = imp.load_module('_osmosdr_swig', fp, pathname, description)
ImportError: /usr/local/lib/libgnuradio-osmosdr-0.1.5git.so.0.0.0: undefined symbol: airspy_get_samplerates

How can I restore telive and run even gqrx?
 

sq5bpf

Member
Joined
Jan 23, 2014
Messages
517
Reaction score
15
sorry to say this, but the scripts posted by oz1jua do exactly the thing that i wanted to avoid

next time please try to understand the posts here (proper documentation will follow, gr 3.7 support is still work in progress).

specifically the whole point of using gr 3.7 is so that one can use the gnuradio packages in their distribution. so no more long gnuradio compilation, everything else that depends on gnuradio is not broken by compiling your own version (like gqrx), and you save a few hours that would be needed to compile gnuradio.

i will update the documentation, and maybe even provide a proper install script, because it seems a some people are too lazy (or dumb?) to even cut/paste a few lines of shell commands, and use misguided scripts that others have posted.


i've always thought such scripts are evil, because they enable idiots to use the tools they don't understand (and we're not doing rocket science here), but i changed my mind.
 

sq5bpf

Member
Joined
Jan 23, 2014
Messages
517
Reaction score
15
How can I restore telive and run even gqrx?

reinstall the whole system. don't run magical scripts.

just install gnuradio 3.7 from the distribution packages (no more 4 hour compilation!), compile osmo-tetra-sq5bpf, codecs and telive, and everything will work. look at the last few posts for commands.

you can also install other stuff from the distribution packages that depend on gnuradio, like gqrx.

one user has reported that this works on mint (and will probably work on ubuntu too, because mint is based on ubuntu), so you don't have to use debian 8 if you don't like it.
 
Status
Not open for further replies.
Top