volkszaehler / mbmd

ModBus Measurement Daemon - simple reading of data from ModBus meters and grid inverters
BSD 3-Clause "New" or "Revised" License
229 stars 81 forks source link

GM4008 support #250

Closed bbiegun closed 2 years ago

bbiegun commented 2 years ago

I recently purchased GM4008. It is an 8-channel current acquisition module. I'm planning to use it with current transformers. It communicates over TCP Modbus.

Would you be interested in me adding support for it in mbmd?

andig commented 2 years ago

Not sure if it fits the structure? Feel free to try!

bbiegun commented 2 years ago

I can report Current only. I do see couple of caveats though.

  1. It has 8 inputs -> there would need to be some option to configure which input you're interested in or one meter would generate 8 'sub-meters'
  2. It can provide readings between 0-24 mA. Usually, it'd be connected to some transformer. Ideally, I would like to calculate it inside mbmd. Problem would be to provide which transformer you're using (20A/25mA, 100A/25mA, etc).

Do you think it's worth it? It'd probably require some changes in core code too. Seeking your view on it. Alternatively, I do have a pyhton wrapper pretty much finished already.

bbiegun commented 2 years ago

Forget. I was living under impression it measures AC current, while it does only DC :facepalm: