Skip to content

Conversation

@BitSeb
Copy link
Contributor

@BitSeb BitSeb commented Dec 9, 2025

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

@BitSeb BitSeb marked this pull request as ready for review December 9, 2025 03:03
@mr-manuel mr-manuel merged commit 54c90ba into mr-manuel:master Dec 9, 2025
2 checks passed
@mr-manuel
Copy link
Owner

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
Copy link
Owner

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.

Copy link
Contributor Author

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.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JKBMS_PB not reading the full serial number

2 participants