HefnySco / andruav_android_app

14 stars 7 forks source link

FCB "3DR service connection closed" #24

Open dorphen opened 11 months ago

dorphen commented 11 months ago

Using Matek F405 V2 flight controller and android 8.1.0. The phone connects to the web client as expected. When I connect to the flight controller via USB, selecting the same baud rate that works connecting the FCB directly to mission planner (115200), the triangle icon in the top left corner turns blue but the FCB box on the menu is not green, and it keeps saying "3DR service connection closed". There is a notification saying "DroneKit-Android". The web client says no FCB connected.

geofrancis commented 11 months ago

when you plug it in does it ask you to open the usb device with andruav?

dorphen commented 11 months ago

when you plug it in does it ask you to open the usb device with andruav?

No, it doesn't do anything when I plug it in.

geofrancis commented 11 months ago

then its an issue with your phone, not andruav. what phone are you using?

dorphen commented 11 months ago

I am using a Telstra "Signature 2" made by LG, and I also tried on an Oppo A73 with the same issue. USB debugging is enabled and I tried on both charging and MTP mode with no luck.

geofrancis commented 11 months ago

do you have another usb serial device you can try? if it doesnt ask you to open it with andruav when you plug it in then your phone does not support USB SERIAL. you could get a bluetooth serial adapter like a HC-06 I found them to be more reliable than the usb connection.

from what i can find the phone doesnt support USB OTG.

https://www.youtube.com/watch?v=QPQ4yZZkYE8

Jai-GAY commented 10 months ago

No, it doesn't do anything when I plug it in.

Is your phone OTG supported?

dorphen commented 10 months ago

Hmm, I will try the Bluetooth module. The app says it supports USB OTG but I don't have an adapter to test if it actually works. Thank you for your help!

Jai-GAY commented 10 months ago

You may want to give this a try to see it establish a connection https://github.com/mik3y/usb-serial-for-android

By the way, what flight controller firmware are you using? I think this app only verified with Arducopter firmware with mavlink protocol.

Or you may have accidentally click always associate the USB device to another app before. https://helpx.adobe.com/content/dam/help/en/lightroom-cc/using/auto-import/add-to-lr.png.img.png

Or your phone is USB OTG supported but the connector adapter does not complice to USB OTG. Are you connecting directly or through a USB adapter. Can you post a picture?

dorphen commented 10 months ago

By the way, what flight controller firmware are you using? I think this app only verified with Arducopter firmware with mavlink protocol.

I was using Arduplane, I tried it with Arducopter but it still didn't work. There was never any popup to open the USB device.

Or your phone is USB OTG supported but the connector adapter does not complice to USB OTG. Are you connecting directly or through a USB adapter. Can you post a picture?

I am using a small USB-C OTG adapter which was plugged into the FCB. I know the adapter works when plugged into a phone for normal OTG uses. But I tried plugging it into the FCB and connecting to my laptop through that, and it didn't even power on, so maybe that's the problem. I think I will try the Bluetooth module, and then I won't have to deal with dodgy micro-USB connections that only work at a specific angle 😛.

Jai-GAY commented 10 months ago

I was using Arduplane

From the same family, should work too.

jberezin commented 7 months ago

By the way, what flight controller firmware are you using? I think this app only verified with Arducopter firmware with mavlink protocol.

I was using Arduplane, I tried it with Arducopter but it still didn't work. There was never any popup to open the USB device.

Or your phone is USB OTG supported but the connector adapter does not complice to USB OTG. Are you connecting directly or through a USB adapter. Can you post a picture?

I am using a small USB-C OTG adapter which was plugged into the FCB. I know the adapter works when plugged into a phone for normal OTG uses. But I tried plugging it into the FCB and connecting to my laptop through that, and it didn't even power on, so maybe that's the problem. I think I will try the Bluetooth module, and then I won't have to deal with dodgy micro-USB connections that only work at a specific angle 😛.

you have to plug the OTG adapter into the phone. It only goes in the server which is the phone. If that doesn't work, you may need to jiggle it which was my problem (connection not reliable between OTG adapter and usb cable.

HefnySco commented 7 months ago

Andruav_App & DroneEngage does work with plane and rover. It is not only Arducopter. You can verify that by running SITL tover or plane and connect to Andruav via UDP connection.

On Tue, Feb 20, 2024 at 5:25 PM Jeffrey Berezin @.***> wrote:

By the way, what flight controller firmware are you using? I think this app only verified with Arducopter firmware with mavlink protocol.

I was using Arduplane, I tried it with Arducopter but it still didn't work. There was never any popup to open the USB device.

Or your phone is USB OTG supported but the connector adapter does not complice to USB OTG. Are you connecting directly or through a USB adapter. Can you post a picture?

I am using a small USB-C OTG adapter which was plugged into the FCB. I know the adapter works when plugged into a phone for normal OTG uses. But I tried plugging it into the FCB and connecting to my laptop through that, and it didn't even power on, so maybe that's the problem. I think I will try the Bluetooth module, and then I won't have to deal with dodgy micro-USB connections that only work at a specific angle 😛.

you have to plug the OTG adapter into the phone. It only goes in the server which is the phone. If that doesn't work, you may need to jiggle it which was my problem (connection not reliable between OTG adapter and usb cable.

— Reply to this email directly, view it on GitHub https://github.com/HefnySco/andruav_android_app/issues/24#issuecomment-1954327000, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA75SNJ2LJ2KPL4I3KJOPQLYUSW5XAVCNFSM6AAAAAA7KRQ3DKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJUGMZDOMBQGA . You are receiving this because you are subscribed to this thread.Message ID: @.***>