dsdtune for dsdplus

Status
Not open for further replies.

deboe

Member
Joined
Dec 19, 2002
Messages
142
Location
0x045C
I realized I have never created a post about dsdtune.

What is dsdtune :
dsdtune tries to give you the best fine tuning options for your setup.
dsdplus has a few fine tuning decode options that you can see in its help screen
Code:
Advanced decoder options:
  -dr    Rolloff filter (1-11; 0=auto) [-dr0]
  -dh    Hotspot size (1-8; 0=auto) [-dh0]
  -ds    Scaling factor (50-80; not used with D-Star or ProVoice) [-ds64]
  -dd    Damping level (1-100; not used with D-Star or ProVoice) [-dd10]
  -dv    Viewport size (1-30; not used with D-Star or ProVoice) [-dv20]
Using a raw recording (which you can get while running dsdplus) you can re run that same audio though dsdplus and get a decode score (Lager number is a better decode). dsdtune will run dsdplus for you, by iterating over each option, recording the decode rates and then tell you which flags gave it the best decode.
You can then create a batch file (dsdtune can also create one for you) with those flags to run dsdplus with each time.

Instructions for running dsdtune.
  • First you will need to capture some raw input to be used as your sample. Start dsdplus use the "R" key to start recording raw input and then R when completed. You want to try and capture 15 to 30 seconds of active transmission in your recording. DSDPlus will display the file name of this new wav file.
  • Next you will run dsdtune (have dsdplus.exe, dsdtune.exe and your wav file in the same directory).
    From a dos prompt in the directory you have your files run
    Code:
    dsdtune  -i
    Options for dsdtune
    Code:
    dsdtune Version 0.1.0
    Usage:
     dsdtune [options]
     dsdtune -i    Use default dsd decode
    
     -f dsd decode option
     -fa Auto-detect frame type (default)
     -f1 Decode only P25 Phase 1
     -fd Decode only D-STAR
     -fn Decode only NXDN48* (6.25 kHz) / IDAS*
     -fN Decode only NXDN96 (12.5 kHz)
     -fp Decode only ProVoice*
     -fr Decode only DMR/MOTOTRBO
     -fx Decode only X2-TDMA
     -xx Expect inverted X2-TDMA signal
    
     -x Name of dsd executable. (dsdplus.exe default)
        If dsdplus.exe is not found dsd.exe will be tried
     -b  Create batch file with results
     -o "" Options to pass to dsd from
         the batch file. The double quotes are required
     -l  Log file name (dsdtune.log default)
    When decoding P25 voice I would run
    Code:
    dsdtune -f1 -i DSDPlus-Raw-Input_2014-10-18@181338.wav -b p25_run.bat
    This will run through and try the decode options. And with the -b option will create a batch file you can then use to run dsdplus with the options it found had the best decode rate.
  • Depending of the speed of your machine and length of your raw recording it will take 5 to 10 minutes to run all the options, you will see dsdplus open up many times
  • The output will show the best settings it found
    Code:
    +------ RESULTS -----+
    Switches you want to use :
       -dr2 -dh8 -ds53 -dd6 -dv20
    
    Created batch file p25_run.bat to run dsd
    Also with the -b you will have a batch file with those settings.
    For the batch file creating you can edit it to add your input and output device settings, or you can use the -o option. The -o option is not used in the test, but anything passed to -o will be in the batch file if you use the -b option.

  • A log file dsdtune.log will also be appended to with each run results

Where to get dsdtune:
From the github release page from the project https://github.com/dreinhold/dsdtune/releases
Version 0.1.0 (or greater) are for the newer dsdplus 1.050
If you are using the older dsdtune you can use the 0.0.4 version.

Where to report bugs/or requests
The best spot is the issue page in github https://github.com/dreinhold/dsdtune/issues
You can report them here, but I might miss them.

Is dsdtune part of dsdplus
No. dsdtune was just created after I started using dsdplus and wanted to see if the fine tuning options helped my setup, and it did so I released it to the world.

Plans for dsdtune
None, I have a few open bugs / enhancements I need to work on. But nothing big planned.
 
Last edited by a moderator:

jfhtm350

Member
Joined
Dec 25, 2010
Messages
1,107
Location
New Market TN
I have asked this before with no clear answer.
What is the "best value of" number referring to?
It ranges anywhere from 78000 to 27000.

Here is the specs dsdtune came up with on the same system with different raw audio recordings. The data is in columns and the top is the time of the raw audio file.

3:00---------------------1:00---------------------1:02----------------------1:26
78818 -dr4------------29521 -dr5------------27224 -dr5-------------47823 -dr3
78819 -dh8-----------29521 -dh2-----------27224 -dh2-------------47838 -dh2
78819 -ds53---------29521 -ds56---------27224 -ds54-----------47840 -ds58
78838 -dd3-----------29522 -dd90---------27224 -dd2-------------47840 -dd4
78979 -dv11----------29522 -dv18----------27224 -dv12-----------47840 -dv18
 

deboe

Member
Joined
Dec 19, 2002
Messages
142
Location
0x045C
I have asked this before with no clear answer.
What is the "best value of" number referring to?
It ranges anywhere from 78000 to 27000.

It comes from dsdplus, so your answer of "higher is better" from the dsdplus author I guess is the best we get.

I just assume dsdplus has some accumulator that is tracking all the bits it has to error correct or toss. Then keeps some internal score of how clean the incoming signal was or was able to be cleaned up based on checksum's matching up.
 

jfhtm350

Member
Joined
Dec 25, 2010
Messages
1,107
Location
New Market TN
Oh ok. I figured it came from dsdtune. Yep thats what he said. I guess it is what it is. Thanks for the getback.
 

KE7JHC

Member
Joined
Aug 25, 2008
Messages
53
Location
Abilene, Texas
I'm a bit confused. Here is the output received from dsdtune:

Sun Feb 01 13:02:18 2015 : Best Decode on file DSDPlus-Raw-Input_2015-02-01@130042.wav was 0 with options -fp -dr1 -dh1 -ds0 -dd0 -dv0

So for DSD+, should my target location be as follows:

"C:\Program Files (x86)\DSD+\DSDPlus.EXE" -fp-dr1-dh1-ds0-dd0-dv0

I notice no difference in the decoded audio using what I've posted above.
 

mtindor

OH/WV DB Admin
Database Admin
Joined
Dec 5, 2006
Messages
10,394
Location
Carroll Co OH / EN90LN
I'm a bit confused. Here is the output received from dsdtune:

Sun Feb 01 13:02:18 2015 : Best Decode on file DSDPlus-Raw-Input_2015-02-01@130042.wav was 0 with options -fp -dr1 -dh1 -ds0 -dd0 -dv0

So for DSD+, should my target location be as follows:

"C:\Program Files (x86)\DSD+\DSDPlus.EXE" -fp-dr1-dh1-ds0-dd0-dv0

I notice no difference in the decoded audio using what I've posted above.

If you've already got a strong, clean signal and you are tuned to it properly using no filtering and the correct bandwidth, you may not notice any difference.

However, on a weak signal or poorly tuned signal, you can pretty much guarantee that using the tuning parameters will help you out. Of course, if you are not tuning right on frequency, are using filtering that you shouldn't, or using the wrong bandwidth, that should be corrected rather than using the tuning parameters in DSDPlus.

Weak signals absolutely benefit. I'm a weak signal DXer of signals on VHF and above, and much of the time I'm monitoring signals that can benefit from using dsdtune to figure out better tuning parameters.

The tuning parameters will be diffefent depending upon the type of signal you are monitoring. For instance, the tuning parameters that are optimal for DMR/TRBO, may not be [and likely will not be] optimal for NXDN48 or P25 etc.

mike
 

racingfan360

Member
Joined
Dec 19, 2005
Messages
1,158
In my experience he biggest gain to be had when using dsdtune settings is on simplex transmissions especially dmr. As mike says weak signals will benefit most from adopting these settings. Not much to gain when you have a good signal to start with.
 

deboe

Member
Joined
Dec 19, 2002
Messages
142
Location
0x045C
Just noticed your message. I have not been following the dsd+ development. What is the newest version? I can pull it down and update dsdtune.

Thx.
 

deboe

Member
Joined
Dec 19, 2002
Messages
142
Location
0x045C

RonnieUSA

Member
Joined
Aug 8, 2005
Messages
2,149
Location
Rowan County,KY (Morehead)
I just posted a new release file v0.1.1 of dsdtune.
s33plusplus on github submited the patch as I have not had time to look at it.

Release Link : https://github.com/dreinhold/dsdtune/releases/tag/v0.1.1

Direct Zip link:
https://github.com/dreinhold/dsdtune/releases/download/v0.1.1/dsdtune.zip

As always any patches are welcome as github pull requests.

Also the issue tracker is : https://github.com/dreinhold/dsdtune/issues

Thank You so much for your great program.
 

ak4fn

Member
Joined
Nov 4, 2011
Messages
212
Location
Fredonia, KY
Works with 1.080T !! Thanks for a great program. I did notice that in the help section that it said "-fn Decode only NXDN96 (12.5 kHz)" it needs to be -fN, but anyone that uses dsdplus should know this. Thanks again!!
 
Status
Not open for further replies.
Top