Quantcast

Odd PTT delays

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Odd PTT delays

Ken Koster
I've been running SvxLink for about a year now and have been quiet happy with
what it can do.   I have a portable repeater that's been carted around the
area,  often using remotetrx to link it back to a network of repeaters in the
central Puget Sound area.   I even had it at the SeaPac convention in Seaside
Oregon this year with the link back to the Seattle area using my cellphone for
the Internet access.  We had people reporting that they had no idea we were
not local.  

But I'm now entering a new phase where I plan on replacing the NHRC dual-port
controller on one of my repeaters and I need both RepeaterLogic and Simplex in
the same box.

I'm seeing some things I don't understand and I'm not yet familiar enough with
all the underlying code to find out what's going on.

Background:   The repeater is a Tait TB7100 on one port of an NHRC controller
with a Motorola Radius as a link to a hub repeater run by another local group.  
The SvxLink configuration has two logics, one Repeaterlogic for the Tait and a
Simplex logic for the link.   CTCSS is used for both and is programmed to only
be transmitted when there is an active carrier on the input of the repeater or
the link.   The repeater has a five second hang time and the link must only
transmit when there is a carrier with CTCSS on the input of the repeater.

At least that's the plan.  It all works fine with the enclosed svxlink.conf
with a couple of strange (to me) behaviors.

First:
This trace is what happens when the repeater has been idle for some time,  or
right after it's booted up.

Why is there a second and a half of delay before the repeater turns on?

Sep 26 2016 11:27:49.341: Voter: The squelch is OPEN (RxRepeater=45.9171)
Sep 26 2016 11:27:50.988: TxRepeater: Turning the transmitter ON
Sep 26 2016 11:27:50.989: TxStream: Turning the transmitter ON
Sep 26 2016 11:27:51.057: TxLink: Turning the transmitter ON

When it does transmit both TxRepeater and TxLink come on,  but why that
initial delay?

Once the system is in use the repeater keys immediately upon squelch opening
and detection of CTCSS but I start to see almost a full second of delay before
the link keys

Sep 26 2016 11:28:17.240: Voter: The squelch is OPEN (RxRepeater=-9.16256)
Sep 26 2016 11:28:17.249: TxRepeater: Turning the transmitter ON
Sep 26 2016 11:28:17.249: TxStream: Turning the transmitter ON
Sep 26 2016 11:28:18.138: TxLink: Turning the transmitter ON


If I change TX_CTCSS=LOGIC,MODULE,ANNOUNCEMENT,SQL_OPEN to TX_CTCSS=ALWAYS the
initial delay is still there.

Sep 26 2016 18:44:26.262: Voter: The squelch is OPEN (RxRepeater=50.6969)
Sep 26 2016 18:44:27.908: TxRepeater: Turning the transmitter ON
Sep 26 2016 18:44:27.909: TxStream: Turning the transmitter ON
Sep 26 2016 18:44:27.977: TxLink: Turning the transmitter ON
Sep 26 2016 18:44:32.288: Voter: The squelch is CLOSED (RxRepeater=0.710925)
Sep 26 2016 18:44:32.288: TxLink: Turning the transmitter OFF

But notice that if the squelch opens,  the link comes up almost immediately
now.

Sep 26 2016 18:44:38.661: Voter: The squelch is OPEN (RxRepeater=48.048)
Sep 26 2016 18:44:38.728: TxLink: Turning the transmitter ON

And as long as I don't let the repeater transmitter drop the delay isn't
there.

Sep 26 2016 18:44:39.800: TxLink: Turning the transmitter OFF
Sep 26 2016 18:44:40.715: Voter: The squelch is CLOSED (RxRepeater=2.46367)
Sep 26 2016 18:44:43.062: Voter: The squelch is OPEN (RxRepeater=50.2836)
Sep 26 2016 18:44:43.126: TxLink: Turning the transmitter ON
Sep 26 2016 18:44:44.194: Voter: The squelch is CLOSED (RxRepeater=-2.12153)
Sep 26 2016 18:44:44.194: TxLink: Turning the transmitter OFF
Sep 26 2016 18:44:46.662: Voter: The squelch is OPEN (RxRepeater=48.7332)
Sep 26 2016 18:44:46.732: TxLink: Turning the transmitter ON
Sep 26 2016 18:44:49.486: Voter: The squelch is CLOSED (RxRepeater=0.594514)
Sep 26 2016 18:44:49.486: TxLink: Turning the transmitter OFF
Sep 26 2016 18:44:52.862: Voter: The squelch is OPEN (RxRepeater=49.3022)
Sep 26 2016 18:44:52.920: TxLink: Turning the transmitter ON
Sep 26 2016 18:44:54.991: Voter: The squelch is CLOSED (RxRepeater=3.18557)
Sep 26 2016 18:44:54.991: TxLink: Turning the transmitter OFF
Sep 26 2016 18:45:01.156: RFLinkLogic: Sending short identification...
Sep 26 2016 18:45:01.576: TxLink: Turning the transmitter ON

Let the repeater drop:
Sep 26 2016 18:45:02.164: TxRepeater: Turning the transmitter OFF
Sep 26 2016 18:45:02.164: TxStream: Turning the transmitter OFF
Sep 26 2016 18:45:04.895: TxLink: Turning the transmitter OFF

And the next time the squelch opens the initial delay is back,

Sep 26 2016 18:45:11.663: Voter: The squelch is OPEN (RxRepeater=49.7368)
Sep 26 2016 18:45:11.669: TxRepeater: Turning the transmitter ON
Sep 26 2016 18:45:11.669: TxStream: Turning the transmitter ON
Sep 26 2016 18:45:12.558: TxLink: Turning the transmitter ON
Sep 26 2016 18:45:15.283: Voter: The squelch is CLOSED (RxRepeater=-1.59951)
Sep 26 2016 18:45:15.283: TxLink: Turning the transmitter OFF

And the delay for the link is back.

Sep 26 2016 18:45:17.562: Voter: The squelch is OPEN (RxRepeater=35.4572)
Sep 26 2016 18:45:17.615: TxLink: Turning the transmitter ON
Sep 26 2016 18:45:20.383: Voter: The squelch is CLOSED (RxRepeater=-1.57927)
Sep 26 2016 18:45:20.383: TxLink: Turning the transmitter OFF
Sep 26 2016 18:45:26.185: TxRepeater: Turning the transmitter OFF
Sep 26 2016 18:45:26.186: TxStream: Turning the transmitter OFF

What am I doing or assuming wrong?

Ken,  N7IPB

###############################################################################
#                                                                            
#
#                Configuration file for the SvxLink server                    
#
#                                                                            
#
###############################################################################

[GLOBAL]
MODULE_PATH=/usr/local/lib/svxlink
LOGICS=RepeaterLogic,RFLinkLogic
CFG_DIR=svxlink.d
TIMESTAMP_FORMAT="%b %d %Y %H:%M:%S.%f"
CARD_SAMPLE_RATE=48000
CARD_CHANNELS=2
LINKS=RepeaterLink

[RepeaterLogic]
TYPE=Repeater
RX=Voter
TX=MultiTx
MODULES=ModuleDtmfRepeater,ModuleMetarInfo,ModuleHelp,ModuleParrot
CALLSIGN=N7RIG
SHORT_IDENT_INTERVAL=10
LONG_IDENT_INTERVAL=60
IDENT_ONLY_AFTER_TX=1
EVENT_HANDLER=/usr/local/share/svxlink/events.tcl
DEFAULT_LANG=en_US
RGR_SOUND_DELAY=0
REPORT_CTCSS=131.8
TX_CTCSS=LOGIC,MODULE,ANNOUNCEMENT,SQL_OPEN
MACROS=RepeaterMacros
FX_GAIN_NORMAL=-6
FX_GAIN_LOW=-12
ONLINE_CMD=98
STATE_PTY=/tmp/state_pty
NO_REPEAT=0
IDLE_TIMEOUT=5
OPEN_ON_SQL=1
OPEN_ON_SQL_AFTER_RPT_CLOSE=15
OPEN_SQL_FLANK=OPEN
IDLE_SOUND_INTERVAL=0
IDENT_NAG_TIMEOUT=5
IDENT_NAG_MIN_TIME=1500

[RxRepeater]
TYPE=Local
AUDIO_DEV=alsa:repeater
AUDIO_CHANNEL=0
SQL_DET=GPIO
SQL_START_DELAY=0
SQL_DELAY=0
SQL_HANGTIME=0
SQL_EXTENDED_HANGTIME=0
SQL_EXTENDED_HANGTIME_THRESH=15
CTCSS_MODE=3
CTCSS_FQ=103.5
CTCSS_BPF_LOW=60
CTCSS_BPF_HIGH=270
SIGLEV_SLOPE=23.56
SIGLEV_OFFSET=10.76
CTCSS_SNR_OFFSET=-2.06
DEEMPHASIS=1
SQL_TAIL_ELIM=150
PREAMP=0.7
PEAK_METER=0
DTMF_DEC_TYPE=INTERNAL
DTMF_MUTING=1
DTMF_HANGTIME=40
HID_DEVICE=/dev/hidraw1
HID_SQL_PIN=VOL_DN
GPIO_SQL_PIN=gpio12

[TxRepeater]
TYPE=Local
AUDIO_DEV=alsa:repeater
AUDIO_CHANNEL=0
PTT_TYPE=GPIO
PTT_PIN=gpio13
TIMEOUT=0
TX_DELAY=200
CTCSS_FQ=131.8
CTCSS_LEVEL=9
PREEMPHASIS=1
DTMF_TONE_LENGTH=100
DTMF_TONE_SPACING=50
DTMF_DIGIT_PWR=-15
MASTER_GAIN=0

[MultiTx]
TYPE=Multi
TRANSMITTERS=TxRepeater,TxStream

[Voter]
TYPE=Voter
RECEIVERS=RxRepeater
VOTING_DELAY=10
BUFFER_LENGTH=0

[RepeaterLink]
CONNECT_LOGICS=RepeaterLogic:85:224.22,RFLinkLogic:86:434.910
DEFAULT_ACTIVE=1
TIMEOUT=600

[TxStream]
TYPE=Local
AUDIO_DEV=alsa:stream-play
AUDIO_CHANNEL=0
PTT_TYPE=NONE
TIMEOUT=7200
TX_DELAY=0
PREEMPHASIS=0


[RFLinkLogic]
TYPE=Simplex
RX=RxLink
TX=TxLink
CALLSIGN=N7RIG
SHORT_IDENT_INTERVAL=15
LONG_IDENT_INTERVAL=0
IDENT_ONLY_AFTER_TX=1
EVENT_HANDLER=/usr/local/share/svxlink/events.tcl
DEFAULT_LANG=en_US
RGR_SOUND_DELAY=0
TX_CTCSS=ALWAYS
MACROS=SimplexMacros
FX_GAIN_NORMAL=0
FX_GAIN_LOW=-12
MUTE_RX_ON_TX=1
MUTE_TX_ON_RX=1


[RxLink]
TYPE=Local
AUDIO_DEV=alsa:repeater
AUDIO_CHANNEL=1
SQL_DET=GPIO
SQL_START_DELAY=0
SQL_DELAY=0
SQL_HANGTIME=200
SQL_EXTENDED_HANGTIME=10
SQL_EXTENDED_HANGTIME_THRESH=15
CTCSS_MODE=3
CTCSS_FQ=131.8
CTCSS_BPF_LOW=60
CTCSS_BPF_HIGH=270
HID_DEVICE=/dev/hidraw0
HID_SQL_PIN=MUTE_PLAY
SIGLEV_SLOPE=22.38
SIGLEV_OFFSET=13.89
CTCSS_SNR_OFFSET=-2.72
DEEMPHASIS=1
SQL_TAIL_ELIM=150
PREAMP=-1.0
PEAK_METER=0
DTMF_DEC_TYPE=INTERNAL
DTMF_MUTING=1
DTMF_HANGTIME=40
GPIO_SQL_PIN=!gpio5

[TxLink]
TYPE=Local
AUDIO_DEV=alsa:repeater
AUDIO_CHANNEL=1
PTT_TYPE=GPIO
PTT_PIN=gpio6
TIMEOUT=0
TX_DELAY=200
CTCSS_FQ=131.8
CTCSS_LEVEL=9
PREEMPHASIS=1
DTMF_TONE_LENGTH=100
DTMF_TONE_SPACING=50
DTMF_DIGIT_PWR=-15
MASTER_GAIN=4.0


--
Ken - N7IPB
Email: [hidden email]
JID: [hidden email]
PGP Sig: F42B EF90 3CD3 31C7 3056  122E 993A 7B2E 5138 C42A
“The best conversation I had was over forty million years ago…. And that was
with a coffee machine.”
------------------------------------------------------------------------------

_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel

signature.asc (169 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Odd PTT delays

Ken Koster
Just a nudge on this.   Does anyone have any answers for me?

I'm starting to dig into the code, but some pointers would be nice.

N7IPB

On Monday, September 26, 2016 6:57:56 PM PDT Ken Koster wrote:

> I've been running SvxLink for about a year now and have been quiet happy
> with what it can do.   I have a portable repeater that's been carted around
> the area,  often using remotetrx to link it back to a network of repeaters
> in the central Puget Sound area.   I even had it at the SeaPac convention
> in Seaside Oregon this year with the link back to the Seattle area using my
> cellphone for the Internet access.  We had people reporting that they had
> no idea we were not local.
>
> But I'm now entering a new phase where I plan on replacing the NHRC
> dual-port controller on one of my repeaters and I need both RepeaterLogic
> and Simplex in the same box.
>
> I'm seeing some things I don't understand and I'm not yet familiar enough
> with all the underlying code to find out what's going on.
>
> Background:   The repeater is a Tait TB7100 on one port of an NHRC
> controller with a Motorola Radius as a link to a hub repeater run by
> another local group. The SvxLink configuration has two logics, one
> Repeaterlogic for the Tait and a Simplex logic for the link.   CTCSS is
> used for both and is programmed to only be transmitted when there is an
> active carrier on the input of the repeater or the link.   The repeater has
> a five second hang time and the link must only transmit when there is a
> carrier with CTCSS on the input of the repeater.
>
> At least that's the plan.  It all works fine with the enclosed svxlink.conf
> with a couple of strange (to me) behaviors.
>
> First:
> This trace is what happens when the repeater has been idle for some time,
> or right after it's booted up.
>
> Why is there a second and a half of delay before the repeater turns on?
>
> Sep 26 2016 11:27:49.341: Voter: The squelch is OPEN (RxRepeater=45.9171)
> Sep 26 2016 11:27:50.988: TxRepeater: Turning the transmitter ON
> Sep 26 2016 11:27:50.989: TxStream: Turning the transmitter ON
> Sep 26 2016 11:27:51.057: TxLink: Turning the transmitter ON
>
> When it does transmit both TxRepeater and TxLink come on,  but why that
> initial delay?
>
> Once the system is in use the repeater keys immediately upon squelch opening
> and detection of CTCSS but I start to see almost a full second of delay
> before the link keys
>
> Sep 26 2016 11:28:17.240: Voter: The squelch is OPEN (RxRepeater=-9.16256)
> Sep 26 2016 11:28:17.249: TxRepeater: Turning the transmitter ON
> Sep 26 2016 11:28:17.249: TxStream: Turning the transmitter ON
> Sep 26 2016 11:28:18.138: TxLink: Turning the transmitter ON
>
>
> If I change TX_CTCSS=LOGIC,MODULE,ANNOUNCEMENT,SQL_OPEN to TX_CTCSS=ALWAYS
> the initial delay is still there.
>
> Sep 26 2016 18:44:26.262: Voter: The squelch is OPEN (RxRepeater=50.6969)
> Sep 26 2016 18:44:27.908: TxRepeater: Turning the transmitter ON
> Sep 26 2016 18:44:27.909: TxStream: Turning the transmitter ON
> Sep 26 2016 18:44:27.977: TxLink: Turning the transmitter ON
> Sep 26 2016 18:44:32.288: Voter: The squelch is CLOSED (RxRepeater=0.710925)
> Sep 26 2016 18:44:32.288: TxLink: Turning the transmitter OFF
>
> But notice that if the squelch opens,  the link comes up almost immediately
> now.
>
> Sep 26 2016 18:44:38.661: Voter: The squelch is OPEN (RxRepeater=48.048)
> Sep 26 2016 18:44:38.728: TxLink: Turning the transmitter ON
>
> And as long as I don't let the repeater transmitter drop the delay isn't
> there.
>
> Sep 26 2016 18:44:39.800: TxLink: Turning the transmitter OFF
> Sep 26 2016 18:44:40.715: Voter: The squelch is CLOSED (RxRepeater=2.46367)
> Sep 26 2016 18:44:43.062: Voter: The squelch is OPEN (RxRepeater=50.2836)
> Sep 26 2016 18:44:43.126: TxLink: Turning the transmitter ON
> Sep 26 2016 18:44:44.194: Voter: The squelch is CLOSED (RxRepeater=-2.12153)
> Sep 26 2016 18:44:44.194: TxLink: Turning the transmitter OFF
> Sep 26 2016 18:44:46.662: Voter: The squelch is OPEN (RxRepeater=48.7332)
> Sep 26 2016 18:44:46.732: TxLink: Turning the transmitter ON
> Sep 26 2016 18:44:49.486: Voter: The squelch is CLOSED (RxRepeater=0.594514)
> Sep 26 2016 18:44:49.486: TxLink: Turning the transmitter OFF
> Sep 26 2016 18:44:52.862: Voter: The squelch is OPEN (RxRepeater=49.3022)
> Sep 26 2016 18:44:52.920: TxLink: Turning the transmitter ON
> Sep 26 2016 18:44:54.991: Voter: The squelch is CLOSED (RxRepeater=3.18557)
> Sep 26 2016 18:44:54.991: TxLink: Turning the transmitter OFF
> Sep 26 2016 18:45:01.156: RFLinkLogic: Sending short identification...
> Sep 26 2016 18:45:01.576: TxLink: Turning the transmitter ON
>
> Let the repeater drop:
> Sep 26 2016 18:45:02.164: TxRepeater: Turning the transmitter OFF
> Sep 26 2016 18:45:02.164: TxStream: Turning the transmitter OFF
> Sep 26 2016 18:45:04.895: TxLink: Turning the transmitter OFF
>
> And the next time the squelch opens the initial delay is back,
>
> Sep 26 2016 18:45:11.663: Voter: The squelch is OPEN (RxRepeater=49.7368)
> Sep 26 2016 18:45:11.669: TxRepeater: Turning the transmitter ON
> Sep 26 2016 18:45:11.669: TxStream: Turning the transmitter ON
> Sep 26 2016 18:45:12.558: TxLink: Turning the transmitter ON
> Sep 26 2016 18:45:15.283: Voter: The squelch is CLOSED (RxRepeater=-1.59951)
> Sep 26 2016 18:45:15.283: TxLink: Turning the transmitter OFF
>
> And the delay for the link is back.
>
> Sep 26 2016 18:45:17.562: Voter: The squelch is OPEN (RxRepeater=35.4572)
> Sep 26 2016 18:45:17.615: TxLink: Turning the transmitter ON
> Sep 26 2016 18:45:20.383: Voter: The squelch is CLOSED (RxRepeater=-1.57927)
> Sep 26 2016 18:45:20.383: TxLink: Turning the transmitter OFF
> Sep 26 2016 18:45:26.185: TxRepeater: Turning the transmitter OFF
> Sep 26 2016 18:45:26.186: TxStream: Turning the transmitter OFF
>
> What am I doing or assuming wrong?
>
> Ken,  N7IPB
>
> ############################################################################
> ### #
> #
> #                Configuration file for the SvxLink server
> #
> #
> #
> ############################################################################
> ###
>
> [GLOBAL]
> MODULE_PATH=/usr/local/lib/svxlink
> LOGICS=RepeaterLogic,RFLinkLogic
> CFG_DIR=svxlink.d
> TIMESTAMP_FORMAT="%b %d %Y %H:%M:%S.%f"
> CARD_SAMPLE_RATE=48000
> CARD_CHANNELS=2
> LINKS=RepeaterLink
>
> [RepeaterLogic]
> TYPE=Repeater
> RX=Voter
> TX=MultiTx
> MODULES=ModuleDtmfRepeater,ModuleMetarInfo,ModuleHelp,ModuleParrot
> CALLSIGN=N7RIG
> SHORT_IDENT_INTERVAL=10
> LONG_IDENT_INTERVAL=60
> IDENT_ONLY_AFTER_TX=1
> EVENT_HANDLER=/usr/local/share/svxlink/events.tcl
> DEFAULT_LANG=en_US
> RGR_SOUND_DELAY=0
> REPORT_CTCSS=131.8
> TX_CTCSS=LOGIC,MODULE,ANNOUNCEMENT,SQL_OPEN
> MACROS=RepeaterMacros
> FX_GAIN_NORMAL=-6
> FX_GAIN_LOW=-12
> ONLINE_CMD=98
> STATE_PTY=/tmp/state_pty
> NO_REPEAT=0
> IDLE_TIMEOUT=5
> OPEN_ON_SQL=1
> OPEN_ON_SQL_AFTER_RPT_CLOSE=15
> OPEN_SQL_FLANK=OPEN
> IDLE_SOUND_INTERVAL=0
> IDENT_NAG_TIMEOUT=5
> IDENT_NAG_MIN_TIME=1500
>
> [RxRepeater]
> TYPE=Local
> AUDIO_DEV=alsa:repeater
> AUDIO_CHANNEL=0
> SQL_DET=GPIO
> SQL_START_DELAY=0
> SQL_DELAY=0
> SQL_HANGTIME=0
> SQL_EXTENDED_HANGTIME=0
> SQL_EXTENDED_HANGTIME_THRESH=15
> CTCSS_MODE=3
> CTCSS_FQ=103.5
> CTCSS_BPF_LOW=60
> CTCSS_BPF_HIGH=270
> SIGLEV_SLOPE=23.56
> SIGLEV_OFFSET=10.76
> CTCSS_SNR_OFFSET=-2.06
> DEEMPHASIS=1
> SQL_TAIL_ELIM=150
> PREAMP=0.7
> PEAK_METER=0
> DTMF_DEC_TYPE=INTERNAL
> DTMF_MUTING=1
> DTMF_HANGTIME=40
> HID_DEVICE=/dev/hidraw1
> HID_SQL_PIN=VOL_DN
> GPIO_SQL_PIN=gpio12
>
> [TxRepeater]
> TYPE=Local
> AUDIO_DEV=alsa:repeater
> AUDIO_CHANNEL=0
> PTT_TYPE=GPIO
> PTT_PIN=gpio13
> TIMEOUT=0
> TX_DELAY=200
> CTCSS_FQ=131.8
> CTCSS_LEVEL=9
> PREEMPHASIS=1
> DTMF_TONE_LENGTH=100
> DTMF_TONE_SPACING=50
> DTMF_DIGIT_PWR=-15
> MASTER_GAIN=0
>
> [MultiTx]
> TYPE=Multi
> TRANSMITTERS=TxRepeater,TxStream
>
> [Voter]
> TYPE=Voter
> RECEIVERS=RxRepeater
> VOTING_DELAY=10
> BUFFER_LENGTH=0
>
> [RepeaterLink]
> CONNECT_LOGICS=RepeaterLogic:85:224.22,RFLinkLogic:86:434.910
> DEFAULT_ACTIVE=1
> TIMEOUT=600
>
> [TxStream]
> TYPE=Local
> AUDIO_DEV=alsa:stream-play
> AUDIO_CHANNEL=0
> PTT_TYPE=NONE
> TIMEOUT=7200
> TX_DELAY=0
> PREEMPHASIS=0
>
>
> [RFLinkLogic]
> TYPE=Simplex
> RX=RxLink
> TX=TxLink
> CALLSIGN=N7RIG
> SHORT_IDENT_INTERVAL=15
> LONG_IDENT_INTERVAL=0
> IDENT_ONLY_AFTER_TX=1
> EVENT_HANDLER=/usr/local/share/svxlink/events.tcl
> DEFAULT_LANG=en_US
> RGR_SOUND_DELAY=0
> TX_CTCSS=ALWAYS
> MACROS=SimplexMacros
> FX_GAIN_NORMAL=0
> FX_GAIN_LOW=-12
> MUTE_RX_ON_TX=1
> MUTE_TX_ON_RX=1
>
>
> [RxLink]
> TYPE=Local
> AUDIO_DEV=alsa:repeater
> AUDIO_CHANNEL=1
> SQL_DET=GPIO
> SQL_START_DELAY=0
> SQL_DELAY=0
> SQL_HANGTIME=200
> SQL_EXTENDED_HANGTIME=10
> SQL_EXTENDED_HANGTIME_THRESH=15
> CTCSS_MODE=3
> CTCSS_FQ=131.8
> CTCSS_BPF_LOW=60
> CTCSS_BPF_HIGH=270
> HID_DEVICE=/dev/hidraw0
> HID_SQL_PIN=MUTE_PLAY
> SIGLEV_SLOPE=22.38
> SIGLEV_OFFSET=13.89
> CTCSS_SNR_OFFSET=-2.72
> DEEMPHASIS=1
> SQL_TAIL_ELIM=150
> PREAMP=-1.0
> PEAK_METER=0
> DTMF_DEC_TYPE=INTERNAL
> DTMF_MUTING=1
> DTMF_HANGTIME=40
> GPIO_SQL_PIN=!gpio5
>
> [TxLink]
> TYPE=Local
> AUDIO_DEV=alsa:repeater
> AUDIO_CHANNEL=1
> PTT_TYPE=GPIO
> PTT_PIN=gpio6
> TIMEOUT=0
> TX_DELAY=200
> CTCSS_FQ=131.8
> CTCSS_LEVEL=9
> PREEMPHASIS=1
> DTMF_TONE_LENGTH=100
> DTMF_TONE_SPACING=50
> DTMF_DIGIT_PWR=-15
> MASTER_GAIN=4.0

--
Ken - N7IPB
Email: [hidden email]
JID: [hidden email]
PGP Sig: F42B EF90 3CD3 31C7 3056  122E 993A 7B2E 5138 C42A
“The best conversation I had was over forty million years ago…. And that was
with a coffee machine.”
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel

signature.asc (169 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Odd PTT delays

Joe Erlewein N8CN

I am thinking about duplicating your setup to see if I get the same results..

Did you try without this set?
OPEN_ON_SQL_AFTER_RPT_CLOSE=15

Joe


On Oct 9, 2016 11:31 AM, "Ken Koster" <[hidden email]> wrote:
Just a nudge on this.   Does anyone have any answers for me?

I'm starting to dig into the code, but some pointers would be nice.

N7IPB

On Monday, September 26, 2016 6:57:56 PM PDT Ken Koster wrote:
> I've been running SvxLink for about a year now and have been quiet happy
> with what it can do.   I have a portable repeater that's been carted around
> the area,  often using remotetrx to link it back to a network of repeaters
> in the central Puget Sound area.   I even had it at the SeaPac convention
> in Seaside Oregon this year with the link back to the Seattle area using my
> cellphone for the Internet access.  We had people reporting that they had
> no idea we were not local.
>
> But I'm now entering a new phase where I plan on replacing the NHRC
> dual-port controller on one of my repeaters and I need both RepeaterLogic
> and Simplex in the same box.
>
> I'm seeing some things I don't understand and I'm not yet familiar enough
> with all the underlying code to find out what's going on.
>
> Background:   The repeater is a Tait TB7100 on one port of an NHRC
> controller with a Motorola Radius as a link to a hub repeater run by
> another local group. The SvxLink configuration has two logics, one
> Repeaterlogic for the Tait and a Simplex logic for the link.   CTCSS is
> used for both and is programmed to only be transmitted when there is an
> active carrier on the input of the repeater or the link.   The repeater has
> a five second hang time and the link must only transmit when there is a
> carrier with CTCSS on the input of the repeater.
>
> At least that's the plan.  It all works fine with the enclosed svxlink.conf
> with a couple of strange (to me) behaviors.
>
> First:
> This trace is what happens when the repeater has been idle for some time,
> or right after it's booted up.
>
> Why is there a second and a half of delay before the repeater turns on?
>
> Sep 26 2016 11:27:49.341: Voter: The squelch is OPEN (RxRepeater=45.9171)
> Sep 26 2016 11:27:50.988: TxRepeater: Turning the transmitter ON
> Sep 26 2016 11:27:50.989: TxStream: Turning the transmitter ON
> Sep 26 2016 11:27:51.057: TxLink: Turning the transmitter ON
>
> When it does transmit both TxRepeater and TxLink come on,  but why that
> initial delay?
>
> Once the system is in use the repeater keys immediately upon squelch opening
> and detection of CTCSS but I start to see almost a full second of delay
> before the link keys
>
> Sep 26 2016 11:28:17.240: Voter: The squelch is OPEN (RxRepeater=-9.16256)
> Sep 26 2016 11:28:17.249: TxRepeater: Turning the transmitter ON
> Sep 26 2016 11:28:17.249: TxStream: Turning the transmitter ON
> Sep 26 2016 11:28:18.138: TxLink: Turning the transmitter ON
>
>
> If I change TX_CTCSS=LOGIC,MODULE,ANNOUNCEMENT,SQL_OPEN to TX_CTCSS=ALWAYS
> the initial delay is still there.
>
> Sep 26 2016 18:44:26.262: Voter: The squelch is OPEN (RxRepeater=50.6969)
> Sep 26 2016 18:44:27.908: TxRepeater: Turning the transmitter ON
> Sep 26 2016 18:44:27.909: TxStream: Turning the transmitter ON
> Sep 26 2016 18:44:27.977: TxLink: Turning the transmitter ON
> Sep 26 2016 18:44:32.288: Voter: The squelch is CLOSED (RxRepeater=0.710925)
> Sep 26 2016 18:44:32.288: TxLink: Turning the transmitter OFF
>
> But notice that if the squelch opens,  the link comes up almost immediately
> now.
>
> Sep 26 2016 18:44:38.661: Voter: The squelch is OPEN (RxRepeater=48.048)
> Sep 26 2016 18:44:38.728: TxLink: Turning the transmitter ON
>
> And as long as I don't let the repeater transmitter drop the delay isn't
> there.
>
> Sep 26 2016 18:44:39.800: TxLink: Turning the transmitter OFF
> Sep 26 2016 18:44:40.715: Voter: The squelch is CLOSED (RxRepeater=2.46367)
> Sep 26 2016 18:44:43.062: Voter: The squelch is OPEN (RxRepeater=50.2836)
> Sep 26 2016 18:44:43.126: TxLink: Turning the transmitter ON
> Sep 26 2016 18:44:44.194: Voter: The squelch is CLOSED (RxRepeater=-2.12153)
> Sep 26 2016 18:44:44.194: TxLink: Turning the transmitter OFF
> Sep 26 2016 18:44:46.662: Voter: The squelch is OPEN (RxRepeater=48.7332)
> Sep 26 2016 18:44:46.732: TxLink: Turning the transmitter ON
> Sep 26 2016 18:44:49.486: Voter: The squelch is CLOSED (RxRepeater=0.594514)
> Sep 26 2016 18:44:49.486: TxLink: Turning the transmitter OFF
> Sep 26 2016 18:44:52.862: Voter: The squelch is OPEN (RxRepeater=49.3022)
> Sep 26 2016 18:44:52.920: TxLink: Turning the transmitter ON
> Sep 26 2016 18:44:54.991: Voter: The squelch is CLOSED (RxRepeater=3.18557)
> Sep 26 2016 18:44:54.991: TxLink: Turning the transmitter OFF
> Sep 26 2016 18:45:01.156: RFLinkLogic: Sending short identification...
> Sep 26 2016 18:45:01.576: TxLink: Turning the transmitter ON
>
> Let the repeater drop:
> Sep 26 2016 18:45:02.164: TxRepeater: Turning the transmitter OFF
> Sep 26 2016 18:45:02.164: TxStream: Turning the transmitter OFF
> Sep 26 2016 18:45:04.895: TxLink: Turning the transmitter OFF
>
> And the next time the squelch opens the initial delay is back,
>
> Sep 26 2016 18:45:11.663: Voter: The squelch is OPEN (RxRepeater=49.7368)
> Sep 26 2016 18:45:11.669: TxRepeater: Turning the transmitter ON
> Sep 26 2016 18:45:11.669: TxStream: Turning the transmitter ON
> Sep 26 2016 18:45:12.558: TxLink: Turning the transmitter ON
> Sep 26 2016 18:45:15.283: Voter: The squelch is CLOSED (RxRepeater=-1.59951)
> Sep 26 2016 18:45:15.283: TxLink: Turning the transmitter OFF
>
> And the delay for the link is back.
>
> Sep 26 2016 18:45:17.562: Voter: The squelch is OPEN (RxRepeater=35.4572)
> Sep 26 2016 18:45:17.615: TxLink: Turning the transmitter ON
> Sep 26 2016 18:45:20.383: Voter: The squelch is CLOSED (RxRepeater=-1.57927)
> Sep 26 2016 18:45:20.383: TxLink: Turning the transmitter OFF
> Sep 26 2016 18:45:26.185: TxRepeater: Turning the transmitter OFF
> Sep 26 2016 18:45:26.186: TxStream: Turning the transmitter OFF
>
> What am I doing or assuming wrong?
>
> Ken,  N7IPB
>
> ############################################################################
> ### #
> #
> #                Configuration file for the SvxLink server
> #
> #
> #
> ############################################################################
> ###
>
> [GLOBAL]
> MODULE_PATH=/usr/local/lib/svxlink
> LOGICS=RepeaterLogic,RFLinkLogic
> CFG_DIR=svxlink.d
> TIMESTAMP_FORMAT="%b %d %Y %H:%M:%S.%f"
> CARD_SAMPLE_RATE=48000
> CARD_CHANNELS=2
> LINKS=RepeaterLink
>
> [RepeaterLogic]
> TYPE=Repeater
> RX=Voter
> TX=MultiTx
> MODULES=ModuleDtmfRepeater,ModuleMetarInfo,ModuleHelp,ModuleParrot
> CALLSIGN=N7RIG
> SHORT_IDENT_INTERVAL=10
> LONG_IDENT_INTERVAL=60
> IDENT_ONLY_AFTER_TX=1
> EVENT_HANDLER=/usr/local/share/svxlink/events.tcl
> DEFAULT_LANG=en_US
> RGR_SOUND_DELAY=0
> REPORT_CTCSS=131.8
> TX_CTCSS=LOGIC,MODULE,ANNOUNCEMENT,SQL_OPEN
> MACROS=RepeaterMacros
> FX_GAIN_NORMAL=-6
> FX_GAIN_LOW=-12
> ONLINE_CMD=98
> STATE_PTY=/tmp/state_pty
> NO_REPEAT=0
> IDLE_TIMEOUT=5
> OPEN_ON_SQL=1
> OPEN_ON_SQL_AFTER_RPT_CLOSE=15
> OPEN_SQL_FLANK=OPEN
> IDLE_SOUND_INTERVAL=0
> IDENT_NAG_TIMEOUT=5
> IDENT_NAG_MIN_TIME=1500
>
> [RxRepeater]
> TYPE=Local
> AUDIO_DEV=alsa:repeater
> AUDIO_CHANNEL=0
> SQL_DET=GPIO
> SQL_START_DELAY=0
> SQL_DELAY=0
> SQL_HANGTIME=0
> SQL_EXTENDED_HANGTIME=0
> SQL_EXTENDED_HANGTIME_THRESH=15
> CTCSS_MODE=3
> CTCSS_FQ=103.5
> CTCSS_BPF_LOW=60
> CTCSS_BPF_HIGH=270
> SIGLEV_SLOPE=23.56
> SIGLEV_OFFSET=10.76
> CTCSS_SNR_OFFSET=-2.06
> DEEMPHASIS=1
> SQL_TAIL_ELIM=150
> PREAMP=0.7
> PEAK_METER=0
> DTMF_DEC_TYPE=INTERNAL
> DTMF_MUTING=1
> DTMF_HANGTIME=40
> HID_DEVICE=/dev/hidraw1
> HID_SQL_PIN=VOL_DN
> GPIO_SQL_PIN=gpio12
>
> [TxRepeater]
> TYPE=Local
> AUDIO_DEV=alsa:repeater
> AUDIO_CHANNEL=0
> PTT_TYPE=GPIO
> PTT_PIN=gpio13
> TIMEOUT=0
> TX_DELAY=200
> CTCSS_FQ=131.8
> CTCSS_LEVEL=9
> PREEMPHASIS=1
> DTMF_TONE_LENGTH=100
> DTMF_TONE_SPACING=50
> DTMF_DIGIT_PWR=-15
> MASTER_GAIN=0
>
> [MultiTx]
> TYPE=Multi
> TRANSMITTERS=TxRepeater,TxStream
>
> [Voter]
> TYPE=Voter
> RECEIVERS=RxRepeater
> VOTING_DELAY=10
> BUFFER_LENGTH=0
>
> [RepeaterLink]
> CONNECT_LOGICS=RepeaterLogic:85:224.22,RFLinkLogic:86:434.910
> DEFAULT_ACTIVE=1
> TIMEOUT=600
>
> [TxStream]
> TYPE=Local
> AUDIO_DEV=alsa:stream-play
> AUDIO_CHANNEL=0
> PTT_TYPE=NONE
> TIMEOUT=7200
> TX_DELAY=0
> PREEMPHASIS=0
>
>
> [RFLinkLogic]
> TYPE=Simplex
> RX=RxLink
> TX=TxLink
> CALLSIGN=N7RIG
> SHORT_IDENT_INTERVAL=15
> LONG_IDENT_INTERVAL=0
> IDENT_ONLY_AFTER_TX=1
> EVENT_HANDLER=/usr/local/share/svxlink/events.tcl
> DEFAULT_LANG=en_US
> RGR_SOUND_DELAY=0
> TX_CTCSS=ALWAYS
> MACROS=SimplexMacros
> FX_GAIN_NORMAL=0
> FX_GAIN_LOW=-12
> MUTE_RX_ON_TX=1
> MUTE_TX_ON_RX=1
>
>
> [RxLink]
> TYPE=Local
> AUDIO_DEV=alsa:repeater
> AUDIO_CHANNEL=1
> SQL_DET=GPIO
> SQL_START_DELAY=0
> SQL_DELAY=0
> SQL_HANGTIME=200
> SQL_EXTENDED_HANGTIME=10
> SQL_EXTENDED_HANGTIME_THRESH=15
> CTCSS_MODE=3
> CTCSS_FQ=131.8
> CTCSS_BPF_LOW=60
> CTCSS_BPF_HIGH=270
> HID_DEVICE=/dev/hidraw0
> HID_SQL_PIN=MUTE_PLAY
> SIGLEV_SLOPE=22.38
> SIGLEV_OFFSET=13.89
> CTCSS_SNR_OFFSET=-2.72
> DEEMPHASIS=1
> SQL_TAIL_ELIM=150
> PREAMP=-1.0
> PEAK_METER=0
> DTMF_DEC_TYPE=INTERNAL
> DTMF_MUTING=1
> DTMF_HANGTIME=40
> GPIO_SQL_PIN=!gpio5
>
> [TxLink]
> TYPE=Local
> AUDIO_DEV=alsa:repeater
> AUDIO_CHANNEL=1
> PTT_TYPE=GPIO
> PTT_PIN=gpio6
> TIMEOUT=0
> TX_DELAY=200
> CTCSS_FQ=131.8
> CTCSS_LEVEL=9
> PREEMPHASIS=1
> DTMF_TONE_LENGTH=100
> DTMF_TONE_SPACING=50
> DTMF_DIGIT_PWR=-15
> MASTER_GAIN=4.0


--
Ken - N7IPB
Email: [hidden email]
JID: [hidden email]
PGP Sig: F42B EF90 3CD3 31C7 3056  122E 993A 7B2E 5138 C42A
“The best conversation I had was over forty million years ago…. And that was
with a coffee machine.”
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel
Loading...