Hello
I want to test GPIO pins is still working or burned out ... is existing function for the test in bash, or how can I determinate is working...
Code: Select all
$ sudo pigpiod
$ ls
gpiotest
$ ls -l
total 4
-rwxr-xr-x 1 joan joan 2420 Apr 13 15:19 gpiotest
$ ./gpiotest
This program checks the Pi's (user) gpios.
The program reads and writes all the gpios. Make sure NOTHING
is connected to the gpios during this test.
The program uses the pigpio daemon which must be running.
To start the daemon use the command sudo pigpiod.
Press the ENTER key to continue or ctrl-C to abort...
Testing...
Write 0 to gpio 14 failed.
Pull down on gpio 14 failed.
Skipped non-user gpios: 0 1 28 29 30 31
Tested user gpios: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Failed user gpios: 14
Code: Select all
testing GPIO 0
-41
ERROR: no permission to update GPIO
1
-41
ERROR: no permission to update GPIO
1
-41
ERROR: no permission to update GPIO
-41
ERROR: no permission to update GPIO
1
-41
ERROR: no permission to update GPIO
1
testing GPIO 1
-41
ERROR: no permission to update GPIO
1
-41
ERROR: no permission to update GPIO
1
-41
ERROR: no permission to update GPIO
-41
ERROR: no permission to update GPIO
1
-41
ERROR: no permission to update GPIO
1
testing GPIO 2
0
1
1
1
testing GPIO 3
0
1
1
1
testing GPIO 4
0
1
1
0
testing GPIO 5
0
1
1
0
testing GPIO 6
0
1
1
0
testing GPIO 7
0
1
1
0
testing GPIO 8
0
1
1
0
testing GPIO 9
0
1
1
0
testing GPIO 10
0
1
1
0
testing GPIO 11
0
1
1
0
testing GPIO 12
0
1
1
0
testing GPIO 13
0
1
1
0
testing GPIO 14
1
1
1
1
testing GPIO 15
0
1
1
0
testing GPIO 16
0
1
1
0
testing GPIO 17
0
1
1
0
testing GPIO 18
0
1
1
0
testing GPIO 19
0
1
1
0
testing GPIO 20
0
1
1
0
testing GPIO 21
0
1
1
0
testing GPIO 22
0
1
1
0
testing GPIO 23
0
1
1
0
testing GPIO 24
0
1
1
0
testing GPIO 25
0
1
1
0
testing GPIO 26
0
1
1
0
testing GPIO 27
0
1
1
0
testing GPIO 28
-41
ERROR: no permission to update GPIO
0
-41
ERROR: no permission to update GPIO
0
-41
ERROR: no permission to update GPIO
-41
ERROR: no permission to update GPIO
0
-41
ERROR: no permission to update GPIO
0
testing GPIO 29
-41
ERROR: no permission to update GPIO
1
-41
ERROR: no permission to update GPIO
1
-41
ERROR: no permission to update GPIO
-41
ERROR: no permission to update GPIO
1
-41
ERROR: no permission to update GPIO
1
testing GPIO 30
-41
ERROR: no permission to update GPIO
0
-41
ERROR: no permission to update GPIO
0
-41
ERROR: no permission to update GPIO
-41
ERROR: no permission to update GPIO
0
-41
ERROR: no permission to update GPIO
0
testing GPIO 31
-41
ERROR: no permission to update GPIO
0
-41
ERROR: no permission to update GPIO
0
-41
ERROR: no permission to update GPIO
-41
ERROR: no permission to update GPIO
0
-41
ERROR: no permission to update GPIO
0
$
Code: Select all
Okay, I am the third one.
I am running my RPi3 on latest Jessie 4-10. terminal command gpiotest tells me no such command. sudo pigiod nothing. Take it slowly, How do I install the library ? Then step by step instruction, please. How do I proceed ?
Appreciate your understanding...
calleblyh wrote:joan wrote:You are the second person to mention my gpiotest fails on a Pi3.
Unfortunately it works okay for me.Code: Select all
Okay, I am the third one. I am running my RPi3 on latest Jessie 4-10. terminal command gpiotest tells me no such command. sudo pigiod nothing. Take it slowly, How do I install the library ? Then step by step instruction, please. How do I proceed ? Appreciate your understanding...[/quote][/quote] sudo pigpiod not pigiod. It launches the daemon silently. If [b]pigpiod -v[/b] says command not found then on Raspbian do [b]sudo apt-get install pigpio[/b] If [b]pigpiod -v[/b] returns a number it is installed. You can test by running the command [b]pigs hwver[/b] which should return 10494082 on a Pi3.
To install pigpio, if it isn't already install in Raspbian, do:calleblyh wrote:I am running my RPi3 on latest Jessie 4-10. terminal command gpiotest tells me no such command. sudo pigiod nothing. Take it slowly, How do I install the library ? Then step by step instruction, please.
Code: Select all
sudo apt-get update
sudo apt-get install pigpio
I just run it from a command terminal.calleblyh wrote: Ok, done all that.
I can see there is the gpiotest file. Looking into the file and howto proceed looks ok. So I do sudo pigpiod.. then running from terminal doesnt work. Next trying to run from GUI lxterminal it looks better like the test is started but I never get any response. I think I'm doing something stupid/wrong, please advice how I should run the gpiotest ?
Thanks again
Calleblyh