Pb de régression sur un équipement avec la version beta

Bonsoir Mips,
Je viens de constater une régression entre la dernière beta et la version stable sur un équipement qui fait du comptage, lorsque je suis passé en production.
Il s’agit de la lecture de deux données codées sur les registres 32-33 et 34-35.
J’ai fait un rollback sur la préproduction en version stable et cela fonctionne parfaitement. La différence semble provenir de l’option inversion de l’ordre des octets pour un type 32 bits.
Ci-après une copie des écrans de paramétrage, ainsi que celle du log en mode debug.
Merci pour tes éclairages



[2024-09-24 20:33:50] INFO  : Starting daemon with log level: debug
[2024-09-24 20:33:50] DEBUG  : Writing PID 1452612 to /tmp/jeedom/modbus2mqtt/daemon.pid
[2024-09-24 20:33:50] INFO  : Listening on 127.0.0.1:55071
[2024-09-24 20:33:50] INFO  : Send async started with a cycle of 0.5s
[2024-09-24 20:33:51] DEBUG  : Received new message on socket
[2024-09-24 20:33:51] DEBUG  : Close connection
[2024-09-24 20:33:51] INFO  : Starting modbus4mqtt for 268 and topic carte_entrees
[2024-09-24 20:33:51] DEBUG  : connect mqtt to 127.0.0.1 on 1883 with user jeedom
[2024-09-24 20:33:51] DEBUG  : will publish to modbus2mqtt/carte_entrees
[2024-09-24 20:33:51] INFO  : Start polling...
[2024-09-24 20:33:51] DEBUG  : Received new message on socket
[2024-09-24 20:33:51] DEBUG  : Received new message on socket
[2024-09-24 20:33:51] DEBUG  : Received new message on socket
[2024-09-24 20:33:51] DEBUG  : Close connection
[2024-09-24 20:33:51] DEBUG  : Close connection
[2024-09-24 20:33:51] DEBUG  : Close connection
[2024-09-24 20:33:51] INFO  : Starting modbus4mqtt for 270 and topic carte_sorties
[2024-09-24 20:33:51] DEBUG  : connect mqtt to 127.0.0.1 on 1883 with user jeedom
[2024-09-24 20:33:51] DEBUG  : will publish to modbus2mqtt/carte_sorties
[2024-09-24 20:33:51] INFO  : Connected to MQTT.
[2024-09-24 20:33:51] INFO  : Starting modbus4mqtt for 269 and topic compteurs_eau
[2024-09-24 20:33:51] DEBUG  : connect mqtt to 127.0.0.1 on 1883 with user jeedom
[2024-09-24 20:33:51] DEBUG  : will publish to modbus2mqtt/compteurs_eau
[2024-09-24 20:33:51] INFO  : Connected to MQTT.
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/on_01
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/off_01
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/on_02
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/off_02
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/on_03
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/off_03
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/on_04
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/off_04
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/on_05
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/off_05
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/on_06
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/off_06
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/on_07
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/off_07
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/on_08
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/off_08
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/on_09
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/off_09
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/on_10
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/off_10
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/on_11
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/off_11
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/on_12
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/off_12
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/on_13
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/off_13
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/on_14
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/off_14
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/on_15
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/off_15
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/on_16
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/carte_sorties/off_16
[2024-09-24 20:33:51] INFO  : Starting modbus4mqtt for 265 and topic vmc
[2024-09-24 20:33:51] DEBUG  : connect mqtt to 127.0.0.1 on 1883 with user jeedom
[2024-09-24 20:33:51] DEBUG  : will publish to modbus2mqtt/vmc
[2024-09-24 20:33:51] INFO  : Connected to MQTT.
[2024-09-24 20:33:51] INFO  : Start polling...
[2024-09-24 20:33:51] INFO  : Start polling...
[2024-09-24 20:33:51] INFO  : Start polling...
[2024-09-24 20:33:51] INFO  : Connected to MQTT.
[2024-09-24 20:33:51] INFO  : Subscribed to modbus2mqtt/vmc/debit_normal
[2024-09-24 20:33:56] DEBUG  : Read 1 value from holding table at 128
[2024-09-24 20:33:56] DEBUG  : Read 1 value from holding table at 129
[2024-09-24 20:33:56] DEBUG  : Read 1 value from holding table at 130
[2024-09-24 20:33:57] DEBUG  : Read 1 value from holding table at 131
[2024-09-24 20:33:57] DEBUG  : Read 1 value from holding table at 132
[2024-09-24 20:33:57] DEBUG  : Read 1 value from holding table at 133
[2024-09-24 20:33:57] DEBUG  : Read 1 value from holding table at 134
[2024-09-24 20:33:57] DEBUG  : Read 1 value from holding table at 135
[2024-09-24 20:33:57] DEBUG  : Read 1 value from holding table at 136
[2024-09-24 20:33:57] DEBUG  : Read 1 value from holding table at 137
[2024-09-24 20:33:57] DEBUG  : Read 1 value from holding table at 138
[2024-09-24 20:33:57] DEBUG  : Read 1 value from holding table at 139
[2024-09-24 20:33:57] DEBUG  : Read 1 value from holding table at 140
[2024-09-24 20:33:57] DEBUG  : Read 1 value from holding table at 141
[2024-09-24 20:33:57] DEBUG  : Read 1 value from holding table at 142
[2024-09-24 20:33:58] DEBUG  : Read 1 value from holding table at 143
[2024-09-24 20:33:58] DEBUG  : Read 1 value from holding table at 144
[2024-09-24 20:33:58] DEBUG  : Read 1 value from holding table at 145
[2024-09-24 20:33:58] DEBUG  : Read 1 value from holding table at 146
[2024-09-24 20:33:58] DEBUG  : Read 1 value from holding table at 147
[2024-09-24 20:33:58] DEBUG  : Read 1 value from holding table at 148
[2024-09-24 20:33:58] DEBUG  : Read 1 value from holding table at 149
[2024-09-24 20:33:58] DEBUG  : Read 1 value from holding table at 150
[2024-09-24 20:33:58] DEBUG  : Read 1 value from holding table at 151
[2024-09-24 20:33:58] DEBUG  : Read 1 value from holding table at 152
[2024-09-24 20:33:58] DEBUG  : Read 1 value from holding table at 153
[2024-09-24 20:33:58] DEBUG  : Read 1 value from holding table at 154
[2024-09-24 20:33:58] DEBUG  : Read 1 value from holding table at 155
[2024-09-24 20:33:59] DEBUG  : Read 1 value from holding table at 156
[2024-09-24 20:33:59] DEBUG  : Read 1 value from holding table at 157
[2024-09-24 20:33:59] DEBUG  : Read 1 value from holding table at 158
[2024-09-24 20:33:59] DEBUG  : Read 1 value from holding table at 159
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_1
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_2
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_3
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_4
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_5
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_6
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_7
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_8
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_9
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_10
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_11
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_12
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_13
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_14
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_15
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_16
[2024-09-24 20:33:59] DEBUG  : Publish 1 to modbus2mqtt/carte_entrees/entree_17
[2024-09-24 20:33:59] DEBUG  : Publish 1 to modbus2mqtt/carte_entrees/entree_18
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_19
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_20
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_21
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_22
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_23
[2024-09-24 20:33:59] DEBUG  : Publish 0 to modbus2mqtt/carte_entrees/entree_24
[2024-09-24 20:33:59] DEBUG  : Publish 1 to modbus2mqtt/carte_entrees/entree_25
[2024-09-24 20:33:59] DEBUG  : Publish 1 to modbus2mqtt/carte_entrees/entree_26
[2024-09-24 20:33:59] DEBUG  : Publish 1 to modbus2mqtt/carte_entrees/entree_27
[2024-09-24 20:33:59] DEBUG  : Publish 1 to modbus2mqtt/carte_entrees/entree_28
[2024-09-24 20:33:59] DEBUG  : Publish 1 to modbus2mqtt/carte_entrees/entree_29
[2024-09-24 20:33:59] DEBUG  : Publish 1 to modbus2mqtt/carte_entrees/entree_30
[2024-09-24 20:33:59] DEBUG  : Publish 1 to modbus2mqtt/carte_entrees/entree_31
[2024-09-24 20:33:59] DEBUG  : Publish 1 to modbus2mqtt/carte_entrees/entree_32
[2024-09-24 20:33:59] DEBUG  : Read 1 value from holding table at 1
[2024-09-24 20:33:59] DEBUG  : Read 1 value from holding table at 2
[2024-09-24 20:33:59] DEBUG  : Read 1 value from holding table at 3
[2024-09-24 20:33:59] DEBUG  : Read 1 value from holding table at 4
[2024-09-24 20:33:59] DEBUG  : Read 1 value from holding table at 5
[2024-09-24 20:34:00] DEBUG  : Read 1 value from holding table at 6
[2024-09-24 20:34:00] DEBUG  : Read 1 value from holding table at 7
[2024-09-24 20:34:00] DEBUG  : Read 1 value from holding table at 8
[2024-09-24 20:34:00] DEBUG  : Read 1 value from holding table at 9
[2024-09-24 20:34:00] DEBUG  : Read 1 value from holding table at 10
[2024-09-24 20:34:00] DEBUG  : Read 1 value from holding table at 11
[2024-09-24 20:34:00] DEBUG  : Read 1 value from holding table at 12
[2024-09-24 20:34:01] DEBUG  : Read 1 value from holding table at 13
[2024-09-24 20:34:01] DEBUG  : Read 1 value from holding table at 14
[2024-09-24 20:34:01] DEBUG  : Read 1 value from holding table at 15
[2024-09-24 20:34:01] DEBUG  : Read 1 value from holding table at 16
[2024-09-24 20:34:01] DEBUG  : Publish 0 to modbus2mqtt/carte_sorties/relais_01
[2024-09-24 20:34:01] DEBUG  : Publish 0 to modbus2mqtt/carte_sorties/relais_02
[2024-09-24 20:34:01] DEBUG  : Publish 0 to modbus2mqtt/carte_sorties/relais_03
[2024-09-24 20:34:01] DEBUG  : Publish 0 to modbus2mqtt/carte_sorties/relais_04
[2024-09-24 20:34:01] DEBUG  : Publish 0 to modbus2mqtt/carte_sorties/relais_05
[2024-09-24 20:34:01] DEBUG  : Publish 0 to modbus2mqtt/carte_sorties/relais_06
[2024-09-24 20:34:01] DEBUG  : Publish 0 to modbus2mqtt/carte_sorties/relais_07
[2024-09-24 20:34:01] DEBUG  : Publish 0 to modbus2mqtt/carte_sorties/relais_08
[2024-09-24 20:34:01] DEBUG  : Publish 0 to modbus2mqtt/carte_sorties/relais_09
[2024-09-24 20:34:01] DEBUG  : Publish 0 to modbus2mqtt/carte_sorties/relais_10
[2024-09-24 20:34:01] DEBUG  : Publish 0 to modbus2mqtt/carte_sorties/relais_11
[2024-09-24 20:34:01] DEBUG  : Publish 0 to modbus2mqtt/carte_sorties/relais_12
[2024-09-24 20:34:01] DEBUG  : Publish 256 to modbus2mqtt/carte_sorties/relais_13
[2024-09-24 20:34:01] DEBUG  : Publish 0 to modbus2mqtt/carte_sorties/relais_14
[2024-09-24 20:34:01] DEBUG  : Publish 0 to modbus2mqtt/carte_sorties/relais_15
[2024-09-24 20:34:01] DEBUG  : Publish 0 to modbus2mqtt/carte_sorties/relais_16
[2024-09-24 20:34:01] DEBUG  : Read 1 value from holding table at 32
[2024-09-24 20:34:01] DEBUG  : Read 1 value from holding table at 33
[2024-09-24 20:34:01] DEBUG  : Read 1 value from holding table at 34
[2024-09-24 20:34:01] DEBUG  : Read 1 value from holding table at 35
[2024-09-24 20:34:01]WARNING : Couldn't get value from register 32 in table holding
[2024-09-24 20:34:01]WARNING : Couldn't get value from register 34 in table holding
[2024-09-24 20:34:04] DEBUG  : Read 1 value from holding table at 128
[2024-09-24 20:34:04] DEBUG  : Read 1 value from holding table at 129
[2024-09-24 20:34:04] DEBUG  : Read 1 value from holding table at 130
[2024-09-24 20:34:04] DEBUG  : Read 1 value from holding table at 131
[2024-09-24 20:34:04] DEBUG  : Read 1 value from holding table at 132
[2024-09-24 20:34:04] DEBUG  : Read 1 value from holding table at 133
[2024-09-24 20:34:04] DEBUG  : Read 1 value from holding table at 134
[2024-09-24 20:34:04] DEBUG  : Read 1 value from holding table at 135
[2024-09-24 20:34:05] DEBUG  : Read 1 value from holding table at 136
[2024-09-24 20:34:05] DEBUG  : Read 1 value from holding table at 137
[2024-09-24 20:34:05] DEBUG  : Read 1 value from holding table at 138
[2024-09-24 20:34:05] DEBUG  : Read 1 value from holding table at 139
[2024-09-24 20:34:05] DEBUG  : Read 1 value from holding table at 140
[2024-09-24 20:34:05] DEBUG  : Read 1 value from holding table at 141
[2024-09-24 20:34:05] DEBUG  : Read 1 value from holding table at 142
[2024-09-24 20:34:05] DEBUG  : Read 1 value from holding table at 143

Bonjour,

Quelle « dernière bêta »? Quelle est la version?
Et quel est le problème, je ne comprend pas.

En stable cette option n’existe pas donc forcément le comportement ne sera pas le même.

Bonjour,
Il s’agit de la dernière version beta disponible, à savoir: 2024-09-14 01:01:42.
Comme tu peux le voir dans le log l’erreur est : Couldn’t get value from register 32 in table holding.
Comme tu peux le voir sur les copies d’écran les paramètres sont identiques à l’exception de l’inversion de l’ordre des octets.
En espérant avoir répondu à tes interrogations

Justement la dernière dispo est plus récente :wink:

Tu voulais dire une régression entre celle-là et la beta juste avant?

Donc faudra voir avec celle de hier.

Bonsoir Mips,
Hier je parlais de l’avant dernière version beta puisque la dernière version n’a été publiée que ce matin. Donc la régression existait entre la version stable et cette avant dernière version.
Cela dit j’ai installé, ce matin, la dernière version beta en Pré production et elle fonctionne parfaitement avec tous les équipements y compris ceux qui exigent un type 32 bits flottant. C’est super. :+1:
J’ai noté que le paramètre « Mode d’écriture » est déterminé par le type. Comment faire une lecture unique pour un groupe de registres ?
Encore merci pour ta réactivité

Tant mieux si la dernière beta corrige le problème :+1:

Je ne comprends pas le lien entre le mode écriture (l’une ou l’autre fonction modbus en fait) et la lecture d’un groupe de registre.

La lecture par groupe c’était l’option « scan batch » mais qui en fait ne fonctionnait pas bien et que j’ai aussi retiré (d’ailleurs je suspecte que c’était ca qui causait la « régression » que tu as eu, en réalité la lecture se passait mal et il n’avait pas assez de byte pour décoder un nombre sur 32bits)

Comme les deux options avaient disparues lors de la même version je pensais qu’il y avait un lien mais que je ne comprenais pas. :thinking:
La lecture par groupe est un plus lorsque l’on a beaucoup de registres à lire mais la lecture individuelle est performante donc pas de souci.
Bonne soirée

Oui je me doute bien que ca va revenir.
Va falloir que j’y réfléchisse

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.