[time-nuts] Remotely read power meters

Poul-Henning Kamp phk at phk.freebsd.dk
Fri Jul 1 22:01:52 UTC 2011


In message <BANLkTi=k9mxbGEWczrM5ZadqjhguAZq5gQ at mail.gmail.com>, "William H. Fi
te" writes:

OK, can we just add a bit of postive here ?

If your meter is anything like the ones we have over here, they have
a two-way optical port marked "DLMS", "IEC-62056-21" or similar.

Hook up a IR-LED and IR-Photodiode to your serial port, open a
terminal program with 300,7,EVEN,1 and send

	/ ? ! CR NL

And marvel at all the data it spews back.

Here is a python class which does the comms for you:

	https://github.com/bsdphk/PyDLMS

Here is a blog entry in Danish about it:

	http://ing.dk/artikel/120524-tal-med-din-elmaaler-og-ingenioeren

Enjoy...

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.




More information about the Time-nuts_lists.febo.com mailing list