OP25 Major New OP25 Release - Seeking Beta Testers

Status
Not open for further replies.

Outerdog

T¹ ÆS Ø
Premium Subscriber
Joined
Jul 1, 2016
Messages
669
Oh, sorry. I didn't realise I left you with the idea that I got none of the msgs. I did get the "saved UI" msg. I just didn't get the "reloaded" msg.View attachment 110568

Ok, thanks.

I wasn't previously aware of this, but it appears that reload_tags() is not called from rx.py, but only from multi_rx.py. @KA1RBI will have to comment on the feasibility of calling reload_tags() from rx.py.

But that explains why it isn't working for you anyway.

Code:
mikey@macradio:~/op25-rc2/op25/op25/gr-op25_repeater/apps$ grep -i "reload_tags" *.py
multi_rx.py:        elif s == 'reload_tags':
multi_rx.py:            self.trunk_rx.reload_tags(int(nac))
trunking.py:    def reload_tags(self, nac):
 

n5pwp

Member
Joined
Jan 10, 2015
Messages
281
Location
Spring, Texas
Thanks, Outerdog. It's not a biggie. I pretty much have the tag colors set for the TGs I listen to regularly. So unless I change what I'm listening to it will be a rare thing to have to do going forward. I have a script setup to restart OP25 anyway. So its ctrl-C to stop it and then pull the script from the command history and hit enter and its back running again. Now I need to see if I can get the audio streaming working so I can listen on my tablet when I'm out in the backyard. Thanks for your help and its good to know what's going on.
Mike
 

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
Hi Max. Sorry for getting grumpy after fiddling with it so much last night. I have a bunch of files that are named stream-42xx.ts in the folder you mentioned.

This is a good sign. The stream*.ts files are standard MPEG and as such are playable audio/video files, I've found that the 'ffplay' app (ffplay should included in builds of ffmpeg) works well in playing these files. Any other AV player should work as well.

Each file is a short chunk of audio (or silence when there is no active call) plus the encoded video showing system and channel status. Note that the current frequency is displayed in line 2 of the screen (as well as active TG info if there is a call).

There are three possibilities:
1) The files play back with audio OK. This would suggest the problem is wholly downstream from OP25 and ffmpeg.liq.
2) There is no audio, and line 2 of the vid indicates no talkgroup and the frequency shown is that of the CC. This suggests there is no current call and the silence is valid. Try another *.ts file - look for one tuned to a voice channel
3) There is no audio but the talkgroup info is filled, and the frequency shown in line 2 is a VC (check several *.ts files to be sure). This suggests that audio pipelining from OP25 is failing somewhere - would be good to look at the rx.py command line and options, and a copy of stderr - as well as a copy of all messages resulting from running the ffmpeg.liq. (Or, valid audio might somehow be getting muted when attempting playback of the *.ts file)...

Also, I noticed if I go to 127.0.0.1:8081/live.html on the local machine I do get a video showing but as I'm testing it I am not getting any audio through that live.html.

When I use another device and put in the IP of my computer such as 192.168.2.83:8081/live.html I don't get anything that works ie no video nor audio.
Does anything appear in the nginx access and/or error logs as a result of this failed access attempt?

Thanks for your patience

Max
 

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
I wasn't previously aware of this, but it appears that reload_tags() is not called from rx.py, but only from multi_rx.py. @KA1RBI will have to comment on the feasibility of calling reload_tags() from rx.py.

Thanks as always for these bug reports.

I've pushed a commit to add the missing code to rx.py - if someone could please test. A "git pull" should get you the latest update.

The modification seems trivial enough, would be good to receive success or failure reports...

Max
 

n5pwp

Member
Joined
Jan 10, 2015
Messages
281
Location
Spring, Texas
Thank you, Max. You got it. I was curious when I saw the TG go green and show on the screen as Talkgroup 711. but after it popped up again it showed what I had changed it to. Small niggle. The help file says its supposed to automatically reload the TSV after saving it. For some reason you guys put the Force reload button in the help screen. Because it seems to always require you to use the button. Maybe move that button out to the TG TSV Edit window (?)
OP25_fixed reloadTSV.PNG

UPDATE: My impatience got the better of me. I did it again and just waited it required no Force Reload. Thanks again, Max.
 

W4KRR

Member
Premium Subscriber
Joined
Apr 1, 2001
Messages
3,517
Location
Coconut Creek
I have the program up and running, no apparent problems, but I see this message at the end of terminal:

Traceback (most recent call last):
File "/home/ken/op25/op25/gr-op25_repeater/apps/sql_dbi.py", line 78, in insert_row
self.cursor.execute(d['command'], d['row'])
OperationalError: no such table: data_store

What does this mean? It doesn't seem to be causing any issues, but I haven't tried out every feature of the program.
 

n5pwp

Member
Joined
Jan 10, 2015
Messages
281
Location
Spring, Texas
I have the program up and running, no apparent problems, but I see this message at the end of terminal:

Traceback (most recent call last):
File "/home/ken/op25/op25/gr-op25_repeater/apps/sql_dbi.py", line 78, in insert_row
self.cursor.execute(d['command'], d['row'])
OperationalError: no such table: data_store

What does this mean? It doesn't seem to be causing any issues, but I haven't tried out every feature of the program.

I get that too, Ken. I read that it is because we haven't loaded/setup the database. At this point I'm not interested in logging I get what I need from the Call History Window. It hasn't caused me any trouble so far, either.
 

Outerdog

T¹ ÆS Ø
Premium Subscriber
Joined
Jul 1, 2016
Messages
669
I have the program up and running, no apparent problems, but I see this message at the end of terminal:

Traceback (most recent call last):
File "/home/ken/op25/op25/gr-op25_repeater/apps/sql_dbi.py", line 78, in insert_row
self.cursor.execute(d['command'], d['row'])
OperationalError: no such table: data_store

What does this mean? It doesn't seem to be causing any issues, but I haven't tried out every feature of the program.

It means that the op25-data.db database file exists, but the database hasn't been set up yet.
 

bucket772

Member
Feed Provider
Joined
Oct 27, 2006
Messages
76
While I now have OP25 working with this beta, I tried getting audio via the web by following the steps in: README-hls\apps\gr-op25_repeater\op25 - op25 - Osmocom OP25

I think I got everything but I'm not getting the audio to work even after running ffmpeg.liq and it shows it's running in the terminal.

I added the -V -w to my start script as well as I started ffmpeg.liq

I'm not sure where to turn to get this running. It seems just setting up icecast on boatbod would be easier.
I cloned in to https://code.videolan.org/videolan/x264.git and it is asking for a username and password. Do I need an account with them?
 

W4KRR

Member
Premium Subscriber
Joined
Apr 1, 2001
Messages
3,517
Location
Coconut Creek
It means that the op25-data.db database file exists, but the database hasn't been set up yet.
Okay, so now I'm trying to set this up via the instructions in the README July-2021 help file. When I try to import the talkgroups tags file, I see this error:

ValueError: invalid literal for int() with base 10: ''

The system ID is 997 HEX, which is 2455 decimal. It doesn't work either way. Unless this error has nothing to do with the system ID.
 

Outerdog

T¹ ÆS Ø
Premium Subscriber
Joined
Jul 1, 2016
Messages
669
I *think* that error pops up if you have a string where it expects an integer. Look closely at the TSV file for errors.

nnn <tab> tg-text

Code:
12345     Talkgroup-12345
37890     Talkgroup-37890

Otherwise, post whatever else is accompanied by that error message.
 

W4KRR

Member
Premium Subscriber
Joined
Apr 1, 2001
Messages
3,517
Location
Coconut Creek
I *think* that error pops up if you have a string where it expects an integer. Look closely at the TSV file for errors.

nnn <tab> tg-text

Code:
12345     Talkgroup-12345
37890     Talkgroup-37890

Otherwise, post whatever else is accompanied by that error message.

The .TSV file did contain some question marks, which I removed, but it didn't help.

Here is the entire error message:

Traceback (most recent call last):
File "sql_dbi.py", line 337, in <module>
main()
File "sql_dbi.py", line 324, in main
db1.import_tsv(sys.argv)
File "sql_dbi.py", line 280, in import_tsv
priority = 0 if len(a) < 3 else int(a[2])
ValueError: invalid literal for int() with base 10: ''
 

Outerdog

T¹ ÆS Ø
Premium Subscriber
Joined
Jul 1, 2016
Messages
669
Likely either non-text (Unicode) characters in the file or more likely a trailing tab after the talkgroup-text. That bit of code is trying to turn the third column -- a[2] -- into an integer value, and it's finding a non-integer entry there.

Check for Unicode:

Code:
grep --color='auto' -P -n "[\x80-\xFF]" file.tsv

View TSV file showing tab characters (^I) and EOL ($) , check for trailing values:
Code:
cat -ET file.tsv
 

bucket772

Member
Feed Provider
Joined
Oct 27, 2006
Messages
76
It shouldn't ask for a username/passwd - at least it doesn't here- what command are you entering? Also, what host platform are you running on (R PI etc)?
RPi 3b. I was SSH into it most of the day and got OP25 kinda running. Audio is more important then the DB. After some CMAKE errors, certificate errors and some other things all seemingly related to buster not taking the apt update. Anyway, got past that started down the audio streaming. More errors with nginix installing (killed apache (same port) and it installed fine. Then got this.....
 

Attachments

  • Screen Shot 2021-10-10 at 9.24.58 PM.png
    Screen Shot 2021-10-10 at 9.24.58 PM.png
    154.3 KB · Views: 21

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
RPi 3b. I was SSH into it most of the day and got OP25 kinda running. Audio is more important then the DB. After some CMAKE errors, certificate errors and some other things all seemingly related to buster not taking the apt update. Anyway, got past that started down the audio streaming. More errors with nginix installing (killed apache (same port) and it installed fine. Then got this.....

The screen shot was helpful - looks like your 'git clone' command ends with x264/git

The last four characters of the git clone command should be ".git" not "/git"

Max
 

bucket772

Member
Feed Provider
Joined
Oct 27, 2006
Messages
76
Me and my sausage fingers. THIS, is what I'm learning about Linux.
Thank you. Cloned it with the proper command and it worked. I think. Suffering from a ssh session that likes to hang at random times. I suspect a firewall issue. IDK. Remote in from work all day and the sessions were fine. I get home and now it gives me issues. That's a fight for tomorrow.
 

bucket772

Member
Feed Provider
Joined
Oct 27, 2006
Messages
76
Got OP25 installed and working. Plots are tight and everything is working fine, except, no tones on the dispatch talkgroup. Voice is fine. Same settings running the boatbod fork and tones passed no problem. I remember talking to one of the radio techs at our county and he said that they had to change some of the tones as they were not passing through the vocoder. Not really a dealbreaker for me, just wondering if anyone else was having the same issue..
 
Status
Not open for further replies.
Top