Connecting to Crius AIOP directly via Bluetooth

I’ve been in direct contact with Arthur who has asked me to move the discussion here:

I have a Crius AIOP V2 which I am trying to connect Droidplanner to via a direct bluetooth connection (using this http://www.rctimer.com/product_764.html). Arthur has asked me to compile the software myself and run a debug to see what happens. Below is the output:

09-28 20:31:55.395: D/BLUETOOTH(18222): Conenct 09-28 20:31:55.405: D/BLUETOOTH(18222): PLT_BB903+ #00:1C:EF:DB:72:A1# 09-28 20:31:55.405: D/BLUETOOTH(18222): id:00001108-0000-1000-8000-00805f9b34fb 09-28 20:31:55.410: D/BLUETOOTH(18222): id:0000110b-0000-1000-8000-00805f9b34fb 09-28 20:31:55.410: D/BLUETOOTH(18222): id:0000110e-0000-1000-8000-00805f9b34fb 09-28 20:31:55.410: D/BLUETOOTH(18222): id:0000111e-0000-1000-8000-00805f9b34fb 09-28 20:31:55.410: D/BLUETOOTH(18222): SKODA_BT #90:03:B7:42:F0:58# 09-28 20:31:55.420: D/BLUETOOTH(18222): id:00001101-0000-1000-8000-00805f9b34fb 09-28 20:31:55.655: D/BluetoothUtils(18222): isSocketAllowedBySecurityPolicy start : device null 09-28 20:31:55.780: E/Google Maps Android API(18222): Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors). 09-28 20:32:00.960: W/System.err(18222): java.io.IOException: Service discovery failed 09-28 20:32:00.970: W/System.err(18222): at android.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:462) 09-28 20:32:00.970: W/System.err(18222): at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:240) 09-28 20:32:00.975: W/System.err(18222): at com.droidplanner.connection.BluetoothConnection.openConnection(BluetoothConnection.java:43) 09-28 20:32:00.975: W/System.err(18222): at com.droidplanner.connection.MAVLinkConnection.run(MAVLinkConnection.java:66)

Both devices list are NOT my Quad’s bluetooth adapter.

Hope this helps, looking forward to a solution!

That looks like an nice module, if we make it work I’ll start recommending it to people.

Now about making it work:

  1. It’s great that you where able to compile the code, and also found the debug stream! This will be very helpful. About this line:

It isn’t necessary to make the communication work, and it happens just because you don’t have a Maps_Api. IF you want to be able to have the map follow the guide in the wiki (or send me your debug SHA1 fingerprint)

  1. Have you paired your device using android settings>Bluetooth?

  2. When you say: [quote]Both devices list are NOT my Quad’s bluetooth adapter.[/quote] how you are so sure? Do you have other bluetooth stuff paired with your android device?

  3. The lines you saw on the log are created by the following code:
    github.com/arthurbenemann/droid … cc#L57-L66

Looking at that I think your device is this:

09-28 20:31:55.410: D/BLUETOOTH(18222): SKODA_BT #90:03:B7:42:F0:58# 09-28 20:31:55.420: D/BLUETOOTH(18222): id:00001101-0000-1000-8000-00805f9b34fb

  1. Can you try to get the log stream when hitting connected with your device paired (which is what you posted I think), and without the device?

  2. Maybe this is our problem:

[quote=“arthur”]

  1. It’s great that you where able to compile the code, and also found the debug stream! This will be very helpful. About this line:

It isn’t necessary to make the communication work, and it happens just because you don’t have a Maps_Api. IF you want to be able to have the map follow the guide in the wiki (or send me your debug SHA1 fingerprint)[/quote]
You very kindly included the reference to the maps at the bottom of the instructions so I didn’t worry about that bit!

Yes it’s paired.

Yes, I have two. The PLT one is a stereo headset and the Skoda one is my car’s inbuilt bluetooth.

I’m afraid that’s my car’s bluetooth.

I’ll give it a go, the one I posted IS with the Quad’s BT on and paired.

[quote=“arthur”]
6. Maybe this is our problem:

I can’t help you there, I exhausted my expertise in this field loading it into Eclipse and debugging it! :wink:

Thanks for looking into this, it’s great when a developer is responsive like this!

Here you go, I unpaired the Quad and ran it again! Looks pretty similar to me, the Crius bluetooth (named CRIUS_BT) still isn’t listed.

09-28 22:51:53.165: D/BLUETOOTH(618): Conenct 09-28 22:51:53.175: D/BLUETOOTH(618): PLT_BB903+ #00:1C:EF:DB:72:A1# 09-28 22:51:53.180: D/BLUETOOTH(618): id:00001108-0000-1000-8000-00805f9b34fb 09-28 22:51:53.185: D/BLUETOOTH(618): id:0000110b-0000-1000-8000-00805f9b34fb 09-28 22:51:53.185: D/BLUETOOTH(618): id:0000110e-0000-1000-8000-00805f9b34fb 09-28 22:51:53.190: D/BLUETOOTH(618): id:0000111e-0000-1000-8000-00805f9b34fb 09-28 22:51:53.190: D/BLUETOOTH(618): SKODA_BT #90:03:B7:42:F0:58# 09-28 22:51:53.195: D/BLUETOOTH(618): id:00001101-0000-1000-8000-00805f9b34fb 09-28 22:51:53.205: V/BluetoothSocket.cpp(618): initSocketNative 09-28 22:51:53.205: V/BluetoothSocket.cpp(618): ...fd 95 created (RFCOMM, lm = 26) 09-28 22:51:53.205: V/BluetoothSocket.cpp(618): initSocketFromFdNative 09-28 22:51:53.275: D/BluetoothUtils(618): isSocketAllowedBySecurityPolicy start : device null 09-28 22:51:58.425: W/System.err(618): java.io.IOException: Service discovery failed 09-28 22:51:58.470: W/System.err(618): at android.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:462) 09-28 22:51:58.470: W/System.err(618): at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:240) 09-28 22:51:58.475: W/System.err(618): at com.droidplanner.connection.BluetoothConnection.openConnection(BluetoothConnection.java:43) 09-28 22:51:58.475: W/System.err(618): at com.droidplanner.connection.MAVLinkConnection.run(MAVLinkConnection.java:66)

Here’s my Bluetooth devices list (in case it helps). I’ve blanked out the bottom one as it’s my neighbor’s laptop (quite why it’s discoverable and has the range to reach my house I don’t know!).

These lines doesn’t look to good:

09-28 20:31:55.655: D/BluetoothUtils(18222): isSocketAllowedBySecurityPolicy start : device null

It’s just a hunch, but could you try the bluetooth thing with just the Serial Adapter connected?

Does Andropilot work’s with your device (I could ask Kevin some help then)?

Have you been able to use the bluetooth module via your computer?

The last resort will be for me to buy one module. They say free-shipping, but I don’t know if that’s valid for Brazil.

I was thinking about your problem and now I have a good guess of the culprit.

When DP is connecting it goes through the bluetooth devices paired with your phone/tablet. It uses the first device with the UUID as “00001101-0000-1000-8000-00805F9B34FB” which is the UUID for serial devices.

Since your “car’s bluetooth” has that UUID it tried to connect to it, and for some good reason there was a security exception.

Could you try to do the connection without having your car paired to the android device?

Well done, that made it connect! It even announces ‘Stabalise’. :smiley:

Unfortunately (and this may be the baud rate issue) nothing seems to work, the hud doesn’t reflect the orientation of the Quad and there is nothing in the drop down other than ‘WP’ (I’m assuming that’s where you select the different functions).

Here’s the new logs:

09-29 07:55:09.350: D/BLUETOOTH(12334): Conenct 09-29 07:55:09.350: D/BLUETOOTH(12334): PLT_BB903+ #00:1C:EF:DB:72:A1# 09-29 07:55:09.355: D/BLUETOOTH(12334): id:00001108-0000-1000-8000-00805f9b34fb 09-29 07:55:09.355: D/BLUETOOTH(12334): id:0000110b-0000-1000-8000-00805f9b34fb 09-29 07:55:09.355: D/BLUETOOTH(12334): id:0000110e-0000-1000-8000-00805f9b34fb 09-29 07:55:09.360: D/BLUETOOTH(12334): id:0000111e-0000-1000-8000-00805f9b34fb 09-29 07:55:09.360: D/BLUETOOTH(12334): CRIUS_BT #00:13:04:08:15:94# 09-29 07:55:09.360: D/BLUETOOTH(12334): id:00001101-0000-1000-8000-00805f9b34fb 09-29 07:55:09.365: V/BluetoothSocket.cpp(12334): initSocketNative 09-29 07:55:09.365: V/BluetoothSocket.cpp(12334): ...fd 44 created (RFCOMM, lm = 26) 09-29 07:55:09.365: V/BluetoothSocket.cpp(12334): initSocketFromFdNative 09-29 07:55:09.390: D/BluetoothUtils(12334): isSocketAllowedBySecurityPolicy start : device null 09-29 07:55:10.830: V/BluetoothSocket.cpp(12334): connectNative 09-29 07:55:11.325: V/BluetoothSocket.cpp(12334): ...connect(44, RFCOMM) = 0 (errno 115) 09-29 07:55:11.365: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:12.420: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:12.430: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:12.445: D/DRONE(12334): Drone type changed 09-29 07:55:12.560: D/dalvikvm(12334): GC_CONCURRENT freed 1636K, 12% free 19021K/21575K, paused 13ms+4ms, total 48ms 09-29 07:55:12.560: D/dalvikvm(12334): WAIT_FOR_CONCURRENT_GC blocked 25ms 09-29 07:55:12.655: D/dalvikvm(12334): GC_FOR_ALLOC freed 570K, 13% free 19148K/21959K, paused 39ms, total 39ms 09-29 07:55:12.715: D/dalvikvm(12334): GC_FOR_ALLOC freed 568K, 12% free 19516K/22151K, paused 20ms, total 20ms 09-29 07:55:12.780: D/dalvikvm(12334): GC_FOR_ALLOC freed 819K, 12% free 19949K/22471K, paused 19ms, total 19ms 09-29 07:55:12.810: E/Google Maps Android API(12334): Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors). 09-29 07:55:12.835: D/dalvikvm(12334): GC_FOR_ALLOC freed 451K, 12% free 20213K/22855K, paused 19ms, total 19ms 09-29 07:55:12.895: D/dalvikvm(12334): GC_FOR_ALLOC freed 825K, 12% free 20605K/23175K, paused 19ms, total 19ms 09-29 07:55:12.955: D/dalvikvm(12334): GC_FOR_ALLOC freed 648K, 11% free 20964K/23495K, paused 19ms, total 19ms 09-29 07:55:12.970: D/dalvikvm(12334): WAIT_FOR_CONCURRENT_GC blocked 0ms 09-29 07:55:13.010: D/dalvikvm(12334): GC_EXPLICIT freed 231K, 11% free 21220K/23751K, paused 12ms+4ms, total 41ms 09-29 07:55:13.085: D/dalvikvm(12334): GC_FOR_ALLOC freed 768K, 11% free 21598K/24199K, paused 19ms, total 19ms 09-29 07:55:13.145: D/dalvikvm(12334): GC_FOR_ALLOC freed 720K, 11% free 21916K/24583K, paused 19ms, total 19ms 09-29 07:55:13.195: D/dalvikvm(12334): GC_FOR_ALLOC freed 438K, 11% free 22245K/24839K, paused 19ms, total 19ms 09-29 07:55:13.245: D/dalvikvm(12334): GC_FOR_ALLOC freed 549K, 11% free 22563K/25223K, paused 19ms, total 19ms 09-29 07:55:13.270: I/Choreographer(12334): Skipped 49 frames! The application may be doing too much work on its main thread. 09-29 07:55:13.425: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:13.430: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:14.420: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:14.435: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:15.440: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:15.455: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:16.430: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:16.460: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:17.450: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:17.485: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:18.450: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:18.455: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:19.445: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:19.455: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:20.440: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:20.490: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:21.485: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:21.505: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:22.455: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:22.470: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:22.735: D/AbsListView(12334): Get MotionRecognitionManager 09-29 07:55:23.470: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:23.495: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:24.460: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:24.495: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:25.460: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:25.480: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:26.480: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:26.535: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:27.470: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:27.480: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:28.475: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:28.490: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:29.475: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:29.485: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:30.475: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:30.495: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:31.500: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:31.515: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:32.480: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:32.490: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:33.480: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:33.520: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:34.490: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:34.495: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:35.490: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:35.500: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:36.495: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:36.505: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:37.500: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:37.510: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:38.510: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:38.520: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:39.505: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:39.510: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:40.525: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:40.535: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:41.535: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:41.555: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:42.520: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:42.525: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:43.510: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:43.550: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:44.530: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:44.540: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:45.535: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:45.555: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:46.545: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:46.565: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:47.540: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:47.545: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:48.530: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:48.570: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:49.545: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:49.550: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:50.535: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:50.570: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:51.560: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:51.605: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:52.550: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:52.555: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:53.565: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:53.565: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:54.550: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:54.590: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:55.570: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:55.570: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:56.555: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:56.590: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:57.585: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:57.590: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:58.585: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:58.590: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:59.560: V/BluetoothSocket.cpp(12334): readNative 09-29 07:55:59.600: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:00.565: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:00.605: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:01.565: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:01.600: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:02.605: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:02.610: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:03.580: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:03.585: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:04.590: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:04.590: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:05.600: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:05.605: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:06.600: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:06.605: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:07.590: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:07.610: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:08.595: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:08.625: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:09.605: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:09.610: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:10.620: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:10.620: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:11.615: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:11.620: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:12.635: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:12.655: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:13.615: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:13.645: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:14.620: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:14.625: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:15.610: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:15.650: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:16.640: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:16.650: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:17.650: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:17.670: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:18.635: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:18.665: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:19.635: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:19.660: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:20.630: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:20.665: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:21.630: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:21.665: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:22.660: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:22.685: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:23.660: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:23.665: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:24.650: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:24.680: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:25.665: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:25.670: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:26.670: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:26.675: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:27.670: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:27.690: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:28.665: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:28.670: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:29.665: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:29.675: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:30.665: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:30.710: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:31.665: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:31.705: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:32.690: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:32.700: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:33.690: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:33.690: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:34.680: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:34.685: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:35.690: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:35.690: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:36.690: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:36.695: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:37.690: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:37.700: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:38.705: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:38.710: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:39.695: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:39.705: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:40.695: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:40.720: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:41.705: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:41.710: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:42.700: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:42.725: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:43.720: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:43.730: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:44.710: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:44.715: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:45.730: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:45.735: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:46.725: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:46.730: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:47.720: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:47.750: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:48.740: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:48.745: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:49.735: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:49.740: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:50.745: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:50.750: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:51.745: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:51.755: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:52.765: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:52.785: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:53.735: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:53.775: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:54.760: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:54.765: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:55.760: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:55.765: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:56.755: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:56.765: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:57.750: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:57.775: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:58.760: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:58.765: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:59.760: V/BluetoothSocket.cpp(12334): readNative 09-29 07:56:59.765: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:00.760: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:00.775: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:01.775: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:01.780: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:02.785: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:02.805: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:03.775: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:03.780: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:04.775: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:04.790: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:05.775: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:05.780: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:06.785: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:06.790: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:07.790: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:07.795: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:08.785: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:08.790: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:09.790: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:09.795: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:10.810: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:10.820: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:11.810: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:11.830: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:12.800: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:12.810: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:13.805: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:13.840: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:14.810: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:14.825: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:15.805: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:15.845: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:16.805: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:16.845: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:17.825: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:17.850: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:18.830: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:18.835: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:19.825: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:19.865: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:20.845: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:20.850: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:21.825: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:21.860: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:22.850: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:22.875: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:23.835: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:23.845: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:24.855: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:24.870: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:25.835: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:25.880: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:26.845: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:26.855: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:27.850: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:27.870: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:28.855: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:28.865: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:29.860: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:29.880: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:30.855: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:30.895: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:31.865: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:31.875: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:32.885: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:32.905: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:33.860: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:33.900: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:34.870: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:34.885: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:35.870: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:35.885: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:36.885: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:36.895: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:37.880: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:37.890: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:38.895: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:38.910: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:39.890: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:39.895: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:40.900: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:40.915: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:41.900: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:41.905: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:42.900: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:42.905: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:43.895: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:43.910: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:44.910: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:44.920: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:45.910: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:45.950: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:46.905: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:46.950: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:47.900: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:47.915: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:48.930: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:48.935: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:49.910: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:49.945: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:50.930: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:50.960: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:51.920: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:51.935: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:52.935: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:52.940: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:53.945: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:53.965: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:54.925: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:54.960: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:55.950: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:55.955: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:56.955: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:56.970: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:57.940: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:57.955: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:58.975: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:58.995: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:59.945: V/BluetoothSocket.cpp(12334): readNative 09-29 07:57:59.980: V/BluetoothSocket.cpp(12334): readNative 09-29 07:58:00.075: W/InputEventReceiver(12334): Attempted to finish an input event but the input event receiver has already been disposed. 09-29 07:58:00.945: V/BluetoothSocket.cpp(12334): readNative 09-29 07:58:00.990: V/BluetoothSocket.cpp(12334): readNative 09-29 07:58:01.965: V/BluetoothSocket.cpp(12334): readNative 09-29 07:58:01.975: V/BluetoothSocket.cpp(12334): readNative 09-29 07:58:02.585: D/AbsListView(12334): Get MotionRecognitionManager 09-29 07:58:02.955: V/BluetoothSocket.cpp(12334): readNative 09-29 07:58:02.960: V/BluetoothSocket.cpp(12334): readNative 09-29 07:58:03.955: V/BluetoothSocket.cpp(12334): readNative 09-29 07:58:03.995: V/BluetoothSocket.cpp(12334): readNative 09-29 07:58:04.285: W/InputEventReceiver(12334): Attempted to finish an input event but the input event receiver has already been disposed. 09-29 07:58:04.285: W/InputEventReceiver(12334): Attempted to finish an input event but the input event receiver has already been disposed.

I ended up ordering a FTDI cable last night but it may be a couple of weeks before it arrives.

I have Andropilot installed but cannot see how to switch it to Bluetooth mode. The only app I have working is CopterGCS, but this is one modified to work with the S3 for some reason - possibly Android version (code.google.com/r/xcl0100-copter-gcs/).

I can connect it to my PC but MissionPlanner doesn’t like it very much, as it times out unless I only plug the bluetooth into the Quad at the point it says ‘Mavlink connecting’.

On a seperate note I purchased your Donation app last night but then got a refund email from Google for no reason. I looked this morning and it’s still listed as ‘Purchased’ in Play!!! Any ideas?

Many thanks for working on this!

Found the button on Andropilot… how did I miss it??? I’m at work and the Quad isn’t though, I’ll check later!

Andropilot does the same. Connects then does appear to get any data.

I’ve also re-paired my car with the phone and can still connect with Droidplanner. I guess my Quad is now above it in the list!

[quote=“cgcrute”]Andropilot does the same. Connects then does appear to get any data.

I’ve also re-paired my car with the phone and can still connect with Droidplanner. I guess my Quad is now above it in the list![/quote]

Connects the Doesn’t appear to get any data.

Apologies.

It’s great that you made it work!

It seams that the problem is what I described in the last post: " your car serial port was being connected instead of the Bluetooth module". I don’t know how we could make a fix for that, unless we hard-coded the hardware ID.

Another user ( João Victor Fortes Carvalho) had the same problem in DIYDRONES, our post resolved his issue :slight_smile:
http://diydrones.com/profiles/blogs/update-droidplanner-v1-0-0-1?commentId=705844%3AComment%3A1421535&xg_source=msg_com_blogpost

The problem you have now is mostly likely the baudrate difference of the 3DR telemetry module and the bluetooth module (I’m assuming you are doing a APM<->Telemetry<->bluetooth<->android bridge instead of a APM<->Bluetooth<->android connection). I have one possible solution, but you must be careful to not brick your telemetry module:

  1. Do you know what is the baud-rate of your bluetooth module? For this to work it needs to be 115200 or higher than 57600.
  2. The Telemetry module probably is set to 57600. Change that to the same baud-rate as the bluetooth module (115200), you can do that via the Mission Planner interface. Important note do not change the “air data rate”, just the baud rate.

This is how your setup will be at the end (data rates written in the links):
APM<-57600->Telemetry<-115200->bluetooth<-???->android

This is how they look now (and why they don’t work):
APM<57600–57600>Telemetry<57600–115200->bluetooth<-???->android

[quote=“arthur”]It’s great that you made it work!

It seams that the problem is what I described in the last post: " your car serial port was being connected instead of the Bluetooth module". I don’t know how we could make a fix for that, unless we hard-coded the hardware ID.

Another user ( João Victor Fortes Carvalho) had the same problem in DIYDRONES, our post resolved his issue :slight_smile:
http://diydrones.com/profiles/blogs/update-droidplanner-v1-0-0-1?commentId=705844%3AComment%3A1421535&xg_source=msg_com_blogpost

The problem you have now is mostly likely the baudrate difference of the 3DR telemetry module and the bluetooth module (I’m assuming you are doing a APM<->Telemetry<->bluetooth<->android bridge instead of a APM<->Bluetooth<->android connection). I have one possible solution, but you must be careful to not brick your telemetry module:

  1. Do you know what is the baud-rate of your bluetooth module? For this to work it needs to be 115200 or higher than 57600.
  2. The Telemetry module probably is set to 57600. Change that to the same baud-rate as the bluetooth module (115200), you can do that via the Mission Planner interface. Important note do not change the “air data rate”, just the baud rate.

This is how your setup will be at the end (data rates written in the links):
APM<-57600->Telemetry<-115200->bluetooth<-???->android

This is how they look now (and why they don’t work):
APM<57600–57600>Telemetry<57600–115200->bluetooth<-???->android[/quote]

It does connect, but then doesn’t do anything.

I’m trying to get it to work directly Phone>Crius Bluetooth>Crius AIOP without a telemetry module. According to RCTimer it runs at 115200 by default.

I’m glad our tinkering helped João!

I don’t know that Crius AIOP controller, but if it’s running ArduPilot software you should have no problem.

One thing is that on Ardupilot the telemetry port defaults to 57600 as it’s baud-rate. So you should match the bluetooth module to that, or the ardupilot code to output at 115200 (the telemetry serial port baud-rate is set by a parameters on ardupilot)

[quote=“arthur”]I don’t know that Crius AIOP controller, but if it’s running ArduPilot software you should have no problem.

One thing is that on Ardupilot the telemetry port defaults to 57600 as it’s baud-rate. So you should match the bluetooth module to that, or the ardupilot code to output at 115200 (the telemetry serial port baud-rate is set by a parameters on ardupilot)[/quote]

It’s running MegapirateNG which is Ardupilot based, it’s already set to 115200.

I feel like we are so close to fixing this, very frustrating!

If both the ardupilot and the bluetooth are set to 115200 I don’t know what may be happening :frowning:

OK, so now it doesn’t even work with CopterGCS… it did yesterday but I don’t think anything I’ve done diagnosing Droidplanner can have messed it up.

I guess I should start trying to find a 433mhz telemetry module (struggling to find one that doesn’t review badly for range)…

Thanks for all you help, at least we resolved someone elses issue!

Progress!

MissionPlanner on the PC was hanging on the 1st parameter so in frustration I reflashed the board and it connects and the HUD and map work. So it looks like there were 2 problems, my car bluetooth then this, although I don’t know how what I’ve done in the last 24hrs has corrupted it!

I can’t get any of the other screen to display though. I only have WP as an option. I tried Andropilot and that did show the other screens but took a long time to load the parameters. Any idea why I can’t get to the other screens to list?

As an aside, what turns out to be the ‘arm’ button on my screen is half off the screen and I accidentally pressed it. Quad fired up and I ended up with a couple of cuts in my arm. Lesson learned, rotors removed. Any idea why it fired up?

What do you mean by this?

To load the other screens just click on the spinner on the top left, next to the app icon. Having the drone connected or not shouldn’t matter.

I’m sorry to hear about your problem with the arm button, I’ll move that to the overflow menu so we have more safety. It did a takeoff because you didn’t had your radio with the throttle at a minimum, so it armed and powered the propellers. On newer versions of ArduCopter firmware this has been fixed, so it only allows a “arm” when your throttle is at a minimum (even if it’s the GCS that does the arming).

Correction. I’m a dummy.

It appears the screen on the S3 doesn’t display everything in portrait mode I found the menu I needed when in portrait mode.