-
Notifications
You must be signed in to change notification settings - Fork 173
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
GPIO cannot be activated #677
Comments
The new version of svxlink use gpiod and not gpio.conf, which should remain
but be unconfigured. Both gpiod and lib2gpiod-dev should be installed with
apt. The svxlink.conf in Rx1 and Tx1 should indicate the presence of
gpiochip0 or similar. The man file should contain the relevant changes.
Come back if you need more detailed help.
Chris
…On Fri, 2 Aug 2024, 14:03 DL7TA, ***@***.***> wrote:
Hello OM.
I have been successfully operating several repeaters with Svxlink for
years and have written a small manual for the installation and
configuration. Up until now, the installation worked without any problems,
but unfortunately it is currently stuck.
I configure my GPIO pins as follows in /etc/svxlink/gpio.conf:
###############################################################################
Configuration file for the SvxLink server GPIO Pins
###############################################################################
GPIO system pin path RPi/odroid/nanopi/pine64 = /sys/class/gpio, orangpi
= /sys/class/gpio_sw
GPIO_PATH=/sys/class/gpio
Space separated list of GPIO pins that point IN and have an Active HIGH
state (3.3v = ON, 0v = OFF)
GPIO_IN_HIGH="gpio26"
Space separated list of GPIO pins that point IN and have an Active LOW
state (0v = ON, 3.3v = OFF)
GPIO_IN_LOW=""
Space separated list of GPIO pins that point OUT and have an Active HIGH
state (3.3v = ON, 0v = OFF)
GPIO_OUT_HIGH="gpio13"
Space separated list of GPIO pins that point OUT and have an Active LOW
state (0v = ON, 3.3v = OFF)
GPIO_OUT_LOW=""
User that should own the GPIO device files
GPIO_USER="svxlink"
Group for the GPIO device files
GPIO_GROUP="svxlink"
File access mode for the GPIO device files
GPIO_MODE="0664"
I activate the GPIO with sudo systemctl enable svxlink_gpio_setup and then
start Svxlink.
This starts with the error message:
"*** ERROR: Could not open GPIO device /sys/class/gpio/gpio26/value
specified in Rx1/GPIO_SQL_PIN: No such file or directory"
Svxlink did not create any folders for the individual GPIOs under
/sys/class/gpio.
This had always worked without problems up until now.
Has something changed in the current version of Svxlink so that I now have
to take a different approach?
vy73!
Dan
—
Reply to this email directly, view it on GitHub
<#677>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAKA5BP6KRRHAIUFFWSH7TZPN7TXAVCNFSM6AAAAABL4QLLE2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2DIOJSGE3TKNQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hello Chris, |
Two things come to mind at this point. Your version of svxlink-server is
seemingly not up to date as it should be as it doesn't contain the gpiod
squelch option, and gpiod may not be installed by apt.
I'm working with version 24-02.1 on Debian 12 bookworm. I have perfected
(almost) the complete script that will solve your issues. If you wish to
try this, then email me direct. There is no compilation for this build, and
can be operational in probably less than 20 minutes.
…On Sun, 4 Aug 2024, 11:59 DL7TA, ***@***.***> wrote:
Hello Chris,
thanks for your answer.
Unfortunately the setting with SQL_DET=GPIOD doesn't work.
Svxlink is up to date, but the error message still appears:
ERROR: Unknown squelch type specified in config variable Rx1/SQL_DET.
Legal squelch types are: "COMBINE" "CTCSS" "EVDEV" "GPIO" "HIDRAW" "OPEN"
"PTY" "SERIAL" "SIGLEV" "VOX"
The docs here on Github say that the following is possible:
.B SQL_DET
Specify the type of squelch detector to use. Possible values are: VOX,
CTCSS,
SERIAL, EVDEV, SIGLEV, PTY, GPIO, GPIOD, HIDRAW or COMBINE.
But unfortunately it doesn't work.
Do you have any other ideas?
vy 73!
Dan
—
Reply to this email directly, view it on GitHub
<#677 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAKA5CAVYTKL6V22UUOABTZPYCRNAVCNFSM6AAAAABL4QLLE2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRXGQ4TSOBQGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hello, First, generate a path for gpio26. $ cat /sys/kernel/debug/gpio | grep GPIO26 I found out it is gpio-538, so I will export it. $ echo 538 > /sys/class/gpio/export Generated in/hi. Next, PTT (GPIO13) is generated in the same way. $ echo out > /sys/class/gpio/gpio525/direction Make svxlink.conf as follows. svxlink.conf SQL_DET=GPIO PTT_TYPE=GPIO 73! |
I did overcome this problem with W6NAS repeater which has this
configuration. Gpiod works with it as well. I'll go back to the sysop to
recall what we did.
…On Fri, 30 Aug 2024, 13:38 yoch, ***@***.***> wrote:
Hello,
I faced the same problem and I solved it so I'll share it.
It seems that the new OS has changed the way GPIO is accessed.
First, generate a path for gpio26.
$ cat /sys/kernel/debug/gpio | grep GPI26
gpio-538 (GPI26 )
I found out it is gpio-538, so I will export it.
$ echo 538 > /sys/class/gpio/export
$ cat /sys/kernel/debug/gpio | grep GPI26
gpio-538 (GPI26 |sysfs ) in hi
Generated in/hi.
Next, PTT (GPIO13) is generated in the same way.
The ptt is also generated with in/hi, so it changes direction.
$ echo out > /sys/class/gpio/gpio525/direction
$ cat /sys/kernel/debug/gpio | grep GPI13
gpio-525 (GPI13 |sysfs ) out lo
Make svxlink.conf as follows.
If you want the opposite behavior, remove or add the [!].
svxlink.conf
SQL_DET=GPIO
GPIO_PATH=/sys/class/gpio
GPIO_SQL_PIN=!gpio538
PTT_TYPE=GPIO
PTT_PIN=gpio525
GPIO_PATH=/sys/class/gpio
73!
—
Reply to this email directly, view it on GitHub
<#677 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAKA5AKBKO3AADPDY42KQDZUBRSVAVCNFSM6AAAAABL4QLLE2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRRGEYTEMBTHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hello OM.
I have been successfully operating several repeaters with Svxlink for years and have written a small manual for the installation and configuration. Up until now, the installation worked without any problems, but unfortunately it is currently stuck.
I configure my GPIO pins as follows in /etc/svxlink/gpio.conf:
###############################################################################
#Configuration file for the SvxLink server GPIO Pins
###############################################################################
#GPIO system pin path
#RPi/odroid/nanopi/pine64 = /sys/class/gpio, orangpi = /sys/class/gpio_sw
GPIO_PATH=/sys/class/gpio
#Space separated list of GPIO pins that point IN and have an
#Active HIGH state (3.3v = ON, 0v = OFF)
GPIO_IN_HIGH="gpio26"
#Space separated list of GPIO pins that point IN and have an
#Active LOW state (0v = ON, 3.3v = OFF)
GPIO_IN_LOW=""
#Space separated list of GPIO pins that point OUT and have an
#Active HIGH state (3.3v = ON, 0v = OFF)
GPIO_OUT_HIGH="gpio13"
#Space separated list of GPIO pins that point OUT and have an
#Active LOW state (0v = ON, 3.3v = OFF)
GPIO_OUT_LOW=""
#User that should own the GPIO device files
GPIO_USER="svxlink"
#Group for the GPIO device files
GPIO_GROUP="svxlink"
#File access mode for the GPIO device files
GPIO_MODE="0664"
I activate the GPIO with sudo systemctl enable svxlink_gpio_setup and then start Svxlink.
This starts with the error message:
"*** ERROR: Could not open GPIO device /sys/class/gpio/gpio26/value specified in Rx1/GPIO_SQL_PIN: No such file or directory"
Svxlink did not create any folders for the individual GPIOs under /sys/class/gpio.
This had always worked without problems up until now.
Has something changed in the current version of Svxlink so that I now have to take a different approach?
vy73!
Dan
The text was updated successfully, but these errors were encountered: