WFB-NG - 基于原始 WiFi 无线电的下一代长距离分组无线电链路
This is the next generation of long-range packet radio link based on raw WiFi radio
:warning: Warranty/Disclaimer
This is free software and comes with no warranty, as stated in parts 15 and 16 of the GPLv3 license. The creators and contributors of the software are not responsible for how it is used. See License and Support for details.
If you like WFB-ng you can support author via:
bitcoin:bc1qfvlsvr0ea7tzzydngq5cflf4yypemlacgt6t05See https://github.com/svpcom/wfb-ng/wiki for additional info
Telegram group: (wfb-ng support) https://t.me/wfb_ng Please note, that it is only one official group.
For detailed instructions on how to get started read through PX4-Guide and follow the Setup HowTo
*.img.gz).*.img file and flash it to 2-SD Cards.192.168.0.111 with their IP-Address). Password: raspberryFor putty users don't forget to select: Settings -> Window -> Translation -> Enable VT100 line drawing checkbox before connect.
sudo systemctl enable wifibroadcast@gs
sudo systemctl enable rtsp
sudo systemctl enable fpv-video
sudo systemctl enable osd
sudo rebootsudo systemctl enable wifibroadcast@drone
sudo systemctl enable fpv-camera
sudo rebootwfb-cli gsRTL8812AU or RTL8812EU driver:sudo apt-get install dkms
# For 8812au:
git clone -b v5.2.20 https://github.com/svpcom/rtl8812au.git
cd rtl8812au/
# For 8812eu:
git clone -b v5.15.0.1 https://github.com/svpcom/rtl8812eu.git
cd rtl8812eu/
# For both:
sudo ./dkms-install.shifconfigwlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 2312
ether 0c:91:60:0a:5a:8b txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0$ ethtool -i wlan0 and ensure that it show right driver: rtl88xxau_wfb or rtl8812eucurl -o install_gs.sh https://raw.githubusercontent.com/svpcom/wfb-ng/refs/heads/master/scripts/install_gs.sh
sudo bash ./install_gs.shwfb-cli gsFailing to get connection?
sudo journalctl -xu wifibroadcast@gs. If there is any errors then try to resolve it.drone.key and gs.key on drone and gs corresponds each other./etc/wifibroadcast.cfg and ensure that [common] wifi_channel and [drone] link_domain / [gs] link domain is the same on the ground and on the drone.Q: What type of data can be transmitted using WFB-ng?
A: Any UDP with packet size <= 3993. For example x264/265 inside of RTP, Mavlink or generic IPv4 via tunnel.
Q: What are transmission guarantees?
A: WFB-ng uses FEC (forward error correction) which can recover 4 lost packets from 12 packets block with default settings. You can tune it to fit your needs.
Q: Is only Raspberry PI supported?
A: WFB-ng is not tied to any GPU - it operates with UDP packets. But to get RTP stream you need a video encoder (which encodes raw data from camera to x264 stream). In my case RPI is only used for video encoding (because RPI Zero is too slow to do anything else) and all other tasks (including WFB-ng) are done by other board (NanoPI NEO2).
Q: What is a difference from original wifibroadcast?
A: Original version of wifibroadcast uses a byte-stream as input and splits it to packets of fixed size (1024 by default). If radio packets were lost and this is not corrected by FEC you'll get a hole at random (unexpected) place of stream. This is especially bad if data protocol is not resistant to (was not desired for) such random erasures. So i've rewritten it to use UDP as data source and pack one source UDP packet into one radio packet. Radio packets now have variable size depending on payload size. This reduces video latency a lot.
WFB-ng puts the wifi cards into monitor mode. This mode allows to send and receive arbitrary packets without association and waiting for ACK packets.
Camera --[RTP stream (UDP)]--> wfb_ng --//--[ RADIO ]--//--> wfb_ng --[RTP stream (UDP)]--> gstreamer --> DisplayFor encoding video from OpenIPC-based security camera connected via ethernet to your PC or SBC you don't need a special pipeline. Just set outgoing to udp://your_ip_address:5602 in majestic.yaml
For encoding video from a Raspberry Pi Camera (obsolete, latency is high comparing to OpenIPC):
raspivid -n -ex fixedfps -w 960 -h 540 -b 4000000 -fps 30 -vf -hf -t 0 -o - | \
gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=35 ! udpsink sync=false host=127.0.0.1 port=5602gst-launch-1.0 uvch264src device=/dev/video0 initial-bitrate=6000000 average-bitrate=6000000 iframe-period=1000 name=src auto-start=true \
src.vidsrc ! queue ! video/x-h264,width=1920,height=1080,framerate=30/1 ! h264parse ! rtph264pay ! udpsink host=localhost port=5602gst-launch-1.0 udpsrc port=5600 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' \
! rtph264depay ! avdec_h264 ! clockoverlay valignment=bottom ! autovideosink fps-update-interval=1000 sync=falseFor development (inline build)
makeFor binary distribution RHEL or Fedora
make rpmFor binary distribution Debian or Ubuntu
sudo apt install python3-all libpcap-dev libsodium-dev libevent-dev python3-pip python3-pyroute2 \
python3-twisted python3-serial python3-all-dev python3-venv iw socat \
debhelper dh-python fakeroot build-essential python3-msgpack \
python3-setuptools libgstrtspserver-1.0-dev -y
sudo make debFor binary distribution (tar.gz)
make bdistYou need to generate encryption keys for gs(ground station) and drone:
wfb_keygenLeave them in place for development build or copy to /etc for binary install.
Put drone.key to drone and gs.key to gs.
暂无开放 Issues,或尚未同步最近议题。