Bonjour,
J'utilise le module Teleinfo depuis plus d'un an maintenant, et tout fonctionnait pour le mieux.
Depuis une semaine (le 17/01), je ne reçois plus rien dans Domoticz depuis /dev/ttyAMA0.
Quand je lance un cat sur le fichier /dev/ttyAMA0, toutes les informations sont écrites sur la même ligne:
Code : Tout sélectionner
root@raspberrypi:/home/pi/domoticz# cat /dev/ttyAMA0
6OPTARIF HC.. <48461 8
Si je change la conf du port avec:
la commande cat fonctionne sans souci, mais Domoticz ne reçois toujours rien.
Si j'arrête et que je relance domoticz, ou que je désactive et réactive le module Teleinfo depuis le menu Hardware, les informations renvoyées sur /dev/ttyAMA0 arrivent à nouveau sur une seule ligne, sans retour chariot.
Chaque fois que je réinitialise la conf du port, le cat fonctionne à nouveau, mais dès que Domoticz démarre, ou affiche dans le log:
Code : Tout sélectionner
2016-01-23 09:06:00.821 Error: Info EDF hardware (3) nothing received for more then 1 Minute!....
2016-01-23 09:06:01.823 Error: Restarting: Info EDF
la conf du port est changée
Rien n'a changé sur mon Raspberry depuis 1 an, même pas la version de Domoticz. Je suis revenu sur une version stable, avec aucune base de données, et lorsque je crée juste 1 module hardware teleinfo, le problème se reproduit.
Avant de lancer Domoticz, voici la conf du port:
Code : Tout sélectionner
speed 1200 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
parenb -parodd cs7 hupcl -cstopb cread clocal -crtscts
-ignbrk brkint -ignpar -parmrk inpck -istrip -inlcr -igncr icrnl -ixon -ixoff -iuclc -ixany imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
Une fois domoticz lancé, la conf change:
Code : Tout sélectionner
speed 1200 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
parenb -parodd cs7 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany imaxbel -iutf8
-opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
-isig -icanon -iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
Des options sont changées pour:
- opost devient -opost
- isig icanon iexten echo devient -isig -icanon -iexten -echo
Quand je lance Domoticz avec l'option -verbose je ne vois rien de plus pour m'aider. Je suis passé sur la dernière béta, mais rien ne change:
Code : Tout sélectionner
root@raspberrypi:/opt/domotest# ./domoticz -verbose 1
2016-01-22 09:34:47.698 Domoticz V2.3530 (c)2012-2015 GizMoCuz
2016-01-22 09:34:47.700 Build Hash: 9eef872, Date: 2015-11-01 11:41:18
2016-01-22 09:34:47.701 System: Raspberry Pi
2016-01-22 09:34:47.702 Startup Path: /opt/domotest/
2016-01-22 09:34:47.870 Active notification subsystems: http (1/10)
2016-01-22 09:34:47.883 Webserver started on port: 8080
2016-01-22 09:34:47.894 Started shared server on: 0.0.0.0
2016-01-22 09:34:49.898 Teleinfo: Using serial port: /dev/ttyAMA0
2016-01-22 09:34:49.901 EventSystem: reset all events...
2016-01-22 09:34:49.904 EventSystem: reset all device statuses...
2016-01-22 09:34:49.907 EventSystem: Started
J'ai:
Code : Tout sélectionner
root@raspberrypi:/dev# cat /dev/ttyAMA0
AXADCO 041230048461 8
6OPTARIF HC.. <
ISOUSC 25 =
OHCHC 023479837 1
PHCHP 020007289 /
0PTEC HP..
8IINST1 000 H
.IINST2 000 I
IINST3 002 L
9IMAX1 023 5
0IMAX2 029 <
PIMAX3 035 :
IPMAX 15730 6
IPAPP 00460 +
IHHPHC C .
LMOTDETAT 000000 B
XPPOT 00 #
AXADCO 041230048461 8
6OPTARIF HC.. <
ISOUSC 25 =
OHCHC 023479837 1
PHCHP 020007289 /
0PTEC HP..
8IINST1 000 H
.IINST2 000 I
IINST3 002 L
9IMAX1 023 5
0IMAX2 029 <
PIMAX3 035 :
IPMAX 15730 6
IPAPP 00450 *
IHHPHC C .
LMOTDETAT 000000 B
AXADCO 041230048461 8
avant le lancement de Domoticz, ou la réactivation du module téléinfo, puis:
Code : Tout sélectionner
root@raspberrypi:/dev# cat /dev/ttyAMA0
6OPTARIF HC.. <48461 8
PIMAX3 035^CL94 +
après. Tout s'affiche et défile sur une seule ligne, et de temps en temps j'ai un retour chariot. Les infos sont présentes, mais Domoticz ne peut pas les interpréter.
Il me semble d'ailleurs que la semaine dernière, je n'avais pas le premier caractère en début de chaque ligne
mais la conf n'ayant pas été touchée depuis longtemps, je n'avais pas fait de cat depuis un bon moment
Quelqu'un aurait-il une idée?
J'ai posté un message identique sur le forum US:
http://www.domoticz.com/forum/posting.p ... =6&p=71309
mais sans réponse actuellement
Merci d'avance pour votre aide,
Ded