A big enabler for UAVs going forward, especially with respect to commercialization, will be improving telemetry range. On that note, I've released my MAV Downlink Android application and associated tools today.
MAV Downlink opens up a new communication pathway for you to talk to your UAV while it is on a mission. This pathway uses an on-board Android smartphone to push MAVLink communications onto the Internet, then adds an intermediate server that hosts these communications and binds them to interested Mission Planner applications.
Pictured above is the general gist of the application.
I have been using it for the last few months to be able to communicate with my Sky Hunter in flight at essentially any range as long as I am at a field with good cellular service.
I know this idea isn't totally unique as there are several guides on how to enable UAV telemetry using cellular modems. To my knowledge, though, this is the first application that enables you to accomplish this easily using an old Android smartphone you probably have laying around. The big gotcha is that the smartphone must have an OTG compatible USB port. Fortunately, there are many cheap phones with these, notably the Galaxy Nexus:
http://www.ebay.com/sch/i.html?_from=R40&_trksid=p2050601.m570.l1313.TR0.TRC0.H0.Xgalaxy+nexu&_nkw=galaxy+nexus&_sacat=0
Right now, this application requires you to run your own dedicated server to host communication between the onboard smartphone and your MAV mission planning application. It also sends MAV commands in the clear with no authentication or encryption over public wireless airwaves. As such it is only really useful for hobbyists with good knowledge of networking.
It has also been brought to my attention that the Pixhawk cannot be connected to a standard Android phone via OTG. You may be able to put together a custom powered hub that connects to the Android phone but I cannot make any gaurantees. This has been tested on APM 2.6 and 2.5 boards.
I would like to develop this application further by adding dedicated servers so that virtually no set-up is required on the end-user's side. This would also enable me to add authentication and encryption to the communications channel so people using this do not risk their UAV being hacked.. no matter how unlikely that might be.
However, it works fine for me right now. Before I put any effort or money into improving it, I wanted to gauge public interest in it. Please let me know if something like this interests you by dropping a comment below.
You can try the application now. Here is a link to the Android application:
https://play.google.com/store/apps/details?id=com.appliedanalog.uav.mavdownlink
And the users manual:
http://www.applieduas.com/mav_downlink_advanced_manual.pdf
Comments
Yeah that shouldn't be too hard. If you are familiar with Java, you can just pull the code and make a new Endpoint; perhaps called "UdpSocketEndpoint" that would look similar to this:
https://github.com/neonbjb/MAVDownlinkServer/blob/master/IOEndpoint...
But use Multicast sockets instead of regular sockets. Then you can just use that new endpoint in the MAV Downlink Server application that you run on Windows. If you wanted to modify the app running on the drone to use UDP you would just need to make a similar modification to that code (the Endpoints library used is identical):
(replace IOEndpointSocket in this code)
https://github.com/neonbjb/MAV-Downlink/blob/master/src/com/applied...
Not sure if that helps..
James,
Any thoughts on how to switch this solution from TCP to UDP?
APM Planner seems to panic when it loses TCP briefly, and won't reconnect. I figure UDP would accept the occasional glitch in the connection happily, and just keep displaying whatever data makes it.
Nick
I flew 2km from launch on Saturday with a solid telemetry link. Nice to not be tied to the range of the radio.
MAV Downlink is working quite well - it's the reliable half of the connection. APM Planner isn't great with TCP if its network connection is flaky, and DroidPlanner is even worse, but your client and server seem pretty solid.
Glad it worked out for you! Cheers.
@ivan So you're running MP and MAV Mapper on the same machine on your home network, and can't connect one to the other? Or are they on different machines? If they're on different machines, are those machines on the same network?
I have tested with 2 configs:
At home:
In the field:
Are you using port 9998 from MP and port 9999 from MAV Downlink?
@Kim I wonder how the USB thing would work... if the phone is connected to APM via OTG cable, can you connect another device to the phone via USB at the same time?
@playfieldofangels I've been thinking about just that. Since we have a full smartphone on board we shouldn't need to add a pi, right?
GoPros apparently let a client on their wifi network grab a video stream via HLS. An app on the smartphone should be able to connect to the GoPro via wifi, grab the stream, transcode it to a lower bitrate, and stream it out again over wireless. Maybe an app that does this already exists. Not sure about other cameras, but GoPro is pretty common, so support for that would be a good place to start, and easier than most cameras because of simple HLS over wifi.
BTW, just had a couple of good flights using MAVDownlink for telemetry. Went over 1km, with no degradation in telemetry link. Flights lasted about 10 minutes each. MAVDownlink stayed open through both, and I was able to switch batteries without having to restart the app or the downlink.
The single biggest use of this I guess would be having a server based a home and being able to fly from any part of the country and have the data from your drone show up on your field laptop ,, so i guess the data is relayed from the smart phone onboard, to your server at home then sent out to your laptop on location ? Would it be better to have your field laptop be the server and the receiver in one unit rather than setting up a main server at another location ??
Obviously if a person can use the smart phone over 3/4G network it would be far more reliable and allow for greater operating distance than the 3dr radio link .. the possibilities would be fantastic ..I am watching and listening to this blog with great interest.. Well done .. I am looking forward to the refinements of your idea..
Hey Ivan, It sounds a lot like you may be having a set-up issue with your network. PM me and I can try and help you get it worked out.
In fact my day job is software development. I haven't done much java in recent years, but I'd certainly be interested in taking a look.
-
1
-
2
-
3
-
4
-
5
of 5 Next