Closed liufuyang closed 3 years ago
I tried to charge it now and then I saw the readings then become 0.
In reality it is charged with 0.5A.
Perhaps there is some way I can dump all the info from the BMS so we can easily fix this? Thank you :)
It seems that I can hack the line self.current = (current - self.CURRENT_ZERO_CONSTANT) / -10
to divide to positive 10 to allow it to show discharging. But I guess this won't change the effect that when charging there is no reading? 🤔
Most BMS are not good at reading small currents accurately (<1A normally is an issue)
The Daly works with a constant and when the current is more or less than that it will show a charge or discharge.
If you can charge it with more power it would show the charge/discharge better. It could be that the BMS brand you have is using another constant, but I would not expect that. They normally only put another sticher on the same hardware.
Interesting. I will have to see that later when the sun is up :) And yes, currently the charging current is above 2A and I can see it shows as charging 😄 Thanks for the info.
I also asked seller to send me the protocol manual and it seems looks the same as the Daly one mentioned here https://github.com/Louisvdw/dbus-serialbattery/issues/3 ? Mgod 485 协议中英文.pdf
From this repo it seems that the current is just divide by 10, but in our code base it is divided by -10. Perhaps in our code it is wrong? I wonder how other Daly users see about this? https://github.com/dreadnought/python-daly-bms/blob/main/dalybms/daly_bms.py#L147
So perhaps we should change it in our repo? https://github.com/Louisvdw/dbus-serialbattery/blob/master/etc/dbus-serialbattery/daly.py#L77
In the next release you can change the utils.py to invert the current measurement
INVERT_CURRENT_MEASUREMENT = -1
Describe the bug
To Reproduce Steps to reproduce the behavior: Connect the MGod BMS via RS485 to USB cable to Raspberry Pi. Logs would be like:
Then when discharging the battery (by wiring it on to a step up converter to charge another battery), I saw this on the VRM website:
Which shows charging state.
Also from the control UI seeing the amp and power is not negative perhaps that means charging as well?
One more thing I should mention is perhaps the Amp reading, which in this 2.4 to 2.6A, but with my other physical meters it reads around 2.1A. Not sure why there is some difference and what could be causing it.
Another thing is what I am not sure about those
ERROR:utils:>>> ERROR: No reply - returning
output means. Perhaps that means something is not working correctly?Expected behavior It should show power usage stage as
discharge
when the current is going out?VenusOS (please complete the following information):
Battery/BMS (please complete the following information):
Additional context I have asked the seller why MGod BMS looks very similar with Daly BMS, he told me they are corporative companies. I suppose the Daly driver can work out of the box but perhaps there is a few things I need to tweak for the MGod BMS to work?
As I can see the driver is already output some of the key values such as voltage and max,min cells, SOC, so I guess now it should be simple to fix it?
Thank you very much