kgbplus / gpiotest Goto Github PK
View Code? Open in Web Editor NEWRaspberry Pi gpio monitoring utility
Raspberry Pi gpio monitoring utility
Console throws an error:
pi@RPi:~ $ sudo python3 gpiotest.py.2
hardware not supported
any Idea what it could be?
P1_REVISION: 3
REVISION: b03115
TYPE: Pi 4 Model B
MANUFACTURER: Sony
PROCESSOR: BCM2711
RAM: 2G
Maybe the "hardware not supported" message should say "GPIOTEST does not support this version of Raspberry PI". Would have saved me several hours.
Hello
I suspect I roasted one or more Gpoi-pins. Anyway SPI doesn't do its job like it used to, since I tried to measure battery voltage via Mcp3008 ADconverter
Gpio load spi gives gpio:unable to load/unload modules etc
Ls /dev/spi gives the two devices /dev/spidev0.0 and 0.1
Did raspi-config, dtparam=spi=on
Lsmod gives no spidev anymore! But bcm2835_gpiomem is there.
Controled the settings several times, updated etc, no clue. So tried to test with Gpiotest.py.
sudo pigpiod but when I run the program in CL, i get no message and a new commandline after 1-2 seconds.
No message. What can be the background of this?
Is my SPI "broken"? If just Gpiotest would work!
I have a Rasberry 2B v.14 2014
Linux raspberry 4.1.19-v7+
Thanks
Very useful script :)
It currently does not support the rPi Zero 2, as it is not recognised.
root@raspberrypi:~/gpiotest# python gpiotest.py
hardware not supported
Traceback (most recent call last):
File "gpiotest.py", line 399, in
termOn()
File "gpiotest.py", line 39, in termOn
curses.nocbreak()
_curses.error: must call initscr() first
Please add a line in the readme file:
remember: terminal screen need to big enough or "addstr() returned ERR"
To fix this try increase size of current terminal windows (by mouse).
root@automacao:~/gpiotest# python gpiotest.py
hardware not supported
Traceback (most recent call last):
File "gpiotest.py", line 406, in
termOn()
File "gpiotest.py", line 39, in termOn
curses.nocbreak()
_curses.error: must call initscr() first
pi@raspberrypi:~/src/gpiotest $ sudo python3 gpiotest.py
hardware not supported
Traceback (most recent call last):
File "gpiotest.py", line 395, in <module>
termOn()
File "gpiotest.py", line 39, in termOn
curses.nocbreak()
_curses.error: must call initscr() first
pi@raspberrypi:~/src/gpiotest $ sudo python2 gpiotest.py
hardware not supported
Traceback (most recent call last):
File "gpiotest.py", line 395, in <module>
termOn()
File "gpiotest.py", line 39, in termOn
curses.nocbreak()
_curses.error: must call initscr() first
pinout
): Pi Model 3B+ V1.3$ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
My B+ identifies as "13" not "0013"
Line 242 in 9f776a9
i got this instead on pi4B 4G
root@raspberrypi:~# sudo python gpiotest.py
Failed to add edge detection
Originally posted by @tyjtyj in https://github.com/kgbplus/gpiotest/issue_comments/693561612
Hello,
I'm trying this on the RPi compute 4 module mounted onto an RPi compute 4 IO board; the argument is b03410 but there are multiple configurations of the compute 4 module. From what I can understand this combination is the same as an RPi 4. Is it just a case of adding this into the code to handle the compute module?
Cheers,
Neil
root@raspberrypi:~/gpiotest# python gpiotest.py
hardware not supported
Traceback (most recent call last):
File "gpiotest.py", line 399, in
termOn()
File "gpiotest.py", line 39, in termOn
curses.nocbreak()
_curses.error: must call initscr() first
Receive Hardware Not Supported when running python script.
pi@fluiddpi:~/gpiotest $ sudo python gpiotest.py --gpio_num 26 hardware not supported
pi@fluiddpi:~/gpiotest $ sudo python gpiotest.py --gpio_num 17 hardware not supported
pi@fluiddpi:~/gpiotest $ sudo python gpiotest.py hardware not supported
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.