piHPSDR AF on Ubuntu

HB9LFQ
Posts: 20
Joined: Wed Jan 06, 2021 11:44 am

piHPSDR AF on Ubuntu

Postby HB9LFQ » Sat Jul 01, 2023 3:27 pm

Hi all,
I compiled and run piHPSDR on Ubuntu with an ANAN-7000 DLE2. It works in RX and TX. I use a headset connected to MIC/headphone on the front side of the radio and my problem is that the audio is way too loud even if AF is set to 1 (on 0 there is no audio). Is there a way to somehow rescale the AF range? I didn't find any hints in the piHPSDR manual.
regards,
András / HB9LFQ
User avatar
Joerg
Posts: 20
Joined: Sat Oct 26, 2019 6:31 pm
Location: Germany / NRW
Contact:

Re: piHPSDR AF on Ubuntu

Postby Joerg » Sun Jul 02, 2023 7:00 am

Don't you have to connect the headset USB to the Raspberry, that's how I do it with my Red Pitaya.

73 Jörg, DD8JM
HB9LFQ
Posts: 20
Joined: Wed Jan 06, 2021 11:44 am

Re: piHPSDR AF on Ubuntu

Postby HB9LFQ » Sun Jul 02, 2023 4:44 pm

Hi all,
I'm running piHPSDR on a Intel NUC with Ubuntu 22.04. I figured out myself. I had to change in sliders.c everywhere the factor 100 for active_receiver->volume to 5000 (e.g. line 122: old: gtk_range_set_value(GTK_RANGE(af_gain_scale),active_receiver->volume*100.0);
new: gtk_range_set_value(GTK_RANGE(af_gain_scale),active_receiver->volume*5000.0);
Now the AF gain is finegrained enough if you use the headset connected to mic/speaker on the front of the Anan 7000 DLE II.

73,
András / HB9LFQ
User avatar
n1gp
Posts: 175
Joined: Sun Apr 09, 2017 6:34 pm

Re: piHPSDR AF on Ubuntu

Postby n1gp » Sun Jul 02, 2023 6:50 pm

Hi András,

Just in case you didn't know, Christoph keeps a fork of John's piHPSDR
which has many additions you might find useful:

https://github.com/dl1ycf/pihpsdr

One difference you may find helpful is the change to a logarithmic scale
for the volume.

He also has updates to wdsp which is required for his version of piHPSDR:
https://github.com/dl1ycf/wdsp

73s

-Rick / N1GP
HB9LFQ
Posts: 20
Joined: Wed Jan 06, 2021 11:44 am

Re: piHPSDR AF on Ubuntu

Postby HB9LFQ » Sun Jul 02, 2023 7:28 pm

Hi Rick,

looks interesting, I built it, but had again to adjust the value. This time from -40 to -70 as it was too loud on 39.5 (-40 sets audio off). Is there some list about the exact differences? I didn't find anything neither on github nor on Christoph's homepage.

73,
András / HB9LFQ

Return to “piHPSDR”