Wifi connection works, but not hard-wire to RC

I am able to get the autoConnection facility to connect when I am connected to the Anafi’s wifi but not when I am hard-wired directly into the RC (using the same code from the sample app). Any ideas on getting the RC connection working?

Apologies, missed the bit about adding com.parrot.dronesdk as an external accessory protocol!

Hi, I have a similar problem. My observer for AutoConnection does not get called.

#################################

    this.groundSdk = GroundSdk.newSession(getApplicationContext(), savedInstanceState);

    this.refAutoConnection = getGroundSdk().getFacility(AutoConnection.class, obj -> {
        Log.i(TAG, "AutoConnection Status Change!");
        if(obj != null) {
            Log.i(TAG, "AutoConnection Status Change: " + obj.getStatus());
            DevelopmentFragment.sendMessageToLog("AutoConnection Status Change: " + obj.getStatus());

            if(obj.getRemoteControl() != null) {
                if(remoteControl == null) {
                    remoteControl = obj.getRemoteControl();
                    remoteControl.getState(remoteControlObserver);
                } else {
                    if(!remoteControl.getUid().equals(obj.getRemoteControl().getUid())) {
                        remoteControl = obj.getRemoteControl();
                        remoteControl.getState(remoteControlObserver);
                    }
                }
            }

            if(obj.getDrone() != null) {
                if(drone == null) {
                    drone = obj.getDrone();
                    drone.getState(droneObserver);
                } else {
                    if(!drone.getUid().equals(obj.getDrone().getUid())) {
                        drone = obj.getDrone();
                        drone.getState(droneObserver);
                    }
                }
            }

        }
    });

#################################
Here’s my Logcat output:

01-29 14:41:57.747 8029 8108 I arsdk.mux: Starting USB accessory MUX backend controller
01-29 14:41:57.818 8029 8029 I de.mindur.drone.BaseActivity: Starting AutoConnection: true
01-29 14:41:57.886 8029 8090 I Adreno : QUALCOMM build : 624c5bb, I109c45a694
01-29 14:41:57.886 8029 8090 I Adreno : Build Date : 05/22/18
01-29 14:41:57.886 8029 8090 I Adreno : OpenGL ES Shader Compiler Version: EV031.22.00.01_06
01-29 14:41:57.886 8029 8090 I Adreno : Local Branch :
01-29 14:41:57.886 8029 8090 I Adreno : Remote Branch :
01-29 14:41:57.886 8029 8090 I Adreno : Remote Branch :
01-29 14:41:57.886 8029 8090 I Adreno : Reconstruct Branch :
01-29 14:41:57.887 8029 8090 D vndksupport: Loading /vendor/lib64/hw/gralloc.msm8953.so from current namespace instead of sphal namespace.
01-29 14:41:57.891 8029 8090 I Adreno : PFP: 0x005ff087, ME: 0x005ff063
01-29 14:41:57.895 8029 8090 I zygote64: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
01-29 14:41:57.896 8029 8090 I OpenGLRenderer: Initialized EGL, version 1.4
01-29 14:41:57.896 8029 8090 D OpenGLRenderer: Swap behavior 2
01-29 14:41:58.042 8029 8029 I arsdk.mux: Trying to discover a plugged RC accessory
01-29 14:41:58.043 8029 8029 I arsdk.mux: Installing RC: UsbAccessory[mManufacturer=Parrot, mModel=Skycontroller 3, mDescription=Parrot Skycontroller 3, mVersion=1.6.1, mUri=https://play.google.com/store/apps/details?id=com.parrot.freeflight6, mSerial=PI040443AA8G068763]
01-29 14:41:58.043 8029 8108 I arsdk.mux: Opening RC accessory:UsbAccessory[mManufacturer=Parrot, mModel=Skycontroller 3, mDescription=Parrot Skycontroller 3, mVersion=1.6.1, mUri=https://play.google.com/store/apps/details?id=com.parrot.freeflight6, mSerial=PI040443AA8G068763]
01-29 14:41:58.044 8029 8108 I arsdk.mux: RC accessory opened [fd: 69]
01-29 14:41:58.045 8029 8108 I mux : mux ref: 2
01-29 14:41:58.045 8029 8108 I mux : Opening channel 0x00000003
01-29 14:41:58.045 8029 8108 I mux : mux ref: 3
01-29 14:41:58.045 8029 8108 I mux : Opening channel 0x00000002
01-29 14:41:58.046 8029 8108 I arsdkctrl: discovery ‘mux’: start
01-29 14:41:58.047 8029 8108 I mux : CHANNEL_CLOSE chanid=0x00000001 type=NORMAL
01-29 14:41:58.047 8029 8108 I arsdkctrl: discovery ‘mux’: add device name=‘Skycontroller 3’ id=‘PI040443AA8G068763’
01-29 14:41:58.048 8029 8108 I arsdk : Device added: 40683
01-29 14:41:58.082 8029 8090 D vndksupport: Loading /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
01-29 14:41:58.082 8029 8090 D vndksupport: Loading /vendor/lib64/hw/gralloc.msm8953.so from current namespace instead of sphal namespace.
01-29 14:41:58.108 8029 8108 I mux : Opening channel 0x00000001
01-29 14:41:58.108 8029 8108 I mux : CHANNEL_OPEN chanid=0x00000001 type=NORMAL
01-29 14:41:58.122 8029 8108 I mux : mux ref: 4
01-29 14:41:58.133 8029 8029 I arsdkengine.ctrl: TCP proxy created [address: 127.0.0.1, port: 43189]

Can you explain what exactly you had to do to be able to connect the RC properly?