Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ASL2 PATCH] Replace xpmr.c '#define XPMR_VOX_HANGTIME' with a new conf var #430

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

Allan-N
Copy link
Collaborator

@Allan-N Allan-N commented Dec 5, 2024

The ASL2 change (from AllStarLink/ASL-Asterisk#34) did not get merged into the ASL3 source base. This commit effectivly pulls in those changes.

From: David Gleason david@allscan.info

Replace xpmr.c '#define XPMR_VOX_HANGTIME' with a new 'voxhangtime' cfg parameter set in usbradio.conf. When using usbradio in carrierfrom=vox mode this is the value the vox hang timer pChan->rxVoxTimer is set to in xpmr.c each time RX audio is detected. Making it configurable allows the default value of 2000mS to be reduced to a shorter time thereby preventing 2 seconds of silence being added to all node user transmissions. A value of 500mS seems to be much more optimal, and in my testing resulted in no false RX CD drops even when not talking. (xpmr.c's vox mode detects even quiet background noise and thereby supports reliable COS detection for radios that do not have a hardware COS line output.)

Add the new voxhangtime parm to chan_usbradio.c chan_usbradio_pvt struct, store_config(), xpmr.c createPmrChannel(), xpmr.h t_pmr_chan struct, and to configs/rpt/usbradio.conf and configs/samples/usbradio.conf.sample.

@@ -4712,6 +4715,9 @@ static void pmrdump(struct chan_usbradio_pvt *o)

pd(o->rxdemod);
pd(o->rxcdtype);
if(o->rxcdtype == CD_XPMR_VOX) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@@ -69,6 +69,10 @@
; pp - from parallel port (Active high)
; ppinvert - from the inverted parallel port (Active low)

voxhangtime = 2000 ; If carrierfrom=vox, mS to wait detecting RX audio before setting rxcarrierdetect=0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To match the other sample entries, this should start with a semi-colon.

…nf var

The ASL2 change (from AllStarLink/ASL-Asterisk#34)
did not get merged into the ASL3 source base. This commit effectivly pulls
in those changes.

From: David Gleason <david@allscan.info>

Replace xpmr.c '#define XPMR_VOX_HANGTIME' with a new 'voxhangtime' cfg
parameter set in usbradio.conf. When using usbradio in carrierfrom=vox
mode this is the value the vox hang timer pChan->rxVoxTimer is set to in
xpmr.c each time RX audio is detected. Making it configurable allows the
default value of 2000mS to be reduced to a shorter time thereby preventing
2 seconds of silence being added to all node user transmissions. A value
of 500mS seems to be much more optimal, and in my testing resulted in no
false RX CD drops even when not talking. (xpmr.c's vox mode detects even
quiet background noise and thereby supports reliable COS detection for
radios that do not have a hardware COS line output.)

Add the new voxhangtime parm to chan_usbradio.c chan_usbradio_pvt struct,
store_config(), xpmr.c createPmrChannel(), xpmr.h t_pmr_chan struct, and
to configs/rpt/usbradio.conf and configs/samples/usbradio.conf.sample.
@Allan-N Allan-N linked an issue Dec 12, 2024 that may be closed by this pull request
@Allan-N Allan-N merged commit ff58dee into master Dec 16, 2024
1 check passed
@mkmer mkmer deleted the ASL2_34 branch March 7, 2025 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some commits to ASL2.0 are not present in ASL3
3 participants