Giter VIP home page Giter VIP logo

Comments (28)

silabs-TiagoM avatar silabs-TiagoM commented on August 16, 2024

What device are you using? Have you tried on different devices?

from efrconnect-android.

rhssk avatar rhssk commented on August 16, 2024

On MCU side I've tried BRD4182A with the Thermometer example and EFR32BG22C112F352GM32 with custom firmware.
On the other side I've only tried Xiaomi Redmi Note 5 Pro and don't have any other Android device available for testing.

from efrconnect-android.

silabs-TiagoM avatar silabs-TiagoM commented on August 16, 2024

I will create an internal request to get this look at. In the meantime if you could test with other android phones that would help isolating this issue to the specific model you have.

At what point exactly does the app crash, can you be more specific on the sequence of events that leads to this? A video capture of the screen would help.

from efrconnect-android.

rhssk avatar rhssk commented on August 16, 2024

At what point exactly does the app crash, can you be more specific on the sequence of events that leads to this?

-> Open app
-> click "Browser"
-> click "Connect" on "Thermometer Example"
-> from top-right submenu click on "OTA DFU"
-> click on "Select Application .gbl file"
-> click on a .GBL file in file chooser. The app crashes immediately after issuing the click.

from efrconnect-android.

silabs-TiagoM avatar silabs-TiagoM commented on August 16, 2024

Can you share that gbl file? How are you generating it?

from efrconnect-android.

rhssk avatar rhssk commented on August 16, 2024

I tried installing older versions available in the "build" folder of this repo. v2.0.2 has the same issue but v2.0.1 doesn't. After selecting the .GBL file the app doesn't crash - instead the "OTA Setup" popup is automatically closed and no other information is presented. There's also no additional entries in the app log menu.

Here's the relevant logcat output on v2.0.1: https://gist.github.com/rhssk/d4e1994aea469a3c957a7a08b5878a18

Can you share that gbl file? How are you generating it?

I'm building the "soc-thermometer" sample project in Simplicity Studio and then generating .gbl files with the provided "create_bl_files.sh" script. Here's the generated files: https://github.com/rhssk/EFRConnect-android/tree/issues-12/issues-12/soc-thermometer/output_gbl. Have tried both "application-crc.gbl" and "application.gbl".

from efrconnect-android.

silabs-TiagoM avatar silabs-TiagoM commented on August 16, 2024

I have tried that on Pixel2 (Android 10) and Samsung S8 (Android 9) and no issues. It's likely something specific to your device of the Android version which you are using.

The internal bug report has been created but I can't provide yet a timeline on when this could be fixed.

from efrconnect-android.

rhssk avatar rhssk commented on August 16, 2024

The internal bug report has been created but I can't provide yet a timeline on when this could be fixed.

Okay, thanks.

Since my primary goal was to to test the speed of upgrade, could you please be so kind and share the the approximate time it took to complete OTA DFU with those 2 phones and the size of upgrade image?

from efrconnect-android.

silabs-TiagoM avatar silabs-TiagoM commented on August 16, 2024

On these phones that I have it's extremely quick, something like 2-3 seconds. They both support 2M PHY and use a short connection interval which allows fast data throughput.

from efrconnect-android.

rhssk avatar rhssk commented on August 16, 2024

2-3 seconds

That's with using same "application.gbl" I provided (Thermometer sample project)?

from efrconnect-android.

silabs-TiagoM avatar silabs-TiagoM commented on August 16, 2024

Yes

from efrconnect-android.

rhssk avatar rhssk commented on August 16, 2024

Okay, then that's quite fast indeed.

Thanks for the help, much appreciated!

from efrconnect-android.

razemla avatar razemla commented on August 16, 2024

Hello, I will try to resolve your problem. Unfortunately we don't have Xiaomi Redmi Note 5 Pro phone so we are unable to reproduce this bug. Could you provide some more details?

  1. More detailed crashlog from v2.0.3 application (I mean show the logs since the moment when you click "Connect" button in the Browser),
  2. Did you try to read/write some characteristic after connection to device? Did it work fine?

from efrconnect-android.

rhssk avatar rhssk commented on August 16, 2024

Hello,

I've upgraded the firmware on this phone as well as the OS (from Android 8 to Android 10). The issue still persists, although now the app (v2.0.3) doesn't crash. Update simply fails (exact same behavior as I described previously for v2.0.1).

  1. Output from pidcat --current --clear. Here I press 'Connect', read a few characteristics and then attempt OTA update the same way as described in my previous comments.

  2. Reading/writing doesn't throw any errors but the values are not visible. This appears to be a whole different issue of the app though since the values are invisible on any device I connect to, not just the development kit.

from efrconnect-android.

razemla avatar razemla commented on August 16, 2024

I would like to ensure if you read characteristic's data in the proper way. If you want to read given characteristic you should click this "eye" image and "Read" label. It should animate after click. Did you do that and there was no result?

from efrconnect-android.

rhssk avatar rhssk commented on August 16, 2024

After pressing 'Read', a small submenu appears with the characteristic's name but no data. In my screenshot you can see that under "Manufacturer Name String" is a "Manufacturer Name" submenu that's empty (besides the name). In my log three different 'Read' presses are indicated by

 Charac  D  00002a29-0000-1000-8000-00805f9b34fb 16
         D  00002a00-0000-1000-8000-00805f9b34fb 11
         D  00002a01-0000-1000-8000-00805f9b34fb 13

from efrconnect-android.

razemla avatar razemla commented on August 16, 2024

I applied some changes in the code. Could you download attached file, unzip it and install .apk to verify if it helped?

EFR_Connect_debug.zip

from efrconnect-android.

rhssk avatar rhssk commented on August 16, 2024

Do you mind sharing the changes in your fork? Since's this is my private phone I'm reluctant to install custom APKs. I'd much rather compile my own APK from your changes.

from efrconnect-android.

razemla avatar razemla commented on August 16, 2024

Below are applied changes:
https://github.com/razemla/EFRConnect-android/tree/fix/redmi_note_5_pro

from efrconnect-android.

rhssk avatar rhssk commented on August 16, 2024

Same result

from efrconnect-android.

razemla avatar razemla commented on August 16, 2024

Could you verify one more time if my new changes helped?
https://github.com/razemla/EFRConnect-android/tree/fix/redmi_note_5_pro

from efrconnect-android.

rhssk avatar rhssk commented on August 16, 2024

Still getting an exception on .getUuid()

from efrconnect-android.

razemla avatar razemla commented on August 16, 2024

Did you try to install some other Bluetooth based applications? For example nRF Connect? If not please install it and let me know if reading/writing Bluetooth characteristics works fine in this application.

from efrconnect-android.

rhssk avatar rhssk commented on August 16, 2024

Yes, with nRF Connect the characteristics can be read and displayed without any issues.

from efrconnect-android.

razemla avatar razemla commented on August 16, 2024

Hello again,
New version of EFR Connect has been released. Please download it from Google Play store and let me know if you see any improvement.

from efrconnect-android.

rhssk avatar rhssk commented on August 16, 2024

pidcat-v2.2.0

First trace is after opening file picker, second is after selecting firmware image in the picker. After selecting it, an error message "CONNECTION FAILED" is shown.

from efrconnect-android.

rhssk avatar rhssk commented on August 16, 2024

For what it's worth, I've also tried the upgrade with Nexus 5 and some cheapo Prestigio model - both of them work just fine.

from efrconnect-android.

silabs-TiagoM avatar silabs-TiagoM commented on August 16, 2024

Starting from upcoming EFR Connect 2.3.0 we will set minimum Android version as Android 9. Let us know if you still observe this issue with Android 9 or above and open a new issue.

from efrconnect-android.

Related Issues (20)

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.