0

I have a project where it requires me to control two drones and receive video streamings for both (udp packets) on the Host Computer (Ubuntu VM). The two drones are connected to my 2 of my Raspb Pis each through Wi-Fi and the Raspb Pis are connected under the same network as the host computer via LAN. However, as I am new to networking, I am unable to get the forwarding correctly.

Here are my networking information.

  1. Drone IP Default Address- '192.168.10.1:8889'
  2. UDP Video stream: '0.0.0.0:11111'
  3. Host Computer: 192.168.0.101
  4. VM: 192.168.0.100
  5. RPI1: eth0- 192.168.0.103 wlan0- DroneIP
  6. RPI2: etho- 192.168.0.104 wlan0- DroneIP The script below will be used to conduct the udp forward for one drone.
# /etc/init.d/tello2

### BEGIN INIT INFO
# Provides:          tello2
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Forward UDP packets to/from Tello
# Description:       See https://github.com/clydemcqueen/tello_ros
### END INIT INFO

case "$1" in
  start)
    echo "Starting tello2"
    /home/pi/udp_forward/udp_forward 0.0.0.0 12002 192.168.10.1 8889 &
    /home/pi/udp_forward/udp_forward 0.0.0.0 8890 192.168.0.104 13002 &
    /home/pi/udp_forward/udp_forward 0.0.0.0 11111 192.168.0.104 14002 &
    ;;
  stop)
    echo "Stopping tello2"
    killall udp_forward
    ;;
  *)
    echo "Usage: /etc/init.d/tello2 {start|stop}"
    exit 1
    ;;
esac

exit 0

Additional questions I would like consult are whether if it's necessary to do port forwarding to enable UDP packet forwarding. Since it's a school project, i hope to use a router without internet connection. Thank you all.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.