All Projects → svpcom → Wifibroadcast

svpcom / Wifibroadcast

Licence: gpl-3.0
Transmitter and receiver of UDP packets using raw WiFi radio

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Wifibroadcast

Gnmic
gnmic a gnmi CLI client and collector
Stars: ✭ 105 (-57.49%)
Mutual labels:  telemetry
Telemetry metrics
Collect and aggregate Telemetry events over time
Stars: ✭ 144 (-41.7%)
Mutual labels:  telemetry
Gopro Utils
Tools to parse metadata from GoPro Hero 5 & 6 cameras
Stars: ✭ 191 (-22.67%)
Mutual labels:  telemetry
Applicationinsights Python
Application Insights SDK for Python
Stars: ✭ 114 (-53.85%)
Mutual labels:  telemetry
Spacextract
Extraction and analysis of telemetry from rocket launch webcasts (from SpaceX and RocketLab)
Stars: ✭ 131 (-46.96%)
Mutual labels:  telemetry
Prom ex
An Elixir Prometheus metrics collection library built on top of Telemetry with accompanying Grafana dashboards
Stars: ✭ 149 (-39.68%)
Mutual labels:  telemetry
Applicationinsights Php
Azure Application Insights SDK for PHP
Stars: ✭ 98 (-60.32%)
Mutual labels:  telemetry
Applicationinsights Home
Application Insights main repository for documentation of overall SDK offerings for all platforms.
Stars: ✭ 221 (-10.53%)
Mutual labels:  telemetry
Gps Overlay On Video
Telemetry (GPS) data overlay on videos
Stars: ✭ 136 (-44.94%)
Mutual labels:  telemetry
Winslap
Swiftly configure a fresh Windows 10 installation with useful tweaks and antispy settings.
Stars: ✭ 175 (-29.15%)
Mutual labels:  telemetry
Telemetry
Data visualization and communication with embedded devices
Stars: ✭ 116 (-53.04%)
Mutual labels:  telemetry
Applicationinsights Dotnet Server
Microsoft Application Insights for .NET Web Applications
Stars: ✭ 130 (-47.37%)
Mutual labels:  telemetry
Socialblocklists
Blocklists to block the communication to social networking sites and privacy harming services
Stars: ✭ 161 (-34.82%)
Mutual labels:  telemetry
Applicationinsights Go
Microsoft Application Insights SDK for Go
Stars: ✭ 113 (-54.25%)
Mutual labels:  telemetry
Luatelemetry
FrSky SmartPort(S.Port), D-series, F.Port and TBS Crossfire telemetry on all Taranis and Horus transmitters
Stars: ✭ 206 (-16.6%)
Mutual labels:  telemetry
Applicationinsights Dotnet Logging
.NET Logging adaptors
Stars: ✭ 100 (-59.51%)
Mutual labels:  telemetry
Ygot
A YANG-centric Go toolkit - Go/Protobuf Code Generation; Validation; Marshaling/Unmarshaling
Stars: ✭ 147 (-40.49%)
Mutual labels:  telemetry
Nvidia Modded Inf
Modified nVidia .inf files to run drivers on all video cards, research & telemetry free drivers
Stars: ✭ 227 (-8.1%)
Mutual labels:  telemetry
Windowsspyblocker
WindowsSpyBlocker 🛡️ is an application written in Go and delivered as a single executable to block spying and tracking on Windows systems.
Stars: ✭ 2,913 (+1079.35%)
Mutual labels:  telemetry
Windows
💎 tweaks & fixes for windows 10 - mostly powershell
Stars: ✭ 169 (-31.58%)
Mutual labels:  telemetry

Wifibroadcast

This is a transmitter and receiver of UDP packets using raw WiFi radio

Main features:

  • 1:1 map RTP to IEEE80211 packets for minimum latency (doesn't serialize to byte steam)
  • Smart FEC support (immediately yeild packet to video decoder if FEC pipeline without gaps)
  • Bidirectional mavlink telemetry. You can use it for mavlink up/down and video down link.
  • IP-over-WFB tunnel support. You can transmit ordinary ip packets over WFB link. Note, don't use ip tunnel for high-bandwidth transfers like video or mavlink. It use less efficient FEC coding and doesn't aggregate small packets.
  • Automatic TX diversity (select TX card based on RX RSSI)
  • Stream encryption and authentication (libsodium)
  • Distributed operation. It can gather data from cards on different hosts. So you don't limited to bandwidth of single USB bus.
  • Aggreagation of mavlink packets. Doesn't send wifi packet for every mavlink packet.
  • Enhanced OSD for Raspberry PI (consume 10% CPU on PI Zero) Compatible with any screen resolution. Supports aspect correction for PAL to HD scaling.

FAQ

Q: What is a difference from original wifibroadcast?

A: Original version of wifibroadcast use a byte-stream as input and splits it to packets of fixed size (1024 by default). If radio packet was lost and this is not corrected by FEC you'll got a hole at random (unexpected) place of stream. This is especially bad if data protocol is not resistent to (was not desired for) such random erasures. So i've rewrite it to use UDP as data source and pack one source UDP packet into one radio packet. Radio packets now have variable size depends on payload size. This is reduces a video latency a lot.

Q: What type of data can be transmitted using wifibroadcast?

A: Any UDP with packet size <= 1466. For example x264 inside RTP or Mavlink.

Q: What are transmission guarancies?

A: Wifibrodcast use FEC (forward error correction) which can recover 4 lost packets from 12 packets block with default settings. You can tune it (both TX and RX simultaniuosly!) to fit your needs.

Q: Is only Raspberry PI supported?

A: Wifibroadcast is not tied to any GPU - it operates with UDP packets. But to get RTP stream you need a video encoder (with encode raw data from camera to x264 stream). In my case RPI is only used for video encoding (becase RPI Zero is too slow to do anything else) and all other tasks (including wifibroadcast) are done by other board (NanoPI NEO2).

Q: I'm unable to setup WFB and want immediate help!

A: See License and Support

Theory

Wifibroadcast puts the wifi cards into monitor mode. This mode allows to send and receive arbitrary packets without association and waiting for ACK packets. Analysis of Injection Capabilities and Media Access of IEEE 802.11 Hardware in Monitor Mode 802.11 timings

Sample usage chain:

Camera -> gstreamer --[RTP stream (UDP)]--> wfb_tx --//--[ RADIO ]--//--> wfb_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 encode a Raspberry Pi Camera V2:

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

HOWTO build:

For development (inline build)

make

For binary distribution RHEL or Fedora

make rpm

For binary distribution Debian or Ubuntu

make deb

For binary distribution (tar.gz)

make bdist

You need to generate encryption keys for gs(ground station) and drone:

wfb_keygen

Leave them inplace for development build or copy to /etc for binary install. Put drone.key to drone and gs.key to gs.

Supported WiFi hardware:

My primary hardware targets are:

  1. Realtek RTL8812au. 802.11ac capable. Easy to buy. Requires external patched driver! System was tested with ALPHA AWUS036ACH on both sides in 5GHz mode.
  2. Ralink RT28xx family. Cheap, but doesn't produced anymore. System was tested with ALPHA AWUS051NH v2 as TX and array of RT5572 OEM cards as RX in 5GHz mode.

To maximize output power and/or increase bandwidth (in case of one-way transmitting) you need to apply kernel patches from patches directory. See https://github.com/svpcom/wifibroadcast/wiki/Kernel-patches for details.

Wifibroadcast + PX4 HOWTO:

https://dev.px4.io/en/qgc/video_streaming_wifi_broadcast.html

Wiki:

See https://github.com/svpcom/wifibroadcast/wiki for additional info

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].