Hi
I've recently installed solar panels and wanted to read the data from the generation meter, an Elster A100C. This project uses an Arduino sending data via USB serial to a server. I hope it is of use.
http://www.rotwang.co.uk/projects/meter.html
Dave
Re: Reading IrDA data from an Elster A100C electricity meter
Thankyou for sharing this daveb, I have added a link from the community builds section
Re: Reading IrDA data from an Elster A100C electricity meter
I ported the code to run on an emonTX:
Network ID is set to 11 as I am using another emonTX for live energy monitoring.
Dave
Re: Reading IrDA data from an Elster A100C electricity meter
Does anyone know if it's possible to read kvarh measurements (i.e. reactive power) over IrDA from an Elster A102C?
Re: Reading IrDA data from an Elster A100C electricity meter
Dont know the answer im afraid, I think the only items that can be read are the ones described in the class:
char product[12]; // eg. "Elster A100C..."
char firmware[9];
unsigned char mfg_serial[3];
unsigned char config_serial[2];
char utility_serial[16];
unsigned char meter_definition[3];
unsigned char rate_1_import_kWh[5]; // the reading we are interested in!
unsigned char rate_1_reserved[5];
unsigned char rate_1_reverse_kWh[5];
unsigned char rate_2_import_kWh[5];
unsigned char rate_2_reserved_kWh[5];
unsigned char rate_2_reverse_kWh[5];
unsigned char reserved_01[1];
unsigned char status;
unsigned char error;
unsigned char anti_creep[3];
unsigned char rate_1_time[3];
unsigned char rate_2_time[3];
unsigned char power_up[3];
unsigned char power_fail[2];
unsigned char watchdog;
unsigned char reverse_warning;
unsigned char reserved_02[10];
I will send Dave Berkeley who wrote the library an email to ask.
http://www.rotwang.co.uk/projects/projects.html
Re: Reading IrDA data from an Elster A100C electricity meter
Hi Kevin
Trystan is right, the data from the meter is described by the class above, so no analysis of reactive power I'm afraid.
Re: Reading IrDA data from an Elster A100C electricity meter
Many thanks for the reply. And thanks for emailing Dave, Trystan!
Just to confirm: are you guys talking about the Elster A100C rather than the A102C? The Elster website suggests that the A102C does measure reactive power, although it doesn't specify whether that measurement is exposed on the IrDA port. I've sent several emails to Elster but they haven't replied.
Have you guys tinkered with an A102C or A220?
Re: Reading IrDA data from an Elster A100C electricity meter
Sorry, one more question: does anyone know where I can get hold of Elster's documentation for the output of their IrDA ports?
Re: Reading IrDA data from an Elster A100C electricity meter
Found this on Google www.meterspec.com/143.pdf
Re: Reading IrDA data from an Elster A100C electricity meter
Brilliant, thank you! (I clearly wasn't trying hard enough when I googled for the same info!)
I've also spoken to a very nice man at Elster.
The conclusion seems to be that yes, the A102C does spit out both kWh and kvarh readings over the IrDA port. Hurray! I'll almost certainly buy an A102C over the next few days and I'll report back.
Re: Reading IrDA data from an Elster A100C electricity meter
Humph. Turns out the A102C isn't available in the UK. The AS230 might be a possibility though...
Re: Reading IrDA data from an Elster A100C electricity meter
Hello,
I am new in arduino! I want to ask if this
http://www.ebay.com/itm/Duemilanove-USB-Board-2009-ATMega328P-PU-microco...
is the only thing I need in order to program the Arduino?
Also does the above code mentioned above, about reading from the Elster, really work?
Thnak you
Re: Reading IrDA data from an Elster A100C electricity meter
Hello, does the code work?
Also inside the article it says;
"I came across this article by Richard Gregory who built his own meter reader back in 2009.". Because the page is down, has anyone this article ?
Thanx
Re: Reading IrDA data from an Elster A100C electricity meter
I have not seen any reports saying that the code does not work, so I assume that it does.
Re: Reading IrDA data from an Elster A100C electricity meter
I just plug the Elster A100C to the electricity and it starts displaying results? Don't I need to program the device or send commands to it?
Thank you
Re: Reading IrDA data from an Elster A100C electricity meter
All I know is what you too can read. I think it is very unlikely that you will be allowed to change anything inside the meter. I do not have an Elster meter, so I cannot confirm anything about the meter.
Re: Reading IrDA data from an Elster A100C electricity meter
I have a Fronius Symo 4.5-3-M inverter, now I need a way to monitor grid meter consumption, my solar tarrif meter which is to be installed will not have monitoring/rs485 support, I have been researching ideas for IrDa monitoring, I like the solutions that you have available, just asking about RS485/ModBus support to hook into a Fronius Inverter
Is there anyway to get the data from Raspberry Pi/Ardunio to export via RS485 so I can monitor it via the Fronius Solar Web?
https://www.solarweb.com/
An example is a Fronius Smart Meter with RS485 direct connect to Fronius Symo Smart Meter providing this type of data:
https://www.solarweb.com/Home/System/20bb600e-019b-4e03-9df3-a0a900cda689
Here the feed in tarrif, energy consumption are all monitored by the Fronius Smart meter via RS485 to the Fronius Symo DataManager 2.0
Re: Reading IrDA data from an Elster A100C electricity meter
Anyone with a 3D printer going down the A100C route may be interested in this.
http://www.thingiverse.com/thing:139775
It works OK, but if bright sunlight gets on the IrDa stuff readings all go haywire. I had to add a bit of card on the back of the bracket to stop the sunlight.
Re: Reading IrDA data from an Elster A100C electricity meter
When using this code, in the serial monitor i get the correct reading from the meter. When it submits to emoncms it has three inputs, one of which is temperature and the other two are:-
629 (never changes)
-4248 (counts up toward zero when the meter increments a unit)
i have tried editing the code at https://github.com/openenergymonitor/ElsterMeterReader to send the data to my nanoderf and it does the exact same thing.
Am i missing something?
Thanks
Mike
Re: Reading IrDA data from an Elster A100C electricity meter
Here is a screenshot, really odd... i've checked and checked the code and cannot see how this is being calculated...
if anyone can help that would be great.
Mike
Re: Reading IrDA data from an Elster A100C electricity meter
Hi Mike
I've not used my library with OEM so I can't really tell. It sounds like a signed / unsigned error, or perhaps a data alignment problem or both. I always used to print the relevant numbers in hex and see if they have common parts.
Hope this helps.
Dave
Re: Reading IrDA data from an Elster A100C electricity meter
How are you submitting to emoncms? and which one? What format are you using? There's nothing in daveb's code that tells us the whole story, so you need to reveal that if anyone is to help you.
Re: Reading IrDA data from an Elster A100C electricity meter
I am using the multinode sketch from:
https://github.com/openenergymonitor/NanodeRF/tree/master/NanodeRF_multi...
I can't see anything there which would affect it, I have added a line to the data received from a node to print it to the serial console, and the data there is wrong. I would assume by this the data is being sent from the emonTx wrong.
NanodeRF serial console :
Data Rcvd: 16699
Data Rcvd: 630
Data Rcvd: 1787
Data sent: /api/post.json?apikey=<api key>&node=11&csv=16699,630,1787
OK recieved
The emontx seems to be printing the correct reading to the emontx serial console but not sending the correct info via rf as per my image above.
Thanks
Mike
Re: Reading IrDA data from an Elster A100C electricity meter
Yes we read your post the first time, there's no need to post twice.
So what about the emonTx sketch?
Re: Reading IrDA data from an Elster A100C electricity meter
The emonTx sketch is the same as the one posted by DaveLloyd in this thread.
Re: Reading IrDA data from an Elster A100C electricity meter
I think what you are seeing is a 4 byte Long (eg 41294188, the fist entry on your screenshot serial output) being passed as 2 signed integers.( eg 630*256*256 + 6508 = 41294188)
You need to change the nanode sketch to not assume all received packets consist of signed ints only at https://github.com/openenergymonitor/NanodeRF/blob/master/NanodeRF_multinode/NanodeRF_multinode.ino#L177 (that was the old standard) or you could just multiply input 2 by 65536 and add it to input 1 in emoncms to get the "correct" value.
emonHub handles Longs no problem, if you were using emonhub (for the benefit of other users) you could just define the node as
which would present the data exactly as seen in your screen print a long and an integer scaled by 2 decimal places
Paul
Re: Reading IrDA data from an Elster A100C electricity meter
Not "I think" - but definitely. The data transmitted is an unsigned long (meter), plus an int (temperature).
Re: Reading IrDA data from an Elster A100C electricity meter
thanks guys, been really helpful and knowledgeable.
I used your idea of multiplying the input in emoncms, which worked well. But i wasn't happy with that. But i don't have the know how to convert the Tx or Rx from a unsigned long to ints or vice a versa so i have dug out an RPi and put the latest emonHub image on it.
So far it's working well, the reason i went for NanodeRF over the raspberry pi, was becuase i wanted to set it up and forget it and was worried about the SD card writes. I'll give this a go now though seeing as the Nanode is pretty much discontinued now.
Many Thanks
Mike