Open CrashxZ opened 4 years ago
@hanyazou . I am having same issue too
@hanyazou , same here on windows 10 @ python 3.8
Tello: 23:09:15.264: Info: start video thread Tello: 23:09:15.264: Info: send connection request (cmd="conn_req:9617") Tello: 23:09:15.298: Info: video receive buffer size = 524288 Tello: 23:09:15.303: Info: state transit State::disconnected -> State::connecting Tello: 23:09:15.323: Info: connected. (port=9617) Tello: 23:09:15.333: Info: send_time (cmd=0x46 seq=0x01e4) Tello: 23:09:15.342: Info: state transit State::connecting -> State::connected Tello: 23:09:15.343: Info: get video stream Tello: 23:09:15.353: Info: start video (cmd=0x25 seq=0x01e4) Tello: 23:09:15.375: Info: recv: ack: cmd=0x34 seq=0x0000 cc 60 00 27 90 34 00 00 00 00 72 a5 Tello: 23:09:15.387: Info: recv: ack: cmd=0x20 seq=0x0000 cc 60 00 27 b0 20 00 00 00 00 42 b9 Tello: 23:09:15.399: Info: recv: ack: cmd=0x34 seq=0x0000 cc 60 00 27 90 34 00 00 00 00 72 a5 Tello: 23:09:15.405: Info: recv: ack: cmd=0x20 seq=0x0000 cc 60 00 27 b0 20 00 00 00 00 42 b9 Tello: 23:09:31.330: Error: video recv: timeout Tello: 23:09:46.433: Error: video recv: timeout Tello: 23:10:01.441: Error: video recv: timeout Tello: 23:10:16.460: Error: video recv: timeout Tello: 23:10:31.500: Error: video recv: timeout
I had the same issues, comments here worked for a few of us Windows users: https://github.com/hanyazou/TelloPy/issues/78#issuecomment-660214525
Same issue on Ubuntu 18.04 and Python 3.8
I had the same issue for months, no solutions so far....
I think I found a solution for this.
You just need to add a call to wait_for_connection
:
drone.connect()
drone.wait_for_connection(10.0)
drone.start_video()
Alternatively, you can add the call to wait_for_connection
directly inside connect
, as I did in this pull request.
@samlaf are you sure that your solution works? I also tried this in the keyboard_and_video.py example but it did not work. What do you mean by "Alternatively, you can add the call to wait_for_connection directly inside connect"? you mean like
def connect(self):
"""Connect is used to send the initial connection request to the drone."""
self.__publish(event=self.__EVENT_CONN_REQ)
self.wait_for_connection(10.0)
... because this also does not work. Completely black window, even the status is not shown anymore on the upper left.
Yes that is what I meant, as you can see from looking at the pull request. I dont quite remember the details though... its been a while, sorry.
On Thu, Aug 19, 2021 at 5:47 PM Helge543 @.***> wrote:
@samlaf https://github.com/samlaf are you sure that your solution works? I also tried this in the keyboard_and_video.py example but it did not work. What do you mean by "Alternatively, you can add the call to wait_for_connection directly inside connect"? you mean like this ... drone.connect(drone.wait_for_connection(10.0)) ... because this does not work.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hanyazou/TelloPy/issues/77#issuecomment-902270231, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACHI4PAIYY7W3B3ZPMI62X3T5V3VTANCNFSM4KXKY5NA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
Hi, I am trying to get the video from tello, and I am still getting this error ( Error: video recv: timeout) Its the same from issue #29
Here is the log:
mainak@mainak:~$ python -m tellopy.examples.video_effect Tello: 02:13:07.741: Info: send connection request (cmd="conn_req:9617") Tello: 02:13:07.742: Info: state transit State::disconnected -> State::connecting Tello: 02:13:07.742: Info: start video thread Tello: 02:13:07.742: Info: video receive buffer size = 425984 Tello: 02:13:07.771: Info: connected. (port=9617) Tello: 02:13:07.771: Info: send_time (cmd=0x46 seq=0x01e4) Tello: 02:13:07.772: Info: state transit State::connecting -> State::connected Tello: 02:13:07.775: Info: get video stream Tello: 02:13:07.775: Info: start video (cmd=0x25 seq=0x01e4) Tello: 02:13:07.821: Info: recv: ack: cmd=0x34 seq=0x0000 cc 60 00 27 90 34 00 00 00 00 72 a5 Tello: 02:13:07.821: Info: recv: ack: cmd=0x20 seq=0x0000 cc 60 00 27 b0 20 00 00 00 00 42 b9 Tello: 02:13:07.822: Info: recv: ack: cmd=0x34 seq=0x0000 cc 60 00 27 90 34 00 00 00 00 72 a5 Tello: 02:13:07.823: Info: recv: ack: cmd=0x20 seq=0x0000 cc 60 00 27 b0 20 00 00 00 00 42 b9 Tello: 02:13:13.745: Error: video recv: timeout Tello: 02:13:18.750: Error: video recv: timeout Tello: 02:13:23.756: Error: video recv: timeout Tello: 02:13:28.769: Error: video recv: timeout Tello: 02:13:33.769: Error: video recv: timeout Traceback (most recent call last): File "/home/mainak/.local/lib/python2.7/site-packages/tellopy/examples/video_effect.py", line 17, in main container = av.open(drone.get_video_stream()) File "av/container/core.pyx", line 274, in av.container.core.open File "av/container/core.pyx", line 226, in av.container.core.Container.cinit File "av/container/core.pyx", line 123, in av.container.core.ContainerProxy.init File "av/container/core.pyx", line 194, in av.container.core.ContainerProxy.err_check File "av/utils.pyx", line 105, in av.utils.err_check AVError: [Errno 1094995529] Invalid data found when processing input: '' [Errno 1094995529] Invalid data found when processing input: '' Tello: 02:13:37.790: Info: quit Tello: 02:13:37.790: Info: state transit State::connected -> State::quit <class 'tellopy._internal.video_stream.VideoStream'>.handle_event(DISCONNECTED) Tello: 02:13:37.843: Info: exit from the recv thread. Tello: 02:13:38.771: Error: video recv: timeout Tello: 02:13:38.771: Info: exit from the video thread.