Hello Tello Pilot!
Join our DJI Tello community & remove this banner.
Sign up

SWARM of 2 Tello Drones (Simple Tello / Non-EDU Version)

a4aleem

New member
Joined
Oct 29, 2021
Messages
3
Reaction score
1
All I do is, connect both Tellos' to different wifi dongles and send commands via socket programming, the operating system I am on is, Ubuntu 18.04 below is the code...

import socket
import time

drone_1 = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
drone_1.setsockopt(socket.SOL_SOCKET, 25, 'wlxd03745aa6775'.encode()) #'wlxd03745aa6775' it will be different to your wifi dongle (check yours' using ifconfig command in Linux / Ubuntu OS).

drone_2 = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
drone_2.setsockopt(socket.SOL_SOCKET, 25, 'wlxd03745ab21eb'.encode())

drone_1.sendto('command'.encode(), 0, ('192.168.10.1', 8889))
drone_2.sendto('command'.encode(), 0, ('192.168.10.1', 8889))

#%%Code to takeoff:
drone_1.sendto('takeoff'.encode(), 0, ('192.168.10.1', 8889))
drone_2.sendto('takeoff'.encode(), 0, ('192.168.10.1', 8889))

#%%Code to land:
drone_1.sendto('land'.encode(), 0, ('192.168.10.1', 8889))
drone_2.sendto('land'.encode(), 0, ('192.168.10.1', 8889))
 

Attachments

  • vlcsnap-2021-10-30-18h32m46s944.png
    vlcsnap-2021-10-30-18h32m46s944.png
    262.6 KB · Views: 7
  • Tello_SWARM_Code.zip
    375 bytes · Views: 3
  • Test Flight Videos.zip
    9.5 MB · Views: 3

martinpi

Well-known member
Joined
Dec 15, 2019
Messages
100
Reaction score
52
Location
Vienna. Austria
Website
martinpi.at
Thanks a lot!
I own a normal Tello and an EDU, and I thought about doing a swarm using a second wifi dongle. It should work by setting the EDU into station mode, but your solution is a lot easier.
And it opens up swarm programming for non-EDU users.

Does anyone know how to get the equiivalent of "wlxd03745aa6775" under Windows?
When looking up ip addresses etc, I use ipconfig, but this does not show anythong that looks similar to wlxd03745aa6775
 

New Threads

Members online

No members online now.

Forum statistics

Threads
5,229
Messages
37,785
Members
14,359
Latest member
Gromo