Skip to content

Instantly share code, notes, and snippets.

@fabdrol
Last active August 15, 2018 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabdrol/78b23a96025ddee007edb8cfeae78927 to your computer and use it in GitHub Desktop.
Save fabdrol/78b23a96025ddee007edb8cfeae78927 to your computer and use it in GitHub Desktop.
dump of parsed data (internal structure)
{
"auxBatteryVoltage": {
"name": "auxBatteryVoltage",
"value": 0.005,
"units": "V",
"type": "metric",
"orig": "5"
},
"batteryCurrent": {
"name": "batteryCurrent",
"value": 0,
"units": "A",
"type": "metric",
"orig": "0"
},
"instantPower": {
"name": "instantPower",
"value": 0,
"units": "W",
"type": "metric",
"orig": "0"
},
"consumedAh": {
"name": "consumedAh",
"value": 0,
"units": "A",
"type": "metric",
"orig": "0"
},
"numberOfFullDischarges": {
"name": "numberOfFullDischarges",
"value": 0,
"type": "count",
"orig": "0"
},
"cumulativeAhDrawn": {
"name": "cumulativeAhDrawn",
"value": 0,
"units": "A",
"type": "metric",
"orig": "0"
},
"minimumMainBattVoltage": {
"name": "minimumMainBattVoltage",
"value": 0.007,
"units": "V",
"type": "metric",
"orig": "7"
},
"maximumMainBattVoltage": {
"name": "maximumMainBattVoltage",
"value": 12.18,
"units": "V",
"type": "metric",
"orig": "12180"
},
"depthOfDeepestDischarge": {
"name": "depthOfDeepestDischarge",
"value": -0.01,
"units": "A",
"type": "metric",
"orig": "-1"
},
"depthOfLastDischarge": {
"name": "depthOfLastDischarge",
"value": 0,
"units": "A",
"type": "metric",
"orig": "0"
},
"depthOfAverageDischarge": {
"name": "depthOfAverageDischarge",
"value": 0,
"units": "A",
"type": "metric",
"orig": "0"
},
"numberOfChargeCycles": {
"name": "numberOfChargeCycles",
"value": 0,
"type": "count",
"orig": "0"
},
"numberOfAutoSync": {
"name": "numberOfAutoSync",
"value": 0,
"type": "count",
"orig": "0"
},
"numberOfLowMainVoltageAlarms": {
"name": "numberOfLowMainVoltageAlarms",
"value": 0,
"type": "count",
"orig": "0"
},
"numberOfHighMainVoltageAlarms": {
"name": "numberOfHighMainVoltageAlarms",
"value": 0,
"type": "count",
"orig": "0"
},
"minimumAuxBattVoltage": {
"name": "minimumAuxBattVoltage",
"value": 0.003,
"units": "V",
"type": "metric",
"orig": "3"
},
"alarmReason": {
"name": "alarmReason",
"type": "text",
"value": "0",
"orig": "0"
},
"productId": {
"name": "productId",
"value": "0x204"
},
"productName": {
"name": "productId",
"value": "BMV-702"
},
"mainBattVoltage": {
"name": "mainBattVoltage",
"value": 12.14,
"units": "V",
"type": "metric",
"orig": "12140"
},
"firmwareVersion": {
"name": "firmwareVersion",
"type": "text",
"value": "0308",
"orig": "0308"
},
"maximumAuxBattVoltage": {
"name": "maximumAuxBattVoltage",
"value": 0.007,
"units": "V",
"type": "metric",
"orig": "7"
},
"dischargedEnergy": {
"name": "dischargedEnergy",
"value": 0,
"units": "W",
"type": "metric",
"orig": "0"
},
"chargedEnergy": {
"name": "chargedEnergy",
"value": 0,
"units": "W",
"type": "metric",
"orig": "0"
},
"stateOfCharge": {
"name": "stateOfCharge",
"value": 1,
"type": "ratio",
"orig": "1000"
},
"secondsSinceLastFullCharge": {
"name": "secondsSinceLastFullCharge",
"value": 0,
"units": "s",
"type": "metric",
"orig": "0"
},
"timeToGo": {
"name": "timeToGo",
"value": -0.016666666666666666,
"units": "s",
"type": "metric",
"orig": "-1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment