[chirp_devel] Semantics of TSQL?
Jim Unroe
Wed Feb 20 14:14:51 PST 2019
Hi Dan,
I hope I am saying this right and it explains what you are asking.
> When the UI has a tone mode of "TSQL" and rtone and ctone are different, what is the radio supposed to do? My radio had has_ctone = True.
Tone Mode = TONE
This uses the value in Tone column for TX CTCSS. The value in the
ToneSql column is set to the default value (88.5) and ignored.
Tone Mode = TSQL
This uses the value in the ToneSql column for both TX CTCSS and RX
CTCSS. The value in the Tone column is set to the default value (88.5)
and ignored.
If you want the TX and RX CTCSS tones to be different, then you would
want Tone Mode to be set to Cross and Cross Mode set to Tone->Tone.
Then in this case the Tone column would hold the value for the TX
CTCSS tone and the ToneSql column would hold the value for the RX
CTCSS tone.
>
> The documentation is unclear. TSQL is documented to mean "send and receive the same tone. Use the tone in rtone if has_ctone==False. Use the tone in ctone if has_ctone==true.
Since _ctone is true in your case, you would use ctone for both RX and
TX. This is an example of Tone and TSQL from the uv5r.py driver. The
mem.ctone value is used to set both _mem.txtone and _mem.rxtone.
if mem.tmode == "Tone":
_mem.txtone = int(mem.rtone * 10)
_mem.rxtone = 0
elif mem.tmode == "TSQL":
_mem.txtone = int(mem.ctone * 10)
_mem.rxtone = int(mem.ctone * 10
Jim KC9HI
More information about the chirp_devel
mailing list