question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Daly BMS 10S LTO (MGod branded) shows discharging state as charging?

See original GitHub issue

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:

root@raspberrypi2:~# tail -f /data/log/dbus-serialbattery.ttyUSB1/current 
...
@40000000611ea5c536bf82b4 INFO:__main__:dbus-serialbattery v0.5
@40000000611ea5c536d05364 INFO:__main__:Testing Daly
@40000000611ea5c53947fe6c INFO:utils:DalyBMS 10 cells
@40000000611ea5c6017fcfdc INFO:__main__:Battery connected to dbus from /dev/ttyUSB1
@40000000611ea5d014d71734 ERROR:utils:>>> ERROR: No reply - returning
@40000000611ea5d6185c9474 ERROR:utils:>>> ERROR: No reply - returning
@40000000611ea61219cdbc5c ERROR:utils:>>> ERROR: No reply - returning
@40000000611ea62818ad583c ERROR:utils:>>> ERROR: No reply - returning
@40000000611ea64c23e6161c ERROR:utils:>>> ERROR: No reply - returning
@40000000611ea67a24c2e18c ERROR:utils:>>> ERROR: No reply - returning
...

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):

  • Device type: Raspberry Pi
  • Firmware Version v2.72

Battery/BMS (please complete the following information):

  • BMS/Battery type: [Daly branded with MGod, LTO version]
  • Cells: [10]
  • Interface: [USB-RS485]

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Louisvdwcommented, Aug 20, 2021

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.

0reactions
Louisvdwcommented, Oct 31, 2021

In the next release you can change the utils.py to invert the current measurement INVERT_CURRENT_MEASUREMENT = -1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Daly Smart BMS “Discharging” while charging???
Goes down to 2.75 with very little current. Therefore soc variance shows greater voltage differnce when battery is close to full. Noticing ...
Read more >
Daly BMS Won't Allow Charge OR Discharge ... - YouTube
Learn how to build your own LiFePO4 battery here: https://geni.us/DIY-LiFePO4Support our channel by rocking Offgrid Van Life merch: ...
Read more >
TESTING DALY BMS - DOES IT WORK? - YouTube
I do some balance and charging / discharging testing on a Daly BMS.Link to official Daly BMS Ali Express ...
Read more >
Daly Smart BMS LiFePo4 4S 12V 24V 36V 48V 30A 60A 80A ...
high quality: Made of high quality material, durable and practical to use. super fast: Super fast charge and easy to use. Provide ultra...
Read more >
Artificial Intelligence Applied to Battery Research: Hype or ...
(The ICA can be defined as a method used to investigate the capacity state of health of batteries by tracking the charging/discharging capacity ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found