Drobotics logo DROBOTICSTechnical Library

Guides Guide

Drobotics | Drone Network Management Guide

All Guides

Drone Network Management Command Guide

Master your drone's companion computer with essential network commands

Essential Network Commands

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
Check the status of essential services

Service Control

sudo systemctl start hostapd
sudo systemctl stop hostapd
sudo systemctl restart hostapd
Start, stop, or restart services

Boot Management

sudo systemctl enable hostapd
sudo systemctl disable hostapd
Enable or disable services at boot

Network Monitoring

Interface Status

ip -br a
ip addr show uap0
iw dev wlan0 info
Check network interfaces and their status

WiFi Scanning

sudo iwlist wlan0 scan
iwgetid -r
Scan for networks and check current connection

Connected Devices

arp -a
iw dev uap0 station dump
View devices connected to your network

Troubleshooting & Diagnostics

Log Inspection

sudo journalctl -u hostapd -f
sudo journalctl -u dnsmasq -n 50
journalctl -u autohotspot --since "5m ago"
Monitor service logs in real-time

Port Checking

sudo lsof -i -P -n | grep LISTEN
sudo lsof -i:3001
Check which services are listening on ports

Network Testing

ping 10.42.0.1
curl http://10.42.0.1:3001
Test network connectivity and services

Access Point Management

AP Control

sudo /usr/bin/autohotspot
sudo ip addr add 10.42.0.1/24 dev uap0
Manually control access point functionality

DHCP Management

sudo dnsmasq --log-queries
sudo dnsmasq --test
Monitor and test DHCP functionality

Security & Firewall

Firewall Control

sudo ufw status
sudo ufw allow 3001
sudo ufw allow 22
Manage firewall settings and open ports

Conflict Resolution

systemctl status ModemManager
sudo apt remove modemmanager
Identify and resolve service conflicts

System Monitoring

Resource Monitoring

htop
free -h
df -h
Monitor system resources and performance

Hardware Status

vcgencmd measure_temp
Check hardware status and temperature

Maintenance & Updates

System Updates

sudo apt update
sudo apt upgrade
Keep your system updated and secure

Disk Management

df -h /
lsblk
Monitor disk space and storage

System Control

sudo reboot
sudo shutdown -h now
Reboot or shutdown the system

Advanced One-Liners

Quick Status

echo "Services: $(systemctl is-active hostapd) $(systemctl is-active dnsmasq) | IP: $(hostname -I) | Temp: $(vcgencmd measure_temp)"
Get a quick system status overview

Log Monitoring

sudo journalctl -f -u hostapd -u dnsmasq -u rpanion-server
Monitor all relevant logs simultaneously

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.