From 8cbb30b036527bfdc5eaf225ba45b45251976d9e Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Sun, 10 Sep 2023 21:15:56 -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 4133886..3a9fb14 100644 --- a/src/dmr_csbk.c +++ b/src/dmr_csbk.c @@ -261,6 +261,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; @@ -272,6 +284,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;