-
Notifications
You must be signed in to change notification settings - Fork 513
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
BLE device automatically disconnecting #1197
Comments
@chris-goodchild thank you for reporting the issue, we're adding it to the pipeline. We'll let you know if we're seeing the same. |
Thanks so much @madej10 - just to add some additional findings:
More often than not, as I am setting up a monitor after discovering services and characteristics, I'm also seeing an error |
This comment was marked as off-topic.
This comment was marked as off-topic.
Thanks @FlorinPopaPersonal we're preparing a release, after which we'll look into this issue on both platforms. |
Hi all, we've started seeing the issue and are looking for a way to fix it. Thanks for your patience and for bringing it to our attention. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
hi all, this is our top priority - hopefully we can at least get you an update today. Thank you all for your patience |
This comment was marked as off-topic.
This comment was marked as off-topic.
Hello everyone,
Despite waiting between each step, nothing breaks and everything works as intended. So I have few questions: |
This comment was marked as off-topic.
This comment was marked as off-topic.
Facing same issue on Android and iOS as well. Can anyone update on fixing this issue? |
@a396901990 @amit13091992 could you please reply to the questions posted by @intent-kacper-cyranowski in the previous comment to help us narrow it down:
|
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Hi @eliaslecomte I would also ask everyone else that needs help with similar issue, yet unrelated to iOS, to create separate issue and provide relevant information |
@intent-kacper-cyranowski I had this issue recently, and found out its due to setting the What fixed it:
Setting the I was on a Samsung Galaxy FE S21. Maybe this is the issue and could possibly help? |
Hi @MahmoudNafiseh |
Any update on when the next release will be? We're seeing the issue @MahmoudNafiseh found on Android and would love some resolution |
I can confirm this same issue, using PLX version 3.2.1, Google Pixel 9 connected to an ESP32 device, occurs exactly at 30 seconds. |
Experiencing the same issue here. I am not using an ESP32, but another MCU (Dialog/Renesas one). The connection drops after about 10 seconds, then it reconnects, and it drops it again continuously. It is only happening on Android for me, iOS is working fine. I recently upgraded the app to RN 0.74 and went from ble-plx 2.0 to 3.2.1. This library was working fine with the same code on Android, but now it is not. |
I am having the same problem as you. Did you find a solution? |
I am still experiencing this issue on iOS, regardless of OS version. I have tried implementing reconnect logic and even destroying/recreating the manager but to no avail. We have a large project so trying to figure out what, if any, compatibility issues there may be has been a lengthy and ultimately fruitless pursuit. My observations are still the following:
Following step 6, it may allow writing several times or the first write will fail and a "Device Disconnected" BLE error is surfaced. Checking On Android these issues are far less apparent, which seems at odds with others' reports of similar issues. |
Hello @chris-goodchild @codewizardVN ! The problem I had was only with Android. On iOS, I did not experience the problem, so there could be two separate issues. I am unaware of the iOS one, but here is the fix for the Android. Okay, here is a quick fix that you can do. This is fixed on the upcoming update on this library, but as a work around for the ones who need it now, here is what I did to fix it. The main problem is on the BLE PLX library, and it needs to be fixed on this file: Change this:
For this:
Now, here is the problem. Changing this once, will work, but this change is not permanent, as when you install your node reqs again, this change will get overrided. To overcome this and make is easier, I used https://www.npmjs.com/package/patch-package. This package basically will create .patch files that will automatically override your installation every time you run a yarn install or whatever you use to install all your reqs. The code I am providing here is already fixed on the upcoming update of the BLE PLX. I would recommend searching across the commit history on this library to see if there is any fix for the iOS app side, and if there is, you can apply a similar process to fix that witht he patch-package as well. Hope this helps! |
Prerequisites
Question
Hi, I'm not certain this is a bug but I'm also unable to reproduce this issue using another client, so here goes.
On iOS, I'm seeing the BLE device disconnect very quickly after pairing. The sequence of events is as follows:
Unless I trigger the first write immediately the device disconnects. It seems to disconnect unless there's an operation almost immediately which seems odd. The docs don't suggest there's a need to keep the connection open by any means, so am I missing something? When we test the BLE device using another client performing the same steps it works fine, no disconnects. It's only when I use this library it drops out. I've seen other issues related to Android but nothing for iOS.
The text was updated successfully, but these errors were encountered: