Tetra decoding

Status
Not open for further replies.

sq5bpf

Member
Joined
Jan 23, 2014
Messages
516
early christmas present :)

https://github.com/sq5bpf/telive
(and you will also need https://github.com/sq5bpf/libosmocore-sq5bpf and https://github.com/sq5bpf/osmo-tetra-sq5bpf and gnuradio 3.6 with dvb dongle support)

Please read all documentation before asking any questions.
If you can't compile this software, then it's not intended for you.
Runs under linux only, please don't ask about other OSes.

I hope i've put everything in the repositories.

Also please note that this software is written for my personal pleasure, and does not adhere to software quality standards :)
 

sq5bpf

Member
Joined
Jan 23, 2014
Messages
516
if anyone gets segfaults in the ETSI codec, please double-check if it was compiled in a 32 bit environment (file sdecoder etc...)
 

RMW1010

Member
Joined
Mar 26, 2011
Messages
48
Location
Germany, EU
Thanks!

I could never get the Osmocom software going. I will definitely try your software sometime, but Linux and I are not very close friends ;)

Thanks again for your work and sharing it with all of us!
 

sq5bpf

Member
Joined
Jan 23, 2014
Messages
516
I could never get the Osmocom software going. I will definitely try your software sometime, but Linux and I are not very close friends ;)

"Linux is user friendly, it's just very selective about who its friends are" :)

this is the osmocom-tetra software with some patches and some additional software, so you will probably have similar problems to what you had previously. try to install it under debian 7 - this should work flawlessly (both the original osmocom software and my version).

Thanks again for your work and sharing it with all of us!

no problem, hope that someone posts a success story soon :)
 

sq5bpf

Member
Joined
Jan 23, 2014
Messages
516
Seems to be to nice, working long time with linux distro's but this won't run... :(

what is exactly the problem? (provide logs) and on which distribution?

i know there might be problems compiling gnuradio 3.6 under some distros. but debian 7 should work (the build-gnuradio script has a list of distros that it supports, it says fedora, debian, ubuntu, mint). btw i will try to fix it to run under gnuradio 3.7 when i have some time
 
Last edited:

sq5bpf

Member
Joined
Jan 23, 2014
Messages
516
Too much errors in compiling the osmo stuff gnu won't give any problems on linux mint 17

you can try under debian 7, or if you want to debug this on mint, then please provide full logs, best to use script(1):

script /tmp/bugreport
[this launches a shell, do all of your compilation here until the error occurs]
exit

and then show us the /tmp/bugreport file. also write which version of mint you're using

also check on the internet if someone has reported similar problems for vanilla libosmocore or osmo-tetra, the solutions should be exactly the same
 

hansheesbeen

Member
Joined
Jul 30, 2010
Messages
55
Location
Tilburg, NL
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:14: installing './compile'
configure.ac:16: installing './config.guess'
configure.ac:16: installing './config.sub'
configure.ac:5: installing './install-sh'
configure.ac:5: installing './missing'
src/Makefile.am: installing './depcomp'
src/gsm/Makefile.am:14: warning: source file 'milenage/aes-encblock.c' is in a subdirectory,
src/gsm/Makefile.am:14: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled. For now, the corresponding output
automake: object file(s) will be placed in the top-level directory. However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
src/gsm/Makefile.am:14: warning: source file 'milenage/aes-internal.c' is in a subdirectory,
src/gsm/Makefile.am:14: but option 'subdir-objects' is disabled
src/gsm/Makefile.am:14: warning: source file 'milenage/aes-internal-enc.c' is in a subdirectory,
src/gsm/Makefile.am:14: but option 'subdir-objects' is disabled
src/gsm/Makefile.am:14: warning: source file 'milenage/milenage.c' is in a subdirectory,
src/gsm/Makefile.am:14: but option 'subdir-objects' is disabled
tests/Makefile.am:19: warning: source file 'a5/a5_test.c' is in a subdirectory,
tests/Makefile.am:19: but option 'subdir-objects' is disabled
tests/Makefile.am:25: warning: source file 'auth/milenage_test.c' is in a subdirectory,
tests/Makefile.am:25: but option 'subdir-objects' is disabled
tests/Makefile.am:28: warning: source file 'bits/bitrev_test.c' is in a subdirectory,
tests/Makefile.am:28: but option 'subdir-objects' is disabled
tests/Makefile.am:22: warning: source file 'comp128/comp128_test.c' is in a subdirectory,
tests/Makefile.am:22: but option 'subdir-objects' is disabled
tests/Makefile.am:31: warning: source file 'conv/conv_test.c' is in a subdirectory,
tests/Makefile.am:31: but option 'subdir-objects' is disabled
tests/Makefile.am:67: warning: source file 'fr/fr_test.c' is in a subdirectory,
tests/Makefile.am:67: but option 'subdir-objects' is disabled
tests/Makefile.am:58: warning: source file 'gb/bssgp_fc_test.c' is in a subdirectory,
tests/Makefile.am:58: but option 'subdir-objects' is disabled
tests/Makefile.am:61: warning: source file 'gb/gprs_ns_test.c' is in a subdirectory,
tests/Makefile.am:61: but option 'subdir-objects' is disabled
tests/Makefile.am:37: warning: source file 'gsm0408/gsm0408_test.c' is in a subdirectory,
tests/Makefile.am:37: but option 'subdir-objects' is disabled
tests/Makefile.am:34: warning: source file 'gsm0808/gsm0808_test.c' is in a subdirectory,
tests/Makefile.am:34: but option 'subdir-objects' is disabled
tests/Makefile.am:40: warning: source file 'lapd/lapd_test.c' is in a subdirectory,
tests/Makefile.am:40: but option 'subdir-objects' is disabled
tests/Makefile.am:64: warning: source file 'logging/logging_test.c' is in a subdirectory,
tests/Makefile.am:64: but option 'subdir-objects' is disabled
tests/Makefile.am:70: warning: source file 'logging/logging_test.c' is in a subdirectory,
tests/Makefile.am:70: but option 'subdir-objects' is disabled
tests/Makefile.am:43: warning: source file 'msgfile/msgfile_test.c' is in a subdirectory,
tests/Makefile.am:43: but option 'subdir-objects' is disabled
tests/Makefile.am:49: warning: source file 'sms/sms_test.c' is in a subdirectory,
tests/Makefile.am:49: but option 'subdir-objects' is disabled
tests/Makefile.am:46: warning: source file 'smscb/smscb_test.c' is in a subdirectory,
tests/Makefile.am:46: but option 'subdir-objects' is disabled
tests/Makefile.am:73: warning: source file 'strrb/strrb_test.c' is in a subdirectory,
tests/Makefile.am:73: but option 'subdir-objects' is disabled
tests/Makefile.am:52: warning: source file 'timer/timer_test.c' is in a subdirectory,
tests/Makefile.am:52: but option 'subdir-objects' is disabled
tests/Makefile.am:55: warning: source file 'ussd/ussd_test.c' is in a subdirectory,
tests/Makefile.am:55: but option 'subdir-objects' is disabled
tests/Makefile.am:16: warning: source file 'utils/utils_test.c' is in a subdirectory,
tests/Makefile.am:16: but option 'subdir-objects' is disabled
tests/Makefile.am:76: warning: source file 'vty/vty_test.c' is in a subdirectory,
tests/Makefile.am:76: but option 'subdir-objects' is disabled
 

hansheesbeen

Member
Joined
Jul 30, 2010
Messages
55
Location
Tilburg, NL
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:28:32: fatal error: osmocom/core/utils.h: Bestand of map bestaat niet
#include <osmocom/core/utils.h>
^
compilation terminated.
make: *** [conv_enc_test.o] Fout 1
 

sq5bpf

Member
Joined
Jan 23, 2014
Messages
516
Yep found that one minute before your post... tetra package is the second error

post the errors please. preferably the whole log from script including the commands issued, and please issue export LANG=C before running the commands (this way the errors are in english)
 

hansheesbeen

Member
Joined
Jul 30, 2010
Messages
55
Location
Tilburg, NL
Sorry for my late response, the requested error:
Script started on di 25 nov 2014 19:37:37 CET
[01;32mhans@LIN-Hans[01;34m ~ $[00m cd osmo-tetra-sq5bpf
[01;32mhans@LIN-Hans[01;34m ~/osmo-tetra-sq5bpf $[00m cd src
[01;32mhans@LIN-Hans[01;34m ~/osmo-tetra-sq5bpf/src $[00m make
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:28:32: fatal error: osmocom/core/utils.h: No such file or directory
#include <osmocom/core/utils.h>
^
compilation terminated.
make: *** [conv_enc_test.o] Error 1
[01;32mhans@LIN-Hans[01;34m ~/osmo-tetra-sq5bpf/src $[00m exit
exit

Script done on di 25 nov 2014 19:39:35 CET

Followed after execute this:
git clone https://github.com/sq5bpf/osmo-tetra-sq5bpf > DONE WORKS OK
cd osmo-tetra-sq5bpf > DONE WORKS OK
cd src > DONE WORKS OK
make > above error
 

sq5bpf

Member
Joined
Jan 23, 2014
Messages
516
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:28:32: fatal error: osmocom/core/utils.h: No such file or directory

check if you have /usr/local/include/osmocom/core/utils.h , probably not

maybe you didn't do sudo make install when compiling libosmocore (or you're not in /etc/sudoers, if not add yourself, or make install as root)

or maybe you don't have pkg-config installed (try this: pkg-config --cflags libosmocore )
 

sq5bpf

Member
Joined
Jan 23, 2014
Messages
516
I'm setting up debian now... trying that distro.

too bad we didn't finish under mint, would be nice to debug bugs with compilation under different distrubitions.

but you're right - debian should work out od the box. just remember to compile the etsi codecs in a 32-bit environment (either install the whole system 32-bit, or set up a 32-bit build environment just for the codecs, or use someone else's box for compiling)
 
Status
Not open for further replies.
Top