mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-19 12:17:21 -05:00
DMR 12 Rate Data LRRP
DMR 12 Rate Data LRRP Decoding
This commit is contained in:
@@ -199,9 +199,9 @@ initOpts (dsd_opts * opts)
|
||||
opts->pulse_digi_in_channels = 1; //2
|
||||
opts->pulse_digi_out_channels = 1; //2
|
||||
|
||||
sprintf (opts->output_name, "Auto Detect");
|
||||
sprintf (opts->output_name, "Default Channel");
|
||||
opts->pulse_flush = 1; //set 0 to flush, 1 for flushed
|
||||
opts->use_ncurses_terminal = 0;
|
||||
opts->use_ncurses_terminal = 0;
|
||||
opts->payload = 0;
|
||||
|
||||
opts->EncryptionMode = MODE_UNENCRYPTED;
|
||||
@@ -213,7 +213,7 @@ initState (dsd_state * state)
|
||||
{
|
||||
|
||||
int i, j;
|
||||
|
||||
state->last_dibit = 0;
|
||||
state->dibit_buf = malloc (sizeof (int) * 1000000);
|
||||
state->dibit_buf_p = state->dibit_buf + 200;
|
||||
memset (state->dibit_buf, 0, sizeof (int) * 200);
|
||||
@@ -326,6 +326,11 @@ initState (dsd_state * state)
|
||||
state->payload_algid = 0;
|
||||
state->payload_keyid = 0;
|
||||
|
||||
sprintf (state->dmr_branding, " ");
|
||||
sprintf (state->dmr_callsign[0], "");
|
||||
sprintf (state->dmr_callsign[1], "");
|
||||
sprintf (state->dmr_callsign[2], "");
|
||||
sprintf (state->dmr_callsign[3], "");
|
||||
state->K = 0;
|
||||
|
||||
#ifdef TRACE_DSD
|
||||
@@ -858,7 +863,12 @@ main (int argc, char **argv)
|
||||
opts.frame_dmr = 1;
|
||||
opts.frame_dpmr = 0; //borrow from LEH
|
||||
opts.frame_provoice = 0; //turn it on, doesn't work due to symbol rate difference
|
||||
sprintf (opts.output_name, "Auto Detect");
|
||||
//adding stereo for DMR so we don't accidentally segfault
|
||||
//opts.pulse_raw_rate_out = 24000; //doing tests with 2 channels at 24000 for 48000 audio default in pulse
|
||||
//opts.pulse_digi_rate_out = 24000; //need to copy this to rtl type in and change rate out to 8000
|
||||
//opts.pulse_raw_out_channels = 2;
|
||||
//opts.pulse_digi_out_channels = 2; //2
|
||||
sprintf (opts.output_name, "Default Channel");
|
||||
}
|
||||
else if (optarg[0] == 'd')
|
||||
{
|
||||
@@ -979,7 +989,12 @@ main (int argc, char **argv)
|
||||
opts.mod_qpsk = 0;
|
||||
opts.mod_gfsk = 0; //
|
||||
state.rf_mod = 0; //
|
||||
//opts.pulse_raw_rate_out = 24000; //doing tests with 2 channels at 24000 for 48000 audio default in pulse
|
||||
//opts.pulse_digi_rate_out = 24000; //need to copy this to rtl type in and change rate out to 8000
|
||||
//opts.pulse_raw_out_channels = 2;
|
||||
//opts.pulse_digi_out_channels = 2; //2
|
||||
sprintf (opts.output_name, "DMR/MOTOTRBO");
|
||||
//sprintf (opts.output_name, "DMR/MOTOTRBO Left");
|
||||
fprintf (stderr,"Decoding only DMR/MOTOTRBO frames.\n");
|
||||
}
|
||||
else if (optarg[0] == 'm')
|
||||
|
||||
Reference in New Issue
Block a user