Introduction
Managing your drone's companion computer requires mastery of various network commands. This comprehensive guide covers essential commands for monitoring, troubleshooting, and maintaining your drone's network connectivity in both client and access point modes.
Pro Tip: These commands work on most Linux-based systems, including Raspberry Pi OS and Ubuntu.
System & Service Management
Service Status
systemctl status hostapd
systemctl status dnsmasq
systemctl status rpanion-server
Service Control
sudo systemctl start hostapd
sudo systemctl stop hostapd
sudo systemctl restart hostapd
Boot Management
sudo systemctl enable hostapd
sudo systemctl disable hostapd
Network Monitoring
Interface Status
ip -br a
ip addr show uap0
iw dev wlan0 info
WiFi Scanning
sudo iwlist wlan0 scan
iwgetid -r
Connected Devices
arp -a
iw dev uap0 station dump
Troubleshooting & Diagnostics
Log Inspection
sudo journalctl -u hostapd -f
sudo journalctl -u dnsmasq -n 50
journalctl -u autohotspot --since "5m ago"
Port Checking
sudo lsof -i -P -n | grep LISTEN
sudo lsof -i:3001
Network Testing
ping 10.42.0.1
curl http://10.42.0.1:3001
Access Point Management
AP Control
sudo /usr/bin/autohotspot
sudo ip addr add 10.42.0.1/24 dev uap0
DHCP Management
sudo dnsmasq --log-queries
sudo dnsmasq --test
Security & Firewall
Firewall Control
sudo ufw status
sudo ufw allow 3001
sudo ufw allow 22
Conflict Resolution
systemctl status ModemManager
sudo apt remove modemmanager
System Monitoring
Resource Monitoring
htop
free -h
df -h
Hardware Status
vcgencmd measure_temp
Maintenance & Updates
System Updates
sudo apt update
sudo apt upgrade
Disk Management
df -h /
lsblk
System Control
sudo reboot
sudo shutdown -h now
Advanced One-Liners
Quick Status
echo "Services: $(systemctl is-active hostapd) $(systemctl is-active dnsmasq) | IP: $(hostname -I) | Temp: $(vcgencmd measure_temp)"
Log Monitoring
sudo journalctl -f -u hostapd -u dnsmasq -u rpanion-server
Conclusion
Mastering these commands will give you complete control over your drone's companion computer network. Whether you're troubleshooting connection issues, monitoring performance, or maintaining your system, these commands provide the foundation for effective drone network management.
Remember: Regular monitoring and maintenance will ensure your drone's network remains reliable during critical operations.