LukasMaly / wifi-ufo-drone

This Python script allows remote control of some drone models via computer keyboard.
MIT License
18 stars 2 forks source link

eachine e58 wifi fpv drone #1

Open hope-miky opened 4 years ago

hope-miky commented 4 years ago

Does this code work for eachine e58 wifi fpv drone?

ujshriki commented 4 years ago

I tested this code with echine e58 a few months ago. The controls work ok, but I couldn't get any video stream.

hope-miky commented 4 years ago

But noting is working for me, I have connected to the wifi and run both the scripts as sudo but got an error saying could not find the device

ujshriki commented 4 years ago

First, make sure you connect your PC to the drone's WiFi. your PC has IP 192.168.0.2 and drone is on 192.168.0.1 I used wireshark to figure out the E58 uses port 50000 instead of 40000 written in this code. I also changed the iface to use the correct one.

scapy also made some trouble so I change the import: (-) from scapy.all import (+) from scapy import (+) from scapy.layers.inet import *

good luck.

powderluv commented 4 years ago

I did this to get it to work:

UDP_HEARTBEAT_DATA = bytearray([0x63, 0x63, 0x01, 0x00, 0x00, 0x00, 0x00]) @@ -19,9 +20,9 @@ class DroneControl(object): def init(self): self._src = '192.168.0.2' self._dst = '192.168.0.1'

BTW has anyone got the video stream functional ?

shouryashashank commented 1 week ago

Does this work on the same protocol as the ky ufo app? I have toy drone that I am able to control using that app. I wanted to know if there is something I can use to connect to the drone with my pc and run automated scrips on