Repository navigation
JRing heart-rate interval: the vendor's 15/30/45/60 - #94
Merged
Merged
Conversation
The app sent a fixed 30-minute 0x19 on every connect and after every stream. A ring whose 0x20 reply sets bit 18 (the vendor's condition for its picker) now gets Measurement frequency with 15, 30, 45 or 60 minutes, and the saved value goes out on connect, on Save and after a stream ends. Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The owner asked for a 15-minute option for the JRing's background heart rate.
Why
The owner's export showed the ring reading only every 30 minutes in the daytime. That interval was ours:
0x19byte 6 was hardcoded to 30, sent on connect and after every stream.Change
HeartrateTestActivity) offers 15, 30, 45 and 60 minutes, defaults to 30, and only shows its picker when the0x20reply sets bit 18 (FUNCTION_HEART_SHOW_AUTO_INTERVAL).JringBandCapabilities.hasAutoHeartRateIntervalreads bit 18 and grantsMEASUREMENT_INTERVALper unit, the same way bit 10 grantsTEMPERATURE. The owner's ring sets it.JringSyncEnginestores the saved settings.0x19carries the saved interval, snapped onto the vendor's stops byJringHeartRateInterval.snap; a ring with no saved setting still gets 30. It is sent on connect, on Save, and when a spot or workout stream ends.docs/jring-56ff-plan.md).Checks
JringHeartRateIntervalTestcovers snapping, the default, sending on connect and on Save, restoring after a stream, the off switch, and bit 18 on the owner's real reply.JringSensorHistoryTestnow expects both features granted by the owner's reply.audits/2026-11-19-jring-hr-interval.md, covering the four skills, with impeccable run on renders at 1.0× and 1.3×.Generated by Claude Code