SDRTrunk - p25 decoder test release

Status
Not open for further replies.

LJM1541

Member
Premium Subscriber
Joined
Aug 18, 2013
Messages
7
So this may have very well been answered previously.... either in this thread or the one which preceded it. However, I can't seem to find it.

My question is about multiple 2832/820T dongles. I'm having trouble with the configuration setting being saved for them. Specifically the correction settings. Any pointers?
 

LJM1541

Member
Premium Subscriber
Joined
Aug 18, 2013
Messages
7
Also, any way to import data from the RR DB? That would be great to know.

Totally neglected to say GREAT JOB! This is a stellar app with a small footprint. A little bit on the resource hungry side, but mostly improving with each release. Again, great job.
 

rjdj2000

Gone Cuckoo
Feed Provider
Joined
Jan 24, 2011
Messages
351
Location
Central NY
Also, any way to import data from the RR DB? That would be great to know.

Totally neglected to say GREAT JOB! This is a stellar app with a small footprint. A little bit on the resource hungry side, but mostly improving with each release. Again, great job.

That I know of Denny is planning this in a future release. As to your tuner not keeping the configuration - the below was taken from the Google groups page:

Version 0.2.0 Beta 8 Changes:



•Resolves #59 - Significantly improves (reduces) memory usage with Airspy, HackRF, R820T/R820T2, and E4000 tuners.


•Resolves issue with PPM/Gain/Sample Rate tuner configuration settings when using two or more of the same tuner type. Previously, if you didn't create a specific named tuner configuration for each of your tuners, then each tuner shared the same default tuner configuration. Thus, if you changed the PPM, gain or sample rate settings for one tuner, you were changing the settings for all of the same-type tuners. The software now creates a new tuner configuration for each tuner using a name of 'Default-' and the serial number of the tuner. You can either delete the /SDRTrunk/settings/settings.xml file and start the software to have it create new unique configurations for each tuner. This will delete all of your application settings (colors, display frame rates, etc.). An alternate option is to create a new named configuration for each of the same-type tuners so that you can save the settings for each specific tuner.


•Resolves #58 issue in spectral display where excess sample buffers were backing up in the queue causing the spectral display to show delayed data. This made it appear that when changing PPM or frequency on the tuner that the display wouldn't immediately reflect the changes.

If you have that version or newer it should be saving them. I only run 1 as it covers everything I need so I can't be much help on it.
 

LJM1541

Member
Premium Subscriber
Joined
Aug 18, 2013
Messages
7
Ah ha..... still in 2.0.... downloading the beta now.

Thanks rjdj2000
 

LJM1541

Member
Premium Subscriber
Joined
Aug 18, 2013
Messages
7
Hmmmm.... Can't seem to recall how I got the JMBE set up last time. Like a dummy I deleted that directory with the jar file that was created. Having trouble repeating the process.

d.p.audio.P25AudioOutput - JMBE audio conversion library NOT FOUND

Throwing an error regarding javac.exe
Have multiple JDK's.... 1.80_91 being the most recent, along with older versions of 1.6 and 1.7 (Required for some legacy apps I occasionally run)

manually, javac -version returns
javac 1.8.0_91
 
Last edited:

rjdj2000

Gone Cuckoo
Feed Provider
Joined
Jan 24, 2011
Messages
351
Location
Central NY
I think Denny did more on how to setup to build it, there has been previous posts here on it.
 

DSheirer

Member
Premium Subscriber
Joined
Feb 15, 2010
Messages
587
Location
Fulton, NY
So this may have very well been answered previously.... either in this thread or the one which preceded it. However, I can't seem to find it.

My question is about multiple 2832/820T dongles. I'm having trouble with the configuration setting being saved for them. Specifically the correction settings. Any pointers?

sdrtrunk uses the combination of tuner type (R820T) and the tuner serial number/name to identify the tuner and lookup the configuration(s) for it. You need a unique serial number/name for each tuner.

You can also create multiple named tuner configurations for each tuner/serial combination so that you can quickly change between different gain setups. Whichever named configuration you're using before you shutdown the applicaiton will be the configuration that is applied on startup the next time.

Denny
 

chudgoo

Member
Joined
Oct 20, 2014
Messages
69
Is there a trick to getting SDRTrunk to run stably on a raspberry pi 3?
I have my P25 system and tuner settings configured correctly, but after probably 30 min of running it just locks up.

Java heap out of memory... the Pi3 image i'm running leaves me with about 800MB free after boot, and SDRTrunk only seems to use about 300MB when run in windows.

Has anyone experienced this and figured out a fix?
 

rjdj2000

Gone Cuckoo
Feed Provider
Joined
Jan 24, 2011
Messages
351
Location
Central NY
Is there a trick to getting SDRTrunk to run stably on a raspberry pi 3?
I have my P25 system and tuner settings configured correctly, but after probably 30 min of running it just locks up.

Java heap out of memory... the Pi3 image i'm running leaves me with about 800MB free after boot, and SDRTrunk only seems to use about 300MB when run in windows.

Has anyone experienced this and figured out a fix?

I have been trying to run this myself on a Pi 3 and on a Pi 2 but it just doesn't have enough power to do it, I could be wrong as I have yet to find the correct setting to run it without crashing. I was going to try a Odroid C2 but have not been able to come up with the $ to get one yet.

RJ
 

chudgoo

Member
Joined
Oct 20, 2014
Messages
69
Oddly enough, the CPU stays around 55% when following one control channel. However, the memory will climb by roughly 1MB/sec until it maxes out and crashes. I've tried setting aside more memory with the -Xms512 -Xmx768 flags, but that doesn't really address what's causing the garbage collector routine to lag behind. It would be a beautiful thing if SDRTrunk could run reliably on a Pi... ;)
 

natedawg1604

Member
Premium Subscriber
Joined
Jun 29, 2013
Messages
2,732
Location
Colorado
AFAIK, nobody has figured out how to reliably run any combination of SDR program(s) necessary to decode P-25, DMR etc. on a Pi (I'm sure someone will correct me if I'm wrong). I get the general impression it is not sustainable with the Pi 3.
 

DSheirer

Member
Premium Subscriber
Joined
Feb 15, 2010
Messages
587
Location
Fulton, NY
Is there a trick to getting SDRTrunk to run stably on a raspberry pi 3?
I have my P25 system and tuner settings configured correctly, but after probably 30 min of running it just locks up.

Java heap out of memory... the Pi3 image i'm running leaves me with about 800MB free after boot, and SDRTrunk only seems to use about 300MB when run in windows.

Has anyone experienced this and figured out a fix?

Are you running 1 or 2 tuners? Can you set the sample rate for each of the tuners to the lowest setting? The Pi 3 may still not have enough horsepower to keep up.
 

chudgoo

Member
Joined
Oct 20, 2014
Messages
69
Are you running 1 or 2 tuners? Can you set the sample rate for each of the tuners to the lowest setting? The Pi 3 may still not have enough horsepower to keep up.

So i've taken your advice and am now running a single tuner (RTL2832/R820T from rtl-sdr.com) monitoring a single control channel with the sample rate set to 1.440MHz (this more than covers this particular system).

Though it hangs up and freezes the GUI every minute or so, It is running significantly better than it was before and isn't throwing errors in the terminal windows. It also seems to run better when I pause the waterfall...

Hmmm... Once you get your config/playlist how you want it, Is there a way to run the entire application in the background so it might use less system resources? Or would that even help at all?
 

rjdj2000

Gone Cuckoo
Feed Provider
Joined
Jan 24, 2011
Messages
351
Location
Central NY
So i've taken your advice and am now running a single tuner (RTL2832/R820T from rtl-sdr.com) monitoring a single control channel with the sample rate set to 1.440MHz (this more than covers this particular system).

Though it hangs up and freezes the GUI every minute or so, It is running significantly better than it was before and isn't throwing errors in the terminal windows. It also seems to run better when I pause the waterfall...

Hmmm... Once you get your config/playlist how you want it, Is there a way to run the entire application in the background so it might use less system resources? Or would that even help at all?

Chudgoo, what commands did you use to start the program and are you using rasbian on the Pi for the OS?

I have tried everything and mine still crashed, I will be doing P25 on it so that may be the downfall for me unless you are doing it.

RJ
 

chudgoo

Member
Joined
Oct 20, 2014
Messages
69
Chudgoo, what commands did you use to start the program and are you using rasbian on the Pi for the OS?

I have tried everything and mine still crashed, I will be doing P25 on it so that may be the downfall for me unless you are doing it.

RJ


I just used what's in the launch script, with the memory allocation flags thrown in.
-Xms512M -Xmx768M

See : java - What are the Xms and Xmx parameters when starting JVMs? - Stack Overflow

That said, it doesn't seem to make a difference. As Denny explained earlier in the thread, the java garbage collection doesn't seem to be getting enough CPU time to deal with old objects in memory and they essentially keep building up over time until you run out of memory and it crashes. Or at least that's how I interpreted it.

For what it's worth, I'm actually having great luck with a $100 Vensmile iPC002 windows machine.
The system I'm monitoring uses up about 1MHz of bandwidth so I can save cpu cycles by reducing the sample rate to 1.200MHz and it runs great. This little machine is a quad core atom with 2GB of ram (double the pi2/3's 1GB) and even with the overhead of running Windows10, it's doing great decodes.

But since I use would like to use this machine for other things, and the Pi3 isn't cutting it, I am seriously looking into the ODROID C2 as it seems to up the ante quite a bit, and is in the same price range. (well like $7 more) Double the ram, faster RAM, four faster cores, gigabit ethernet, etc.

https://en.wikipedia.org/wiki/ODROID

ODROID-C2 [0002A] | ameriDroid - ODROID United States and Canada Distribution
 

rjdj2000

Gone Cuckoo
Feed Provider
Joined
Jan 24, 2011
Messages
351
Location
Central NY
I just used what's in the launch script, with the memory allocation flags thrown in.
-Xms512M -Xmx768M

See : java - What are the Xms and Xmx parameters when starting JVMs? - Stack Overflow

That said, it doesn't seem to make a difference. As Denny explained earlier in the thread, the java garbage collection doesn't seem to be getting enough CPU time to deal with old objects in memory and they essentially keep building up over time until you run out of memory and it crashes. Or at least that's how I interpreted it.

For what it's worth, I'm actually having great luck with a $100 Vensmile iPC002 windows machine.
The system I'm monitoring uses up about 1MHz of bandwidth so I can save cpu cycles by reducing the sample rate to 1.200MHz and it runs great. This little machine is a quad core atom with 2GB of ram (double the pi2/3's 1GB) and even with the overhead of running Windows10, it's doing great decodes.

But since I use would like to use this machine for other things, and the Pi3 isn't cutting it, I am seriously looking into the ODROID C2 as it seems to up the ante quite a bit, and is in the same price range. (well like $7 more) Double the ram, faster RAM, four faster cores, gigabit ethernet, etc.

https://en.wikipedia.org/wiki/ODROID

ODROID-C2 [0002A] | ameriDroid - ODROID United States and Canada Distribution

Yes, I was looking at that one myself as it does seem to have the memory and CPU to run it. On my windows machine that is running this 24/7 there is 3 gig ram and a coreDuo Processor in the machine and it is using about 1.7 gig right now with Win 7 Pro, sdrTrunk, RadioFeed, a couple other small programs and whatever is needed for Windows to run. Using Linux takes less so I think it would run fine on the C2. Won't know until I get one LOL.. Trying to take away the power consuming PC and put into smaller package myself to use less power and to possibly put it on a backup battery so when power goes out, it will stay running and not have to reboot when power is restored.
 

chudgoo

Member
Joined
Oct 20, 2014
Messages
69
Yes, I was looking at that one myself as it does seem to have the memory and CPU to run it. On my windows machine that is running this 24/7 there is 3 gig ram and a coreDuo Processor in the machine and it is using about 1.7 gig right now with Win 7 Pro, sdrTrunk, RadioFeed, a couple other small programs and whatever is needed for Windows to run. Using Linux takes less so I think it would run fine on the C2. Won't know until I get one LOL.. Trying to take away the power consuming PC and put into smaller package myself to use less power and to possibly put it on a backup battery so when power goes out, it will stay running and not have to reboot when power is restored.


Right now the Vensmile (win10) box and the CPU is hovering around 55% with SDRTrunk and BUTT running. SDRTrunk is using 48% of that.
Memory in use (total) is 860MB, 326MB of which is being used by SDRTrunk.
Odd that Win7 is gobbling so much more memory... Though I did go through and disable a TON of weather/stock/etc widgets and turned off all the crap under settings/privacy, so maybe that has something to do with it. IDK...

Also, I caved and ordered the ODROID C2 and a case, so in about a week, we'll see how that little $42 monster does. Stay tuned!
If everything works, I'm going to need to buy/build some kind of larger case or something that will accommodate the ODROID and 1/2 SDR dongles. I really wish it had battery/charging support. A home made portable would be badass! ;)


NINJA EDIT! I just realized that an old Linksys WRT-54G case might actually do the trick! Gonna crack my old one open later! Might even be able to reuse the antennas (though they're not really tuned for 400MHz, but then again neither are the stock mag mount ones the dongles come with)
 
Status
Not open for further replies.
Top