-
-
Notifications
You must be signed in to change notification settings - Fork 72
Jk bms pb sn fix #355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jk bms pb sn fix #355
Conversation
|
Thanks! |
|
|
||
| ODDRunTime = unpack_from("<I", status_data, 38)[0] # 1 unit32 # runtime of the system in seconds | ||
| PWROnTimes = unpack_from("<I", status_data, 42)[0] # 1 unit32 # how many startups the system has done | ||
| serial_nr = status_data[46:61].decode("utf-8").split("\x00", 1)[0] # serialnumber 16 chars max |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May it be, that the protocol differs from hardware version to hardware version? I cannot believe, that this data is provided twice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
serialnumber is provided two times in the memory.
I have tested it with Hardware Version 15 and 19.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
This will add an fix for JKBMS_PB driver to read the full serial number from modbus.
Also additional information like SoH, Heating, the Usr and Usr2 information fields and some other available parameters.
Fixes #354