Giter VIP home page Giter VIP logo

Comments (10)

mr-manuel avatar mr-manuel commented on July 17, 2024 1

With the latest nightly you can set this in the config file.

https://github.com/mr-manuel/venus-os_dbus-serialbattery/blob/1cc775d29cd8a7431acdd4e45584187693edf35b/etc/dbus-serialbattery/config.default.ini#L386-L390

from dbus-serialbattery.

mr-manuel avatar mr-manuel commented on July 17, 2024

This is not a bug. just read the complete error log. I copy the relevant part over for you:

2024-04-12 15:06:19.600923500 ERROR:SerialBattery:Change the battery capacities to be unique.
2024-04-12 15:06:19.601649500 ERROR:SerialBattery:Example for batteries with 280 Ah:
2024-04-12 15:06:19.602291500 ERROR:SerialBattery:- Battery 1: 279 Ah
2024-04-12 15:06:19.602859500 ERROR:SerialBattery:- Battery 2: 280 Ah
2024-04-12 15:06:19.603398500 ERROR:SerialBattery:- Battery 3: 281 Ah
2024-04-12 15:06:19.603923500 ERROR:SerialBattery:This little difference does not matter for the battery.

from dbus-serialbattery.

ytechie avatar ytechie commented on July 17, 2024

Fair enough - it's asking me to do something that I believe may be impossible.

from dbus-serialbattery.

mr-manuel avatar mr-manuel commented on July 17, 2024

On every BMS you need to be able to change the capacity. Is it custom build or did you buy it as it is?
a) Custom build: You already had to set the capacity. Just set it again
b) You bought it: Ask your dealer on how you can change the capacity or if you get the protocol documentation because you need to read the serial number via serial connection.

from dbus-serialbattery.

ytechie avatar ytechie commented on July 17, 2024

I bought them - they are EG4 Lifepower batteries. I am checking with them to confirm, but even their own software doesn't read the serial number nor give a way to change the capacity.
Screenshot 2024-04-03 123442

from dbus-serialbattery.

mr-manuel avatar mr-manuel commented on July 17, 2024

Let's wait what they answer. Maybe there is another unique parameter we can read.

from dbus-serialbattery.

mr-manuel avatar mr-manuel commented on July 17, 2024

Temporarely you could try to add

    def unique_identifier(self) -> str:
        return self.port

before

Keep attention at the indentation when copying the code.

Anyway this is only a possible temporary solution and not recommended.

from dbus-serialbattery.

ytechie avatar ytechie commented on July 17, 2024

Oh, that's genius. I'll give it a try. That would at least get me on the latest code while I figure out a better long-term solution.

from dbus-serialbattery.

ytechie avatar ytechie commented on July 17, 2024

No response from them - it's kind of expected since they don't have a published spec for reading from their batteries in this way.

Utilizing the port as a unique ID has been working perfectly. It allowed me to use the latest version and now I have clean logs.

from dbus-serialbattery.

mr-manuel avatar mr-manuel commented on July 17, 2024

Ok, only when changing ports it will also change custom names and VRM ID's.

from dbus-serialbattery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.