espressif / esp-drone

Mini Drone/Quadcopter Firmware for ESP32 and ESP32-S Series SoCs.
GNU General Public License v3.0
782 stars 232 forks source link

How to connect my ESP32-S2-Drone v1.2 to cfclient? #66

Closed lovefool closed 1 month ago

lovefool commented 2 months ago

My issue may be same as #33 that is already closed.

I have installed the latest version of cfclient frim Bitcraze, installed usblib driver (may not be necessary) on my Windows11 22H2. After powering up ESP-Drone from USB, I change network connection of my PC to the network ESP_DRONE_XXXXX with password 12345678. The status shows IP is 192.168.43.43 and the router is 192.168.43.42.

Then I started cfclient, but I don't know how to cionnect cfclient to ESP32-S2-Drone v1.2. I clicked SCAN, nothing shows up.

Z:\ESP-Drone\crazyflie-clients-python>python .\bin\cfclient UserWarning: Using SDL2 binaries from pysdl2-dll 2.24.0 INFO:cfclient.gui:Disabling STL printouts INFO:cfclient.utils.input.inputreaders:Input readers: ['linuxjsdev', 'pysdl2'] INFO:cfclient.utils.input.inputreaders:Could not initialize [linuxjsdev]: Only supported on Linux INFO:cfclient.utils.input.inputreaders:Successfully initialized [pysdl2] INFO:cfclient.utils.input.inputinterfaces:Found interfaces: ['leapmotion', 'wiimote', 'zmqpull'] INFO:cfclient.utils.input.inputinterfaces:Could not initialize [leapmotion]: Leap Motion library probably not installed (No module named 'leapsdk') INFO:cfclient.utils.input.inputinterfaces:Could not initialize [wiimote]: Missing cwiid (wiimote) driver No module named 'cwiid' INFO:cfclient.utils.config:Dist config read from Z:\Python\Python312\Lib\site-packages\cfclient/configs/config.json INFO:cfclient.utils.config:Config file read from [C:\Users\jayte.HP-PAVILION\AppData\Local\Bitcraze\cfclient/config.json] INFO:cfclient.utils.input.inputinterfaces:Could not initialize [zmqpull]: ZMQ input disabled in config file INFO:OpenGL.acceleratesupport:No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate' INFO:cfclient.utils.zmq_led_driver:ZMQ led disabled in config file INFO:cfclient.utils.zmq_param:ZMQ param disabled in config file INFO:cfclient.utils.input:Using device blacklist [(VirtualBox|VMware)] INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas WARNING:cfclient.ui.dialogs.bootloader:Failed to make web request to get firmware-release WARNING:cfclient.ui.dialogs.bootloader:Failed to parse firmware-releases in web request INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas Cannot find a Crazyradio Dongle INFO:cflib.drivers.cfusb:Looking for devices.... INFO:cflib.crtp.prrtdriver:Initialized PRRT driver. INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas INFO:cfclient.utils.input.inputreaders.pysdl2:Looking for devices INFO:cfclient.utils.input.inputreaders.pysdl2:Found 0 devices INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas INFO:cfclient.ui.tab_toolbox:No config found for open_toolboxes INFO:cfclient.ui.tab_toolbox:No config found for open_toolboxes INFO:cfclient.utils.input.inputreaders.pysdl2:Looking for devices INFO:cfclient.utils.input.inputreaders.pysdl2:Found 0 devices INFO:cfclient.utils.input.inputreaders.pysdl2:Looking for devices INFO:cfclient.utils.input.inputreaders.pysdl2:Found 0 devices INFO:cfclient.utils.input.inputreaders.pysdl2:Looking for devices INFO:cfclient.utils.input.inputreaders.pysdl2:Found 0 devices INFO:cfclient.utils.input.inputreaders.pysdl2:Looking for devices INFO:cfclient.utils.input.inputreaders.pysdl2:Found 0 devices INFO:cfclient.utils.input.inputreaders.pysdl2:Looking for devices INFO:cfclient.utils.input.inputreaders.pysdl2:Found 0 devices

saaraswata commented 2 months ago

I have the same issue still waiting for an answer

saaraswata commented 2 months ago

Okay so I found out the whole solution, I'll be uploading a guide on YouTube later, I'll share link. Be sure to check it

lovefool commented 2 months ago

Thanks,I am looking forward to see your solution.

leeebo commented 1 month ago

@lovefool The bug has already been fixed, please update the latest code and install the new PC client refer https://github.com/qljz1993/crazyflie-clients-python.git

qurrpurr commented 1 week ago

hello I am having the same problem, installed the new cfclient but nothing works. can someone tell me the proper instruction?

leeebo commented 1 week ago

@qurrpurr Please refer this guide https://github.com/leeebo/crazyflie-clients-python/blob/master/README.md

qurrpurr commented 1 week ago

I have done per the instructions connected to drone via wifi but it still could not find the drone when i pressed scan. Screenshot (434)

leeebo commented 1 week ago

@qurrpurr Please try to re-install cflib with pip install git+https://github.com/leeebo/crazyflie-lib-python.git

qurrpurr commented 1 week ago

it works now! thank you!