libc0607 / rtl8733bu-20230626

Linux Driver for RTL8731BU and RTL8733BU, mainly modified for FPV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rtl8733bu-20230626

An RTL8731BU & RTL8733BU Linux driver, mainly modified for FPV.

The driver is already integrated into OpenIPC for FPV firmware, see source here and Makefile here.
It's enabled by default in SSC338Q FPV firmware, so the CamHi modules with an RTL8731BU Wi-Fi module should be ready to fly (in a short distance) without any hardware modifications.

This repository will be my playground (mainly for dirty low-level hacks. so, no performance guarantee in this repo). Critical changes in the future might be merged to OpenIPC/realtek-wlan.

The modules have an ultra-small size (~13mm*12mm), ~2W total power consumption when ~20dBm (100mW) TX, dual-band Wi-Fi, 1T1R, MCS 0~7, 20MHz BW, LDPC encoding, and a reasonable price of 13.5 CNY (<~$2, BL-M8731BU4).
Suitable for FPV beginners, or any ultra-small size all-in-one digital video transmitters.
... But you should always use a better adaptor for RX with at least 2 antennas and LNAs.

Check out the original driver tarball from the module vendors at here.
Android 4~12 driver is included also, but I have no idea how to use them.

Still working in progress. Needs more tests.

  • OpenIPC integration: done
  • Packet injection: good, the MCS rates work well, LDPC encoding works too
  • Monitor (RX): good
  • Set TX power by iw: supported, validated by my SDR receiver. Should set rtw_tx_pwr_by_rate=0 rtw_tx_pwr_lmt_enable=0 when insmod
  • Set Wi-Fi regd in OS: Set rtw_regd_src=1 when insmod
  • 10MHz BW: Not claimed to be supported by Realtek, no output when testing either, setting reg (used in cfg_mac_clk_87xx) not working
  • Unlock center frequency: All frequencies between 5080MHz ~ 6030MHz (5MHz step) in 5GHz band. They really cost-downed it too much
  • EDCCA Threshold: merged, not tested yet
  • SIFS, Slot time, etc.: TBD
  • Temperature readout: working, see thermal_state in procfs

About

Linux Driver for RTL8731BU and RTL8733BU, mainly modified for FPV

License:GNU General Public License v3.0


Languages

Language:C 99.5%Language:Makefile 0.5%