react-native-ble-plx icon indicating copy to clipboard operation
react-native-ble-plx copied to clipboard

Auto-disconnection in some Android devices

Open joanmarcs opened this issue 1 year ago • 6 comments

Prerequisites

  • [X] I checked the documentation and FAQ without finding a solution
  • [X] I checked to make sure that this issue has not already been filed

Expected Behavior

Maintain the connection

Current Behavior

Devices disconnect after some seconds

Library version

3.2.0

Device

Samsung s22 ultra, Pixel, ..

Environment info

-

Steps to reproduce

Formatted code sample or link to a repository

-

Relevant log output

-

Additional information

joanmarcs avatar Jul 04 '24 10:07 joanmarcs

Hi @intent-kacper-cyranowski !

As you said to me, I have opened a new issue. I am attaching the logs you asked me in https://github.com/dotintent/react-native-ble-plx/issues/1197#issuecomment-2204467303

EXPECTED BEHAVIOUR: the app connects to the device and ask for his state until the user closes the BLE connection manually

log.txt

BAD BEHAVIOUR: the app connects to the device and ask for his state but connection drops

log2.txt

joanmarcs avatar Jul 04 '24 10:07 joanmarcs

Hi @joanmarcs

We have opened a ticket for your issue. I would like to clarify some information. Did the error occurred on different devices then previously specified? Samsung and Pixel have their own SoC, and if error occurs only there it might be the cause. You have mentioned that you are working with vehicle chargers, can you specify what is the device, or can you provide any other device on which you were able to reproduce the issue.

Everything that will help in reproducing and solving the issue is welcome.

Hi @intent-kacper-cyranowski

We have only observed this in this brands as far as I know... I have a POCO that works fine, the same in QA team. A Nothing one also works fine. The vehicle chargers are using an ESP32.

joanmarcs avatar Jul 11 '24 09:07 joanmarcs

Also observed with an ESP32 device. Version 3.1.2

ovesco avatar Jul 12 '24 13:07 ovesco

I get event disconnect after connect around 10-15 seconds, It's crazy, The app try to connect again and again, it is the same

nhaduongc avatar Jul 15 '24 16:07 nhaduongc

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.

ApplicationNinja avatar Sep 15 '24 15:09 ApplicationNinja

+1 @nhaduongc same here. Every few seconds, Android drops connection, reconnects, then drops connection again.

jakecurreri avatar Nov 22 '24 15:11 jakecurreri

Solved with this workaround: https://github.com/dotintent/react-native-ble-plx/issues/1197#issuecomment-2256601221

jakecurreri avatar Nov 22 '24 17:11 jakecurreri