diy solar

diy solar

JBD BMS Wi-Fi Module

Tested, find attached the debug file.
I also tested it running from terminal in the same moment NodeRed was using it and it waits giving the reply as soon the resource has been freed.
Nice feature indeed.

Cheers

OK can you confirm it is no longer giving no output on 1st connection?

I have yet to test against the signalK MQTT server ... was too busy last w/e
 
It will lock any jbdtool instance or any using the same serial port?
I am asking because I control 2 batteries with different bms and different connection serial port.

I am going to test it now.

Thanks

It will lock the target (-t <transports:target>), so if you use ttyS0 on one and ttyS1 on another it will lock them individually. Please test to confirm.
 
OK can you confirm it is no longer giving no output on 1st connection?

I have yet to test against the signalK MQTT server ... was too busy last w/e
Yes confirmed, never had the empty output on the tests I made so far
 
It will lock the target (-t <transports:target>), so if you use ttyS0 on one and ttyS1 on another it will lock them individually. Please test to confirm.
Yes confirmed, the already running instances run normally for what I have been able to test so far. Thank you so much
 
Yes confirmed, the already running instances run normally for what I have been able to test so far. Thank you so much

I was thinking about the issue you have with MQTT; it might be due to the MQTT version - I specify MQTT_5 in the connection options and SignalK might not support 5.

I compiled a version that uses MQTT 3. The version (attached) is "jbdtool version 1.8 build 202204111732." Please test against your MQTT server.
 

Attachments

  • jbdtool_pi3-32_static.zip
    2.4 MB · Views: 12
Yes dear Melkier, you got it right.
The SignalK MQTT gateway still doesn't support ver. 5.
I am going to test it now.
 
@melkier well done mate!!
Very good, I love it.
I use SignalK as well, and I didn't see any comunication errors in the last 48 hours.

I have a question.
I would like to understand better about the Balance Function.

I see that in the Xiaoxiang app you can activate or deactivate the possibility to balance cells only during charge or always.
If this parameter is ON the bms balance cells only during charge, if this parameter is OFF the bms balance always.
I see the parameters available from your software for balancing are (using the '-l' parameter):
- BalanceStartVoltage
- BalanceWindow

Do you know the name of this parameters to set on/off the balancing?
Thanks
 
for balance, it's an eeprom parameter: BatteryConfig

use -r BatteryConfig to read it
-w BatteryConfig <value> to write it

use -n for numeric outout only (no translation)
 
I know its not wifi but for anyone curious I created a containerized docker version of BMS Tools / NodeJBD for ease of use:

 
If I want to plug my JDB in my Victron Venus os (rPI version)
What should I get

JBD Smart BMS 8s (24v) UART
or
JBD Smart BMS 8s (24v) RS485
 
If I want to plug my JDB in my Victron Venus os (rPI version)
What should I get

JBD Smart BMS 8s (24v) UART
or
JBD Smart BMS 8s (24v) RS485
The RS485 is the UART bms with the 485 dongle. It depends on how you are going to read it. Will you use the UART on the rPI or will you get a USB RS485 for the rPI?
 
Hello @melkier

I have a 2 questions:
1. Is it now possible to monitor and change settings, like one can in the Bluetooth app, with a mobile phone on a webpage like grafana or so?
2. Could one use your wifi module to control a relay to switch one of these capacitive active balancers (picture below) on and off? Let's say ON when one of the cells is same or higher than 3.4V + deltaV is bigger than 5mV and OFF again if no cell is higher than 3.4V or deltaV is smaller than 5mV. Is that doable?
Much appreciated
Best regards to you
IMG_20220519_210800.jpg
 
Oh one more question, is it still true that the esp can't connect to a phone hotspot!?
 
Hello @melkier

I have a 2 questions:
1. Is it now possible to monitor and change settings, like one can in the Bluetooth app, with a mobile phone on a webpage like grafana or so?
2. Could one use your wifi module to control a relay to switch one of these capacitive active balancers (picture below) on and off? Let's say ON when one of the cells is same or higher than 3.4V + deltaV is bigger than 5mV and OFF again if no cell is higher than 3.4V or deltaV is smaller than 5mV. Is that doable?
Much appreciated
Best regards to you
View attachment 97177

I make changes to the BMS via my grafa page - but it calls a web service on my RPI which in turn just calls jbdtool.

I have some of these active balancers and have been thinking about doing exactly that (controlling a relay to turn it on via the esp). I would say it's possible, yes. I currently don't use any of the control pins on the esp on my DIY boards.
 
@melkier is it possible to reset the SOC using your utility?
My BMS's current accounting drifts lower by ~2 amp hours for every cycle.
 
Oh one more question, is it still true that the esp can't connect to a phone hotspot!?

I just tried this on a freshly written esp - it connected to my phone's hotspot.

Then I connected my computer to the same hotspot and was able to connect to the ESP page.
 
@melkier is it possible to reset the SOC using your utility?
My BMS's current accounting drifts lower by ~2 amp hours for every cycle.

I added an -X option to jbdtool to "reset" the BMS but I'm not totally sure what it does (it's not documented and I only learned of it from debugging the bluetooth stuff).

You might try it and see if it works for you. I think it might also "unstick" the BMS if it has an error.
 
I make changes to the BMS via my grafa page - but it calls a web service on my RPI which in turn just calls jbdtool.

I have some of these active balancers and have been thinking about doing exactly that (controlling a relay to turn it on via the esp). I would say it's possible, yes. I currently don't use any of the control pins on the esp on my DIY boards.
Many thanks for your kind replies!

Funny that you already thought about doing so. If you do then i might also build one of your boards for that purpose only since i trust your exceptional abilities in this field.
It might be an idiotic question (i am not so good with this stuff) but it wouldn't be possible to connect with your board via Bluetooth to the stock android app or?
What i am looking for is on one side intelligent automated control of my active balancer + still being able to do the same things (monitor and change settings) i can do now via the phone xiauxiang app without having to rely on a computer r pi or wifi.
Could your board somehow share the UART with the Bluetooth adapter? ? Guess not..
 
I just tried this on a freshly written esp - it connected to my phone's hotspot.

Then I connected my computer to the same hotspot and was able to connect to the ESP page.
Great news thanks! Previously i couldn't connect my WeMos with a hotspot, seems like they added that functionality in some recent releases.
 
Back
Top