Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PGN 65016 - Utility Total AC Power (Apparent Power Conversion) #259

Open
philbegg opened this issue Jul 19, 2023 · 0 comments
Open

PGN 65016 - Utility Total AC Power (Apparent Power Conversion) #259

philbegg opened this issue Jul 19, 2023 · 0 comments

Comments

@philbegg
Copy link

Should the apparent power be multiplied by the power factor or are the values that come from the device be the ones that are displayed.

Example:
canboatjs converts the data to :

{
  canId: 217970880,
  prio: 3,
  src: 192,
  dst: 255,
  pgn: 65016,
  timestamp: '2023-07-19T22:40:19.000Z',
  fields: { 'Real Power': -5616, 'Apparent Power': 5733 },
  description: 'Utility Total AC Power'
}

n2k-signalk - toDelta returns:

{
    "updates": [
        {
            "source": {
                "label": "",
                "type": "NMEA2000",
                "pgn": 65016,
                "src": "192",
                "deviceInstance": 0
            },
            "timestamp": "2023-07-19T22:40:19.000Z",
            "values": [
                {
                    "path": "electrical.ac.0.total.realPower",
                    "value": -5616
                },
                {
                    "path": "electrical.ac.0.total.apparentPower",
                    "value": 4402944
                }
            ]
        }
    ]
}

at the current point in time my state looks like this:

{
    "2": {},
    "3": {},
    "9": {},
    "42": {},
    "43": {},
    "75": {},
    "77": {},
    "83": {},
    "88": {},
    "89": {},
    "104": {},
    "106": {},
    "121": {},
    "144": {},
    "145": {},
    "177": {},
    "178": {},
    "192": {
        "deviceInstance": 0,
        "maretron": {
            "electrical": {
                "ac": [
                    {
                        "total": {
                            "powerFactor": 768
                        }
                    }
                ]
            }
        }
    },
    "219": {}
}
  • Isn't the real power the apparent power * the powerFactor?
  • What is the units of the power factor in the state object?
  • should n2k-signalk apply any transformation from the powerFactor, isn't this done from the device directly?
  • the update values are showing two very different numbers: realPower = -5616, apparentPower = 4402944
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant