dwalker-uk / TelloEduSwarmSearch

A Python library for interfacing with the Ryze Tello Edu, including swarm and search behaviours.
MIT License
25 stars 24 forks source link

No rout to host - while i'm connected to internet #6

Open petale-azerty opened 4 months ago

petale-azerty commented 4 months ago

Hello,

I do have a problem, I'm connected to internet with my computer and sometimes, I don't know why, I can't connect the drones to my wifi.

The drones are in ap mode and perfectly connect on my network. But then when I try to launch a basic code :

from fly_tello import FlyTello # Import FlyTello

my_tellos = list() my_tellos.append('0TQZK8TED030S0') # 3

with FlyTello(my_tellos) as fly: fly.get_wifi() fly.takeoff() fly.pause(5) fly.land()

I received this error :

TelloEduSwarmSearch-master "/Users/mmm24/Desktop/PROJETS/EN COURS/HELLO WORLD /MATIERES/Technique/Drone/Jeu /TelloEduSwarmSearch-master/venv/bin/pyth on" "/Users/mmm24/Desktop/PROJETS/EN COURS/HELLO WORLD /MATIERES/Technique/Drone/Jeu /TelloEduSwarmSearch-master/textesolo.py" [Tello Search]Looking for 1 Tello(s) [Tello Search]Looking for 1 Tello(s) [Tello Search]Looking for 1 Tello(s) [Tello Search]Looking for 1 Tello(s) [Tello Search]Looking for 1 Tello(s) [Tello Search]Looking for 1 Tello(s) Traceback (most recent call last): File "/Users/mmm24/Desktop/PROJETS/EN COURS/HELLO WORLD /MATIERES/Technique/Drone/Jeu /TelloEduSwarmSearch-master/textesolo.py", line 7, in with FlyTello(my_tellos) as fly: File "/Users/mmm24/Desktop/PROJETS/EN COURS/HELLO WORLD /MATIERES/Technique/Drone/Jeu /TelloEduSwarmSearch-master/fly_tello.py", line 30, in init self.tello_mgr.init_tellos(sn_list=tello_sn_list, get_status=get_status, first_ip=first_ip, last_ip=last_ip) File "/Users/mmm24/Desktop/PROJETS/EN COURS/HELLO WORLD /MATIERES/Technique/Drone/Jeu /TelloEduSwarmSearch-master/comms_manager.py", line 83, in init_tellos self.control_socket.sendto('command'.encode(), (ip, self.control_port)) OSError: [Errno 65] No route to host

Can you help me ?

thank you, Maxime