From 3d2a68b4bb3681f19f20dc405ba56e3a36106688 Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Tue, 12 Sep 2023 17:36:36 -0400 Subject: [PATCH] DMR T3 Tweak to TG and SRC Values when Tuning; --- src/dmr_csbk.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/dmr_csbk.c b/src/dmr_csbk.c index 5b01695..0839eac 100644 --- a/src/dmr_csbk.c +++ b/src/dmr_csbk.c @@ -248,6 +248,18 @@ void dmr_cspdu (dsd_opts * opts, dsd_state * state, uint8_t cs_pdu_bits[], uint8 //RIGCTL if (opts->use_rigctl == 1) { + //we will want to set these values here, some Tier 3 systems prefer P_Protects (Tait) over VLC and TLC headers + //and is faster than waiting on good embedded link control + if (lcn == 0) + { + state->lasttg = target; + state->lastsrc = source; + } + if (lcn == 1) + { + state->lasttgR = target; + state->lastsrcR = source; + } if (opts->setmod_bw != 0 ) SetModulation(opts->rigctl_sockfd, opts->setmod_bw); SetFreq(opts->rigctl_sockfd, freq); state->p25_vc_freq[0] = state->p25_vc_freq[1] = freq; @@ -259,6 +271,18 @@ void dmr_cspdu (dsd_opts * opts, dsd_state * state, uint8_t cs_pdu_bits[], uint8 else if (opts->audio_in_type == 3) { #ifdef USE_RTLSDR + //we will want to set these values here, some Tier 3 systems prefer P_Protects (Tait) over VLC and TLC headers + //and is faster than waiting on good embedded link control + if (lcn == 0) + { + state->lasttg = target; + state->lastsrc = source; + } + if (lcn == 1) + { + state->lasttgR = target; + state->lastsrcR = source; + } rtl_dev_tune (opts, freq); state->p25_vc_freq[0] = state->p25_vc_freq[1] = freq; opts->p25_is_tuned = 1;