Hello all!
I bought a Realtek SDR from rtl-sdr.com a couple of years ago and played with it a bit at the time. I don't remember exactly what I tried, but it seemed P25 decoding was still pretty experimental then.
Recently, I started playing with it again, using boatbod's version of OP25, and it's working a lot better for me. I am able to monitor the MARRS system (Kansas City, MO and environs) fairly reliably.
One thing I did have a little trouble with is that terminal.py would sometimes crash out when it tried to update the screen with the name of the talkgroup from my .tsv file (per stderr). I took a quick look through my .tsv file, and I don't *think* I screwed up the formatting or used any illegal characters (Bobby Tables), but then again, that file is 800+ lines. I do have a couple of talkgroup names in the .tsv that are much wider than the xterm that OP25 runs in, which might be causing this problem.
I ended up wrapping that line in terminal.py in a try/pass, and the problem has not returned for several days so far.
Here is a diff:
I have also patched terminal.py some more to add desktop notifications and a log file, but my Python style is fairly horrible (global variables, whee!), so I'm not publishing those diffs right now.
I run OP25 on my main office PC, and sometimes I'm not looking at the desktop where OP25 is running. The notifications make the talkgroup ID and description pop up in the corner of the screen whenever somebody talks, and then go away again when they stop.
Thanks!
I bought a Realtek SDR from rtl-sdr.com a couple of years ago and played with it a bit at the time. I don't remember exactly what I tried, but it seemed P25 decoding was still pretty experimental then.
Recently, I started playing with it again, using boatbod's version of OP25, and it's working a lot better for me. I am able to monitor the MARRS system (Kansas City, MO and environs) fairly reliably.
One thing I did have a little trouble with is that terminal.py would sometimes crash out when it tried to update the screen with the name of the talkgroup from my .tsv file (per stderr). I took a quick look through my .tsv file, and I don't *think* I screwed up the formatting or used any illegal characters (Bobby Tables), but then again, that file is 800+ lines. I do have a couple of talkgroup names in the .tsv that are much wider than the xterm that OP25 runs in, which might be causing this problem.
I ended up wrapping that line in terminal.py in a try/pass, and the problem has not returned for several days so far.
Here is a diff:
Code:
--- terminal.py.orig 2018-10-03 02:31:36.613092317 -0500
+++ terminal.py 2018-10-03 02:33:34.579886950 -0500
@@ -256,7 +256,11 @@
if msg['tag']:
s = msg['tag']
s = s[:(self.maxx - 1)]
- self.active2.addstr(0, 0, s)
+ try:
+ self.active2.addstr(0, 0, s)
+ except:
+ pass
+
self.active2.refresh()
self.stdscr.refresh()
return False
I have also patched terminal.py some more to add desktop notifications and a log file, but my Python style is fairly horrible (global variables, whee!), so I'm not publishing those diffs right now.
I run OP25 on my main office PC, and sometimes I'm not looking at the desktop where OP25 is running. The notifications make the talkgroup ID and description pop up in the corner of the screen whenever somebody talks, and then go away again when they stop.
Thanks!