DtmfRepeater

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

DtmfRepeater

Ken Koster
I'm using SvxLink v1.5.99.8 and recently tried to activate ModuleDtmfRepeater
and am having problems getting it to work.

Commanding dtmfrepeater On/Off works and the appropriate announcement is made
but no tones are repeated.

The log file shows the DtmfRepeater module receiving the digits and that's it.

Jul 19 2017 07:26:04.497: RepeaterLogic: digit=1
Jul 19 2017 07:26:04.497: DTMF digit 1 (180ms) received in module DtmfRepeater
Jul 19 2017 07:26:05.175: RepeaterVoter: The squelch is CLOSED
(RxRepeater=-1.88828)
Jul 19 2017 07:26:10.184: TxRepeater: Turning the transmitter OFF

If I hack the code in ModuleDtmfRepeater.cpp to remove the isWriting Message
test it seems to work but I haven't gotten any farther in understanding why.

void ModuleDtmfRepeater::onRepeatDelayExpired(void)
{
  repeat_delay_timer.setEnable(false);
// Hack to allow dtmfrepeater to work - remove test for isWritingMessage N7IPB
//  if (isWritingMessage())
//  {
    sendStoredDigits();
//  }
} /* ModuleDtmfRepeater::onRepeatDelayExpired */

Any suggestions?
--
Ken - N7IPB
Email: [hidden email]
JID: [hidden email]
PGP Sig: F42B EF90 3CD3 31C7 3056  122E 993A 7B2E 5138 C42A
Life isn't like a bowl of cherries.....
It's more like a jar of jalapenos.
What you do today is likely to come back and burn you in the butt tomorrow.
------------------------------------------------------------------------------
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 (201 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: DtmfRepeater

svxlink-devel mailing list
Hi Ken,

Now that is strange. It sure works here so there probably is some
configuration problem that trigger that behavior. Please post your
configuration for the RepeaterLogic and the DtmfRepeater module.

73's de SM0SVX / Tobias

On 07/19/2017 04:40 PM, Ken Koster wrote:

> I'm using SvxLink v1.5.99.8 and recently tried to activate ModuleDtmfRepeater
> and am having problems getting it to work.
>
> Commanding dtmfrepeater On/Off works and the appropriate announcement is made
> but no tones are repeated.
>
> The log file shows the DtmfRepeater module receiving the digits and that's it.
>
> Jul 19 2017 07:26:04.497: RepeaterLogic: digit=1
> Jul 19 2017 07:26:04.497: DTMF digit 1 (180ms) received in module DtmfRepeater
> Jul 19 2017 07:26:05.175: RepeaterVoter: The squelch is CLOSED
> (RxRepeater=-1.88828)
> Jul 19 2017 07:26:10.184: TxRepeater: Turning the transmitter OFF
>
> If I hack the code in ModuleDtmfRepeater.cpp to remove the isWriting Message
> test it seems to work but I haven't gotten any farther in understanding why.
>
> void ModuleDtmfRepeater::onRepeatDelayExpired(void)
> {
>    repeat_delay_timer.setEnable(false);
> // Hack to allow dtmfrepeater to work - remove test for isWritingMessage N7IPB
> //  if (isWritingMessage())
> //  {
>      sendStoredDigits();
> //  }
> } /* ModuleDtmfRepeater::onRepeatDelayExpired */
>
> Any suggestions?


------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: DtmfRepeater

Ken Koster
On Wednesday, July 19, 2017 10:45:23 AM PDT Tobias Blomberg via Svxlink-devel
wrote:
> Hi Ken,
>
> Now that is strange. It sure works here so there probably is some
> configuration problem that trigger that behavior. Please post your
> configuration for the RepeaterLogic and the DtmfRepeater module.

Note:  In my normal system the Repeater and Simplex logics have been replaced
with modified ones in events.d/local  but for this testing I replaced them
with stock ones with only the namespace changed.

[ModuleDtmfRepeater]
NAME=DtmfRepeater
PLUGIN_NAME=DtmfRepeater
ID=4
TIMEOUT=60
REPEAT_DELAY=500

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

[GLOBAL]
MODULE_PATH=/usr/lib/arm-linux-gnueabihf/svxlink
LOGICS=RepeaterLogic,RFLinkLogic
CFG_DIR=/etc/svxlink/svxlink.d
TIMESTAMP_FORMAT="%b %d %Y %H:%M:%S.%f"
CARD_SAMPLE_RATE=48000
CARD_CHANNELS=2
#LOCATION_INFO=LocationInfo
LINKS=RepeaterLink

#
# Repeater Sections
#
[RepeaterLogic]
TYPE=Repeater
RX=RepeaterVoter
TX=RepeaterMultiTx
MODULES=ModuleHelp,ModuleParrot,ModuleEchoLink,ModuleDtmfRepeater
CALLSIGN=N7RIG
SHORT_IDENT_INTERVAL=10
LONG_IDENT_INTERVAL=60
IDENT_ONLY_AFTER_TX=4
#EXEC_CMD_ON_SQL_CLOSE=500
EVENT_HANDLER=/usr/share/svxlink/events.tcl
DEFAULT_LANG=en_US
RGR_SOUND_DELAY=300
REPORT_CTCSS=103.5
TX_CTCSS=LOGIC,MODULE,ANNOUNCEMENT,SQL_OPEN
MACROS=RepeaterMacros
#SEL5_MACRO_RANGE=03400,03499
FX_GAIN_NORMAL=-6
FX_GAIN_LOW=-12
QSO_RECORDER=842:QsoRecorder
#NO_REPEAT=1
IDLE_TIMEOUT=5
#OPEN_ON_1750=1000
#OPEN_ON_CTCSS=136:2000
#OPEN_ON_DTMF=*
OPEN_ON_SQL=1
#OPEN_ON_SEL5=01234
OPEN_SQL_FLANK=OPEN
#OPEN_ON_SQL_AFTER_RPT_CLOSE=10
IDLE_SOUND_INTERVAL=0
#SQL_FLAP_SUP_MIN_TIME=1000
#SQL_FLAP_SUP_MAX_COUNT=10
#ACTIVATE_MODULE_ON_LONG_CMD=4:EchoLink
IDENT_NAG_TIMEOUT=5
IDENT_NAG_MIN_TIME=50
ONLINE_CMD=123
STATE_PTY=/tmp/state_repeater
DTMF_CTRL_PTY=/tmp/repeater_dtmf_ctrl

#
# Local Repeater Receiver Sections
#
[RxRepeater]
TYPE=Local
AUDIO_DEV=alsa:repeater
AUDIO_CHANNEL=1
SQL_DET=GPIO
GPIO_SQL_PIN=!gpio13
SQL_START_DELAY=0
SQL_DELAY=0
#20
SQL_HANGTIME=100
SQL_EXTENDED_HANGTIME=1000
SQL_EXTENDED_HANGTIME_THRESH=15
SQL_TIMEOUT=600
CTCSS_MODE=3
CTCSS_FQ=103.5
CTCSS_OPEN_THRESH=15
CTCSS_CLOSE_THRESH=5
CTCSS_BPF_LOW=60
CTCSS_BPF_HIGH=270
#SIGLEV_DET=NOISE
SIGLEV_OPEN_THRESH=30
SIGLEV_CLOSE_THRESH=10
SIGLEV_SLOPE=23.07
SIGLEV_OFFSET=6.82
CTCSS_SNR_OFFSET=-2.75
DEEMPHASIS=1
SQL_TAIL_ELIM=150
PREAMP=0
#PEAK_METER=0
DTMF_DEC_TYPE=INTERNAL
DTMF_MUTING=1
DTMF_HANGTIME=40

#
# Local Repeater Transmitter Sections
#
[TxRepeater]
TYPE=Local
AUDIO_DEV=alsa:repeater
AUDIO_CHANNEL=1
PTT_TYPE=GPIO
PTT_PIN=gpio5
#PTT_HANGTIME=1000
TIMEOUT=0
TX_DELAY=50
CTCSS_FQ=103.5
CTCSS_LEVEL=6
PREEMPHASIS=1
DTMF_TONE_LENGTH=100
DTMF_TONE_SPACING=150
DTMF_DIGIT_PWR=-15
MASTER_GAIN=0

#
# Audio stream to darkice
# This connects us to darkice which then streams the repeater system audio to
# an Internet connected Icecast server
#
[TxStream]
TYPE=Local
AUDIO_DEV=alsa:stream-play
AUDIO_CHANNEL=0
PTT_TYPE=NONE
TIMEOUT=7200
TX_DELAY=0
PREEMPHASIS=0

#
# Repeater Mactos
#
[RepeaterMacros]
1=EchoLink:9999#
9=Parrot:0123456789#
03400=EchoLink:9999#

#
# Repeater Voter
#
[RepeaterVoter]
TYPE=Voter
RECEIVERS=RxRepeater
VOTING_DELAY=20
BUFFER_LENGTH=0
#REVOTE_INTERVAL=1000
#HYSTERESIS=50
#SQL_CLOSE_REVOTE_DELAY=500
#RX_SWITCH_DELAY=500
COMMAND_PTY=/tmp/voter_ctrl

#
# RF Link Voter
# We do this not because it needs voting but to get the
# state information for the web page
#
[RFLinkVoter]
TYPE=Voter
RECEIVERS=RxLink
VOTING_DELAY=20
BUFFER_LENGTH=0
#REVOTE_INTERVAL=1000
#HYSTERESIS=50
#SQL_CLOSE_REVOTE_DELAY=500
#RX_SWITCH_DELAY=500
#COMMAND_PTY=/tmp/rflink_voter_ctrl

#
# Repeater Transmitters
#
[RepeaterMultiTx]
TYPE=Multi
TRANSMITTERS=TxRepeater,TxStream

#
# Local Simplex connection for Repeater Linking
# This is connected to a local link radio into the W7WRG repeater system
#

#
# RFLink Logic
#
[RFLinkLogic]
TYPE=Simplex
RX=RFLinkVoter
TX=TxLink
MODULES=ModuleHelp,ModuleParrot,ModuleDtmfRepeater
#,ModuleEchoLink,ModuleTclVoiceMail
CALLSIGN=N7RIG
SHORT_IDENT_INTERVAL=10
LONG_IDENT_INTERVAL=0
IDENT_ONLY_AFTER_TX=4
#EXEC_CMD_ON_SQL_CLOSE=500
EVENT_HANDLER=/usr/share/svxlink/events.tcl
DEFAULT_LANG=en_US
RGR_SOUND_DELAY=0
REPORT_CTCSS=110.9
TX_CTCSS=LOGIC,MODULE,SQL_OPEN
MACROS=RFLinkMacros
FX_GAIN_NORMAL=-6
FX_GAIN_LOW=-12
#ACTIVATE_MODULE_ON_LONG_CMD=4:EchoLink
#QSO_RECORDER=8:QsoRecorder
ONLINE_CMD=345
MUTE_RX_ON_TX=1
MUTE_TX_ON_RX=1
STATE_PTY=/tmp/state_rflink
#DTMF_CTRL_PTY=/dev/shm/simplex_dtmf_ctrl

#
# Simplex local Receivers
#
[RxLink]
TYPE=Local
AUDIO_DEV=alsa:repeater
AUDIO_CHANNEL=0
SQL_DET=GPIO
GPIO_SQL_PIN=!gpio26
CTCSS_MODE=3
CTCSS_FQ=110.9
CTCSS_OPEN_THRESH=15
CTCSS_CLOSE_THRESH=5
CTCSS_BPF_LOW=60
CTCSS_BPF_HIGH=270
SQL_START_DELAY=0
SQL_DELAY=0
SQL_HANGTIME=100
SQL_EXTENDED_HANGTIME=1000
SQL_EXTENDED_HANGTIME_THRESH=15
SQL_TIMEOUT=600
SIGLEV_OPEN_THRESH=30
SIGLEV_CLOSE_THRESH=10
SIGLEV_SLOPE=22.55
SIGLEV_OFFSET=10.04
CTCSS_SNR_OFFSET=-1.31
SIGLEV_BOGUS_THRESH=110
DEEMPHASIS=1
SQL_TAIL_ELIM=0
PREAMP=0
PEAK_METER=0
DTMF_DEC_TYPE=INTERNAL
DTMF_MUTING=1
DTMF_HANGTIME=40

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

[RFLinkMacros]
1=EchoLink:9999#
9=Parrot:0123456789#
03400=EchoLink:9999#

#################################################################################
#
# Links between logics
#
#################################################################################
#
# Repeater to W7WRG
#
[RepeaterLink]
CONNECT_LOGICS=RepeaterLogic:80:W7WRG,RFLinkLogic:80:224.78
DEFAULT_ACTIVE=1
TIMEOUT=900
#
# Miscellaneous sections
#
[QsoRecorder]
REC_DIR=/var/spool/svxlink/qso_recorder
MIN_TIME=1000
MAX_TIME=900
SOFT_TIME=180
MAX_DIRSIZE=90
DEFAULT_ACTIVE=0
TIMEOUT=300
QSO_TIMEOUT=300
ENCODER_CMD=/usr/bin/oggenc -Q \"%f\" && rm \"%f\"

#
# Audio stream to darkice
# This connects us to darkice which then streams the repeater system audio to
# and Icecast server
#
[TxStream]
TYPE=Local
#AUDIO_DEV=alsa:hw:0,0,0
AUDIO_DEV=alsa:stream-play
AUDIO_CHANNEL=0
PTT_TYPE=NONE
TIMEOUT=7200
TX_DELAY=0
PREEMPHASIS=0

#
# Station location sent to APRS or EchoLink
#
[LocationInfo]
APRS_SERVER_LIST=euro.aprs2.net:14580
#STATUS_SERVER_LIST=aprs.echolink.org:5199
#LON_POSITION=12.10.00E
#LAT_POSITION=51.10.00N
#CALLSIGN=EL-DL0ABC
#FREQUENCY=438.875
#TX_POWER=8
#ANTENNA_GAIN=6
#ANTENNA_HEIGHT=20m
#ANTENNA_DIR=-1
PATH=WIDE1-1
BEACON_INTERVAL=10
#TONE=136
COMMENT=SvxLink by SM0SVX (www.svxlink.org)

 

> 73's de SM0SVX / Tobias
>
> On 07/19/2017 04:40 PM, Ken Koster wrote:
> > I'm using SvxLink v1.5.99.8 and recently tried to activate
> > ModuleDtmfRepeater and am having problems getting it to work.
> >
> > Commanding dtmfrepeater On/Off works and the appropriate announcement is
> > made but no tones are repeated.
> >
> > The log file shows the DtmfRepeater module receiving the digits and that's
> > it.
> >
> > Jul 19 2017 07:26:04.497: RepeaterLogic: digit=1
> > Jul 19 2017 07:26:04.497: DTMF digit 1 (180ms) received in module
> > DtmfRepeater Jul 19 2017 07:26:05.175: RepeaterVoter: The squelch is
> > CLOSED
> > (RxRepeater=-1.88828)
> > Jul 19 2017 07:26:10.184: TxRepeater: Turning the transmitter OFF
> >
> > If I hack the code in ModuleDtmfRepeater.cpp to remove the isWriting
> > Message test it seems to work but I haven't gotten any farther in
> > understanding why.
> >
> > void ModuleDtmfRepeater::onRepeatDelayExpired(void)
> > {
> >
> >    repeat_delay_timer.setEnable(false);
> >
> > // Hack to allow dtmfrepeater to work - remove test for isWritingMessage
> > N7IPB //  if (isWritingMessage())
> > //  {
> >
> >      sendStoredDigits();
> >
> > //  }
> > } /* ModuleDtmfRepeater::onRepeatDelayExpired */
> >
> > Any suggestions?
>
> ----------------------------------------------------------------------------
> -- 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

--
Ken - N7IPB
Email: [hidden email]
JID: [hidden email]
PGP Sig: F42B EF90 3CD3 31C7 3056  122E 993A 7B2E 5138 C42A
Life isn't like a bowl of cherries.....
It's more like a jar of jalapenos.
What you do today is likely to come back and burn you in the butt tomorrow.
------------------------------------------------------------------------------
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 (201 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: DtmfRepeater

svxlink-devel mailing list
Ken,

Congratulations, you found a bug ;-)

The problem is connected to your configuration where you use
REPEAT_DELAY=500 in ModuleDtmfRepeater and RGR_SOUND_DELAY=300 in
RepeaterLogic. When the module want to play back digits 500ms after
squelch close the roger sound is still playing. That is why your hack
fix the problem.

At the moment, work around the problem by lowering RGR_SOUND_DELAY
and/or increase REPEAT_DELAY.

73's de SM0SVX / Tobias


On 07/19/2017 08:30 PM, Ken Koster wrote:

> On Wednesday, July 19, 2017 10:45:23 AM PDT Tobias Blomberg via Svxlink-devel
> wrote:
>> Hi Ken,
>>
>> Now that is strange. It sure works here so there probably is some
>> configuration problem that trigger that behavior. Please post your
>> configuration for the RepeaterLogic and the DtmfRepeater module.
> Note:  In my normal system the Repeater and Simplex logics have been replaced
> with modified ones in events.d/local  but for this testing I replaced them
> with stock ones with only the namespace changed.
>
> [ModuleDtmfRepeater]
> NAME=DtmfRepeater
> PLUGIN_NAME=DtmfRepeater
> ID=4
> TIMEOUT=60
> REPEAT_DELAY=500
>
> ###############################################################################
> #
> #
> #                Configuration file for the SvxLink server
> #
> #
> #
> ###############################################################################
>
> [GLOBAL]
> MODULE_PATH=/usr/lib/arm-linux-gnueabihf/svxlink
> LOGICS=RepeaterLogic,RFLinkLogic
> CFG_DIR=/etc/svxlink/svxlink.d
> TIMESTAMP_FORMAT="%b %d %Y %H:%M:%S.%f"
> CARD_SAMPLE_RATE=48000
> CARD_CHANNELS=2
> #LOCATION_INFO=LocationInfo
> LINKS=RepeaterLink
>
> #
> # Repeater Sections
> #
> [RepeaterLogic]
> TYPE=Repeater
> RX=RepeaterVoter
> TX=RepeaterMultiTx
> MODULES=ModuleHelp,ModuleParrot,ModuleEchoLink,ModuleDtmfRepeater
> CALLSIGN=N7RIG
> SHORT_IDENT_INTERVAL=10
> LONG_IDENT_INTERVAL=60
> IDENT_ONLY_AFTER_TX=4
> #EXEC_CMD_ON_SQL_CLOSE=500
> EVENT_HANDLER=/usr/share/svxlink/events.tcl
> DEFAULT_LANG=en_US
> RGR_SOUND_DELAY=300
> REPORT_CTCSS=103.5
> TX_CTCSS=LOGIC,MODULE,ANNOUNCEMENT,SQL_OPEN
> MACROS=RepeaterMacros
> #SEL5_MACRO_RANGE=03400,03499
> FX_GAIN_NORMAL=-6
> FX_GAIN_LOW=-12
> QSO_RECORDER=842:QsoRecorder
> #NO_REPEAT=1
> IDLE_TIMEOUT=5
> #OPEN_ON_1750=1000
> #OPEN_ON_CTCSS=136:2000
> #OPEN_ON_DTMF=*
> OPEN_ON_SQL=1
> #OPEN_ON_SEL5=01234
> OPEN_SQL_FLANK=OPEN
> #OPEN_ON_SQL_AFTER_RPT_CLOSE=10
> IDLE_SOUND_INTERVAL=0
> #SQL_FLAP_SUP_MIN_TIME=1000
> #SQL_FLAP_SUP_MAX_COUNT=10
> #ACTIVATE_MODULE_ON_LONG_CMD=4:EchoLink
> IDENT_NAG_TIMEOUT=5
> IDENT_NAG_MIN_TIME=50
> ONLINE_CMD=123
> STATE_PTY=/tmp/state_repeater
> DTMF_CTRL_PTY=/tmp/repeater_dtmf_ctrl
>
> #
> # Local Repeater Receiver Sections
> #
> [RxRepeater]
> TYPE=Local
> AUDIO_DEV=alsa:repeater
> AUDIO_CHANNEL=1
> SQL_DET=GPIO
> GPIO_SQL_PIN=!gpio13
> SQL_START_DELAY=0
> SQL_DELAY=0
> #20
> SQL_HANGTIME=100
> SQL_EXTENDED_HANGTIME=1000
> SQL_EXTENDED_HANGTIME_THRESH=15
> SQL_TIMEOUT=600
> CTCSS_MODE=3
> CTCSS_FQ=103.5
> CTCSS_OPEN_THRESH=15
> CTCSS_CLOSE_THRESH=5
> CTCSS_BPF_LOW=60
> CTCSS_BPF_HIGH=270
> #SIGLEV_DET=NOISE
> SIGLEV_OPEN_THRESH=30
> SIGLEV_CLOSE_THRESH=10
> SIGLEV_SLOPE=23.07
> SIGLEV_OFFSET=6.82
> CTCSS_SNR_OFFSET=-2.75
> DEEMPHASIS=1
> SQL_TAIL_ELIM=150
> PREAMP=0
> #PEAK_METER=0
> DTMF_DEC_TYPE=INTERNAL
> DTMF_MUTING=1
> DTMF_HANGTIME=40
>
> #
> # Local Repeater Transmitter Sections
> #
> [TxRepeater]
> TYPE=Local
> AUDIO_DEV=alsa:repeater
> AUDIO_CHANNEL=1
> PTT_TYPE=GPIO
> PTT_PIN=gpio5
> #PTT_HANGTIME=1000
> TIMEOUT=0
> TX_DELAY=50
> CTCSS_FQ=103.5
> CTCSS_LEVEL=6
> PREEMPHASIS=1
> DTMF_TONE_LENGTH=100
> DTMF_TONE_SPACING=150
> DTMF_DIGIT_PWR=-15
> MASTER_GAIN=0
>
> #
> # Audio stream to darkice
> # This connects us to darkice which then streams the repeater system audio to
> # an Internet connected Icecast server
> #
> [TxStream]
> TYPE=Local
> AUDIO_DEV=alsa:stream-play
> AUDIO_CHANNEL=0
> PTT_TYPE=NONE
> TIMEOUT=7200
> TX_DELAY=0
> PREEMPHASIS=0
>
> #
> # Repeater Mactos
> #
> [RepeaterMacros]
> 1=EchoLink:9999#
> 9=Parrot:0123456789#
> 03400=EchoLink:9999#
>
> #
> # Repeater Voter
> #
> [RepeaterVoter]
> TYPE=Voter
> RECEIVERS=RxRepeater
> VOTING_DELAY=20
> BUFFER_LENGTH=0
> #REVOTE_INTERVAL=1000
> #HYSTERESIS=50
> #SQL_CLOSE_REVOTE_DELAY=500
> #RX_SWITCH_DELAY=500
> COMMAND_PTY=/tmp/voter_ctrl
>
> #
> # RF Link Voter
> # We do this not because it needs voting but to get the
> # state information for the web page
> #
> [RFLinkVoter]
> TYPE=Voter
> RECEIVERS=RxLink
> VOTING_DELAY=20
> BUFFER_LENGTH=0
> #REVOTE_INTERVAL=1000
> #HYSTERESIS=50
> #SQL_CLOSE_REVOTE_DELAY=500
> #RX_SWITCH_DELAY=500
> #COMMAND_PTY=/tmp/rflink_voter_ctrl
>
> #
> # Repeater Transmitters
> #
> [RepeaterMultiTx]
> TYPE=Multi
> TRANSMITTERS=TxRepeater,TxStream
>
> #
> # Local Simplex connection for Repeater Linking
> # This is connected to a local link radio into the W7WRG repeater system
> #
>
> #
> # RFLink Logic
> #
> [RFLinkLogic]
> TYPE=Simplex
> RX=RFLinkVoter
> TX=TxLink
> MODULES=ModuleHelp,ModuleParrot,ModuleDtmfRepeater
> #,ModuleEchoLink,ModuleTclVoiceMail
> CALLSIGN=N7RIG
> SHORT_IDENT_INTERVAL=10
> LONG_IDENT_INTERVAL=0
> IDENT_ONLY_AFTER_TX=4
> #EXEC_CMD_ON_SQL_CLOSE=500
> EVENT_HANDLER=/usr/share/svxlink/events.tcl
> DEFAULT_LANG=en_US
> RGR_SOUND_DELAY=0
> REPORT_CTCSS=110.9
> TX_CTCSS=LOGIC,MODULE,SQL_OPEN
> MACROS=RFLinkMacros
> FX_GAIN_NORMAL=-6
> FX_GAIN_LOW=-12
> #ACTIVATE_MODULE_ON_LONG_CMD=4:EchoLink
> #QSO_RECORDER=8:QsoRecorder
> ONLINE_CMD=345
> MUTE_RX_ON_TX=1
> MUTE_TX_ON_RX=1
> STATE_PTY=/tmp/state_rflink
> #DTMF_CTRL_PTY=/dev/shm/simplex_dtmf_ctrl
>
> #
> # Simplex local Receivers
> #
> [RxLink]
> TYPE=Local
> AUDIO_DEV=alsa:repeater
> AUDIO_CHANNEL=0
> SQL_DET=GPIO
> GPIO_SQL_PIN=!gpio26
> CTCSS_MODE=3
> CTCSS_FQ=110.9
> CTCSS_OPEN_THRESH=15
> CTCSS_CLOSE_THRESH=5
> CTCSS_BPF_LOW=60
> CTCSS_BPF_HIGH=270
> SQL_START_DELAY=0
> SQL_DELAY=0
> SQL_HANGTIME=100
> SQL_EXTENDED_HANGTIME=1000
> SQL_EXTENDED_HANGTIME_THRESH=15
> SQL_TIMEOUT=600
> SIGLEV_OPEN_THRESH=30
> SIGLEV_CLOSE_THRESH=10
> SIGLEV_SLOPE=22.55
> SIGLEV_OFFSET=10.04
> CTCSS_SNR_OFFSET=-1.31
> SIGLEV_BOGUS_THRESH=110
> DEEMPHASIS=1
> SQL_TAIL_ELIM=0
> PREAMP=0
> PEAK_METER=0
> DTMF_DEC_TYPE=INTERNAL
> DTMF_MUTING=1
> DTMF_HANGTIME=40
>
> [TxLink]
> TYPE=Local
> AUDIO_DEV=alsa:repeater
> AUDIO_CHANNEL=0
> PTT_TYPE=GPIO
> PTT_PIN=gpio6
> PTT_HANGTIME=100
> TIMEOUT=0
> TX_DELAY=0
> CTCSS_FQ=110.9
> CTCSS_LEVEL=6
> PREEMPHASIS=1
> DTMF_TONE_LENGTH=100
> DTMF_TONE_SPACING=50
> DTMF_DIGIT_PWR=-15
> MASTER_GAIN=0
>
> [RFLinkMacros]
> 1=EchoLink:9999#
> 9=Parrot:0123456789#
> 03400=EchoLink:9999#
>
> #################################################################################
> #
> # Links between logics
> #
> #################################################################################
> #
> # Repeater to W7WRG
> #
> [RepeaterLink]
> CONNECT_LOGICS=RepeaterLogic:80:W7WRG,RFLinkLogic:80:224.78
> DEFAULT_ACTIVE=1
> TIMEOUT=900
> #
> # Miscellaneous sections
> #
> [QsoRecorder]
> REC_DIR=/var/spool/svxlink/qso_recorder
> MIN_TIME=1000
> MAX_TIME=900
> SOFT_TIME=180
> MAX_DIRSIZE=90
> DEFAULT_ACTIVE=0
> TIMEOUT=300
> QSO_TIMEOUT=300
> ENCODER_CMD=/usr/bin/oggenc -Q \"%f\" && rm \"%f\"
>
> #
> # Audio stream to darkice
> # This connects us to darkice which then streams the repeater system audio to
> # and Icecast server
> #
> [TxStream]
> TYPE=Local
> #AUDIO_DEV=alsa:hw:0,0,0
> AUDIO_DEV=alsa:stream-play
> AUDIO_CHANNEL=0
> PTT_TYPE=NONE
> TIMEOUT=7200
> TX_DELAY=0
> PREEMPHASIS=0
>
> #
> # Station location sent to APRS or EchoLink
> #
> [LocationInfo]
> APRS_SERVER_LIST=euro.aprs2.net:14580
> #STATUS_SERVER_LIST=aprs.echolink.org:5199
> #LON_POSITION=12.10.00E
> #LAT_POSITION=51.10.00N
> #CALLSIGN=EL-DL0ABC
> #FREQUENCY=438.875
> #TX_POWER=8
> #ANTENNA_GAIN=6
> #ANTENNA_HEIGHT=20m
> #ANTENNA_DIR=-1
> PATH=WIDE1-1
> BEACON_INTERVAL=10
> #TONE=136
> COMMENT=SvxLink by SM0SVX (www.svxlink.org)
>
>  
>> 73's de SM0SVX / Tobias
>>
>> On 07/19/2017 04:40 PM, Ken Koster wrote:
>>> I'm using SvxLink v1.5.99.8 and recently tried to activate
>>> ModuleDtmfRepeater and am having problems getting it to work.
>>>
>>> Commanding dtmfrepeater On/Off works and the appropriate announcement is
>>> made but no tones are repeated.
>>>
>>> The log file shows the DtmfRepeater module receiving the digits and that's
>>> it.
>>>
>>> Jul 19 2017 07:26:04.497: RepeaterLogic: digit=1
>>> Jul 19 2017 07:26:04.497: DTMF digit 1 (180ms) received in module
>>> DtmfRepeater Jul 19 2017 07:26:05.175: RepeaterVoter: The squelch is
>>> CLOSED
>>> (RxRepeater=-1.88828)
>>> Jul 19 2017 07:26:10.184: TxRepeater: Turning the transmitter OFF
>>>
>>> If I hack the code in ModuleDtmfRepeater.cpp to remove the isWriting
>>> Message test it seems to work but I haven't gotten any farther in
>>> understanding why.
>>>
>>> void ModuleDtmfRepeater::onRepeatDelayExpired(void)
>>> {
>>>
>>>     repeat_delay_timer.setEnable(false);
>>>
>>> // Hack to allow dtmfrepeater to work - remove test for isWritingMessage
>>> N7IPB //  if (isWritingMessage())
>>> //  {
>>>
>>>       sendStoredDigits();
>>>
>>> //  }
>>> } /* ModuleDtmfRepeater::onRepeatDelayExpired */
>>>
>>> Any suggestions?


------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: DtmfRepeater

Ken Koster
On Wednesday, July 19, 2017 11:43:40 AM PDT Tobias Blomberg via Svxlink-devel
wrote:
> Ken,
>
> Congratulations, you found a bug ;-)

Thank you, thank you... Takes a bow

> The problem is connected to your configuration where you use
> REPEAT_DELAY=500 in ModuleDtmfRepeater and RGR_SOUND_DELAY=300 in
> RepeaterLogic. When the module want to play back digits 500ms after
> squelch close the roger sound is still playing. That is why your hack
> fix the problem.
>
> At the moment, work around the problem by lowering RGR_SOUND_DELAY
> and/or increase REPEAT_DELAY.

Bumping up REPEAT_DELAY to 1000 works.

Thanks Tobias.  This was one of the last little tweaks before I make a 100
mile trip up to the repeater site Friday to install Svxlink for real.

Ken,  N7IPB

> 73's de SM0SVX / Tobias
>
> On 07/19/2017 08:30 PM, Ken Koster wrote:
> > On Wednesday, July 19, 2017 10:45:23 AM PDT Tobias Blomberg via
> > Svxlink-devel>
> > wrote:
> >> Hi Ken,
> >>
> >> Now that is strange. It sure works here so there probably is some
> >> configuration problem that trigger that behavior. Please post your
> >> configuration for the RepeaterLogic and the DtmfRepeater module.
> >
> > Note:  In my normal system the Repeater and Simplex logics have been
> > replaced with modified ones in events.d/local  but for this testing I
> > replaced them with stock ones with only the namespace changed.
> >
> > [ModuleDtmfRepeater]
> > NAME=DtmfRepeater
> > PLUGIN_NAME=DtmfRepeater
> > ID=4
> > TIMEOUT=60
> > REPEAT_DELAY=500
> >
> > ##########################################################################
> > ##### #
> > #
> > #                Configuration file for the SvxLink server
> > #
> > #
> > #
> > ##########################################################################
> > #####
> >
> > [GLOBAL]
> > MODULE_PATH=/usr/lib/arm-linux-gnueabihf/svxlink
> > LOGICS=RepeaterLogic,RFLinkLogic
> > CFG_DIR=/etc/svxlink/svxlink.d
> > TIMESTAMP_FORMAT="%b %d %Y %H:%M:%S.%f"
> > CARD_SAMPLE_RATE=48000
> > CARD_CHANNELS=2
> > #LOCATION_INFO=LocationInfo
> > LINKS=RepeaterLink
> >
> > #
> > # Repeater Sections
> > #
> > [RepeaterLogic]
> > TYPE=Repeater
> > RX=RepeaterVoter
> > TX=RepeaterMultiTx
> > MODULES=ModuleHelp,ModuleParrot,ModuleEchoLink,ModuleDtmfRepeater
> > CALLSIGN=N7RIG
> > SHORT_IDENT_INTERVAL=10
> > LONG_IDENT_INTERVAL=60
> > IDENT_ONLY_AFTER_TX=4
> > #EXEC_CMD_ON_SQL_CLOSE=500
> > EVENT_HANDLER=/usr/share/svxlink/events.tcl
> > DEFAULT_LANG=en_US
> > RGR_SOUND_DELAY=300
> > REPORT_CTCSS=103.5
> > TX_CTCSS=LOGIC,MODULE,ANNOUNCEMENT,SQL_OPEN
> > MACROS=RepeaterMacros
> > #SEL5_MACRO_RANGE=03400,03499
> > FX_GAIN_NORMAL=-6
> > FX_GAIN_LOW=-12
> > QSO_RECORDER=842:QsoRecorder
> > #NO_REPEAT=1
> > IDLE_TIMEOUT=5
> > #OPEN_ON_1750=1000
> > #OPEN_ON_CTCSS=136:2000
> > #OPEN_ON_DTMF=*
> > OPEN_ON_SQL=1
> > #OPEN_ON_SEL5=01234
> > OPEN_SQL_FLANK=OPEN
> > #OPEN_ON_SQL_AFTER_RPT_CLOSE=10
> > IDLE_SOUND_INTERVAL=0
> > #SQL_FLAP_SUP_MIN_TIME=1000
> > #SQL_FLAP_SUP_MAX_COUNT=10
> > #ACTIVATE_MODULE_ON_LONG_CMD=4:EchoLink
> > IDENT_NAG_TIMEOUT=5
> > IDENT_NAG_MIN_TIME=50
> > ONLINE_CMD=123
> > STATE_PTY=/tmp/state_repeater
> > DTMF_CTRL_PTY=/tmp/repeater_dtmf_ctrl
> >
> > #
> > # Local Repeater Receiver Sections
> > #
> > [RxRepeater]
> > TYPE=Local
> > AUDIO_DEV=alsa:repeater
> > AUDIO_CHANNEL=1
> > SQL_DET=GPIO
> > GPIO_SQL_PIN=!gpio13
> > SQL_START_DELAY=0
> > SQL_DELAY=0
> > #20
> > SQL_HANGTIME=100
> > SQL_EXTENDED_HANGTIME=1000
> > SQL_EXTENDED_HANGTIME_THRESH=15
> > SQL_TIMEOUT=600
> > CTCSS_MODE=3
> > CTCSS_FQ=103.5
> > CTCSS_OPEN_THRESH=15
> > CTCSS_CLOSE_THRESH=5
> > CTCSS_BPF_LOW=60
> > CTCSS_BPF_HIGH=270
> > #SIGLEV_DET=NOISE
> > SIGLEV_OPEN_THRESH=30
> > SIGLEV_CLOSE_THRESH=10
> > SIGLEV_SLOPE=23.07
> > SIGLEV_OFFSET=6.82
> > CTCSS_SNR_OFFSET=-2.75
> > DEEMPHASIS=1
> > SQL_TAIL_ELIM=150
> > PREAMP=0
> > #PEAK_METER=0
> > DTMF_DEC_TYPE=INTERNAL
> > DTMF_MUTING=1
> > DTMF_HANGTIME=40
> >
> > #
> > # Local Repeater Transmitter Sections
> > #
> > [TxRepeater]
> > TYPE=Local
> > AUDIO_DEV=alsa:repeater
> > AUDIO_CHANNEL=1
> > PTT_TYPE=GPIO
> > PTT_PIN=gpio5
> > #PTT_HANGTIME=1000
> > TIMEOUT=0
> > TX_DELAY=50
> > CTCSS_FQ=103.5
> > CTCSS_LEVEL=6
> > PREEMPHASIS=1
> > DTMF_TONE_LENGTH=100
> > DTMF_TONE_SPACING=150
> > DTMF_DIGIT_PWR=-15
> > MASTER_GAIN=0
> >
> > #
> > # Audio stream to darkice
> > # This connects us to darkice which then streams the repeater system audio
> > to # an Internet connected Icecast server
> > #
> > [TxStream]
> > TYPE=Local
> > AUDIO_DEV=alsa:stream-play
> > AUDIO_CHANNEL=0
> > PTT_TYPE=NONE
> > TIMEOUT=7200
> > TX_DELAY=0
> > PREEMPHASIS=0
> >
> > #
> > # Repeater Mactos
> > #
> > [RepeaterMacros]
> > 1=EchoLink:9999#
> > 9=Parrot:0123456789#
> > 03400=EchoLink:9999#
> >
> > #
> > # Repeater Voter
> > #
> > [RepeaterVoter]
> > TYPE=Voter
> > RECEIVERS=RxRepeater
> > VOTING_DELAY=20
> > BUFFER_LENGTH=0
> > #REVOTE_INTERVAL=1000
> > #HYSTERESIS=50
> > #SQL_CLOSE_REVOTE_DELAY=500
> > #RX_SWITCH_DELAY=500
> > COMMAND_PTY=/tmp/voter_ctrl
> >
> > #
> > # RF Link Voter
> > # We do this not because it needs voting but to get the
> > # state information for the web page
> > #
> > [RFLinkVoter]
> > TYPE=Voter
> > RECEIVERS=RxLink
> > VOTING_DELAY=20
> > BUFFER_LENGTH=0
> > #REVOTE_INTERVAL=1000
> > #HYSTERESIS=50
> > #SQL_CLOSE_REVOTE_DELAY=500
> > #RX_SWITCH_DELAY=500
> > #COMMAND_PTY=/tmp/rflink_voter_ctrl
> >
> > #
> > # Repeater Transmitters
> > #
> > [RepeaterMultiTx]
> > TYPE=Multi
> > TRANSMITTERS=TxRepeater,TxStream
> >
> > #
> > # Local Simplex connection for Repeater Linking
> > # This is connected to a local link radio into the W7WRG repeater system
> > #
> >
> > #
> > # RFLink Logic
> > #
> > [RFLinkLogic]
> > TYPE=Simplex
> > RX=RFLinkVoter
> > TX=TxLink
> > MODULES=ModuleHelp,ModuleParrot,ModuleDtmfRepeater
> > #,ModuleEchoLink,ModuleTclVoiceMail
> > CALLSIGN=N7RIG
> > SHORT_IDENT_INTERVAL=10
> > LONG_IDENT_INTERVAL=0
> > IDENT_ONLY_AFTER_TX=4
> > #EXEC_CMD_ON_SQL_CLOSE=500
> > EVENT_HANDLER=/usr/share/svxlink/events.tcl
> > DEFAULT_LANG=en_US
> > RGR_SOUND_DELAY=0
> > REPORT_CTCSS=110.9
> > TX_CTCSS=LOGIC,MODULE,SQL_OPEN
> > MACROS=RFLinkMacros
> > FX_GAIN_NORMAL=-6
> > FX_GAIN_LOW=-12
> > #ACTIVATE_MODULE_ON_LONG_CMD=4:EchoLink
> > #QSO_RECORDER=8:QsoRecorder
> > ONLINE_CMD=345
> > MUTE_RX_ON_TX=1
> > MUTE_TX_ON_RX=1
> > STATE_PTY=/tmp/state_rflink
> > #DTMF_CTRL_PTY=/dev/shm/simplex_dtmf_ctrl
> >
> > #
> > # Simplex local Receivers
> > #
> > [RxLink]
> > TYPE=Local
> > AUDIO_DEV=alsa:repeater
> > AUDIO_CHANNEL=0
> > SQL_DET=GPIO
> > GPIO_SQL_PIN=!gpio26
> > CTCSS_MODE=3
> > CTCSS_FQ=110.9
> > CTCSS_OPEN_THRESH=15
> > CTCSS_CLOSE_THRESH=5
> > CTCSS_BPF_LOW=60
> > CTCSS_BPF_HIGH=270
> > SQL_START_DELAY=0
> > SQL_DELAY=0
> > SQL_HANGTIME=100
> > SQL_EXTENDED_HANGTIME=1000
> > SQL_EXTENDED_HANGTIME_THRESH=15
> > SQL_TIMEOUT=600
> > SIGLEV_OPEN_THRESH=30
> > SIGLEV_CLOSE_THRESH=10
> > SIGLEV_SLOPE=22.55
> > SIGLEV_OFFSET=10.04
> > CTCSS_SNR_OFFSET=-1.31
> > SIGLEV_BOGUS_THRESH=110
> > DEEMPHASIS=1
> > SQL_TAIL_ELIM=0
> > PREAMP=0
> > PEAK_METER=0
> > DTMF_DEC_TYPE=INTERNAL
> > DTMF_MUTING=1
> > DTMF_HANGTIME=40
> >
> > [TxLink]
> > TYPE=Local
> > AUDIO_DEV=alsa:repeater
> > AUDIO_CHANNEL=0
> > PTT_TYPE=GPIO
> > PTT_PIN=gpio6
> > PTT_HANGTIME=100
> > TIMEOUT=0
> > TX_DELAY=0
> > CTCSS_FQ=110.9
> > CTCSS_LEVEL=6
> > PREEMPHASIS=1
> > DTMF_TONE_LENGTH=100
> > DTMF_TONE_SPACING=50
> > DTMF_DIGIT_PWR=-15
> > MASTER_GAIN=0
> >
> > [RFLinkMacros]
> > 1=EchoLink:9999#
> > 9=Parrot:0123456789#
> > 03400=EchoLink:9999#
> >
> > ##########################################################################
> > ####### #
> > # Links between logics
> > #
> > ##########################################################################
> > ####### #
> > # Repeater to W7WRG
> > #
> > [RepeaterLink]
> > CONNECT_LOGICS=RepeaterLogic:80:W7WRG,RFLinkLogic:80:224.78
> > DEFAULT_ACTIVE=1
> > TIMEOUT=900
> > #
> > # Miscellaneous sections
> > #
> > [QsoRecorder]
> > REC_DIR=/var/spool/svxlink/qso_recorder
> > MIN_TIME=1000
> > MAX_TIME=900
> > SOFT_TIME=180
> > MAX_DIRSIZE=90
> > DEFAULT_ACTIVE=0
> > TIMEOUT=300
> > QSO_TIMEOUT=300
> > ENCODER_CMD=/usr/bin/oggenc -Q \"%f\" && rm \"%f\"
> >
> > #
> > # Audio stream to darkice
> > # This connects us to darkice which then streams the repeater system audio
> > to # and Icecast server
> > #
> > [TxStream]
> > TYPE=Local
> > #AUDIO_DEV=alsa:hw:0,0,0
> > AUDIO_DEV=alsa:stream-play
> > AUDIO_CHANNEL=0
> > PTT_TYPE=NONE
> > TIMEOUT=7200
> > TX_DELAY=0
> > PREEMPHASIS=0
> >
> > #
> > # Station location sent to APRS or EchoLink
> > #
> > [LocationInfo]
> > APRS_SERVER_LIST=euro.aprs2.net:14580
> > #STATUS_SERVER_LIST=aprs.echolink.org:5199
> > #LON_POSITION=12.10.00E
> > #LAT_POSITION=51.10.00N
> > #CALLSIGN=EL-DL0ABC
> > #FREQUENCY=438.875
> > #TX_POWER=8
> > #ANTENNA_GAIN=6
> > #ANTENNA_HEIGHT=20m
> > #ANTENNA_DIR=-1
> > PATH=WIDE1-1
> > BEACON_INTERVAL=10
> > #TONE=136
> > COMMENT=SvxLink by SM0SVX (www.svxlink.org)
> >
> >> 73's de SM0SVX / Tobias
> >>
> >> On 07/19/2017 04:40 PM, Ken Koster wrote:
> >>> I'm using SvxLink v1.5.99.8 and recently tried to activate
> >>> ModuleDtmfRepeater and am having problems getting it to work.
> >>>
> >>> Commanding dtmfrepeater On/Off works and the appropriate announcement is
> >>> made but no tones are repeated.
> >>>
> >>> The log file shows the DtmfRepeater module receiving the digits and
> >>> that's
> >>> it.
> >>>
> >>> Jul 19 2017 07:26:04.497: RepeaterLogic: digit=1
> >>> Jul 19 2017 07:26:04.497: DTMF digit 1 (180ms) received in module
> >>> DtmfRepeater Jul 19 2017 07:26:05.175: RepeaterVoter: The squelch is
> >>> CLOSED
> >>> (RxRepeater=-1.88828)
> >>> Jul 19 2017 07:26:10.184: TxRepeater: Turning the transmitter OFF
> >>>
> >>> If I hack the code in ModuleDtmfRepeater.cpp to remove the isWriting
> >>> Message test it seems to work but I haven't gotten any farther in
> >>> understanding why.
> >>>
> >>> void ModuleDtmfRepeater::onRepeatDelayExpired(void)
> >>> {
> >>>
> >>>     repeat_delay_timer.setEnable(false);
> >>>
> >>> // Hack to allow dtmfrepeater to work - remove test for isWritingMessage
> >>> N7IPB //  if (isWritingMessage())
> >>> //  {
> >>>
> >>>       sendStoredDigits();
> >>>
> >>> //  }
> >>> } /* ModuleDtmfRepeater::onRepeatDelayExpired */
> >>>
> >>> Any suggestions?
>
> ----------------------------------------------------------------------------
> -- 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

--
Ken - N7IPB
Email: [hidden email]
JID: [hidden email]
PGP Sig: F42B EF90 3CD3 31C7 3056  122E 993A 7B2E 5138 C42A
Life isn't like a bowl of cherries.....
It's more like a jar of jalapenos.
What you do today is likely to come back and burn you in the butt tomorrow.
------------------------------------------------------------------------------
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 (201 bytes) Download Attachment
Loading...