Skip to content
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

NimBLE OTA and Android app connect and instantly disconnect #28

Open
PC-maniak opened this issue Mar 29, 2023 · 4 comments
Open

NimBLE OTA and Android app connect and instantly disconnect #28

PC-maniak opened this issue Mar 29, 2023 · 4 comments

Comments

@PC-maniak
Copy link

Hi, I'm trying to get "esp32_nim_ble_ota.ino" and the Android app "ESP32 OTA BLE" working,
unfortunately, immediately after connecting to the ESP32,
"Connected (and one second after) disconnected" appears in the console,
and as a result, the new firmware cannot be uploaded.. the code is not modified in any way .. it's pure code from here and the app comes from the google store

Please help =( Tom

@fbiego
Copy link
Owner

fbiego commented Mar 29, 2023

Looks like you had previously connected the esp32 to your phone using different BLE services which might have been cached. You will have to check using nRF Connect app and refresh the services.

@PC-maniak
Copy link
Author

wow that really was it =) sorry, I've only been playing with BT/BLE for a while and I don't know much about it

thank you for your help ;) Tom

@PC-maniak PC-maniak reopened this Mar 29, 2023
@PC-maniak
Copy link
Author

PC-maniak commented Mar 29, 2023

EDIT : using FFAT solve this problem for me

so when I try to OTA update using BLE, I always have an incomplete file =(

Incomplete
Expected: 624384 Received: 615168

on the phone side, it looks like everything is in order .. the only change to the code (for bin for OTA test) is a change to the serial print text

@gavin-k-mccormick
Copy link

gavin-k-mccormick commented Apr 10, 2023

@fbiego I am also getting this issue where the ESP32 disconnects almost immediately. I went into nRF connect app and can connect to the ESP32 just fine and then selected 'refresh services'. however, going back to the ESP32 BLE OTA app it still connects for a moment and then disconnects.

Is there anything else I can try out? this was working last Friday, but now for some reason it started dropping it. I'm using the same Android phone for testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants