I am new to the Jetson platform. I have been using Raspberry Pi’s extensively. I use Piscope to monitor pin states all of the time. I have been searching and even trying to create my own version of Piscope for the Jetson Orin Nano, but no luck so far. I have done it with Jetson.GPIO in Python, but I need non-exclusive access to the pin states so that other scripts can simultaneously control the pins while I monitor their states. Piscope does this. Any help would be greatly appreciated.
Are you using the devkit or custom board for Orin Nano?
What’s your Jetpack version in use?
Have you tried using sysfs to export and check the pin state?
Do you mean the Jetson.GPIO could not meet your requirement?
If so, please clarify what’s the issue? Couldn’t it control and monitor the pin at the same time?
Sysfs is exclusive. Once I export a pin with sysfs, I cannot access it with Jetson.GPIO and vice versa.
OSError: [Errno 16] Device or resource busy
Jetson.GPIO.gpio_cdev.GPIOError: [Errno 16] Opening output line handle: Device or resource busy
Piscope can run independently of other scripts and can read the pins while other scripts control and access them.
You have a point about trying to do the monitoring in the same script that is controlling/accessing the pins, but that’s not a great option. I would rather have something standalone (just like the Pi platform has.)
AFAIK, once the pin is used by some client it cant be used by other client
Have you tried with gpiod?
How does Piscope do it?
There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
It seems piscope also request the pin.
Could you use piscope an sysfs to control GPIO at the same time?