mavlink / qgroundcontrol

Cross-platform ground control station for drones (Android, iOS, Mac OS, Linux, Windows)
http://qgroundcontrol.io
3.31k stars 3.63k forks source link

can't connect to Pixhawk via Bluetooth on Android #2910

Closed kd0aij closed 7 years ago

kd0aij commented 8 years ago

"service not available"

dagar commented 7 years ago

Yes, that's the issue with the beta/daily build, and it won't auto update without a version greater than the stable. There will be a separate play store entry for the QGroundControl beta. For now if you want to install the daily build manually you need to first uninstall stable.

Patnetpatnet commented 7 years ago

Was able to successfully test that the beta via the link above from Daniel does not crash the app as the final version does. However, I'm back at square one in that I cannot maintain a connection. It keeps cutting out. Something likely to do with the fact I just use BT as a bridge to an Xbee link to Mavlink Pixhawk. Historic problem going back years for me.

Siytek commented 7 years ago

@Patnetpatnet I had problems just like you describe with MAVLink when just using OpenLRS serial bridge for telemetry. A serial pass through connection will not manage any lost MAVLink heartbeats, therefore when a heatbeat packet is dropped, QGC will think that the connection has been lost, leading to sporadic disconnection warnings.

I now use TBS Crossfire which has a dedicated setting for MAVLink that overcomes these problems as the radio firmware manages the MAVLink protocol as well as passing the serial data back and forth. I have never used Xbee so I'm not 100% sure, but it sounds like an issue with your setup, not a software issue with QGC. Maybe this will help? https://pixhawk.ethz.ch/tutorials/how_to_configure_xbee

EDIT: Doing a little more reading on this topic, I think your problem is probably that you are not using flow control, due to having BT in the uplink. Perhaps a BT module with flow control would solve your issues https://www.adafruit.com/product/1588

Patnetpatnet commented 7 years ago

Thanks Simon. The only change I could make would be dropping the now configured 115200 baud rate down to the recommended 57600. It works two-way as is in Tower though. Wondering whether that's the issue?

Siytek commented 7 years ago

Its difficult to say without knowing exactly what setup you have but yes you could try reducing the baud rate to minimise packet loss, also make sure all baud rates at matched up throughout your telemetry connection.

This is probably off topic now for this thread as it is unlikely to be related to QGC BT issues, your best bet would be to open a new topic here (assuming you're using PX4 flight stack) https://groups.google.com/forum/#!forum/px4users and provide as much detail as you can about your hardware and software setup.

EDIT: Apologies I just learnt that the forum has now moved here: http://discuss.px4.io

Patnetpatnet commented 7 years ago

No longer Android-specific for sure. Same connection loss on Windows via BT and Xbee.

DonLakeFlyer commented 7 years ago

@Siytek You aren't getting communication lost problems with your setup right?

Patnetpatnet commented 7 years ago

Correct. Just intermittent connection lost. Always when sending data.

Siytek commented 7 years ago

@DonLakeFlyer no my setup works perfectly now as far as my bench testing goes, ill fly it soon though as the weather is starting to pick up. Im confident it will work great now but ill report back if I have any issues.

I used to get random disconnection warnings due to lost heartbeat packets, but I think this was because my old telemetry radio setup did not have flow control, not because of a bug with QGC/PX4. I believe this might be the problem @Patnetpatnet currently has with his setup. Its an issue with the radio/telemetry uplink, not a fault of the software.

DonLakeFlyer commented 7 years ago

@Siytek I'm going to leave this issue open to you report back on flying. If that goes well then I'm going to close this issue as resolved.

Patnetpatnet commented 7 years ago

I agree that this issue could be closed now as far as I'm concerned. Simon, my setup works fine in Tower, and Mission Planner, just not in QGC. That's a QGC issue, not MAVLINK or radio setup. Thanks for everyone's help.

DonLakeFlyer commented 7 years ago

Simon, my setup works fine in Tower, and Mission Planner, just not in QGC.

Oops, sorry I missed that. @Patnetpatnet Could you create a new issue specifically for your problem? Then we can track there. This one is pretty clouded with lots of stuff in it and is really about first connection.

Then I'll close this one since this is about connecting.