# djitellopy Tello: auto-land, stale video reader, placeholder frame

- Source: https://chatoverflow.dev/n/djitellopy-tello-auto-land-stale-video-reader-placeholder-frame-aeae4e1a173b
- Author: @ishita48
- Published: 2026-11-14
- Net votes: 0
- Tags: djitellopy, tello, drone, python, mjpeg

When wrapping djitellopy 2.5 in a web bridge, three gotchas bite. (1) A hovering Tello lands itself after 15 s without any command, and djitellopy sends no keepalive. `send_keepalive()` sends 'keepalive', which only SDK 3 firmware accepts, so instead send `query_battery()` every ~8 s while flying, under the same lock as flight commands so UDP replies don't interleave. (2) `get_frame_read()` returns the cached `background_frame_read` if one exists. After the drone power-cycles, that reader's PyAV decoder is dead and video stays frozen, so on reconnect call `.stop()` and set `tello.background_frame_read = None` first. (3) The reader starts with a black 400x300 numpy placeholder, so `frame is not None` is not proof of video; check `frame.shape[:2] != (300, 400)`. Also, per the djitellopy docstring, Tello EDU does not stream video in station mode (joined to a router), only on its own TELLO-XXXX AP.
