-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add additional meters - how to ?? #174
Comments
Thank you for the question! The RTU meters are implemented here in this folder: https://github.com/volkszaehler/mbmd/tree/master/meters/rs485. |
Good one thanks – will give it a go and see how I go !
From: andig <notifications@github.com>
Sent: Sunday, October 18, 2020 1:12 AM
To: volkszaehler/mbmd <mbmd@noreply.github.com>
Cc: Craig Curtin <craigc@prosis.com.au>; Author <author@noreply.github.com>
Subject: Re: [volkszaehler/mbmd] How to add additional meters - how to ?? (#174)
Thank you for the question! The RTU meters are implemented here in this folder: https://github.com/volkszaehler/mbmd/tree/master/meters/rs485.
Choose one that looks closest to how your meter is read and start with a copy!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#174 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AM6OST3KSZS2BFF352YCNDDSLGQZNANCNFSM4SSY47TQ>.
|
Hey AndiG Not really sure what i am doing here - i have tried to add a new meter ACREL3000 - which is a 3phase meter. I have used the mbmd commandline with the read option and have been able to successfully query the meter. Not sure how to compile a new version that includes the meter file that i have attempted to put together to enable me to test it ? regards Craig |
See https://github.com/volkszaehler/mbmd#building-from-source for how to build from source. It assumes you have the sources checked out. Run make install once to setup the build tools. |
Yes thanks for the quick reply. I have tried that on the machine that i am using (Ubuntu 18.04) and have gotten it into a terrible mess - each time i try and run the make install as per your directions i am getting an error about other github repos - i have looked in the makefile (which is about the extent of my abilities) and can see it looking for other repos (enumer for instance) and failing on those. So i have gotten about as far as i can. I was going to run up a new VM and attempt to start from scratch tomorrow and see how i go Craig |
Just post your file here and I‘ll wip up a quick PR for you to checkout and test |
But.. you‘ll still need to be able to compile a PR ;) |
package rs485 import . "github.com/volkszaehler/mbmd/meters" func init() { } const ( var ops3p Opcodes = Opcodes{
// CosphiL1: 0x0036, // 32 bit, XX,X(literal)
// CosphiL2: 0x0038, // 32 bit, XX,X(literal)
// CosphiL3: 0x003A, // 32 bit, XX,X(literal)
// Cosphi: 0x0034, // 32 bit, XX,X(literal) // Sum: 0x0100, //32 Bit, kwh // Import: 0x0108, //32 Bit, kwh // Export: 0x0110, //32 Bit, kwh // ReactiveSum: 0x0118, //32 Bit, kvarh // ReactiveImport: 0x0120, //32 Bit, kvarh // ReactiveExport: 0x0128, //32 Bit, kvarh // SumT1: 0x0130, //32 Bit, kwh // SumT2: 0x013C, //32 Bit, kwh /* // Curently not supported
*/ type ORNO3PProducer struct { func NewORNO3PProducer() Producer { // Type implements Producer interface // Description implements Producer interface // snip creates modbus operation // snip32 creates modbus operation for double register
} func (p *ORNO3PProducer) Probe() Operation { // Produce implements Producer interface // These values are stored as literals // For Power values, we need to scale by 1000 (aka convert kW/kva -> W/va) |
This is where i am at so far but need to test it before i flesh it out and rename all of the internal variables etc Hmm, the whole GO compile thing is a bit of a nightmare ! Craig |
Thanks AndiG - now trying to work out how to get this PR onto my system and then compile !! Craig |
Ping @craigcurtin-dev would appreciate some feedback after putting everything together for you ;) |
Yeah i am struggling with the whole compile the PR in go thing at the moment and it has slipped off my urgent list (so many things to do - so little time !) I have a weekly reminder to get back to it but will be another couple of weeks until i free up the time. thanks for the follow up Craig |
Hi guys, i have a 3phase meter - various names - Acrel DTSD1352, ADL3000E/CT , Solis 3P, etc.
It is an RS485 Modbus compliant device - and i have the Modbus map for it - is there a way to include a translation table or some such going forward (i guess similar to what the SUnspec guys are trying to do) - i do not believe this meter is Sunspec compliant).
I know nothing about Go so if someone could point me to some sample files for other meters i will have a go at modifying one to support this meter
Craig
The text was updated successfully, but these errors were encountered: