EASTRON SDM120C - RS485 Modbus meter

Pongo
Posts: 30
Joined: Thu Sep 19, 2013 1:18 pm

Re: EASTRON SDM120C - RS485 Modbus meter

Post by Pongo » Mon Feb 16, 2015 4:06 pm

Hello,
I added a control: checks if all requested values are returned.
Returning OK or NOK.

Can you please try it?

jeanmarc
Posts: 1832
Joined: Thu Aug 29, 2013 7:16 am

Re: EASTRON SDM120C - RS485 Modbus meter

Post by jeanmarc » Mon Feb 16, 2015 5:52 pm

Hello,
Thanks, i am testing that and i let you know 8-)

jeanmarc
Posts: 1832
Joined: Thu Aug 29, 2013 7:16 am

Re: EASTRON SDM120C - RS485 Modbus meter

Post by jeanmarc » Wed Feb 18, 2015 8:00 am

Hello Pongo,
So far it is really stable. 8-)
Thanks for your job

Pongo
Posts: 30
Joined: Thu Sep 19, 2013 1:18 pm

Re: EASTRON SDM120C - RS485 Modbus meter

Post by Pongo » Sat Feb 21, 2015 7:18 pm

I'm happy to help you.

I have 2 questions:
  1. getting http://localhost/metern/programs/programtotal.php I can read "Totalcounter" and "Dailycounter", but at midnight I have 0 for both values. Why? It's a bug?
  2. I exchanged my pulse meter with sdm120c, leaving old values. Now I created a simple scritp that echoes a fixed value (last meter kWh value), testing it on admin page is ok, but metern doesn't write it on .csv file

Code: Select all

pi@pi-alarm ~ $ old_pdc.sh
3(480254.39*Wh)
I inserted manually value 0 for new meter on ID 1 column and moved ID 1 values to ID 3.
I thought last meter vale would have been repeated every row, but I have this

Code: Select all

17:30,0,32641184,480254.39
17:35,0,32641184,480254.39
17:40,0,32641184,480254.39
17:45,107,32641190,
18:10,107,32641190,
18:15,267,32641190,
18:20,485,32641190,
18:25,712,32641190,
18:30,897,32641190,
18:35,1038,32641190,
18:40,1179,32641190,
18:45,1327,32641190,
18:50,1475,32641190,
18:55,1625,32641190,
19:00,1775,32641190,
19:05,1927,32641190,

Code: Select all

pi@pi-alarm ~ $ cat /var/www/metern/config/config_met3.php
<?php
if(!defined('checkaccess')){die('Direct access not permitted');}

// ### CONFIG FOR METER #3

$METNAME3='OLD_PDC';
$TYPE3='Elect';
$PROD3=2;
$PHASE3=1;
$SKIPMONITORING3=false;
$ID3='3';
$COMMAND3='old_pdc.sh';
$UNIT3='Wh';
$PRECI3=2;
$PASSO3=0;
$COLOR3='9EAA35';
$PRICE3=0.000275;
$LID3='3';
$LIVEPOOL3=0;
$LIVECOMMAND3='';
$LIVEUNIT3='W';
$EMAIL3='no@be.com';
$REPORT3='never';
$PUSHO3=false;
$POUKEY3='abc123';
$WARNCONSOD3=15000;
?>
Can you help me, please?

EDIT: for question number 2... I solved. I stopped metern, webserver, updated csv file, restarted webserver and metern, and now it's ok... column for ID 3 is filled for every row.

jeanmarc
Posts: 1832
Joined: Thu Aug 29, 2013 7:16 am

Re: EASTRON SDM120C - RS485 Modbus meter

Post by jeanmarc » Sun Feb 22, 2015 8:21 am

Hello Pongo,
For the 1) I will look at what happen at midnight. Obviously the Dailycounter should be equal to 0 but not the Totalcounter.
For the 2), i don't understand it all but as the FAQ say: be careful when decommissioning a meter. That's the ugly part when working without db.
Have a nice day

jeanmarc
Posts: 1832
Joined: Thu Aug 29, 2013 7:16 am

Re: EASTRON SDM120C - RS485 Modbus meter

Post by jeanmarc » Fri Feb 27, 2015 1:55 pm

Hello Pongo,

For the "Totalcounter at midnight", it may happen that the values aren't returned during few seconds because only the header is created in the daily csv.
Is it a real problem for you ?

Pongo
Posts: 30
Joined: Thu Sep 19, 2013 1:18 pm

Re: EASTRON SDM120C - RS485 Modbus meter

Post by Pongo » Sun Mar 01, 2015 11:18 pm

Hello,
I was using programtotal.php to read total energy without phisically reading csv files.
It would be good if totalcount was on shmop.
But I can read them.
No problem

Thank you

jeanmarc
Posts: 1832
Joined: Thu Aug 29, 2013 7:16 am

Re: EASTRON SDM120C - RS485 Modbus meter

Post by jeanmarc » Mon Mar 02, 2015 9:00 am

Ok i'll put total counters back in shmop too

Pongo
Posts: 30
Joined: Thu Sep 19, 2013 1:18 pm

Re: EASTRON SDM120C - RS485 Modbus meter

Post by Pongo » Mon Mar 02, 2015 1:51 pm

Thank you... if possible also Daily count.

Thanks

jeanmarc
Posts: 1832
Joined: Thu Aug 29, 2013 7:16 am

Re: EASTRON SDM120C - RS485 Modbus meter

Post by jeanmarc » Fri Mar 06, 2015 1:18 pm

Hello,
To keep the code clean, i will put the value at midnight as well as the total value in shmop. (The day are simply the difference)
But, if you reboot your logger the midnight value will obviously being lost 'till next day..

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest