Re: Reading the IR port of an IEC 62056-21 Smart Meter
Posted: Tue Nov 19, 2013 6:37 am
Thanks very much for this post it is very informative and a lot cheaper than buying from IEC 
I have been writing some code in Python (so I can read it on OSX & Linux) and I can elicit a response but it is not reliable. I think it must come down to some timing issue as the test1107.exe programs works 100% of the time (and so I know it's not a hardware issue).
The sample program gives me..
==> /?!<0D><0A>
<== /ACE5SMLCD
==> <06>050<0D><0A>
<== -- STX --
<== C.1(12880041.0(22:48 18-11-13)
<== 1.8.1(0000000597*Wh)
<== 1.8.2(0000000000*Wh)
<== 1.8.3(0000264460*Wh)
<== 1.8.0(0000265057*Wh)
<== 2.8.0(0000511354*Wh)
<== !
<== -- ETX --
<== -- BCC --
but it doesn't say what delays are involved. Does anyone have a full working program they can show me the source for?
Also, with regards to delays - I don't understand why it is necessary to wait 200msec after sending the 'change baud' command.
Thanks.

I have been writing some code in Python (so I can read it on OSX & Linux) and I can elicit a response but it is not reliable. I think it must come down to some timing issue as the test1107.exe programs works 100% of the time (and so I know it's not a hardware issue).
The sample program gives me..
==> /?!<0D><0A>
<== /ACE5SMLCD
==> <06>050<0D><0A>
<== -- STX --
<== C.1(12880041.0(22:48 18-11-13)
<== 1.8.1(0000000597*Wh)
<== 1.8.2(0000000000*Wh)
<== 1.8.3(0000264460*Wh)
<== 1.8.0(0000265057*Wh)
<== 2.8.0(0000511354*Wh)
<== !
<== -- ETX --
<== -- BCC --
but it doesn't say what delays are involved. Does anyone have a full working program they can show me the source for?
Also, with regards to delays - I don't understand why it is necessary to wait 200msec after sending the 'change baud' command.
Thanks.