top of page

Technical Support

Public·324 members

Inverter time not accurate

I've had a Sunsynk 5kW for a few months now and it's a significant upgrade over my previous inverter, in terms of quality and functionality, so am loving it...

One little thing that's bugging me at the moment is the inverters time, which is currently about 2 minutes slow.

I've been watching the traffic from the inverter most of today, specifically looking for NTP traffic but have not seen any. I expected to see the inverter getting time updates now-and-again. The data logger gets its IP via DHCP from my server, which included the NTP server details, but even if it ignored that and used something built-in I should be seeing the traffic going out...

Is anyone able to confirm whether the inverter does actually use NTP to keep its clock correct, or some other automatic method, or can you only update the time from the inverter interface itself???

78 Views
Rhys
Jul 19, 2021

I noticed that when I read the 3 date and time registers I get a largish integer for the value and the 2 fields as hex values, which NR converts to integers for the human readable values. I've now figured out how to generate the same "largish" integers as a value in an array for the "value:" part of the payload, which looks the same as what I receive, just with the minutes and seconds being current/correct, but when I try use that to write to the inverter it still seems to ignore it and not update its date/time.

Here's the updated minute and second setup


function byteArrayToLong(byteArray) {
    var b_value = 0;
    for ( var i = 0; i <= byteArray.length - 1; i++) {
        b_value = (b_value * 256) + byteArray[i];
    }
    return b_value;
}
msg.payload = { 
    value: [byteArrayToLong([msg.minutes,msg.seconds])],
    'fc': 16,
    'unitid': 1,
    'address': 24,
    'quantity': 1 };
return msg;

Members

  • Piter Freide
    Piter Freide
  • Will Smith
    Will Smith
  • Rohit Rajput
    Rohit Rajput
  • Andrew Zarudnyi
    Andrew Zarudnyi
  • Tommy Cooper
    Tommy Cooper
bottom of page