Enabling monitor mode
Ways to prepare for receiving & sending data
For DroneBridge to work the WiFi adapter must be in monitor mode. You can set the cards to monitor mode using the following bash script (root privileges required):
1
interface='yourinterfacename'
2
ip link set $interface down
3
iw dev $interface set type managed
4
ip link set $interface up
5
iw dev $interface set bitrates legacy-2.4 54
6
ip link set $interface down
7
iw dev $interface set type monitor
8
ip link set $interface up
9
iw dev $interface set freq 2472
10
11
echo $interface
12
iwconfig
Copied!
In DroneBridge the script /startup/init_wifi.py is used to setup the cards. You may want to use it.
Last modified 2yr ago
Copy link