WFB-NG - the next generation of long-range packet radio link based on raw WiFi radio
Go to file
2017-04-24 23:21:20 +03:00
patches Initial commit 2017-04-24 23:20:59 +03:00
scripts Update modulation schme: use MCS #1 QPSK 1/2 40MHz SGI 30 Mbit/s 2017-04-24 23:21:20 +03:00
.gitignore Initial commit 2017-04-24 23:20:59 +03:00
.hgignore Initial commit 2017-04-24 23:20:59 +03:00
fec.c Initial commit 2017-04-24 23:20:59 +03:00
fec.h Initial commit 2017-04-24 23:20:59 +03:00
ieee80211_radiotap.h Initial commit 2017-04-24 23:20:59 +03:00
LICENSE Fix license headers 2017-04-24 23:21:19 +03:00
Makefile Fix issue with dropped packets due to diferent latencies inside different wifi adapters 2017-04-24 23:21:20 +03:00
radiotap.c Initial commit 2017-04-24 23:20:59 +03:00
README.md Fix typo 2017-04-24 23:21:19 +03:00
rx.cpp Fix compiler warnings 2017-04-24 23:21:20 +03:00
rx.hpp Update modulation schme: use MCS #1 QPSK 1/2 40MHz SGI 30 Mbit/s 2017-04-24 23:21:20 +03:00
tx.cpp Update modulation schme: use MCS #1 QPSK 1/2 40MHz SGI 30 Mbit/s 2017-04-24 23:21:20 +03:00
tx.hpp Update modulation schme: use MCS #1 QPSK 1/2 40MHz SGI 30 Mbit/s 2017-04-24 23:21:20 +03:00
wifibroadcast.cpp Add forwarder and aggregator mode to RX for distributed operation 2017-04-24 23:21:19 +03:00
wifibroadcast.hpp Update modulation schme: use MCS #1 QPSK 1/2 40MHz SGI 30 Mbit/s 2017-04-24 23:21:20 +03:00

This is a completely rewrited from scratch version of https://befinitiv.wordpress.com/wifibroadcast-analog-like-transmission-of-live-video-data/ The main modification is how to data are encapsulated into ieee80211 frames. The original wifibroadcast/wifibroadcast-ez accepts stream of bytes and split them into packets don't related to x264 stream structure. This can emit up to 100ms latencies. In my case wifibroadcast accepts UDP stream (for example x264 encapsulated into RTP packets). This provides low latency streaming.

Sample usage chain:

Camera -> gstreamer --[RTP stream (UDP)]--> wifibroadcast_tx --//--[ RADIO ]\
  --//--> wifibroadcast_rx --[RTP stream (UDP)]--> gstreamer --> Display

For encode logitech c920 camera:

gst-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=5600

To decode:

 gst-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=false

Supported WiFi hardware: Ralink RT2800. Was tested with ALPHA AWUS051NH v2 in 5GHz mode. To disable ieee80211 autospeed and maximize output power you need to apply kernel patches from patches directory. See https://github.com/bortek/EZ-WifiBroadcast/wiki for details.