-
Notifications
You must be signed in to change notification settings - Fork 834
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
[EXPERIMENTAL] Argo WREM2 - changed proto msg size: 96->90 bits #2136
base: master
Are you sure you want to change the base?
[EXPERIMENTAL] Argo WREM2 - changed proto msg size: 96->90 bits #2136
Conversation
ab1eac1
to
31808d8
Compare
@crankyoldgit , @NiKiZe -
Highlights
|
Includes `matchBytes()` change to be able to work with non-byte-aligned bit lengths. Signed-off-by: Mateusz Bronk <[email protected]>
31808d8
to
6461a31
Compare
From captures in issue crankyoldgit#2133 (confirmed valid by the OP) Signed-off-by: Mateusz Bronk <[email protected]>
Reason: OP confirmed the temp value readings are correct. Signed-off-by: Mateusz Bronk <[email protected]>
I'll try to review this on Tuesday (GMT-10). I'm busy till then. |
From captures in issue crankyoldgit#1859 Signed-off-by: Mateusz Bronk <[email protected]>
@crankyoldgit - any updates? |
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.
I think this seems ok, I'm a bit curios on how/if this affects performance.
I'm also wondering if this will affect other protocols, or if some protocol implementations could be simplified after this change.
But those are just notes for future things to look into if/when time permits.
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.
Sorry about that.
I'm a little uneasy at changing the 8-bit nature of the _matchGeneric
For protcols that have "odd" protocol lengths. i.e. Well over 64 bits and not a multiple of 8 (e.g. Kelvinator & Gree). I've found that some of the message has a fixed few bits. e.g. 3 odd bits in Kelvinator.
Is that the case here?
As far as this concrete protocol goes, the trailer is variable. Messages end with Line 66 in 850a45f
|
It would be nice if there is 2 bits that is constant, we could then assume those are part of message format. If there is a CRC of 8bits, then it is odd if those are not byte aligned. |
Includes
matchBytes()
change to be able to work with non-byte-aligned bit lengths.Status: EXPERIMENTAL
Based off #2133 captures and the fact the
last 6 bits
were unused/past checksum, looks like true proto length may be90-bit
(vs. previous value of96
), hence the adjustment.I do NOT own any
WREM2
device so unable to tell if this violates any backwards compatibility and whether the captures in #2133 are the WREM2 or if there's a 96-bit variant out there as well.