0

"I have set up a task on my Jetson device, where if someone presses the "FORCE RECOVERY" button for 15 seconds, the device will automatically recover. The pin number for the FORCE RECOVERY button is documented as pin 214, and I have used the Jetson.GPIO library in my Python code to detect the button press. However, I am getting a "ValueError: Channel 214 is invalid" error message when running my code. Can anyone help me understand what I am doing wrong and how I can correctly detect the button press on pin 214 using Jetson.GPIO?"

import Jetson.GPIO as GPIO

#To disable the warnings
GPIO.setwarnings(False)

# Set the GPIO mode to BCM
GPIO.setmode(GPIO.BCM)

# Set pin 214 as input
GPIO.setup(214, GPIO.IN)

# Read the input status of pin 214
input_value = GPIO.input(214)

# Print the input value to the console
print("Input value of pin 214:", input_value)

# Clean up the GPIO configuration
GPIO.cleanup()
import Jetson.GPIO as GPIO

#To disable the warnings

GPIO.setwarnings(False)

GPIO.setmode(GPIO.TEGRA_SOC)

GPIO.setup('FORCE_RECOVERY', GPIO.IN)

value = GPIO.input('FORCE_RECOVERY')

print(value)

# Clean up the GPIO configuration

GPIO.cleanup()
I have written this code for FC REC (Force recovery pin) but i am getting below error:
WARNING: Carrier board is not from a Jetson Developer Kit.WARNNIG: Jetson.GPIO library has not been verified with this carrier board,WARNING: and in fact is unlikely to work correctly.Traceback (most recent call last):File "frp.py", line 7, inGPIO.setup(214, GPIO.IN)File "/usr/lib/python3/dist-packages/Jetson/GPIO/gpio.py", line 358, in setupch_infos = _channels_to_infos(channels, need_gpio=True)File "/usr/lib/python3/dist-packages/Jetson/GPIO/gpio.py", line 121, in _chansfor c in _make_iterable(channels)]File "/usr/lib/python3/dist-packages/Jetson/GPIO/gpio.py", line 121, infor c in _make_iterable(channels)]File "/usr/lib/python3/dist-packages/Jetson/GPIO/gpio.py", line 104, in _chanpraise ValueError("Channel %s is invalid" % str(channel))ValueError: Channel 214 is invalid

this is the link:

link for the Documentation where metioned about the 214 FC REC pin

0 Answers0