Tello EDU will only connect once to Mac
1406 0 2023-6-27
Uploading and Loding Picture ...(0/1)
o(^-^)o
edremy
New

United States
Offline

Hello,


I have a couple of Tello EDUs and am having a baffling problem with Wifi connection.  I'm using a 2019 iMac running MacOS 12.6.1 and python to control the drone.


If i start up the Mac and connect to the drone it behaves properly- takes off, runs commands, etc, but it only works once



After that, it will never successfully work again. Wifi says it's connected but running the exact same code again just gets a timeout error.   I can successfully ping the drone so I know it is connected

eremy@eremy-HEJV3X ~ % ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1): 56 data bytes
64 bytes from 192.168.10.1: icmp_seq=0 ttl=255 time=1.685 ms
64 bytes from 192.168.10.1: icmp_seq=1 ttl=255 time=1.631 ms

but running any code gets the following response.   Any ideas?  Thanks






[INFO] tello.py - 129 - Tello instance was initialized. Host: '192.168.10.1'. Port: '8889'.
[INFO] tello.py - 438 - Send command: 'command'
[WARNING] tello.py - 448 - Aborting command 'command'. Did not receive a response after 7 seconds
[INFO] tello.py - 438 - Send command: 'command'
[WARNING] tello.py - 448 - Aborting command 'command'. Did not receive a response after 7 seconds
[INFO] tello.py - 438 - Send command: 'command'
[WARNING] tello.py - 448 - Aborting command 'command'. Did not receive a response after 7 seconds
Traceback (most recent call last):
  File "/Users/eremy/PycharmProjects/tellodemo/main.py", line 7, in <module>
    tello.connect()
  File "/Users/eremy/PycharmProjects/tellodemo/venv/lib/python3.10/site-packages/djitellopy/enforce_types.py", line 54, in wrapper
    return func(*args, **kwargs)
  File "/Users/eremy/PycharmProjects/tellodemo/venv/lib/python3.10/site-packages/djitellopy/tello.py", line 535, in connect
    self.send_control_command("command")
  File "/Users/eremy/PycharmProjects/tellodemo/venv/lib/python3.10/site-packages/djitellopy/enforce_types.py", line 54, in wrapper
    return func(*args, **kwargs)
  File "/Users/eremy/PycharmProjects/tellodemo/venv/lib/python3.10/site-packages/djitellopy/tello.py", line 487, in send_control_command
    self.raise_result_error(command, response)
  File "/Users/eremy/PycharmProjects/tellodemo/venv/lib/python3.10/site-packages/djitellopy/enforce_types.py", line 54, in wrapper
    return func(*args, **kwargs)
  File "/Users/eremy/PycharmProjects/tellodemo/venv/lib/python3.10/site-packages/djitellopy/tello.py", line 529, in raise_result_error
    raise TelloException("Command '{}' was unsuccessful for {} tries. Latest response:\t'{}'"
djitellopy.tello.TelloException: Command 'command' was unsuccessful for 4 tries. Latest response:        'Aborting command 'command'. Did not receive a response after 7 seconds'

2023-6-27
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules