DJI Android SDK bridge












0















I working in a project with Phantom 4 advanced+, i downloaded the most recent android sdk version from github. i edited the code with the developer key that asks and run it in the android studio emulator. It asks WSBridge ip, but i have no idea how to find it. I did a lot of research and found different solutions, but none of them worked out for me. Already downloaded DJI Bridge that dji suggest and i followed the instructions step by step and still didn't found it.



Any information about how can i find it, or anything that you believe can solve my problem it would be very helpfull for me.



Thanks a lot.










share|improve this question























  • Possible duplicate of How to connect to my http://localhost web server from Android Emulator in Eclipse

    – Martin Zeitler
    Nov 24 '18 at 22:01











  • @MartinZeitler, This is DJI SDK specific "IP". So it is not a dup of your suggested thread. Thanks

    – Talobin
    Dec 13 '18 at 18:43











  • @Talobin well, the whole DJI bridge seems to be redundant, because the claimed limit of a single one adb connection is not true; one can connect several devices at once, no matter through which interface. it's probably a little bit of shell scripting vs. adding clutter into the package, which can be prevented; still think it's ok, while only debug builds would be affected. or does it connect to the drone, too? just checked developer.dji.com/mobile-sdk

    – Martin Zeitler
    Dec 13 '18 at 19:21











  • @MartinZeitler, When use adb tcp, any USB connectivity events (plug in/plug out/ restart drone...) will drop this connection.Also, adb tcp connection will drops when there is network congestion. So for small project, this might not be a problem at all. For CI/CD of big project, the connection needs to be always alive. Another reason for wifi connection not being stable ( hence adb tcp will break) is drones use wireless connection (from RC to drone). When one has 5,10 or much more in a testing warehouse, wifi will get so much interference that adb tcp will not work. Very drone specific..

    – Talobin
    Dec 21 '18 at 18:32
















0















I working in a project with Phantom 4 advanced+, i downloaded the most recent android sdk version from github. i edited the code with the developer key that asks and run it in the android studio emulator. It asks WSBridge ip, but i have no idea how to find it. I did a lot of research and found different solutions, but none of them worked out for me. Already downloaded DJI Bridge that dji suggest and i followed the instructions step by step and still didn't found it.



Any information about how can i find it, or anything that you believe can solve my problem it would be very helpfull for me.



Thanks a lot.










share|improve this question























  • Possible duplicate of How to connect to my http://localhost web server from Android Emulator in Eclipse

    – Martin Zeitler
    Nov 24 '18 at 22:01











  • @MartinZeitler, This is DJI SDK specific "IP". So it is not a dup of your suggested thread. Thanks

    – Talobin
    Dec 13 '18 at 18:43











  • @Talobin well, the whole DJI bridge seems to be redundant, because the claimed limit of a single one adb connection is not true; one can connect several devices at once, no matter through which interface. it's probably a little bit of shell scripting vs. adding clutter into the package, which can be prevented; still think it's ok, while only debug builds would be affected. or does it connect to the drone, too? just checked developer.dji.com/mobile-sdk

    – Martin Zeitler
    Dec 13 '18 at 19:21











  • @MartinZeitler, When use adb tcp, any USB connectivity events (plug in/plug out/ restart drone...) will drop this connection.Also, adb tcp connection will drops when there is network congestion. So for small project, this might not be a problem at all. For CI/CD of big project, the connection needs to be always alive. Another reason for wifi connection not being stable ( hence adb tcp will break) is drones use wireless connection (from RC to drone). When one has 5,10 or much more in a testing warehouse, wifi will get so much interference that adb tcp will not work. Very drone specific..

    – Talobin
    Dec 21 '18 at 18:32














0












0








0


1






I working in a project with Phantom 4 advanced+, i downloaded the most recent android sdk version from github. i edited the code with the developer key that asks and run it in the android studio emulator. It asks WSBridge ip, but i have no idea how to find it. I did a lot of research and found different solutions, but none of them worked out for me. Already downloaded DJI Bridge that dji suggest and i followed the instructions step by step and still didn't found it.



Any information about how can i find it, or anything that you believe can solve my problem it would be very helpfull for me.



Thanks a lot.










share|improve this question














I working in a project with Phantom 4 advanced+, i downloaded the most recent android sdk version from github. i edited the code with the developer key that asks and run it in the android studio emulator. It asks WSBridge ip, but i have no idea how to find it. I did a lot of research and found different solutions, but none of them worked out for me. Already downloaded DJI Bridge that dji suggest and i followed the instructions step by step and still didn't found it.



Any information about how can i find it, or anything that you believe can solve my problem it would be very helpfull for me.



Thanks a lot.







android dji-sdk






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 24 '18 at 21:49









Raf9Raf9

12




12













  • Possible duplicate of How to connect to my http://localhost web server from Android Emulator in Eclipse

    – Martin Zeitler
    Nov 24 '18 at 22:01











  • @MartinZeitler, This is DJI SDK specific "IP". So it is not a dup of your suggested thread. Thanks

    – Talobin
    Dec 13 '18 at 18:43











  • @Talobin well, the whole DJI bridge seems to be redundant, because the claimed limit of a single one adb connection is not true; one can connect several devices at once, no matter through which interface. it's probably a little bit of shell scripting vs. adding clutter into the package, which can be prevented; still think it's ok, while only debug builds would be affected. or does it connect to the drone, too? just checked developer.dji.com/mobile-sdk

    – Martin Zeitler
    Dec 13 '18 at 19:21











  • @MartinZeitler, When use adb tcp, any USB connectivity events (plug in/plug out/ restart drone...) will drop this connection.Also, adb tcp connection will drops when there is network congestion. So for small project, this might not be a problem at all. For CI/CD of big project, the connection needs to be always alive. Another reason for wifi connection not being stable ( hence adb tcp will break) is drones use wireless connection (from RC to drone). When one has 5,10 or much more in a testing warehouse, wifi will get so much interference that adb tcp will not work. Very drone specific..

    – Talobin
    Dec 21 '18 at 18:32



















  • Possible duplicate of How to connect to my http://localhost web server from Android Emulator in Eclipse

    – Martin Zeitler
    Nov 24 '18 at 22:01











  • @MartinZeitler, This is DJI SDK specific "IP". So it is not a dup of your suggested thread. Thanks

    – Talobin
    Dec 13 '18 at 18:43











  • @Talobin well, the whole DJI bridge seems to be redundant, because the claimed limit of a single one adb connection is not true; one can connect several devices at once, no matter through which interface. it's probably a little bit of shell scripting vs. adding clutter into the package, which can be prevented; still think it's ok, while only debug builds would be affected. or does it connect to the drone, too? just checked developer.dji.com/mobile-sdk

    – Martin Zeitler
    Dec 13 '18 at 19:21











  • @MartinZeitler, When use adb tcp, any USB connectivity events (plug in/plug out/ restart drone...) will drop this connection.Also, adb tcp connection will drops when there is network congestion. So for small project, this might not be a problem at all. For CI/CD of big project, the connection needs to be always alive. Another reason for wifi connection not being stable ( hence adb tcp will break) is drones use wireless connection (from RC to drone). When one has 5,10 or much more in a testing warehouse, wifi will get so much interference that adb tcp will not work. Very drone specific..

    – Talobin
    Dec 21 '18 at 18:32

















Possible duplicate of How to connect to my http://localhost web server from Android Emulator in Eclipse

– Martin Zeitler
Nov 24 '18 at 22:01





Possible duplicate of How to connect to my http://localhost web server from Android Emulator in Eclipse

– Martin Zeitler
Nov 24 '18 at 22:01













@MartinZeitler, This is DJI SDK specific "IP". So it is not a dup of your suggested thread. Thanks

– Talobin
Dec 13 '18 at 18:43





@MartinZeitler, This is DJI SDK specific "IP". So it is not a dup of your suggested thread. Thanks

– Talobin
Dec 13 '18 at 18:43













@Talobin well, the whole DJI bridge seems to be redundant, because the claimed limit of a single one adb connection is not true; one can connect several devices at once, no matter through which interface. it's probably a little bit of shell scripting vs. adding clutter into the package, which can be prevented; still think it's ok, while only debug builds would be affected. or does it connect to the drone, too? just checked developer.dji.com/mobile-sdk

– Martin Zeitler
Dec 13 '18 at 19:21





@Talobin well, the whole DJI bridge seems to be redundant, because the claimed limit of a single one adb connection is not true; one can connect several devices at once, no matter through which interface. it's probably a little bit of shell scripting vs. adding clutter into the package, which can be prevented; still think it's ok, while only debug builds would be affected. or does it connect to the drone, too? just checked developer.dji.com/mobile-sdk

– Martin Zeitler
Dec 13 '18 at 19:21













@MartinZeitler, When use adb tcp, any USB connectivity events (plug in/plug out/ restart drone...) will drop this connection.Also, adb tcp connection will drops when there is network congestion. So for small project, this might not be a problem at all. For CI/CD of big project, the connection needs to be always alive. Another reason for wifi connection not being stable ( hence adb tcp will break) is drones use wireless connection (from RC to drone). When one has 5,10 or much more in a testing warehouse, wifi will get so much interference that adb tcp will not work. Very drone specific..

– Talobin
Dec 21 '18 at 18:32





@MartinZeitler, When use adb tcp, any USB connectivity events (plug in/plug out/ restart drone...) will drop this connection.Also, adb tcp connection will drops when there is network congestion. So for small project, this might not be a problem at all. For CI/CD of big project, the connection needs to be always alive. Another reason for wifi connection not being stable ( hence adb tcp will break) is drones use wireless connection (from RC to drone). When one has 5,10 or much more in a testing warehouse, wifi will get so much interference that adb tcp will not work. Very drone specific..

– Talobin
Dec 21 '18 at 18:32












1 Answer
1






active

oldest

votes


















0















  1. Install the BridgeApp in an actual Android phone (https://github.com/dji-sdk/Android-Bridge-App)

  2. Connect the phone to RC and Wifi and make sure both left and right indicators are green.

  3. On the bridgeapp screen, you should see IP address. That is the IP address you need to give SDK for SDK to connect to BridgeApp.

  4. Connect SDK to BridgeApp using the enableBridgeModeWithBridgeAppIP method inside SDKManager class.


-This is only if you want to use DJI SDK using Bridge mode. The benefit of this is in debugging, since the app that is running DJISDK can be run in a different phone than the phone that actually connects to the RC.
-If you don't need this, you don't have to use BridgeApp and Bridge mode of DJI SDK. Connect the phone that has DJI SDK app running directly to the RC and it should work.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53462666%2fdji-android-sdk-bridge%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0















    1. Install the BridgeApp in an actual Android phone (https://github.com/dji-sdk/Android-Bridge-App)

    2. Connect the phone to RC and Wifi and make sure both left and right indicators are green.

    3. On the bridgeapp screen, you should see IP address. That is the IP address you need to give SDK for SDK to connect to BridgeApp.

    4. Connect SDK to BridgeApp using the enableBridgeModeWithBridgeAppIP method inside SDKManager class.


    -This is only if you want to use DJI SDK using Bridge mode. The benefit of this is in debugging, since the app that is running DJISDK can be run in a different phone than the phone that actually connects to the RC.
    -If you don't need this, you don't have to use BridgeApp and Bridge mode of DJI SDK. Connect the phone that has DJI SDK app running directly to the RC and it should work.






    share|improve this answer




























      0















      1. Install the BridgeApp in an actual Android phone (https://github.com/dji-sdk/Android-Bridge-App)

      2. Connect the phone to RC and Wifi and make sure both left and right indicators are green.

      3. On the bridgeapp screen, you should see IP address. That is the IP address you need to give SDK for SDK to connect to BridgeApp.

      4. Connect SDK to BridgeApp using the enableBridgeModeWithBridgeAppIP method inside SDKManager class.


      -This is only if you want to use DJI SDK using Bridge mode. The benefit of this is in debugging, since the app that is running DJISDK can be run in a different phone than the phone that actually connects to the RC.
      -If you don't need this, you don't have to use BridgeApp and Bridge mode of DJI SDK. Connect the phone that has DJI SDK app running directly to the RC and it should work.






      share|improve this answer


























        0












        0








        0








        1. Install the BridgeApp in an actual Android phone (https://github.com/dji-sdk/Android-Bridge-App)

        2. Connect the phone to RC and Wifi and make sure both left and right indicators are green.

        3. On the bridgeapp screen, you should see IP address. That is the IP address you need to give SDK for SDK to connect to BridgeApp.

        4. Connect SDK to BridgeApp using the enableBridgeModeWithBridgeAppIP method inside SDKManager class.


        -This is only if you want to use DJI SDK using Bridge mode. The benefit of this is in debugging, since the app that is running DJISDK can be run in a different phone than the phone that actually connects to the RC.
        -If you don't need this, you don't have to use BridgeApp and Bridge mode of DJI SDK. Connect the phone that has DJI SDK app running directly to the RC and it should work.






        share|improve this answer














        1. Install the BridgeApp in an actual Android phone (https://github.com/dji-sdk/Android-Bridge-App)

        2. Connect the phone to RC and Wifi and make sure both left and right indicators are green.

        3. On the bridgeapp screen, you should see IP address. That is the IP address you need to give SDK for SDK to connect to BridgeApp.

        4. Connect SDK to BridgeApp using the enableBridgeModeWithBridgeAppIP method inside SDKManager class.


        -This is only if you want to use DJI SDK using Bridge mode. The benefit of this is in debugging, since the app that is running DJISDK can be run in a different phone than the phone that actually connects to the RC.
        -If you don't need this, you don't have to use BridgeApp and Bridge mode of DJI SDK. Connect the phone that has DJI SDK app running directly to the RC and it should work.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 13 '18 at 17:23









        TalobinTalobin

        1184




        1184
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53462666%2fdji-android-sdk-bridge%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            404 Error Contact Form 7 ajax form submitting

            How to know if a Active Directory user can login interactively

            Refactoring coordinates for Minecraft Pi buildings written in Python