Bonjour,
[Config : Rpi3 V3 5877]
Mes 5 entrées sont exportées dans etc/init.d/domoticz.sh
exemple :
# Pin GPIO 19 (IN) PIN C IMPULSION CPTO
echo "19" > /sys/class/gpio/export
chmod 777 -R /sys/class/gpio/gpio19
echo "in" > /sys/class/gpio/gpio19/direction
echo "both" > /sys/class/gpio/gpio19/edge
Elles sont bien lues par gpio readall mais domoticz ne les voit pas (pas de changement d'état mm dans le log)
J'ai oublié quelque chose ?
2017-01-23 17:49:27.368 GPIO: Worker stopped...
2017-01-23 17:49:34.017 GPIO: Hooking interrupt handler for GPIO 12.
2017-01-23 17:49:34.017 Error: GPIO: Error hooking interrupt handler for unknown GPIO 12.
2017-01-23 17:49:34.017 GPIO: Hooking interrupt handler for GPIO 13.
2017-01-23 17:49:34.017 Error: GPIO: Error hooking interrupt handler for unknown GPIO 13.
2017-01-23 17:49:34.017 GPIO: Hooking interrupt handler for GPIO 16.
2017-01-23 17:49:34.017 Error: GPIO: Error hooking interrupt handler for unknown GPIO 16.
2017-01-23 17:49:34.017 GPIO: Hooking interrupt handler for GPIO 19.
2017-01-23 17:49:34.017 Error: GPIO: Error hooking interrupt handler for unknown GPIO 19.
2017-01-23 17:49:34.017 GPIO: Hooking interrupt handler for GPIO 26.
2017-01-23 17:49:34.017 Error: GPIO: Error hooking interrupt handler for unknown GPIO 26.
2017-01-23 17:49:34.017 GPIO: WiringPi is now initialized
Pas de retour d'état sur les GPIO configurés en entrée.
-
RaspOlivier
- Messages : 129
- Inscription : 10 déc. 2016, 09:40
- Localisation : 44 - NANTES
-
bruno_ghost17
- Messages : 97
- Inscription : 01 févr. 2016, 18:56
- Localisation : Rochefort(17)
Re: Pas de retour d'état sur les GPIO configurés en entrée.
salut
ça te donne quoi un "gpio exports" ?
bruno.
ça te donne quoi un "gpio exports" ?
bruno.
Raspi 2 - RFxCom - sondes Oregon
Re: Pas de retour d'état sur les GPIO configurés en entrée.
Je suis dans le meme cas que toi RaspOlivier.
J'ai ajouter les mêmes lignes de code pour utiliser en Input les gpio 4,5,6,13,17,19,22,26,27 mais certaines ne fonctionnent pas. Dans les logs je retrouve les messages suivant:
2017-01-24 22:26:16.377 Error: GPIO: Error hooking interrupt handler for unknown GPIO 5.
2017-01-24 22:26:16.377 Error: GPIO: Error hooking interrupt handler for unknown GPIO 6.
2017-01-24 22:26:16.377 Error: GPIO: Error hooking interrupt handler for unknown GPIO 13.
2017-01-24 22:26:16.387 Error: GPIO: Error hooking interrupt handler for unknown GPIO 19.
2017-01-24 22:26:16.397 Error: GPIO: Error hooking interrupt handler for unknown GPIO 26
Je pense que nous avons le même genre de problème.
Quand je fais un gpio exports, j'ai le resultat suivant pour ma part:
GPIO Pins exported:
4: in 1 both
5: in 1 both
6: in 0 both
13: in 0 both
17: in 0 both
19: in 0 both
22: in 0 both
26: in 0 both
27: in 0 both
J'ai ajouter les mêmes lignes de code pour utiliser en Input les gpio 4,5,6,13,17,19,22,26,27 mais certaines ne fonctionnent pas. Dans les logs je retrouve les messages suivant:
2017-01-24 22:26:16.377 Error: GPIO: Error hooking interrupt handler for unknown GPIO 5.
2017-01-24 22:26:16.377 Error: GPIO: Error hooking interrupt handler for unknown GPIO 6.
2017-01-24 22:26:16.377 Error: GPIO: Error hooking interrupt handler for unknown GPIO 13.
2017-01-24 22:26:16.387 Error: GPIO: Error hooking interrupt handler for unknown GPIO 19.
2017-01-24 22:26:16.397 Error: GPIO: Error hooking interrupt handler for unknown GPIO 26
Je pense que nous avons le même genre de problème.
Quand je fais un gpio exports, j'ai le resultat suivant pour ma part:
GPIO Pins exported:
4: in 1 both
5: in 1 both
6: in 0 both
13: in 0 both
17: in 0 both
19: in 0 both
22: in 0 both
26: in 0 both
27: in 0 both
-
RaspOlivier
- Messages : 129
- Inscription : 10 déc. 2016, 09:40
- Localisation : 44 - NANTES
Re: Pas de retour d'état sur les GPIO configurés en entrée.
Bonsoir Bruno,
un gpio exports m'indique la bonne config :
5: out 0 none
6: out 0 none
7: out 0 none
8: out 0 none
9: out 0 none
10: out 0 none
11: out 0 none
12: in 0 both
13: in 0 both
14: out 0 none
15: out 0 none
16: in 0 both
17: out 0 none
18: out 0 none
19: in 0 both
20: out 0 none
21: out 0 none
22: out 0 none
23: out 0 none
24: out 0 none
25: out 0 none
26: in 0 both
27: out 0 none
Ce que je n'ai pas précisé et qui est important tout de même, c'est que cela a fonctionné pendant quelques jours, c'est suite à un remplacement de fils volants par un connecteur que j'ai perdu la lecture des entrées (j'ai depuis supprimé le connecteur et suis repassé en fils volants mais ça ne fonctionne pas plus !)
un gpio exports m'indique la bonne config :
5: out 0 none
6: out 0 none
7: out 0 none
8: out 0 none
9: out 0 none
10: out 0 none
11: out 0 none
12: in 0 both
13: in 0 both
14: out 0 none
15: out 0 none
16: in 0 both
17: out 0 none
18: out 0 none
19: in 0 both
20: out 0 none
21: out 0 none
22: out 0 none
23: out 0 none
24: out 0 none
25: out 0 none
26: in 0 both
27: out 0 none
Ce que je n'ai pas précisé et qui est important tout de même, c'est que cela a fonctionné pendant quelques jours, c'est suite à un remplacement de fils volants par un connecteur que j'ai perdu la lecture des entrées (j'ai depuis supprimé le connecteur et suis repassé en fils volants mais ça ne fonctionne pas plus !)
-
RaspOlivier
- Messages : 129
- Inscription : 10 déc. 2016, 09:40
- Localisation : 44 - NANTES
Re: Pas de retour d'état sur les GPIO configurés en entrée.
Bonsoir, après être passé en béta, il semble y avoir de l'amélioration
2017-02-09 20:03:28.838 GPIO: Hooking interrupt handler for GPIO 3.
2017-02-09 20:03:28.848 GPIO: Hooking interrupt handler for GPIO 12.
2017-02-09 20:03:28.858 GPIO: Hooking interrupt handler for GPIO 13.
2017-02-09 20:03:28.867 GPIO: Hooking interrupt handler for GPIO 19.
2017-02-09 20:03:28.877 GPIO: Hooking interrupt handler for GPIO 21.
2017-02-09 20:03:28.887 GPIO: Hooking interrupt handler for GPIO 26.
2017-02-09 20:03:28.838 GPIO: Hooking interrupt handler for GPIO 3.
2017-02-09 20:03:28.848 GPIO: Hooking interrupt handler for GPIO 12.
2017-02-09 20:03:28.858 GPIO: Hooking interrupt handler for GPIO 13.
2017-02-09 20:03:28.867 GPIO: Hooking interrupt handler for GPIO 19.
2017-02-09 20:03:28.877 GPIO: Hooking interrupt handler for GPIO 21.
2017-02-09 20:03:28.887 GPIO: Hooking interrupt handler for GPIO 26.