Skip to content

Commit

Permalink
Merge branch 'dl1hrc-Dtmf_bidirectional'
Browse files Browse the repository at this point in the history
  • Loading branch information
sm0svx committed Nov 28, 2017
2 parents 1004b8e + de356ef commit 1238f0b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/doc/man/svxlink.conf.5
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ a softlink to the actual slave PTY. For that reason, SvxLink must have write
permissions in the directory where the softlink should be created. Sending
commands to the PTY is as simple as doing a
.B "echo '*1#' > /path/to/pty"
after starting SvxLink.
after starting SvxLink. The device works bidirectional, received dtmf characters
(from Rf) are output via this interface.

Example: DTMF_CTRL_PTY=/dev/shm/dtmf_ctrl
.
Expand Down
1 change: 1 addition & 0 deletions src/svxlink/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@

* New command PTY for injecting DTMF digits into a logic core. Use
configuration variable DTMF_CTRL_PTY to set the path to the PTY.
The PTY will also emit the DTMF digits received on the RF.

* New configuration variable GPIO_PATH for PTT and squelch configurations that
use GPIO. On some hardware platforms the path to control GPIO pins is not
Expand Down
4 changes: 4 additions & 0 deletions src/svxlink/svxlink/Logic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1505,6 +1505,10 @@ void Logic::dtmfDigitDetectedP(char digit, int duration)

dtmfDigitDetected(digit, duration);

if (dtmf_ctrl_pty != 0)
{
dtmf_ctrl_pty->write(&digit, 1);
}
} /* Logic::dtmfDigitDetectedP */


Expand Down
2 changes: 1 addition & 1 deletion src/versions
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LIBECHOLIB=1.3.2.99.0
LIBASYNC=1.4.0.99.7

# SvxLink versions
SVXLINK=1.5.99.16
SVXLINK=1.5.99.17
MODULE_HELP=1.0.0
MODULE_PARROT=1.1.1
MODULE_ECHOLINK=1.3.99.1
Expand Down

0 comments on commit 1238f0b

Please sign in to comment.