This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reset Gpio help
i am try to run this commands and 

# Reset iC880a PIN
echo "$SX1301_RESET_BCM_PIN"  > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/direction
echo "0"   > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/value
sleep 0.1
echo "1"   > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/value
sleep 0.1
echo "0"   > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/value
sleep 0.1
echo "$SX1301_RESET_BCM_PIN"  > /sys/class/gpio/unexport

 I am getting this error line 6: echo: write error: Invalid argument line 7: echo: write error: Operation not permitted line 9: echo: write error: Operation not permitted line 11: echo: write error: Operation not permitted

I need some help for making this works

Best, regards
which pin do you want to control?
I cannot find 25 this GPIO pin (SoC/CPU pin number)

e.g. if you want to use GPIO physical pin number 22. you need to control it by 171.
and you need to run those commands with root. or use sudo.
Yes, I think is the GPIO physical pin number 22, what do you mean by 171?
Should I replace this number in the command?
SX1301_RESET_BCM_PIN=171 ? something like this?
you can reference this table...control by CPU internal pin number
[Image: Gpio-table.png]

and yes replace pin number you need in the command.

Forum Jump:

Users browsing this thread: 1 Guest(s)