Discussion for the Tau Labs android application
no avatar
User

olterion

Posts

8

Joined

Thu Jun 18, 2015 6:28 pm

Android GCS doesn't work with flyingf3 (serial, bluetooth)

by olterion » Mon Jul 13, 2015 7:45 pm

Hello,

I have a very similar problem with Android GCS than the topic "Android GCS with 3DR radio not work" in this forum.

I have tried the connection over a FT232RL serial-USB chip and a HC-05 bluetooth modul.
But in both cases I get the same (bad) result (see below).
I can't see any change on the PFD page. Also there are no alarms (there should be some).
If I connect it to my laptop, it works very well with the same connections. So I think, a hardware problem should be impossible.

If I connect the User USB Port to the OTG port of the smartphone and choose the "HID" entry in the Android GCS, I get full access on the board.

I'm running the latest sources of the next branch on GIT on the flyingf3.
On WIndows and Android I have the latest build "taulabs_next_20150708".

Please help me to get my Android connected to my flyingf3 board.


With serial and bluetooth connection I get theese pictures on my Android device:

Screenshot_2015-07-13-21-20-51.png
FirmwareIAPObj
Screenshot_2015-07-13-21-20-51.png (200.44 KiB) Viewed 1941 times

Screenshot_2015-07-13-21-20-46.png
FlightTelemetryStats
Screenshot_2015-07-13-21-20-46.png (205.66 KiB) Viewed 1941 times

Screenshot_2015-07-13-21-20-40.png
GCSTelemetryStats
Screenshot_2015-07-13-21-20-40.png (214.74 KiB) Viewed 1941 times



Thank you very much!

Best regards,
olterion
Last edited by olterion on Mon Jul 13, 2015 7:56 pm, edited 1 time in total.
User avatar
User

peabody124

Posts

1339

Joined

Tue Feb 18, 2014 12:33 pm

Re: Android GCS doesn't work with flyingf3 (serial, bluetoot

by peabody124 » Mon Jul 13, 2015 7:54 pm

So you definitely get all the objects enumerated when you use USB? That rules out a version incompatibility. What rate are you running your radios? The CRC for the firmware is 0 which means it never actually gets told what is running on the remote side. Normally it should query this at least 3 times, but if you link is slow enough that may fail.
no avatar
User

olterion

Posts

8

Joined

Thu Jun 18, 2015 6:28 pm

Re: Android GCS doesn't work with flyingf3 (serial, bluetoot

by olterion » Mon Jul 13, 2015 8:03 pm

Hello,

this is the view, if I connect the same flyingf3 with the same android device, but over the HID connection to the User USB port of the flyingf3.

I have build the firmware by myself, because I had to change the ADC inputs for battery measuring. But with the flyingf3 firmware out of the "taulabs_next_20150708" package it works similarly.

I think over the bluetooth connection it may be slow, but with the serial connection directly between the flyingf3 and the Android OTG port it should be fast enough?!
The same connection (serial-USB bridge) to the laptop USB port works very well.
Attachments
Screenshot_2015-07-13-21-58-38.png
FirmwareIAPObj with HID connection
Screenshot_2015-07-13-21-58-38.png (347.53 KiB) Viewed 1937 times
no avatar
User

pug398

Posts

700

Joined

Fri Mar 07, 2014 2:26 am

Re: Android GCS doesn't work with flyingf3 (serial, bluetoot

by pug398 » Tue Jul 14, 2015 12:55 am

Is the laptop bluetooth enabled or perhaps you have a bt usb dongle? Bluetooth is usually the easiest to get going and there should be no problem connecting to the windows gcs thru bt. If you can do that then the F3 side is good. Program the F3 bt module for 57k baud, set the F3 uart to 57k and for telem, hook it up swapping rx/tx, pair the bt connection and then connect gcs to whatever virtual com port is assigned by windows to the bt. The android serial driver is a bit troublesome. One of these days I need to use the FTDI utility to check a working FT232 to see if the levels have been reversed.
no avatar
User

olterion

Posts

8

Joined

Thu Jun 18, 2015 6:28 pm

Re: Android GCS doesn't work with flyingf3 (serial, bluetoot

by olterion » Tue Jul 14, 2015 1:04 pm

Hello,

I have made some schematic drawing, what is correct working and not.
Maybe this helps to understand my problem.
Everytime, there is a Y-connection, I only changed the USB plug from the laptop to android or vice versa.

Thank you very much!

Best regards,
olterion
Attachments
discovery-hc05_bluetooth.png
Bluetooth connection
discovery-hc05_bluetooth.png (466.53 KiB) Viewed 1910 times
discovery ft232 usb.png
Serial connection
discovery ft232 usb.png (468.61 KiB) Viewed 1910 times
discovery user usb.png
User USB connection (HID)
discovery user usb.png (507.18 KiB) Viewed 1910 times
no avatar
User

pug398

Posts

700

Joined

Fri Mar 07, 2014 2:26 am

Re: Android GCS doesn't work with flyingf3 (serial, bluetoot

by pug398 » Tue Jul 14, 2015 3:31 pm

Very good troubleshooting :)

Honestly I see no reason the first setup should not work. I assume everything is at 57k so that just leaves the app itself. I have not checked recently but will do so now.

Second android setup has only worked for me with one out of four different radio sets (3DRv1). Unfortunately I misplaced my v1 radio at some point and have not been able to investigate further.

Ok tried the latest next windows package and along with the matching android gcs extracted out of the .tar package and it works fine on my F3 sparky target through uart bt. If the objects all populate and system health monitor is active in win gcs via bt I really don't see why it would not work for you with android bt.
no avatar
User

olterion

Posts

8

Joined

Thu Jun 18, 2015 6:28 pm

Re: Android GCS doesn't work with flyingf3 (serial, bluetoot

by olterion » Tue Jul 14, 2015 7:36 pm

Hello,

I made a mistake yesterday evening.
The first picture with connection over bluetooth is working with android, too.
For the connection over FT232RL there is maybe not the correct driver in my android device?!
But now I have what I wanted to have.

Thank you very much for helping!

Best regards,
olterion

Who is online

Users browsing this forum: No registered users and 1 guest

Powered by phpBB ® | phpBB3 Style by KomiDesign