Betaflight-configurator: Android App crashes on connect

Created on 14 Jun 2020  路  21Comments  路  Source: betaflight/betaflight-configurator

-Samsung Galaxy S9 (Android 10)
-MatekF405CTR

When I connect the OTG cable I get a option to accept the connection, but after accepting the app quits.

bug

Most helpful comment

@ackzsel @Bradw-17 I think, I solved the issue. Can you please try this apk You will have to uninstall the old apk before installing this one. Works well on my samsung s7-edge with a CL Racing F7 flight controller and USB_HID_CDC = ON

All 21 comments

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.97. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

  • LG V30 (h930)
  • LineageOS 16.0 (Android 9)
  • OMNIBUSF4SD

Same issue. It asks for permission to connect and crashes after accepting. I attached a logcat from the event.
logcat_06-15-2020_13-45-23.txt

@WalcoFPV seems we start to receive feedback for your great work 馃槈

@McGiverGim I love the idea of having the full functionality of the configurator on my phone. Simplifies things so much. I just want to bring it to attention so it can be fully functional. Can't wait! :smile:

Indeed. This would be AWESOME and I really hope it will eventually work on our devices as well! Thanks all involved for bringing an Android app!

@Bradw-17 @ackzsel Thanks for your feedback. The permission can be asked two different ways : automatically after plug in the fc (with the app opened or not) or when clicking on the connection button of the configurator. So how many permission asking windows appeared before the app crashed ? And is the permission asking window responsible of the crash appeared before the app was launched or when the configurator was loaded ?

For me, I had the app open before plugging in the fc. After plugging in, the permission window pops up. When I hit accept, the app immediately crashed.

I had the same results with OMNIBUSF4SD as @Bradw-17 described. The permission dialog was shown while the app was started and after accepting the app crashed.

BUT, I tried just a few minutes ago with a different FC (FURYF4OSD) and it worked! As soon as I get home I'll try again with the OMNIBUSF4SD to see if the problem is still present with that FC.

@WalcoFPV, I might found something. USB_HID_CDC was set to ON on my OMNIBUSF4SD when it crashed the app. After setting USB_HID_CDC to OFF using my PC it was able to connect with the app! After setting it to ON again the app crashed again. I could reproduce this every time I tried. @Bradw-17 can you check if this might be your problem as well?

edit: The permission dialog looks a bit different as well depending on the state of USB_HID_CDC It might be connecting to the wrong virtual device, I guess.

I'll take a look when I get home!

@ackzsel This seems to be the issue. I was able to reproduce it. I think the issue is related to the Cordova plugin used for serial connection and not to the configurator code. I'll see what I can do to fix that !

@ackzsel @Bradw-17 I think, I solved the issue. Can you please try this apk You will have to uninstall the old apk before installing this one. Works well on my samsung s7-edge with a CL Racing F7 flight controller and USB_HID_CDC = ON

I'll check as soon as I get home :+1:

Fix worked for me!

@WalcoFPV, this fixed it for me as well! Thanks man.

This issue will be fixed in future releases. Can be closed

We usually close the issues when the fix (in this case the original PR) is merged on master. I will link both.

@ackzsel @Bradw-17 I think, I solved the issue. Can you please try this apk You will have to uninstall the old apk before installing this one. Works well on my samsung s7-edge with a CL Racing F7 flight controller and USB_HID_CDC = ON

Tnx!. It is OK now with this version. But before was same issue.
MATEKF405STD + Samsung Galaxy S8 Android 9.0

@ackzsel @Bradw-17 I think, I solved the issue. Can you please try this apk You will have to uninstall the old apk before installing this one. Works well on my samsung s7-edge with a CL Racing F7 flight controller and USB_HID_CDC = ON

Can you give me this apk I'm having same issue. And can download it because it says file is in the bin.

betaflight-configurator_10.8.0_android.zip
@Delacius note that it is a development version and only for testing purposses

Thanks you so much, I'm on vacation no computer near by, so you are a life saver! 馃槈

All best

Goran

Was this page helpful?
0 / 5 - 0 ratings

Related issues

richard-scott picture richard-scott  路  3Comments

spatzengr picture spatzengr  路  7Comments

bizmar picture bizmar  路  5Comments

richard-scott picture richard-scott  路  4Comments

el-kwadro-fpv picture el-kwadro-fpv  路  8Comments