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

sock.recvfrom hangs

baqwas

New member
Joined
Aug 16, 2023
Messages
3
Reaction score
0
Location
Houston, TX
Hello,

The following code snippet works (i.e. no error message):

message='command' tello_address = ('192.168.10.2', 8889) sock.sendto(message.encode(), tello_address)

but the succeeding statement is frozen with no response:

response, ip_address = sock.recvfrom(128)

The tello_address should be correct per the following output from Ubuntu ifconfig:
wlx9cefd5fa9797: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 [B]inet 192.168.10.2[/B] netmask 255.255.255.0 broadcast 192.168.10.255

Can confirm that the WiFi session with the drone is active. My understanding of communications (i.e. socket) is primitive. I understand that there are packages to mask these things for my own benefit. However, I would like to learn from this simple mistake of mine. How can I ensure that sendto/recvfrom exchange will work for the most simple case? Thanks.

Regards.

P.S. I'm a total newbie with respect Tello with just a little bit of UDP knowledge that has become rusty.
 

New Posts

Members online

Forum statistics

Threads
5,701
Messages
39,968
Members
17,067
Latest member
atapattu

New Posts