Re: Hotspot Audio for C4FM Very loud and distorted.


Steve N4IRS
 

Frank,
You can control the audio level sent from or to digital. Depending on how you change modes you can change levels on the fly.
Since you are happy with the level of DMR, I would start there since this is what you will want to return to.

The mode command command of dvswitch.sh will take 2 optional parameters. These parameters control the audio levels. Below is the section from Analog_Bridge.ini:

[USRP]
address = 127.0.0.1                     ; IP address of USRP partner (Allstar/Asterisk or another Analog_Bridge)
txPort = 32001                          ; Transmit USRP frames on this port
rxPort = 34001                          ; Listen for USRP frames on this port
usrpAudio = AUDIO_UNITY                 ; Digital -> Analog (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_USE_AGC)
usrpGain = 1.10                         ; Gain factor when usrpAudio = AUDIO_USE_GAIN (0.0 to 5.0) (1.0 = AUDIO_UNITY)
usrpAGC = -20,10,100                    ; Set the agc threshold (db), slope (db) and decay (ms)
tlvAudio = AUDIO_UNITY                  ; Analog -> Digital (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_BPF)
tlvGain = 0.35                          ; Gain factor when tlvAudio = AUDIO_USE_GAIN (0.0 to 5.0) (1.0 = AUDIO_UNITY)


The above has usrpAudio and TLV audio set to AUDIO_UNITY. This is the same as AUDIO_USE_GAIN with gain of 1.0
You can use dvswitch.sh mode DMR 1.0 1.0 to do the same thing.
The command is dvswitch.sh mode {DMR|NXDN|P25|YSF|DSTAR} tlvGain usrpGain

Since your audio from Analog to YSFn is too loud, I would start by cutting the audio sent to YSFn in half and test:
dvswitch.sh mode YSF .50 1.0

Test with this and see if you are happy with the levels.

73, Steve N4IRS

On 12/30/20 12:54 AM, Frank C. D'Amato wrote:
I have DVswitch setup DMR>Analog. It pushes a DMR TG to my Hamvoip Allstar node (2 seperate Pi's).

When I talk on the analog radio, the audio sounds great coming out of my DMR radio connected to a Openspot (Both ver 1&2).

If I put my openspot modem to C4FM (to use my yaesu rado in DN mode), and connect to the TG that my DVswitch is transmitting to, the audio sounds very distorted and loud.

Anyone else have this problem?

Using the same setup C4FM to DMR on the openspots sound great on the yeasu radio, The problem is only there on the TG the DVswitch is pushing the analog audio to.

Join main@DVSwitch.groups.io to automatically receive all group messages.