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.)
Related
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
I am learning to program to android and would like to do some code that use the org.json.JSONObject
But running the emulator is so slow.
Are there a way to test it thru console only?
On IOS we have the Playground. Are there something like that for Android?
Enable developer option in your Android mobile or tablet. run your code directly your device via usb debug or tcp connect.
My phone cannot connect to the android ADB but I need to check its logs since it seems to be getting unique errors from an app I made. aLogcat app is outdated and getting "bug reports" from developer options is unreadable for me.
Is there any way for me to get a logcat report of my app while I'm running an application on it?
Edit: I use a droid Mini phone and it won't connect to eclipse. After installing the specific driver for the device it worked.
First of all, consider making ADB work for your device. Provided this is totally impossible, consider using ACRA. If you don't want to integrate fully with it, check their logcat collection code.
Currently I'm working on a project that demands using Android and tcpdump.
A short description of what I do:
I want sniff packets using android. I have built an android application which does this using by "tcpdump".
Basically the application initiate tcpdump, which dumps the captured packet in a file (in the sdcard). Then I process the captured packets just by opening the file.
The problem :
When the wifi is in managed mode, everything works fine. But, when I put the wifi device in "ad-hoc" the wireless device stops working.
I'm using "Samsung Captivated S" (SGH - I897), and in order support "overhearing" (promiscuous mode) and ad-hoc I installed the latest "Cyanogen 7" rom ( cm_galaxysmtd_full-126.zip, from: http://download.cyanogenmod.com/?type=nightly&device=galaxysmtd)
I don't know how to solve this and I would really need your help. I suspect
that "wpa_supplicat" is to blame for that, but most probably I wrong.
Thanks in advance,
Ps: I should also mention that I start an adhoc network using my laptop. Then two android devices join the adhoc network. The android devices (SGH-I897) join the network without a problem. All the devices can ping each other.
only solution for this is described here.
http://www.44actions.com/?p=273
I installed Android emulator and it is very very slow that i am not able to test my web application in it. Is there any way to debug the application directly if I have a galaxy tab device with me ?
Thanks
If you hook it up using USB you can debug using a real device. Set the debugging flag to 'on'. See the manual: http://developer.android.com/guide/developing/device.html