diy solar

diy solar

JDB BMS -- New open source tool

Thank you for sharing the code!
I managed to install it on Ubuntu 22.04 with python3.9 in venv environment.

As the BLE support is still under construction - has anyone implemented it already?
 
Thank you for sharing the code!
I managed to install it on Ubuntu 22.04 with python3.9 in venv environment.

As the BLE support is still under construction - has anyone implemented it already?
CC @MrSurly

I managed to run bmstools via bluetooth (BLE).

In fact, it is very simple:
1. Install BLE (https://github.com/Jakeler/ble-serial):
Code:
pip3 install ble-serial
2. Find your BMS MAC:
Code:
ble-scan -d
3. Attach BLE serial port (must be run in a separate terminal as it runs in foreground by default):
Code:
ble-serial -d A4:C1:38:88:88:88
4. Run BMS Tools (your execution might be different, just use /tmp/ttyBLE as a serial port name):
Code:
python3 jbd_gui.py -p /tmp/ttyBLE

P.S.
For those who try to run BMS-Tools on Ubuntu 22.04 with Python 3.10, you need to install wxPython 4.2.0 instead of the default 4.1.1 (due to broken SVG module):
Code:
pip3 uninstall wxPython-4.1.1
Code:
pip3 install -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04 wxPython
 
The only thing I would warn against is introducing python code from esotheric sources.

I am not suggesting this here is dangerous. It might well be totally valid.

I am saying to not steer too much of the channels we know are looked at by many brilliant eyes
 
Blah so I was sort or able to compile for m1 mac,
I used this prebuilt snapshot of wxPython
Code:
pip install --pre -f https://wxpython.org/Phoenix/snapshot-builds wxPython
but when installed, i cant execute the app in mac.
Code:
(venv) ➜  bms_tools_jbd_mac_v1.1.4.app git:(v1.1.4) ✗ tree .
.
└── Contents
    ├── Frameworks
    ├── Info.plist
    ├── MacOS
    ├── Resources
    │   └── generated-f078169e988f915ee8a517ed5375273503f5b64b296005655b868a7b25aeea1f.icns
    └── _CodeSignature
        └── CodeResources

6 directories, 3 files

The apps got nuthing in it!
 
Probably not going to be implemented:
  • Firmware updates -- mostly because I cannot find a firmware hex file for my device so I can sniff the protocol.

If I have a HEX file from JBD for a firmware upgrade, would sharing that help towards having the software, for Windows, being upgraded to have the firmware Firmware update part developed?

I found a bug with the balancing.
When you set the balancer to start balancing at say 3.2v, it will do so until the charge volts of 3.45v.
But when you discharge the bank, the balancer will still balance the bank until 3.2v, from the 3.45v charged volts.
The bug is when you have set the BMS to only Balance when Charging, that setting does not work.

This is on:
JBD-AP20S003
JBD-AP20S004
JBD-AP20S003S

Workaround:
Start balancing at only at 3.45v - unless the firmware can be updated without bricking the device.
 
Last edited:
Back
Top