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

Let the swarm begin!

ph2t

Well-known member
Joined
Sep 17, 2018
Messages
158
Reaction score
189
Location
Melbourne, Australia
85851AA0-D9CF-420C-86E9-16721F45082E.jpeg

Have started mucking about with swarm stuff. It’s fun!

I have worked out the code to connect the tello to a wifi access point and then issue commands to multiple tellos at once. Once I’ve done some more work on it I’ll post the code.

It’s good working in a school where they can bankroll one’s obsessions, lol.

Cheers,
ph2t.
 

Ansia

Well-known member
Joined
Oct 14, 2018
Messages
1,030
Reaction score
390
Can you program them to take pictures of girls at the beach from different angles? That would be great!
 

ph2t

Well-known member
Joined
Sep 17, 2018
Messages
158
Reaction score
189
Location
Melbourne, Australia
So I've made a small video of my work so far. Feel free to check it out. :)



Notes:
  • You will need to connect to each tello first to activate it. Without activation it won't act on any commands.
  • You will need to connect to each tello to create the wifi profile on a laptop, this is a feature of windows. Wifi profile is used in the script below to connect to the tello wifi networks.
  • Each tello has had its MAC address noted.
  • The DHCP server on the wifi network has had the three tello MAC addresses entered as an IP address reservation, this way the each tello gets the same IP address each time it connects to the tello-dev wifi network.

The code below runs in the command prompt in windows. It's a batch file, very simple. You need Packetsender, you can get it from here: Packet Sender - Download
The code connects to each tello edu wifi and then gets the tello to connect to a regular wifi network. In this case it is called tello-dev.

Code:
@echo off

REM connect to tello black and make it connect to tello-dev wifi

    netsh wlan connect ssid=TELLO-D3A1BA name=TELLO-D3A1BA   
    timeout /t 10
    packetsender -u -a 192.168.10.1 8889 command
    timeout /t 2
    packetsender -u -a 192.168.10.1 8889 "ap tello-dev t3ll0Q1!"
    timeout /t 1

REM connect to tello green and make it connect to tello-dev wifi

    netsh wlan connect ssid=TELLO-D3AA96 name=TELLO-D3AA96
    timeout /t 10
    packetsender -u -a 192.168.10.1 8889 command
    timeout /t 2
    packetsender -u -a 192.168.10.1 8889 "ap tello-dev t3ll0Q1!"
    timeout /t 1

REM connect to tello red and make it connect to tello-dev wifi

    netsh wlan connect ssid=TELLO-D3A403 name=TELLO-D3A403
    timeout /t 10
    packetsender -u -a 192.168.10.1 8889 command
    timeout /t 2
    packetsender -u -a 192.168.10.1 8889 "ap tello-dev t3ll0Q1!"
    timeout /t 1

netsh wlan connect ssid=tello-dev name=tello-dev
timeout /t 10

ping 10.105.221.20
ping 10.105.221.21
ping 10.105.221.22
The code below is a simple flight plan. It runs in the windows command prompt and the packetsender application needs to be in the same directory to run. I used the ZIP version of packetsender and then copied it into my c:\windows folder so it can be called from anywhere.

This is a batch file, very simple. It isn't fully synchronous as if the code was done in python. The batch files have a very small delay in issuing commands to three tellos at once. I think python would be better at this. The advantage here is that batch files are very simple, like me, lol....

Code:
@echo off

REM connect to wifi network that all the tellos are connected to

netsh wlan connect ssid=tello-dev name=tello-dev
timeout /t 3

REM tellos enter command/SDK mode

packetsender -u -a 10.105.221.20 8889 command
packetsender -u -a 10.105.221.21 8889 command
packetsender -u -a 10.105.221.22 8889 command

timeout /t 5

REM tellos take off

packetsender -u -a 10.105.221.20 8889 takeoff
packetsender -u -a 10.105.221.21 8889 takeoff
packetsender -u -a 10.105.221.22 8889 takeoff

timeout /t 5

REM set different speeds for each tello

packetsender -u -a 10.105.221.20 8889 "speed 10"
packetsender -u -a 10.105.221.21 8889 "speed 50"
packetsender -u -a 10.105.221.22 8889 "speed 90"

timeout /t 5

REM go forward at various distances for each tello

packetsender -u -a 10.105.221.20 8889 "forward 50"
packetsender -u -a 10.105.221.21 8889 "forward 100"
packetsender -u -a 10.105.221.22 8889 "forward 150"

timeout /t 5

REM climb to a higher altitude or not!

packetsender -u -a 10.105.221.20 8889 "up 100"
packetsender -u -a 10.105.221.21 8889 "up 50"
packetsender -u -a 10.105.221.22 8889 "up 0"

timeout /t 5

REM turn tellos in different directions

packetsender -u -a 10.105.221.20 8889 "cw 90"
packetsender -u -a 10.105.221.21 8889 "cw 180"
packetsender -u -a 10.105.221.22 8889 "ccw 90"

timeout /t 5

REM move all tellos forward at different lengths

packetsender -u -a 10.105.221.20 8889 "forward 50"
packetsender -u -a 10.105.221.21 8889 "forward 100"
packetsender -u -a 10.105.221.22 8889 "forward 150"

timeout /t 5

REM land all tellos

packetsender -u -a 10.105.221.20 8889 "land"
packetsender -u -a 10.105.221.21 8889 "land"
packetsender -u -a 10.105.221.22 8889 "land"
cheers,

ph2t.
 
  • Like
Reactions: cyberalex and Ansia

patroy

New member
Joined
Jul 17, 2019
Messages
1
Reaction score
0
OK so call me slow, did you just set your laptop IP to the same 192.168.10.x network or did you set a router to the 192.168.10.x I mean. for that initial connection to a drone, do I need a router at all?
 

New Threads

Forum statistics

Threads
3,445
Messages
26,705
Members
8,958
Latest member
regorecniv