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

GPIO not unbound after closing. #1316

Closed
j-gallardo opened this issue Jun 17, 2023 · 0 comments
Closed

GPIO not unbound after closing. #1316

j-gallardo opened this issue Jun 17, 2023 · 0 comments
Labels
bug fixed Issue has been fixed
Milestone

Comments

@j-gallardo
Copy link
Contributor

Hi,I'm using GPIO to control PTT. I have found that the gpio port is not released when rigclt/rigctld is closed. I'm using a sbc Nextthingco C.H.I.P., with the following configuration:
Linux chip 4.4.13-ntc-mlc #1 SMP Tue Dec 6 21:38:00 UTC 2016 armv7l GNU/Linux
Debian 8 (jessie), variant "Debian no C.H.I.P."
gcc (Debian 4.9.2-10+deb8u2) 4.9.2

To control my Icom IC706 I use:
#rigctl -m 3009 -c 0x48 -r /dev/ttyS0 -s 19200 -P GPIO -p 1013
where 1013 is the gpio port number.
It works perfectly the first time, but if I close rigctl and open it again, it won't communicate with the rig. The solution is to unbind the port with: 
#sh -c 'echo 1013 > /sys/class/gpio/unexport'
I suggest this should be included in the gpio_close function.
I'm not a real developer, so it will take long until I fix it in the code. If I get it done I will submit the solution to github.
Thanks for the hard work.

@mdblack98 mdblack98 added the bug label Jun 17, 2023
@mdblack98 mdblack98 added this to the 4.6 milestone Jun 17, 2023
@mdblack98 mdblack98 added the needs test Patches have been submitted but need testing to close issue label Jun 17, 2023
@mdblack98 mdblack98 reopened this Jun 17, 2023
@mdblack98 mdblack98 added fixed Issue has been fixed and removed needs test Patches have been submitted but need testing to close issue labels Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fixed Issue has been fixed
Projects
None yet
Development

No branches or pull requests

2 participants