gisce / iec870ree

IEC-870-5-102 for REE Spanish Electric meters
GNU Affero General Public License v3.0
13 stars 11 forks source link

Problem with date and time syncro #36

Closed danielcuellarp closed 2 years ago

danielcuellarp commented 2 years ago

Hi,

Does anyone know why if I execute the date and time synchronization ASDU, I wait N minutes without closing the process, and I execute the synchronization ASDU again, it takes the previous date of synchronization?

Ex: image

Left: process executed first time Rigth: process executed 1 minute later

Code: image

Thanks.

danielcuellarp commented 2 years ago

Due to the business model, I had to override the method to create a new instance of C_CS_TA_2

image

tinogis commented 2 years ago

You can make a Pull Request with modifying set_datetime with sincrotime param in every instance.