I’ve been wondering, what would be the easiest way to route telemetry and commands from APM to Internet. Using 3G modem, would provide almost unlimited range (I know there has been some discussions about this in DiyDrones forum. Here in Finland the GSM network is very covering, but due the way the cellular towers are optimized, maximum altitude where the connection works is probably less than 200 m.)
In theory, list of required hardware is not long. One just needs to receive messages from APM and encapsulate them to UDP packets and send via 3G modem and vice versa. Unfortunately handling PPP communications is too large task for simple microcontrollers. I ended up using BeagleBoard for the sake of easy development and since I had one at hand. I realize that BeagleBoard (which essentially is full computer by itself) is an overkill, but it’s not very heavy and fits easily inside Maja’s fuselage. Basically any embedded system, capable of running linux and acting as an usb host would do. Maybe in the future I figure out some additional tasks for BeagleBoard to do.
The setup works quite nice now. Unfortunately I haven't been able to do much flight testing. Weather constantly sucks this winter here in Finland. As you can see I already installed skis, but there's not even snow, even though it's almost new year.
I wrote more detailed post to my blog, with link to sources: http://antibore.wordpress.com/2011/12/28/routing-apm-communications-to-internet/
Comments
Hi
I'm testing the solution above right now. Will give you feedback when i'm finished.
Well I followed the above today, got the green screen, hooked up my sony super HAD 600tvl FPV cam with batter, and I got a grey screen with lines in it. I tried both VLC stream, and the Mplayer stream. Tried switching from PAL_B to NTSC....didn't make a difference.
I'm thinking it is either a driver or my easycap. I've also got an easycap with the Somajic SMI2021 chipset in it. It appeared to find drivers for it when it booted, but no joy on it either. I'll keep playing.
Thanks guys, I've got an Rpi and easycap with the STK1160. I'll play with it. I did find this post:
Hi,
It's working for me, I can capture video with the Easycap STK1160 on my Raspberry Pi !
I have just installed the latest Raspbian image (2013-02-09-wheezy-raspbian, kernel 3.6.11+) :
+ apt-get update/upgrade
+ install & run 'rpi-update' to update kernel
+ remove SPI & I2C from the blacklist (modprobe.d/raspi-blacklist.conf)
+ apt install vlc, mplayer and gstreamer-0.10
+ reboot with the easycap connected
'lsusb' shows the "STK1160 Video Capture Device"
'usb-devices' shows the driver 'easycap' for audio and video
And the video device has been created as /dev/video0
To display the video stream, from a desktop session :
mplayer tv:// -tv driver=v4l2:norm=PAL_BGHIN:width=640:height=480:outfmt=uyvy:device=/dev/video0:input=1:fps=10 -vo sdl -hardframedrop -msglevel all=6
It also works with VLC !
ps: the video is green if there is no signal connected to the easycap
Jerry, the RCA at Raspberry Pi is output, not input.
My "Microsoft Lifecam HD-6000" web camera work also very good connected to the R-Pi. Both outdoor an indoor.
Webcams have different characteristics than FPV Cams or action cameras such as GoPro. No wide angle lenses, different CMOS that is meant to be used indoors and not outdoors, and so on.
And webcams are also problematic on RPI, only a few models work properly. I have two webcams and none of them work the way I want them to.
The easiest will be to install an IP Cam. All the video streaming issues go away because the camera will do that by its own. Problem with IP cams is that they are very expensive and still aren't as good as FPV cams in terms of optics. I found this one for instance which has a decent field of view (80 degrees) but costs too much for our purpose: http://www.ebay.com/itm/Axis-M1054-Network-Surveillance-Camera-0338...
I don't know how many people would buy this cam just to strip any unnecessary parts away from it in order to make it lighter :)
So wouldn't a webcam with a USB connector take care of that?
Thanks for the tip on readymaderc. I agree with you, its a pain to work with these adapters.
To be honest, I hated these converters for FPV flying. It's too bad we can't utilize the video RCA input on the Rpi.
If you buy the one readymaderc sells it will be the STK1160 FYI