Skip to content

ESP32 connect to Android 1st time correctly, in 2nd connection Android forgets ESP32 and never reconnetting #8631

@lubaldi

Description

@lubaldi

Board

ESP32-C3-mini

Device Description

my own custom PCB based on Esp32-c3-mini-devkit

Hardware Configuration

just powersupply for now

Version

latest master (checkout manually)

IDE Name

PlatformIO

Operating System

Win 10

Flash frequency

40MHz

PSRAM enabled

yes

Upload speed

460800

Description

Hi,
i've Esp32-c3-mini as Bluetooth Keyboard and Android smartphone.

in 1st connection all works well, but if i shut down bluetooth, or switch-off Esp32, once I turn it back on, Smartphone deletes the Esp32 from the list of Pairede device and does't view Esp32 in the list of avaiable device anymore.
i've to shut down bluetooth, or switch-off Esp32, then Smartphone sees it and reconnect how 1st time

Debugging i found that on the 2nd connection, Esp32 connects and immediatply disconnect.

i've this issue only on some android models like:

  • Ulefone 12 (Android12)
  • HugeRock X7 rugged tablet (Android 13)

Same Esp32 Board works well in other Android device.

other Espe32 Boards, works well on these Android devices where other Espe32 boards works bad.

Why some ESP32 works well and other works bad?

i using
PlatformIO Arduino envirorment
ESP32-BLE-Keyboard library: https://github.com/T-vK/ESP32-BLE-Keyboard

Sketch

nan

Debug Message

nan

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions