EASTRON SDM120C - RS485 Modbus meter
Re: EASTRON SDM120C - RS485 Modbus meter
Hello,
I added a control: checks if all requested values are returned.
Returning OK or NOK.
Can you please try it?
I added a control: checks if all requested values are returned.
Returning OK or NOK.
Can you please try it?
Re: EASTRON SDM120C - RS485 Modbus meter
Hello,
Thanks, i am testing that and i let you know
Thanks, i am testing that and i let you know

Re: EASTRON SDM120C - RS485 Modbus meter
Hello Pongo,
So far it is really stable.
Thanks for your job
So far it is really stable.

Thanks for your job
Re: EASTRON SDM120C - RS485 Modbus meter
I'm happy to help you.
I have 2 questions:
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
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.
I have 2 questions:
- 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?
- 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 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;
?>
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.
Re: EASTRON SDM120C - RS485 Modbus meter
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
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
Re: EASTRON SDM120C - RS485 Modbus meter
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 ?
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 ?
Re: EASTRON SDM120C - RS485 Modbus meter
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
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
Re: EASTRON SDM120C - RS485 Modbus meter
Ok i'll put total counters back in shmop too
Re: EASTRON SDM120C - RS485 Modbus meter
Thank you... if possible also Daily count.
Thanks
Thanks
Re: EASTRON SDM120C - RS485 Modbus meter
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..
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..
Who is online
Users browsing this forum: No registered users and 1 guest