I looked into this issue where pihpsdr_v2.6 does not works with GPIO=ON.
It looks like pihpsdr_v2.6 isn't recognising radioberry.
pihpsdr_v2.6, setting GPIO=1 causes conflicts with GPIO pins, so it doesn't work.
but.. I'm unsure where I should make the change.
Result:
for GW=73.3, the correct GPIO for the key paddle is the following,
CWL_LINE = 17;
CWR_LINE = 21;
but the default pin configuration was being used in pihpsdr_v2.6.
CWL_LINE = 5;
CWR_LINE = 6;
Therefore, it appears to conflict with Radioberry pins, preventing operation.
As v2.5(Oct.11) works correctly, it is thought that a later modification in gpio.c or radio.c caused this degradation.
Current action:
_With compile with the GPIO=0 compile option. (m0aws's script is also
GPIO=0)
_Or, temporarily modify pihpsdr/src/gpio.c as bellow. and GPIO=1
< v2.6, using modified pihpsdr/src/gpio.c >
pihpsdr_v2.6 works

Modify pihpsdr/src/gpio.c :
Line.810-
case NO_CONTROLLER:
default:
//
// GPIO lines that are not used elsewhere: 5, 6, 12, 16,
// 22, 23, 24, 25, 27
//
//
CWL_LINE = 17; // Force radioberry(gw73.3) GPIO pin configuration (Added)
CWR_LINE = 21;
CWKEY_LINE = -1;
PTTIN_LINE = -1;
PTTOUT_LINE = -1;
CWOUT_LINE = -1;
t_print(" radioberry2 selected \n");
/*
CWL_LINE = 5; <-- The default GPIO pin configuration has been commented out.
CWR_LINE = 6;
CWKEY_LINE = 12;
PTTIN_LINE = 16;
PTTOUT_LINE = 22;
CWOUT_LINE = 23;
*/
:
Notes:
pihpsdr recognise radioberry as follows
pihpsdr/src/radio.c
void radio_start_radio() {
if (device == DEVICE_HERMES_LITE2) {
if (realpath("/dev/radioberry", NULL) != NULL) {
//
// This is a RadioBerry.
//
if (radio->software_version < 732) {
have_radioberry1 = 1;
} else {
have_radioberry2 = 1;
}
}
}
Pihpsdr_LOG:
After
change:
1.052 gpio_set_defaults: Controller=0
1.052 radioberry2 selected
1.052 *** have_radioberry1 = 0
1.052 *** have_radioberry2 = 0 <-- GW=73.2 and above:'1' (NG)
1.052 *** CWL_LINE = 17 <-- Force pin configuration (OK)
1.052 *** CWR_LINE = 21 <-- Force pin configuration (OK)
1.127 discovery: showing device dialog
1.128 discovery: devices=2 autostart=0
42.800 *** have_radioberry2 ***
42.801 gpio_init: GPIO device=/dev/gpiochip4
Before change:
1.037 gpio_set_defaults: Controller=0
1.037 *** have_radioberry1 = 0
1.037 *** have_radioberry2 = 0 <-- GW=73.2 and above:'1' (NG)
1.037 *** CWL_LINE = 5 <-- Default GPIO pins are being used (NG)
1.037 *** CWR_LINE = 6 <-- Default GPIO pins are being used (NG)
1.113 discovery: showing device dialog
1.113 discovery: devices=2 autostart=0
6.254 *** have_radioberry2 *** <-- No display "radioberry2 selected" (NG)
6.254 gpio_init: GPIO device=/dev/gpiochip4
//
p.s. Also checked that the pihpsdr cw-keyer is working. (modified mogpio.c v2.6)
Yado-san, jg1twp
2025年10月31日金曜日 8:50:57 UTC+9 SNAIL: