quarta-feira, 27 de março de 2019

Unable to determine hardware version. I see: Hardware : BCM2835


 
 
Unable to determine hardware version. I see: Hardware   : BCM2835
 
Encontrei este error ao tentar acessar o GPIO da rasp: 
Raspberry Pi 3 Model B Plus Rev 1.3
 
 
gpio -v
gpio version: 2.50
Copyright (c) 2012-2018 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

Raspberry Pi Details:
  Type: Pi 3B+, Revision: 03, Memory: 1024MB, Maker: Sony 
  * Device tree is enabled.
  *--> Raspberry Pi 3 Model B Plus Rev 1.3
  * This Raspberry Pi supports user-level GPIO access.
 
 
 
SOLUÇÃO DO:  BCM2835 
Obs.: Depois de tentar VÁRIAS esta foi a única que funcionou.

 
EECUTAR OS COMANDOS ABAIXO NA SEQUENCIA. 
sudo apt-get purge wiringpi
hash -r
sudo apt-get install git-core
cd ~
git clone git://git.drogon.net/wiringPi
cd ~/wiringPi
git pull origin
./build
gpio -v
gpio readall
cd ~
pi4j -v

//this command doesn't get the latest for some reason
curl -s get.pi4j.com | sudo bash
//use this instead:
get the file from here http://get.pi4j.com/download/pi4j-1.2-SNAPSHOT.deb
sudo apt-get remove pi4j
curl -s get.pi4j.com/uninstall | sudo bash
sudo dpkg -i pi4j-1.2-SNAPSHOT.deb
pi4j -v