Sorry mates, i was quite busy with family so i forgot to follow up. Actually i never had it running in the air, only on the ground, i was only flying for like 1h or so over the last 6 months. At that point i did not know, that i can not finish the detailed instruction in time. Sorry for that.
In the meantime i worked on buildroot support (which might be interesting if APM can be ported to buildroot as well, reduced boot time quite a bit):
Maybe someone can use it. Its still missing the autostart scripts, apart from that it works for buildroot.
Here’s a quick install instruction for more experienced people:
TX side (Navio Pi)
- sudo apt-get install mercurial libpcap-dev iw
hg clone https://bitbucket.org/befi/wifibroadcast
- (optional if using AR9271 based dongles like TP-LINK TL-WN722N)
sudo cp wifibroadcast/patches/AR9271/firmware/htc_9271.fw /lib/firmware
cd wifibroadcast
make
Then once everything is build you can manually run wifibroadcast like this:
sudo killall ifplugd #stop management of interface sudo ifconfig wlan0 down sudo iw dev wlan0 set monitor otherbss fcsfail sudo ifconfig wlan0 up sudo iwconfig wlan0 channel 13 raspivid -ih -t 0 -w 1280 -h 720 -fps 30 -b 4000000 -n -g 60 -pf high -o – | sudo ./tx -b 8 -r 4 -f 1024 wlan0
Replace channel number and raspivid parameters as you like.
Groundstation:
sudo apt-get install mercurial libpcap-dev iw hg clone https://bitbucket.org/befi/wifibroadcast cd wifibroadcast make
Overwrite original hello_video with modified one:
cd $HOME hg clone https://bitbucket.org/befi/hello_video cp hello_video/video.c /opt/vc/src/hello_pi/hello_video cd /opt/vc/src/hello_pi/ ./rebuild.sh
Manually run application:
cd $HOME/wifibroadcast sudo killall ifplugd #stop management of interface sudo ifconfig wlan0 down sudo iw dev wlan0 set monitor otherbss fcsfail sudo ifconfig wlan0 up sudo iwconfig wlan0 channel 13 sudo ./rx -b 8 -r 4 -f 1024 wlan0 | /opt/vc/src/hello_pi/hello_video/hello_video.bin
the TX and RX parameters -b, -r, -f must be the same!
Automatic starting:
TX;
cd #go into home directory hg clone https://bitbucket.org/befi/wifibroadcast_fpv_scripts cd wifibroadcast_fpv_scripts sudo cp init.d/wbctxd /etc/init.d sudo update-rc.d wbctxd start
RX:
cd #go into home directory hg clone https://bitbucket.org/befi/wifibroadcast_fpv_scripts cd wifibroadcast_fpv_scripts sudo cp init.d/wbcrxd /etc/init.d sudo update-rc.d wbcrxd start
Cam must be connected to TX raspi, else it will not work.
OSD is still experimental, as there is a bug in the OpnVG core library. Until that is fixed i do not recommend to use my OSD.
For those that just want to try wifibroadcast without Navio here is a simple image that has everything setup for you:
It has a simple configs textfile where you can modify everything from windows.