-
Notifications
You must be signed in to change notification settings - Fork 1
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
Unexpected incrementation of instance IDs with Laird characteristics despite bonding #12
Comments
Many thanks, @JoLo33. We are currently investigating the cause of this issue. |
Hi @FlorianBaumgartl-Laird, did you find something, or do you have any suggestion for us? Can we provide you with more information? |
Hi @JoLo33. We are still trying to better understand (and isolate) the root cause of the problem. Quick question: Would you be able to run some additional tests with your app on Android? It would be important to know if the same behaviour can be replicated in non-VSP mode (without any data transmission) when creating a custom GATT database as explained in the following document: https://www.lairdconnect.com/documentation/application-note-custom-gatt-database-command-set-lyra-series in section 6.2 and 6.3 on pages 8 – 10. Please do not forget to issue the ATS 100=0 command followed by AT&W and ATZ in this case. Let us know. Thanks. |
Hi @FlorianBaumgartl-Laird ! We did not yet followed your last suggestion by creating a custom GATT, but we tried to isolate the issue we are facing from our app. We're now able to reproduce the issue with the EFR Connect app on Android, as well as on iOS. Lyra P preparation:
At this point we expect to module to be sufficiently configured for our use case in VSP mode. EFR procedure (Android):
EFR procedure (iOS): So for the moment, it appears to us that the either there is some magic happening with the Lyra P module (bug) or we are using wrong. We do not assume that there is a bug in our in house app as other well known apps, even cross platform, behave the same as our in house app. We did not yet do the investment setting up our own GATT services as we are planning to use the VSP mode and this ready to go solution is one of the main selling points of the product for us. Best regards |
Hi @JoLo33 and @ChrisCA. Can you please check if the following workaround works for you? In addition to the AT&F, ATS 100=1 and ATS 102=1 commands, try also to apply AT+UFU 49,ATZ with AT&W. This will − automatically − reset in background the Lyra module once a BLE connection is dropped or terminated. It worked fine here (3x times in a row) with a Lyra P development board running the latest GA2.2 release. Tested on both Android and iOS in conjunction with EFR Connect. |
Hi @FlorianBaumgartl-Laird and thanks for the feedback. Best regards |
Hi @ChrisCA. Okay, I totally understand. Thanks for verifying and confirming. I’ve passed your feedback internally to our engineering team. The bug with ID #22384 which you are referring to is going to be fixed in the next Lyra 22 GA3 release. This version is scheduled for May 2024. |
Hi,
I got a new problem from our Android developer team:
Tested with GA1.2 and GA2.2
When our app queries the GATT server of the module, we receive a list of UUIDs and their corresponding handles. The characteristics can then be addressed using these handles. Handle = Instance-ID.
We have noticed that the handles of Laird's proprietary characteristics increase by 11 with each connection, contrary to their own documentation: https://www.lairdconnect.com/support/faqs/what-handle-respect-gatt-server We have tested it with and without bonding.
This poses a problem for us on the app side because we now have to clear the UUID cache with each connection to be able to enter the new instance IDs. Android does not normally allow this, but it is still possible through reflections. We are concerned because reflections are somewhat unconventional and may soon be restricted by Android.
Question: Why do the instance IDs increment with each connection despite bonding? Is this a bug?
Here are some Logs:
Best Jonas
The text was updated successfully, but these errors were encountered: