Hauptmenü

JK BMS

Begonnen von domo, 16 März 2024, 16:19:16

Vorheriges Thema - Nächstes Thema

domo

I have a 12V LIFEPO4 4KW battery with a JK BMS.  I have installed the RS485 adapter, which seems to be isolated, which is a good thing.  I will connect this to a WROVER32 running tasmota, and use two pins as a modbus RS485 bridge.  I am running FHEM on a RASPI, which communicates with a lot of of other tasmota sensors using MQTT. Does a module exist for decoding and categorizing the BMS stream which I will hopefully be able to receive on the PI?  Have I missed something ?  Will this work like I imagine it could ?  I would like to get the information so that I can control the charging routine for the battery pack, which presently gets any energy which is above +5W according to the main power meter reading using an optical magnetic adapter on the face of the meter (also tasmota).  I get a reading every second from the Stromzahler.  The software and hardware performs quite well presently, but extra info from the BMS could be an advantage. The charger is a server PSU (maximum 70A @ 13.7V) controlled from the PWM on tasmota. Any input or comment would be appreciated. Thanks.

Gisbert

#1
Hi domo,

please check this link: https://github.com/syssi/esphome-jk-bms
In a couple of weeks, I'm gonegoing to a have JK-BMS and I will either use this code or something similiar from GitHub.

Cheers
Gisbert
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY

domo

hi Gisbert, cool, i'll wait for your feedback.. 

domo

so this is what the JK BMS is sending, I think it is ok, it needs to be parsed into different values:
4E5700FD00000000060001790C010CDA020CDA030CDA040CDA80001781001782001583052484000085458602870042890000498E8A00048B00008C00038E05A08F0410900E10910DDE920005930A28940A5A95000596012C97002898012C9900C89A001E9B0B549C00039D019E00649F0050A00064A10064A20014A30046A40050A5FFECA60003A7FFECA8FFF6A904AA0000011DAB01AC01AD03C5AE01AF00B0000AB114B231323334000000000000B300B4496E707574205573B532333034B60005C653B731312E58575F5331312E32365F5F5FB800B90000011DBA496E70757420557365726461534261745F31325632383041C001000000006800004AD0

best regs

domo

Hello Gisbert, I decoded locally on the esp32 using berry script, and MQTT.PUBLISH commands.it works great. I think it is the best way to go.  Regards domo