Closed rgr-1 closed 4 months ago
Thanks for the good work! I added the settings password calculation in commit 686da23.
Could you please test?
Works perfectly with mine 2 JK-BMSs The only comment - maybe it make sense to add "This code is valid for XXm YYs" sentence to this as well.
Or maybe make it similar to what I got from jk.. which triggered me to have a closer look on it :)
The settings password for JK-BMS can be constructed as: "your time dependent code"+"crc8.ROHC(serilar of inverter)"
With this I am able to "unlock" settings of both mine jk-bms PB2A16S20P.. Sure anyone else who may connect to them will be able as well. I will not bother you with my ranting about "JK security" or rather absence of it :)
You may add this to your code generator to save people from unnecessary interaction with JK.
Below is the js code I played with in Node-Red: