Repository navigation
Add Lenovo HS10 and Dr.Trust SSW526 support - #1440
RealBhupesh wants to merge 2 commits into
Conversation
|
Thanks for your PR. Is something missing or why it is a draft version? |
|
I kept this PR as a draft intentionally because two validation gaps remained: the local Android SDK was unavailable, so the Gradle tests could not compile, and GitHub had not reported any CI checks for the branch. In addition, the Lenovo HS10 implementation follows the compatible HS11 protocol reference because the issue capture contained no measurement packets, so it still needs physical HS10 hardware validation. The SSW526 path is based directly on the captured AC27 frames. I wanted those limitations to be visible before marking the PR ready for review. |
|
The missing Android SDK isn't really a blocker — the easiest way is to just install Android Studio, it ships the SDK and sets everything up for you (open the android_app folder and you're ready to build). Alternatively you can install the command line tools and point local.properties at them with sdk.dir=…; after that ./gradlew assembleDebug test runs fine locally. That said, from the code it looks like this PR was never actually run — neither built nor tried against a scale. Scale handlers are very hard to judge from review alone, so please test this with the real hardware, and let me know whether it works or not. Once we have that feedback I'm happy to take another look. |
|
I have a minimal working version for the SSW526. It reads weight accurately but not impedance (as my hardware repeatedly sends back Byte 17: 03 and Byte 18: D5, which translates to a constant 981 placeholder). If anyone is interested, I can paste the custom driver file here. I am not entirely sure if the scale's firmware strictly expects user metrics (age, gender, and height) to be successfully registered first before it will trigger an electrical current on the electrode plates, or if my specific device has a hardware issue, or if there is a timing/packet-drop race condition during the initial handshake. NB: Even though I have forked this repo, it has been a total nightmare to get it compiled given how picky Android Studio is with Gradle versions. I am so exhausted right now that I am not even going to bother committing or creating a pull request for these files in the foreseeable future. If you want the raw driver code, let me know here and I will gladly dump it in a comment. PS: I am not a native mobile developer, so I used a lot of help from AI to iron out the Kotlin syntax specifics. |
|
@jankinath-das sure you can paste the code here if you want. Maybe it will help somebody for future use. Usually Android Studio fetch the right dependencies automatically. I will close this PR for now. |
|
Hi everyone, I've attached my code as a text file below. Could you please acknowledge if the file is accessible to you? A few points to note from my testing:
|
What changed
Why
Issue #1437's HS10 capture showed the device's FFF0 service with FFF1 write and FFF4 notify characteristics but no measurement packet. The implementation follows the compatible HS11 packet reference and keeps the unverified hardware assumption explicit.
Issue #1436's SSW526 capture showed repeated AC 27 frames that the existing MGB/Taylor parsers ignored, so no measurement was published.
Validation
git diff --checkand committed-diff checks pass.