ninjablocks / 433Utils

433Kit is a collection of code and documentation designed to assist you in the connection and usage of RF 433MHz transmit and receive modules to/with your Arduino and Rapberry Pi.
ninjablocks.com
MIT License
893 stars 336 forks source link

Unable to open GPIO edge interface #40

Open timherrm opened 7 years ago

timherrm commented 7 years ago

Hi,

i'm running Armbian 5.31 stable on an Banana Pi Pro.

If i try ./RFSniffer i get the following error:

gpio: Unable to open GPIO edge interface for pin 27: Permission denied

But i am already logged in as root. The 433MHz Receiver is connected to GPIO.2 / WiringPi: 2 / Physical Port: 13

Could you please help me?

robototechnic commented 5 years ago

Same problem. It seems that the problem is in the libwiringPi library. If manually entered

root@bananapi:~# gpio edge 27 in
gpio: Unable to open GPIO edge interface for pin 27: Permission denied

displays the same error

robototechnic commented 5 years ago

After starting the ./RFSniffer in the directory /sys/class/gpio/appears

lrwxrwxrwx 1 root root 0 Feb 6 14:35 gpio27 -> ../../devices/platform/soc@01c00000/1c20800.pinctrl/gpiochip0/gpio/gpio27

but it should be gpio274 because. Our pin is called PI18 Same problem here