Skip to content
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

jkbms_ble: 32s-Support and connection workaround for bt-fail #466

Merged
merged 27 commits into from
Apr 12, 2023
Merged

jkbms_ble: 32s-Support and connection workaround for bt-fail #466

merged 27 commits into from
Apr 12, 2023

Conversation

baranator
Copy link
Contributor

  • Support for newer jkbms that send frames with up to 32 cell infos.
  • Also a workaround for the bug that causes the bluetooth-connection to fail after 15 hours and 22 mins

@@ -11,7 +11,7 @@

# zero means parse all incoming data (every second)
CELL_INFO_REFRESH_S = 0
DEVICE_INFO_REFRESH_S = 60 * 60 * 5 # every 5 Hours
DEVICE_INFO_REFRESH_S = 60 * 60 * 10 # every 10 Hours
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason why you chose 10 hours and not 12 hours?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

tbh: That line can be removed completely as it not used anymore - device-info only contains non-changing data that do not need to be updated after connect.

That change comes from back then, when we tried to figure out where that crashes come from...

@mr-manuel mr-manuel merged commit f5eb089 into Louisvdw:jkbms_ble Apr 12, 2023
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.

2 participants