ioBroker / ioBroker.modbus

Modbus adapter for ioBroker
MIT License
50 stars 28 forks source link

Which settings needed for Gavazzi ET112 #286

Open Wingsofcourage opened 1 year ago

Wingsofcourage commented 1 year ago

I got issues requesting informations from Gavazzi ET112 power meter. To confirm that my cable is correct i used the CAS Modbus scanner (http://www.freemodbus.com/index.html) on windows. This works like a charme.

Here the debug output:

[11:20:04] <= Response: 01 03 04 09 1B 00 00 89 A8
[11:20:03] => Poll: 01 03 00 00 00 02 C4 0B
[11:20:01] <= Response: 01 03 04 09 1B 00 00 89 A8
[11:20:00] => Poll: 01 03 00 00 00 02 C4 0B
[11:19:58] <= Response: 01 03 04 09 1B 00 00 89 A8
[11:19:57] => Poll: 01 03 00 00 00 02 C4 0B
[11:19:55] <= Response: 01 03 04 09 1B 00 00 89 A8
[11:19:54] => Poll: 01 03 00 00 00 02 C4 0B

If i try to get some values in ioBroker with the following settings (Holding Register 40001) image

I got only the following error messages in the log.

Is there any way to see the bytes on the wire ? Even in sily mode i don't get these debug informations from libmodbus.

modbus.0 2022-11-17 17:10:02.993 debug Cleaning up request fifo.
modbus.0 2022-11-17 17:10:02.992 debug Clearing timeout of the current request.
modbus.0 2022-11-17 17:10:02.982 info Disconnected from slave
modbus.0 2022-11-17 17:10:01.982 warn Poll error count: 1 code: {"err":"timeout","timeout":5000}
modbus.0 2022-11-17 17:10:01.977 error Request timed out.
modbus.0 2022-11-17 17:10:01.974 warn Error: undefined
modbus.0 2022-11-17 17:09:56.952 debug [DevID_1/holdingRegs] Poll address 0 - 2 registers
modbus.0 2022-11-17 17:09:56.951 debug Initialization of scale factors done!
modbus.0 2022-11-17 17:09:56.937 debug [DevID_1] Poll start ---------------------
modbus.0 2022-11-17 17:09:56.934 info Connected to slave
modbus.0 2022-11-17 17:09:56.906 debug connect to serial /dev/ttyUSB2 with 9600
modbus.0 2022-11-17 17:09:56.195 debug Add holdingRegisters.40001_L1: {"_id":"holdingRegisters.40001_L1","type":"state","common":{"name":"","role":"value","type":"number","read":true,"write":true,"def":0,"unit":"V"},"native":{"regType":"holdingRegs","address":0,"deviceId":1,"type":"int32le","len":2,"offset":0,"factor":1,"poll":true}}
modbus.0 2022-11-17 17:09:56.192 debug Initialize Objects for holdingRegs: [{"_address":40001,"name":"L1","description":"","unit":"V","type":"int32le","len":2,"factor":1,"offset":0,"formula":"","role":"value","room":"","poll":true,"wp":"","cw":false,"isScale":"","address":0,"deviceId":1,"id":"holdingRegisters.40001_L1"}]
modbus.0 2022-11-17 17:09:56.191 debug Initialize Objects for inputRegs: []
modbus.0 2022-11-17 17:09:56.189 debug Initialize Objects for coils: []
modbus.0 2022-11-17 17:09:56.187 debug Initialize Objects for disInputs: []
modbus.0 2022-11-17 17:09:55.782 info starting. Version 5.0.5 in /opt/iobroker/node_modules/iobroker.modbus, node: v12.22.12, js-controller: 4.0.23
an-klam commented 1 year ago

Probably not the solution to your problem but on my EM24 I would have to set register 0000 (Voltage L1-N) as Signed 32 bit (Big Endian Word Swap).

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.