feat(bluetooth): add broadcast handler for newer Icomon/e-volve scales#1345
Open
BramB-1952444 wants to merge 1 commit intooliexdev:masterfrom
Open
feat(bluetooth): add broadcast handler for newer Icomon/e-volve scales#1345BramB-1952444 wants to merge 1 commit intooliexdev:masterfrom
BramB-1952444 wants to merge 1 commit intooliexdev:masterfrom
Conversation
Fixes an issue where newer Icomon boards (broadcasting as "AAA002") fail with an UNKNOWN_STATUS_CODE during GATT connection attempts. This commit bypasses the connection entirely and passively reads the BLE advertisement. - Added `IcomonBroadcastHandler` using LinkMode.BROADCAST_ONLY. - Implemented the 0xA0 XOR cipher to decrypt weight and impedance from the 0xA0AC manufacturer data payload. - Placed the new handler at the top of `ScaleFactory.kt` so it intercepts the AAA002 broadcast before the legacy GATT handler attempts to connect. Note: The protocol reverse-engineering and Kotlin implementation for this commit were developed with the assistance of generative AI.
Owner
|
Thanks for your PR but what about the already implemented AAAxHandler? Does it not work? I would prefer to fix that implementation. |
|
Hi @oliexdev, some days ago I opened the issue #1341 because when I try to pair the scale I see this I noticed later that a while ago a pr was done #1041, and if I understand correctly the measures should go, but they don't. So yes, probably there is some issue with the already implemented AAAxHandler (or maybe I'm missing something on how to use the app properly) |
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.

Fixes an issue where newer Icomon boards (broadcasting as "AAA002") fail with an UNKNOWN_STATUS_CODE during GATT connection attempts. This commit bypasses the connection entirely and passively reads the BLE advertisement.
IcomonBroadcastHandlerusing LinkMode.BROADCAST_ONLY.ScaleFactory.ktso it intercepts the AAA002 broadcast before the legacy GATT handler attempts to connect.Note: The protocol reverse-engineering and Kotlin implementation for this commit were developed with the assistance of generative AI.