DroidPlanner / Tower

Ground Control Station for Android Devices
https://play.google.com/store/apps/details?id=org.droidplanner.android
Other
616 stars 555 forks source link

Debugging: Ways to connect development device to APM? #681

Closed tensafefrogs closed 10 years ago

tensafefrogs commented 10 years ago

Hello! I'd like to contribute some patches to this project, but need some tips on setting up a good debugging environment.

I'd like to run the app on a development phone, but since that requires the USB connection, I can't also plug in my telemetry radio, which would normally connect to the APM.

I see that Droidplanner also supports TCP and other connections, so perhaps I could use those to run a TCP server on my dev machine and plug in my telemetry radio (or just a USB cable).

So how do you all usually debug and test the app?

I'm using OS X, so any tips for software to check out would be helpful, or just any other general development/debugging tips and advice are very welcome.

Thanks!

arthurbenemann commented 10 years ago

Hi @tensafefrogs,

There are multiple ways to solve your issues, let me divide the problem in debug link (ADB) and telemetry link:

I usually go with Bluetooth for telemetry, and USB for debugging. Or Wifi for debuging, and usb for telemetry. Sometimes I go with both to get a wire free tablet. IT really depends on what I got at hand.

I'm closing this since it's really a program issue, and I think I solved it :) . Please direct further questions of this kind to our developer mailing list: https://groups.google.com/forum/#!forum/droidplanner

azrin1972 commented 10 years ago

Hi.

I'm doing this on OS X. But I'm away from my PC right now. If you have not find a way to d this. Please send me an email. I can share with you my setup.

Sincerely

Azrin Aris

On 09/03/2014, at 8:45, Geoff Stearns notifications@github.com wrote:

Hello! I'd like to contribute some patches to this project, but need some tips on setting up a good debugging environment.

I'd like to run the app on a development phone, but since that requires the USB connection, I can't also plug in my telemetry radio, which would normally connect to the APM.

I see that Droidplanner also supports TCP and other connections, so perhaps I could use those to run a TCP server on my dev machine and plug in my telemetry radio (or just a USB cable).

So how do you all usually debug and test the app?

I'm using OS X, so any tips for software to check out would be helpful, or just any other general development/debugging tips and advice are very welcome.

Thanks!

— Reply to this email directly or view it on GitHub.

tensafefrogs commented 10 years ago

Thanks all, I'm fine with the adb/studio to android debugging - this is mostly about connecting a phone/tablet to APM while debugging.

I don't have a bluetooth serial module, so I don't think I can use bluetooth, but I've found a tool called socat that looks promising, just need to figure out the configuration. I'll keep track of my steps and update a wiki page for devs in the future looking to work on this.

I'll take the rest of this to the droidplanner list.