Re: GPIO INIT ERROR
Publié : 11 nov. 2016, 18:16
Bonsoir Bruno et tous
Merci pour tes lignes, grace à elle j'ai retrouver mes GPIO.
Alors voila tout d'abord ce j'ai fait:
sudo service domoticz stop
puis
sudo service domoticz status
et j'ai eu des lignes ui e termine par No Found
nov. 11 17:58:30 raspberry domoticz.sh[830]: /etc/init.d/domoticz.sh : 15: /etc/init.d/domoticz.sh: /usr/local/bin/gpio: No Found
et ceci pour toutes les lignes ou j'ai besoin de gpio.
puis
sudo nano /etc/init.d/domoticz.sh
Et dans les déclarations des gpio j'ai suprime /local pour avoir ces lignes:
#Configuration GPIO
/usr/bin/gpio export 7 in
/usr/bin/gpio edge 7 both
/usr/bin/gpio export 11 out
/usr/bin gpio exports
Ctrl X Sauvegarde O
puis
Reboot
puis
sudo service domoticz status
Plus de ligne No found
puis
gpio exports
et à l'ecran:
GPIO Pins exported:
7: in 1 both
11: out 0 none
Je repasse dans le navigateur Domoticz Interrupteur Ajout manuel
Gpio Raspberry et je trouve toutes les gpio not exported et les gpio exported.
Et je peux utiliser les gpio.
Daniel
Merci pour tes lignes, grace à elle j'ai retrouver mes GPIO.
Alors voila tout d'abord ce j'ai fait:
sudo service domoticz stop
puis
sudo service domoticz status
et j'ai eu des lignes ui e termine par No Found
nov. 11 17:58:30 raspberry domoticz.sh[830]: /etc/init.d/domoticz.sh : 15: /etc/init.d/domoticz.sh: /usr/local/bin/gpio: No Found
et ceci pour toutes les lignes ou j'ai besoin de gpio.
puis
sudo nano /etc/init.d/domoticz.sh
Et dans les déclarations des gpio j'ai suprime /local pour avoir ces lignes:
#Configuration GPIO
/usr/bin/gpio export 7 in
/usr/bin/gpio edge 7 both
/usr/bin/gpio export 11 out
/usr/bin gpio exports
Ctrl X Sauvegarde O
puis
Reboot
puis
sudo service domoticz status
Plus de ligne No found
puis
gpio exports
et à l'ecran:
GPIO Pins exported:
7: in 1 both
11: out 0 none
Je repasse dans le navigateur Domoticz Interrupteur Ajout manuel
Gpio Raspberry et je trouve toutes les gpio not exported et les gpio exported.
Et je peux utiliser les gpio.
Daniel