Coder Social home page Coder Social logo

esp32_ble_ota_android's Introduction

ESP32_BLE_OTA_Android

Android app to perform OTA update on ESP32 via BLE

New App

Get it on Google Play

Arduino

ESP32 Code repository

Source Code

Dependency Android-BLE-Library

Clone as follows:

~/AndroidStudioProjects/ESP32_BLE_OTA_Android

~/AndroidStudioProjects/Android-BLE-Library

You may need to delete the .idea folder before syncing the project

esp32_ble_ota_android's People

Contributors

fbiego avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

esp32_ble_ota_android's Issues

Two Different Application issues

The App which is there in Google App store i.e. ESP32 OTA BLE is different and the source code you have given in the repo is different and this one is getting crash. The one which is available in google play store is working correctly so can you provide me the repository of that..

Installation error with Android 12: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

There seems to be an Manifest issue since Android 12.

I could run the App on Android 9 and Android 11 without any issues.

The PlayStore Version seems to run on Android 12 as well.
Launching 'app' on samsung SM-G970F. Installation did not succeed. The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
(I tried other Android 12 Devices as well)

Flutter Ble

I am making flutter app. I am facing problem in sending file to esp32 can you tell me steps needed before sending file

app not connecting

I can't get the android app to connect.
I've tested on phones is running Android 8 and Android 11 with same (failed) results

I've built and installed the android app using android studio and it uploads/run on both devices without any reported errors.
I tried initially without linking any additional libraries since another closed issue implied this is no longer required. Because this failed I tried linking to fbiego/Android_BLE_Library, but this states the module already exists (not a suprise and your readme.md needs to be updated to reflect that this isn't required any more). I also tried to linked to a clone of https://github.com/NordicSemiconductor/Android-BLE-Library but this doesn't do anything either (although I didn't change any code for this attempt).

In another issue you've stated you've essentially cloned https://github.com/NordicSemiconductor/Android-BLE-Library
However the readme for this specifically states
"The library does not provide support for scanning for Bluetooth LE devices. For scanning, we recommend using Android Scanner Compat Library which brings almost all recent features, introduced in Lollipop and later, to the older platforms."
and recommends using https://github.com/NordicSemiconductor/Android-Scanner-Compat-Library
I did trying linking this repo but it doesn't help either (although again without any changes to code).

Incidentally the arduino sketch doesn't appear to be the issue:
I've installed the nimBLE arduino sketch - that's working fine. The same is true if I use the ESP32 OTA ardunio sketch.
Both correctly connect to the "nRF Connect" android app and report the GATT Service Generic Access and Generic Attributes as well as the custom device SERVICE_UUID = fb1e...
If I put Serial.prints in the sketches the ESP32 is appropriately reporting a connection with nRF.

Android BLE Library Version?

Hello! First of all, I think this ESP32 BLE OTA updater is very awesome and I want to incorporate something similar into one of my ESP32 projects.

I am attempting to debug this project in Android Studio in an attempt to understand the code a bit better, but am running into the issue of not having the Android BLE library in the source folder of the application. I added the latest version of this library as a dependency with the line below

implementation 'no.nordicsemi.android:ble:2.3.1'

in my build.gradle file, but am still facing compiling errors (potentially due to a library version change, I'm thinking).

image

Would it be possible to include the library source code in the repository or inform me of the version you were using when this application was written?

Any help or suggestions will be much appreciated... Thanks in advance!

BLE-OTA-v1.4

Hi,

Is this android already support your new BLE arduino with fatfs?
Newest apk binary build is BLE-OTA-v1.4.apk

App crashes when picked file in android 11 and higher devices

2022-07-07 19:21:13.009 24256-24256/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.fbiego.ota, PID: 24256
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=56, result=-1, data=Intent { dat=content://com.android.externalstorage.documents/document/primary:OTA/esp32_v1.2.ino_OTA_advertise_FBIEGO.bin flg=0x1 }} to activity {com.fbiego.ota/com.fbiego.ota.MainActivity}: java.io.FileNotFoundException: /storage/emulated/0/OTA/esp32_v1.2.ino_OTA_advertise_FBIEGO.bin: open failed: EACCES (Permission denied)
at android.app.ActivityThread.deliverResults(ActivityThread.java:5098)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:5139)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2104)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:236)
at android.app.ActivityThread.main(ActivityThread.java:7861)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
Caused by: java.io.FileNotFoundException: /storage/emulated/0/OTA/esp32_v1.2.ino_OTA_advertise_FBIEGO.bin: open failed: EACCES (Permission denied)
at libcore.io.IoBridge.open(IoBridge.java:492)
at java.io.FileInputStream.(FileInputStream.java:160)
at com.fbiego.ota.MainActivity.saveFile(MainActivity.kt:596)
at com.fbiego.ota.MainActivity.onActivityResult(MainActivity.kt:698)
at android.app.Activity.dispatchActivityResult(Activity.java:8476)
at android.app.ActivityThread.deliverResults(ActivityThread.java:5091)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:5139) 
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51) 
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2104) 
at android.os.Handler.dispatchMessage(Handler.java:106) 
at android.os.Looper.loop(Looper.java:236) 
at android.app.ActivityThread.main(ActivityThread.java:7861) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967) 
Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
at libcore.io.Linux.open(Native Method)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.