Closed instanttim closed 7 years ago
More thoughts on this: I think that as long as the interval is greater than 14 seconds it should always have gotten all the data, but there's no check that prohibits the data from being sent incomplete. Plus, I think the VERY first output of data happens immediately, not waiting for the interval; so that one always has 13 of 14 fields empty. JSON allows for a 'null' value but the python just is sending zeros.
PS: I think I really don't like python. Every time i look at the python scripts i get sleepy and unmotivated.
The new php script collects all the extra data before sending the data to the server. If it doesn't get all the parts, it won't send it at all. So this means we're actually getting zero values sometimes from the Mate3. Not my bug.
Closing, as for now I think there's absolutely nothing I can do. It seems like this happens infrequently and most commonly when the generator is turned on. The FXs change from inverting to charging and misreport the information.
We've been seeing more of these lately, it's because the "extra data" isn't all present in every single UDP packet, but rather it cycles through each piece of data and you need a particular number of packets before you have the complete picture. I don't know why it seems to be more of an issue now than it used to be.