This commit is contained in:
James 2024-04-27 11:36:48 +01:00
parent b65606c455
commit 18dff75731
2 changed files with 18 additions and 18 deletions

View File

@ -317,14 +317,14 @@ bool processBasicInfo(byte *data, unsigned int dataLen){
uint16_t BalanceCodeHigh = (two_ints_into16(data[14], data[15]));
uint8_t MosfetStatus = ((byte)data[20]);
Serial.printf(">>>rc.%s.voltage %f\r\n",currentName, (float)Volts / 1000);
Serial.printf(">>>rc.%s.amps %f\r\n",currentName, (float)Amps / 1000);
Serial.printf(">>>rc.%s.Voltage %f\r\n",currentName, (float)Volts / 1000);
Serial.printf(">>>rc.%s.Amps %f\r\n",currentName, (float)Amps / 1000);
Serial.printf(">>>rc.%s.watts %f\r\n",currentName, (float)Watts);
Serial.printf(">>>rc.%s.capacity_remain_ah %f\r\n",currentName, (float)CapacityRemainAh / 1000);
Serial.printf(">>>rc.%s.capacity_remain_wh %f\r\n",currentName, ((float)(CapacityRemainAh) / 1000) * ((float)(Volts) / 1000));
Serial.printf(">>>rc.%s.capacity_remain_percent %d\r\n",currentName, CapacityRemainPercent);
Serial.printf(">>>rc.%s.temp1 %f\r\n",currentName, (float)Temp1 / 10);
Serial.printf(">>>rc.%s.temp2 %f\r\n",currentName, (float)Temp2 / 10);
Serial.printf(">>>rc.%s.Capacity_Remain_Ah %f\r\n",currentName, (float)CapacityRemainAh / 1000);
Serial.printf(">>>rc.%s.Capacity_Remain_Wh %f\r\n",currentName, ((float)(CapacityRemainAh) / 1000) * ((float)(Volts) / 1000));
Serial.printf(">>>rc.%s.Capacity_Remain_Percent %d\r\n",currentName, CapacityRemainPercent);
Serial.printf(">>>rc.%s.Temp1 %f\r\n",currentName, (float)Temp1 / 10);
Serial.printf(">>>rc.%s.Temp2 %f\r\n",currentName, (float)Temp2 / 10);
/*
Serial.printf("%s Balance Code Low: 0x%x\r\n",currentName, BalanceCodeLow);
Serial.printf("%s Balance Code High: 0x%x\r\n",currentName, BalanceCodeHigh);
@ -358,13 +358,13 @@ bool processCellInfo(byte *data, unsigned int dataLen)
_cellMin = CellVolt;
}
Serial.printf(">>>rc.%s.cell.%d.voltage %f\r\n",currentName, i+1,(float)CellVolt/1000);
Serial.printf(">>>rc.%s.Cell.%d.Voltage %f\r\n",currentName, i+1,(float)CellVolt/1000);
}
Serial.printf(">>>rc.%s.max_cell_voltage %f\r\n",currentName, (float)_cellMax / 1000);
Serial.printf(">>>rc.%s.min_cell_voltage %f\r\n",currentName, (float)_cellMin / 1000);
Serial.printf(">>>rc.%s.difference_cell_voltage %f\r\n",currentName, (float)(_cellMax - _cellMin) / 1000);
Serial.printf(">>>rc.%s.average_cell_voltage %f\r\n",currentName, (float)(_cellSum / NumOfCells) / 1000);
Serial.printf(">>>rc.%s.Max_Cell_Voltage %f\r\n",currentName, (float)_cellMax / 1000);
Serial.printf(">>>rc.%s.Min_Cell_Voltage %f\r\n",currentName, (float)_cellMin / 1000);
Serial.printf(">>>rc.%s.Difference_Cell_Voltage %f\r\n",currentName, (float)(_cellMax - _cellMin) / 1000);
Serial.printf(">>>rc.%s.Average_Cell_Voltage %f\r\n",currentName, (float)(_cellSum / NumOfCells) / 1000);
gotCellInfo=true;

View File

@ -185,11 +185,11 @@ void decodeVictron(BLEAdvertisedDevice advertisedDevice) {
return;
}
Serial.printf(">>>mppt.1.battery_volts %f\r\n",batteryVoltage);
Serial.printf(">>>mppt.1.battery_amps %f\r\n",batteryCurrent);
Serial.printf(">>>mppt.1.solar_watts %f\r\n",inputPower);
Serial.printf(">>>mppt.1.output_current %f\r\n",outputCurrent);
Serial.printf(">>>mppt.1.yield %f\r\n",todayYield);
Serial.printf(">>>mppt.1.state %d\r\n",deviceState);
Serial.printf(">>>MPPT.1.Battery_Volts %f\r\n",batteryVoltage);
Serial.printf(">>>MPPT.1.Battery_Amps %f\r\n",batteryCurrent);
Serial.printf(">>>MPPT.1.Solar_Watts %f\r\n",inputPower);
Serial.printf(">>>MPPT.1.Output_Current %f\r\n",outputCurrent);
Serial.printf(">>>MPPT.1.Yield %f\r\n",todayYield);
Serial.printf(">>>MPPT.1.State %d\r\n",deviceState);
}
}