RadioReference on Facebook   RadioReference on Twitter   RadioReference Blog
 

Go Back   The RadioReference.com Forums > Computer Aided Monitoring and Programming > Voice/Control Channel Decoding Software

Voice/Control Channel Decoding Software - For discussion of software applications which decode digital voice formats and trunking control channels. Please use the HF Digital Signals forum for anything below 30MHz.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1201 (permalink)  
Old 03-04-2016, 11:58 AM
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Jan 2014
Posts: 507
Default

Quote:
Originally Posted by FR3500 View Post
Ok thank you
What would result?
As i said all files are recorded and present,( i'm almost certain)
the issue may come from enconding by tetrad
i'm not so sure. looks like more of a permissions problem

tetrad works like this:

1. find all files in /tetra/in that are older than 2 minutes

for each file: {

2. move the file to /tetra/out/YYYYMMDD/FILENAME.out

3. uncompress acelp, compress this into ogg

4. remove all files except the ogg file

}

5. wait 1 minute


this mechanism works without any error checking (bad, i know, but this was only a quick hack, left it because it's very reliable anyway, i can change it if you want).

before looking at problems in tetrad i would look into the system:


- is this a standard installation? (debian 8 and everything installed via install_telive.sh), or is there something non-standard about it?

- maybe you're running this as root? (deadly unix sin, you should run the software as a normal user and not abuse root, this can also cause permissions problems later)

- maybe your filesystem ran out of free space (or free inodes) at some point?

- maybe something else was done with the script? (killed because of low memory etc)


if it is none of these, then do this experiment: don't run tetrad, let some recordings accumulate, and make a copy of /tetra/in. after this launch tetrad. if you find an .out file that will not be processed by it, then please send it to me (maybe it causes a segfault of the acelp decoder)
Reply With Quote
Sponsored links
  #1202 (permalink)  
Old 03-04-2016, 1:11 PM
Member
   
Join Date: Aug 2012
Location: France
Posts: 58
Default

Quote:
Originally Posted by sq5bpf View Post

if it is none of these, then do this experiment: don't run tetrad, let some recordings accumulate, and make a copy of /tetra/in. after this launch tetrad. if you find an .out file that will not be processed by it, then please send it to me (maybe it causes a segfault of the acelp decoder)
OK thanks for your time;
Actually i did exactly that, i let run the program for 1 hour, it recorded 62 files;
then i ran tetrad to endode to ogg; about 30" total encoding time:
the result was only 1 file missing (61)

I'm on ubuntu 14, will try soon Debian;
just wondering why tetrad runs perfectly, but very few errors ...
Reply With Quote
  #1203 (permalink)  
Old 03-04-2016, 1:19 PM
Member
   
Join Date: Aug 2012
Location: France
Posts: 58
Default

I tried few minutes ago, 182 files encoded, no missing
Reply With Quote
  #1204 (permalink)  
Old 03-04-2016, 2:47 PM
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Jan 2014
Posts: 507
Default

Quote:
Originally Posted by FR3500 View Post
OK thanks for your time;
Actually i did exactly that, i let run the program for 1 hour, it recorded 62 files;
then i ran tetrad to endode to ogg; about 30" total encoding time:
the result was only 1 file missing (61)
do you have the out file that was missed by tetrad? (if so, please send it to me)

Quote:
Originally Posted by FR3500 View Post
I'm on ubuntu 14, will try soon Debian;
just wondering why tetrad runs perfectly, but very few errors ...
i have no idea too. it should either work 100% or 0%. the only reason might be a segfault in cdecoder or sdecoder (i assume that sox and oggenc work correctly), maybe you could look at your kernel logs (/var/log/kern.log and other files in /var/log), it should be logged there.
Reply With Quote
  #1205 (permalink)  
Old 03-04-2016, 5:09 PM
Member
   
Join Date: Jan 2016
Location: Leidschendam
Posts: 23
Default

Quote:
Originally Posted by sq5bpf View Post
i have no idea too.
If two files are created within that minute for the same participants. Wouldn't that result in the filename being the same thus being overwritten?
Reply With Quote
Sponsored links
  #1206 (permalink)  
Old 03-05-2016, 2:08 AM
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Jan 2014
Posts: 507
Default

Quote:
Originally Posted by skinkie View Post
If two files are created within that minute for the same participants. Wouldn't that result in the filename being the same thus being overwritten?
the files are named traffic_IDX.out (with IDX=3-63, this are the traffic usage markers), which are later renamed to a file which has also has the IDX in the name. even if you had 2 files with the same SSIs in the filename (unlikely but possible), this would differ by the IDX, (this is without having a deeper look at the code, i may be wrong)
Reply With Quote
  #1207 (permalink)  
Old 03-05-2016, 9:02 AM
Member
   
Join Date: Mar 2016
Posts: 9
Default Telive install problem

git clone https://github.com/sq5bpf/telive ---- OK
cd telive ---- OK
make --- OK
sudo mkdir /tetra --- NOT OK

NOT OK, Ubuntu says folder or file already exist. But i don't see it in my files, the tetra folder not exist


sudo chown mygroup /tetra ----- OK
chmod 755 install.sh --- OK
./install.sh ---- NOT OK

It says :

/tetra/in already exist
/tetra/out already exist
/tetra/log already exist
/tetra tmp already exist
/tetra/bin already exist

But no trace of theses files ! They don't exist.

Help
Reply With Quote
  #1208 (permalink)  
Old 03-06-2016, 4:44 AM
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Jan 2014
Posts: 507
Default

atariman, did you try using the automatic install script?

ls -al /tetra returns nothing?
Reply With Quote
  #1209 (permalink)  
Old 03-06-2016, 5:10 AM
Member
   
Join Date: Mar 2016
Posts: 9
Default

Now it's ok for the folders. Because they were in the first root folder and not my personal folder. But i have and other problem. I am on a tetra signal and it's ok with osmocom tetra. The trame is decoding in the window ( burst etc....) but nothing with the /receiver1 under telive. The files fifo and fifo are ok. The size of fifo1 evolute, ok but there is nothing text in receiver1. No decoding signal. My frequency is ok on tetra signal and fine. All installation ok. What is the problem ? I am testing with rtl sdr key with grc_simple et a funcube with grc_fcd the problem is same: nothing in receiver1
Reply With Quote
Sponsored links
  #1210 (permalink)  
Old 03-06-2016, 3:05 PM
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Jan 2014
Posts: 507
Default

see if these are pipes:
ls -al /tmp/fifo*

what parameter did you pass to receiver1? this determines the pipe name (if the parameter is 1, then it uses /tmp/fifo1)
Reply With Quote
  #1211 (permalink)  
Old 03-07-2016, 1:39 AM
Member
   
Join Date: Mar 2016
Posts: 9
Default

Thx for answer.

If i type : ls -al /tmp/fifo*
prw-rw-r-- 1 jm62 jm62 0 mars 7 08:35 /tmp/fifo
-rw-rw-r-- 1 jm62 jm62 499712 mars 7 08:38 /tmp/fifo1


FIFO exist when i launch receiver1
FIFO1 exist when i launch GRC gnu radio

I think i don't send parameters to /receiver1. I'm just type ./receiver1 and execute. I am testing without the -a parameter and it's the same.
Reply With Quote
  #1212 (permalink)  
Old 03-07-2016, 2:45 AM
Member
   
Join Date: Mar 2016
Posts: 9
Default Good

It's good now !!

I need to do ./receiver 1

I forgot the 1

Thank you
Reply With Quote
  #1213 (permalink)  
Old 03-07-2016, 3:32 AM
Member
   
Join Date: Mar 2016
Posts: 9
Default

I am not lucky . All is ok but i don't have audio files in /tetra/in ou out folder. The codecs are ok, i hear "HELLO TETRA" with the filetest.acelp but no files in OUT and IN folders. In the Xterm i do SHIFT+R for recording, but there"s nothing append.
Reply With Quote
  #1214 (permalink)  
Old 03-07-2016, 5:13 AM
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Jan 2014
Posts: 507
Default

Quote:
Originally Posted by atariman View Post
I am not lucky . All is ok but i don't have audio files in /tetra/in ou out folder. The codecs are ok, i hear "HELLO TETRA" with the filetest.acelp but no files in OUT and IN folders. In the Xterm i do SHIFT+R for recording, but there"s nothing append.
do you have any unencrypted voice traffic on your network?

if there is voice traffic and you have record:1 on the screen, and there are no permissions problems (telive can write to /tetra/in), then it should work. you can disable mutessi and see if this helps (if there is no SSI information about the voice traffic)
Reply With Quote
  #1215 (permalink)  
Old 03-08-2016, 2:47 AM
Member
   
Join Date: Mar 2016
Posts: 9
Default

There is Voice traffic indication ( and i know the origin of the signal, there is voices )
And no encryption ( ENCRYPTION : 0 )

I think all permissions are ok ( folder tetra is on access files parameter and the subfolders IN ... OUT )

But how to disable MUTESSI ?
Reply With Quote
Sponsored links
  #1216 (permalink)  
Old 03-08-2016, 3:09 AM
Member
   
Join Date: Mar 2016
Posts: 9
Default

EDIT : I find mutessi ( m , under ./rxx window telive ) but the problem is same : I hear no voice and no filtes generated in IN folder.

Few lines of the log file

20160308 10:04:30 FUNC:SDS [01001111011001100010010110011010101100001000000100 00010000000000011111000000001000000110000000000000 00011110000000000000000100001000000000000000000000 0000000000000]
20160308 10:04:30 FUNC:SDSDEC [CPTI:1 CalledSSI:200409 CallingSSI:9999978 CallingEXT:0 UserData4: len:56 protoid:82(Text Messaging) SDS-TL:[ MsgType:SDS-TRANSFER MSG_REF:62 TO_GROUP:0] coding_scheme:01 DATA:[\x03\x00\x00\xF0]] RX:1
20160308 10:04:30 FUNC-SDS DATA SSI:00200409 IDX:000 IDT:1 ENCR:0 RX:1
20160308 10:04:32 FUNC-STATUS SSI:00200002 IDX:000 IDT:1 ENCR:0 RX:1
20160308 10:04:32 FUNC-STATUS SSI:00202016 IDX:000 IDT:1 ENCR:0 RX:1
Reply With Quote
  #1217 (permalink)  
Old 03-08-2016, 4:22 AM
Member
   
Join Date: Mar 2016
Posts: 9
Default

Now it's ok : I put all write and acces permissions to folder TETRA / IN / OUT and now i hear the voices and the files traffic are or in the IN folder. Thanks for your help.
Reply With Quote
  #1218 (permalink)  
Old 03-08-2016, 5:09 AM
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Jan 2014
Posts: 507
Default

Quote:
Originally Posted by atariman View Post
Now it's ok : I put all write and acces permissions to folder TETRA / IN / OUT and now i hear the voices
that's strange, because you shouldn't have to do this, the install script takes care of all permissions


Quote:
Originally Posted by atariman View Post
and the files traffic are or in the IN folder. Thanks for your help.
launch tetrad to recompress them into ogg files for later listening (see the docs)
Reply With Quote
  #1219 (permalink)  
Old 03-09-2016, 4:21 AM
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Jan 2014
Posts: 507
Default

i've commited a small change to the install_telive.sh script, which should work around recent errors when instaling on Ubuntu 14 and distros derived from it (Linux Mint 17.3 and others)

the problem was that the software needs modern gnuradio, and under ubuntu 14 this is provided by external repositories, which can stop working (because their authors lost interest etc). this fix changes repos.

there is also the option to skip codec install (see the script comments).

if anyone tries this, i would be grateful for info if it does/doesn't work and bugreports


of course the preferred distribution is still debian 8, the rest is supported on an ad-hoc basis

Last edited by sq5bpf; 03-09-2016 at 5:16 AM..
Reply With Quote
  #1220 (permalink)  
Old 03-09-2016, 3:06 PM
martufello's Avatar
Member
   
Join Date: Jun 2004
Posts: 18
Default

Ubunt14.04.2 with preinstalled gnuradio 3.7.7.1 live iso USB working well

Ubunt14.04.3 with preinstalled gnuradio 3.7.9.1 live iso USB not ok

Gnuradio is starting and I can see tetra signals but I have following messages:

<<< Welcome to GNU Radio Companion 3.7.9.1 >>>

Preferences file: /home/ubuntu/.gnuradio/grc.conf
Block paths:
/usr/local/share/gnuradio/grc/blocks
/home/ubuntu/.grc_gnuradio

Loading: "/home/ubuntu/tetra/telive/gnuradio-companion/telive_1ch_simple_gr37_udp.grc"
linux; GNU C++ version 4.8.4; Boost_105400; UHD_003.009.002-13-g97d338d2

RuntimeError('fsm::fsm(const char *name): file open error\n',)
RuntimeError('fsm::fsm(const char *name): file open error\n',)
>>> Done
RuntimeError('fsm::fsm(const char *name): file open error\n',)
RuntimeError('fsm::fsm(const char *name): file open error\n',)
RuntimeError('fsm::fsm(const char *name): file open error\n',)
RuntimeError('fsm::fsm(const char *name): file open error\n',)
RuntimeError('fsm::fsm(const char *name): file open error\n',)
RuntimeError('fsm::fsm(const char *name): file open error\n',)

Showing: "/home/ubuntu/tetra/telive/gnuradio-companion/telive_1ch_simple_gr37_udp.grc"

Loading: "/home/ubuntu/tetra/telive/gnuradio-companion/telive_1ch_simple_gr37.grc"
>>> Done

Showing: "/home/ubuntu/tetra/telive/gnuradio-companion/telive_1ch_simple_gr37.grc"

Generating: '/home/ubuntu/tetra/telive/gnuradio-companion/top_block.py'

Executing: /usr/bin/python2 -u /home/ubuntu/tetra/telive/gnuradio-companion/top_block.py

linux; GNU C++ version 4.8.4; Boost_105400; UHD_003.009.002-13-g97d338d2

Using Volk machine: avx2_64_mmx
gr-osmosdr v0.1.4-67-gac15e789 (0.1.5git) gnuradio 3.7.9.1
built-in source types: file fcd rtl rtl_tcp uhd hackrf bladerf rfspace airspy redpitaya
Using device #0 Realtek RTL2838UHIDIR SN: 00000001
Detached kernel driver
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
Exact sample rate is: 2000000.052982 Hz
[R82XX] PLL not locked!
gr::log :INFO: controlport - Apache Thrift: -h ubuntu -p 9090

Receiver1 not logging and after stopping I have following message:
ubuntu@ubuntu:~$ cd ~/tetra/osmo-tetra-sq5bpf/src
ubuntu@ubuntu:~/tetra/osmo-tetra-sq5bpf/src$ ./receiver1
^C/tmp/fifo: Interrupted system call
Traceback (most recent call last):
File "demod/python-3.7/simdemod2.py", line 78, in <module>
tb = top_block()
Reply With Quote
Reply

Tags
tetra decode

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:50 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
All information here is Copyright 2012 by RadioReference.com LLC and Lindsay C. Blanton III.Ad Management by RedTyger
Copyright 2015 by RadioReference.com LLC Privacy Policy  |  Terms and Conditions