Uniquement pour pouvoir ‹ normaliser › avec mes autres sources de datas (awave, zigbee, shelly) en déportant leurs extractions dans une vm spécifique par sécurité.
je cherche d’ailleurs a faire paril avec RfxCom.
Sinon tu as raison, pas de soucis avec l’excellent myModbus !
Starting daemon with log level: info
0015|[2024-10-11 14:36:09] INFO : Listening on 127.0.0.1:55071
0016|[2024-10-11 14:36:09] INFO : Send async started with a cycle of 0.5s
0017|[2024-10-11 14:36:10] INFO : Starting modbus4mqtt for 26964 and topic Sun2000
0018|[2024-10-11 14:36:10] INFO : [192.168.2.139:502/1] Start polling...
0019|[2024-10-11 14:36:10] INFO : [192.168.2.139:502/1] Connected to MQTT.
0020|[2024-10-11 14:36:10] INFO : Signal 15 caught, exiting...
0021|[2024-10-11 14:36:10] INFO : Cancelling 4 tasks
0022|[2024-10-11 14:36:10] INFO : [192.168.2.139:502/1] Disconnected from modbus & MQTT
0023|[2024-10-11 14:36:10] INFO : Send async cancelled
0024|[2024-10-11 14:36:10] INFO : Listening cancelled
0025|[2024-10-11 14:36:10] INFO : [192.168.2.139:502/1] Disconnected from MQTT.
0026|[2024-10-11 14:36:10] INFO : Shutdown
0027|[2024-10-11 14:36:14] INFO : Starting daemon with log level: info
0028|[2024-10-11 14:36:14] INFO : Listening on 127.0.0.1:55071
0029|[2024-10-11 14:36:14] INFO : Send async started with a cycle of 0.5s
0030|[2024-10-11 14:36:15] INFO : Starting modbus4mqtt for 26964 and topic Sun2000
0031|[2024-10-11 14:36:15] INFO : [192.168.2.139:502/1] Start polling...
0032|[2024-10-11 14:36:15] INFO : [192.168.2.139:502/1] Connected to MQTT.
0033|[2024-10-11 14:36:23]WARNING : [192.168.2.139:502/1] Failed to poll modbus device, attempting to reconnect: Failed to read 2 holding table registers starting from 32064: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 8 bytes (0 received)
0034|[2024-10-11 14:36:31]WARNING : [192.168.2.139:502/1] Failed to poll modbus device, attempting to reconnect: Failed to read 2 holding table registers starting from 32064: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 8 bytes (0 received)
0035|[2024-10-11 14:36:39]WARNING : [192.168.2.139:502/1] Failed to poll modbus device, attempting to reconnect: Failed to read 2 holding table registers starting from 32064: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 8 bytes (0 received)
0036|[2024-10-11 14:36:47]WARNING : [192.168.2.139:502/1] Failed to poll modbus device, attempting to reconnect: Failed to read 2 holding table registers starting from 32064: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 8 bytes (0 received)
0037|[2024-10-11 14:36:55]WARNING : [192.168.2.139:502/1] Failed to poll modbus device, attempting to reconnect: Failed to read 2 holding table registers starting from 32064: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 8 bytes (0 received)
pour rappel, le « délai d’actualisation » (5s chez toi) est pris avant une lecture et donc avant la première lecture également (ou chaque fois qu’il faut se reconnecter); d’ailleurs on le voit dans ton log, il y a chaque fois 8s entre chaque erreur = 5s de délai + 3s de timeout.
dans l’autre post, tu disais avoir configuré 10s avant la première lecture.
Donc ne devrais-tu pas configurer 10s coté plugin-modbus2mqtt si c’est le délai nécessaire?
Autre piste, vu qu’aucune réponse n’est reçue, le seul point que je vois c’est un timeout lors de la lecture.
Comme je disais ci-dessus, pour le moment il y a 3s de timeout en dur;
je peux rendre ce timeout paramétrable ainsi tu pourras l’augmenter chez toi et faire des essais
edit: ca sera en beta demain; j’ai aussi augmenter le timeout par défaut à 5s