I've been using the SDK in Android Studio and was wondering if it's possible to connect the RC Controller (either from Mavic 2 Zoom or the Matrice 210 RTK) to the laptop and have the emulator communicate with the controller rather than using a physical phone for development/testing?
If the SDK is not possible, would any of the off-the-shelf apps from DJI be able to run on an emulator?
If so, are there better device emulators that work best with DJI?
Thanks...
Unfortunately I've found that the emulators lack the capabilities to process the USB data fast thought enough to connect to aircraft. You really must use a real Android device.
There is no way to connect the RC directly to the emulator, but you could use the bridge app in addition to the emulator.
https://github.com/dji-sdk/Android-Bridge-App
Related
What's the fastest and most effective way to test applications via bluetooth or Wi-Fi rather than a standard USB connection in Xcode and Android Studio?
I could transfer the APK file to Google Drive and then test it, however I'm looking for a much faster method which will also work for Xcode.
Will the live debugging data show up fast enough or will there be a lag between the workstation and test device as data is transferred between them?
In Xcode's Help search for "Pair a wireless device with Xcode".
I am trying to create an android application that can receive commands for drones from a server.
I have bug and I can not really debug it due to the fact that I need to keep my android phone connected to the DJI Flight Controller why I use the simulator, thus I can't see the variable values and log messages.
How can I solve this? Is there a way to emulate the DJI Flight Controller?
Regards,
Dan
You have to use Bridge app tutorial provided by DJI sdk link: https://developer.dji.com/mobile-sdk/documentation/ios-tutorials/BridgeAppDemo.html
By using debug-Id of Bridge app which shows on this app and place this id in your app code.Using this you can easily debug your app.But sometimes it giving crash so i consulted with DJI SDK team on GitHub .They are solving the crash for iOS but you can use same procedure in Android also.
You could use adb over wifi to debug your app thats connected to remote controller. See link.
If you test on the phantom 3 standard ($500), you can run the log on your computer and connect your drone to the simulator. That way you can run logs on both devices. Another potential solution would be a usb splitter so that you can connect to computer and rc controller- but I am not sure that works because you may not be able to connect to both devices (I haven't tested.)
I am trying to learn android on a dell device having 4gb ram and intel pentium chipset. I am trying to run hello world app on a emulator but it actually take much time(more than 5 minutes) to start the process and at the end give error message "Error while waiting for device: Timed out after 300seconds waiting for emulator to come online". As far as testing on device is considered i find it fast and easy.
So my question is that possible to always test an app on real device and skipping the testing on an emulator.
Also suggest me some tips to make my android studio run faster.
.
Its always better to test on a real device. Its very fast especially when debugging. If your emulator is taking long to load imagine a situation where you are trying to debug and want to check the app's behaviour after each change in code. Just install the usb drivers and sdk tool that your device's api version is running on
Sure it is!
First of all, enable the developer mode in your device (if it's not enabled already). Info for doing this here.
Then just plug your device via USB and it will appear when you run your project in Android Studio.
NOTE: The first time you attempt to run the project, your phone will ask for permissions, make sure you allow it!
It will be good if we are testing the application in real device rather than emulator if you have the device. But we can't buy different density, different dimension, different android version devices for testing so for that purpose we need to use emulator.
To improve the speed of android emulator install HAXM in your system, it will speed up the emulators.
I have drone( DJI Phantom 3), and in order to fly it correctly DJI provides an App for IOS and Android("DJI Go"). The thing is that I have a Kolina k100 android phone(a cheap chineese one), and I can install the app perfectly, and it runs quite well with an only exception. When I put the Drone on video-recording mode, I loose the live-video and I can not see what my drone sees. Obviously DJI has told me that he doesn't support my chinese phone so they do nothing. So I was thinking that maybe is a problem of how powerful my phone is.
So I wanted to check if the App works well in my laptop so I downloaded the app in Bluestacks, but I realised that to make the app work I have to connect the drone's RC controller by USB (as I do with my phone). But when I connect the controller to the laptop, Windows recognizes it. But Bluestack doesn't care so the app doesnt work. How can I make Bluestack recognize the USB connection of the controller?
Thanks in advance, any help will be appreciated.
I have an android application and I'm able to simulate the network going in and out, however I wish to know if there is a way to simulate an android device without a phone number.
I have a program which can run just through wireless, so the phones don't need service. I'm curious if there is a way to emulate this with the android emulator in eclipse.
I use the Genymotion emulator. This emulator doesn't have a telephony module - for example, switching off wifi switches off all network connectivity. The emulator works great for Eclipse, IntelliJ and Android Studio.
And you also get the benefit of having an insanely fast emulator.