Difference between revisions of "Explorer/RaspberryPi/Wifibroadcast"

From PaparazziUAV
Jump to navigation Jump to search
Line 17: Line 17:
  update_config=1
  update_config=1
  country=FR
  country=FR
  network={
  network={
   ssid="Androidxp"
   ssid="Androidxp"

Revision as of 05:50, 23 June 2020

The software installation should be done on board (Airpi) and ground (Groundpi) RaspberryPi

sudo apt-get install libpcap-dev libsodium-dev -y
git clone https://github.com/svpcom/wifibroadcast
mv wifibroadcast wifibroadcast-svpcom 
cd wifibroadcast-svpcom
make

Don't worry with error (/bin/sh: 1: trial: not found make: *** [Makefile:43: test] Error 127)

  • Airpi and GroundPi
wpa_supplicant.conf 
"
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=FR
network={
 ssid="Androidxp"
 psk="pprzpprz"
}
network={
 ssid="pprz_router"
 key_mgmt=NONE
}
"
ifconfig wlan1 down
sleep 1
iw dev wlan1 set monitor otherbss
iw reg set DE
ifconfig wlan1 up
iw dev wlan1 set channel 36
iw dev wlan1_DEV set txpower fixed 4000
#iw wlan1 info
  • Airpi
/home/pi/wifibroadcast-svpcom/wfb_tx -K /home/pi/wifibroadcast-svpcom/drone.key -p 1 -u 5600 wlan1
  • Groundpi
/home/pi/wifibroadcast-svpcom/wfb_rx -K /home/pi/wifibroadcast-svpcom/drone.key -p 1 -c 127.0.0.1 -u 6500 wlan1