Here you find the algorithm needed to calculate the JK-BMS emergency firmware upate code. This code is needed when uploading a firmware for JK BMS in emergency mode. You can get this code from the JK BMS support. Or you use this tool.
- get current date and hour (UTC) in the format YYMMDDHH
- add all numbers
- calc sum modulo 10
- use result to lookup the digit order in a lookup table:
[0x01, 0x04, 0x03, 0x02, 0x08, 0x06, 0x07, 0x05,
0x04, 0x01, 0x03, 0x02, 0x05, 0x08, 0x07, 0x06,
0x08, 0x02, 0x01, 0x03, 0x05, 0x04, 0x07, 0x06,
0x06, 0x02, 0x03, 0x04, 0x01, 0x07, 0x05, 0x08,
0x07, 0x01, 0x02, 0x03, 0x05, 0x06, 0x04, 0x08,
0x05, 0x02, 0x03, 0x04, 0x01, 0x08, 0x07, 0x06,
0x02, 0x03, 0x04, 0x01, 0x05, 0x08, 0x06, 0x07,
0x03, 0x04, 0x01, 0x02, 0x07, 0x08, 0x05, 0x06,
0x05, 0x06, 0x01, 0x02, 0x07, 0x08, 0x03, 0x04,
0x06, 0x07, 0x01, 0x02, 0x05, 0x08, 0x03, 0x04]
- change order of digits in date string
Andy from Off Grid Garage Australia made several videos:
https://www.youtube.com/watch?v=KznZtqpoles
https://www.youtube.com/watch?v=b-Hl1G8_qOA