esp-drone
esp-drone copied to clipboard
cfcilent screen stop updating after 3-5 seconds
Describe the bug I finally got connect esp-drone and cfclient.@leeebo thank you for your advice. cfclient screen stop updating after 3~5 seconds. "Disconnect & Connect on cfcilent screen" make it work again, but soon stops. When cfclient connects, Green LED (bottom-right) start blinking, and when cfclient screen stops updating Green LED become off.There are no data on ctrf sniffer screen. The connection broken after a few seconds?
Version (please complete the following information):
- IDF Version: [v4.4.8, commit id]
- SoC Chip: [ESP32-S2]
- Hardware: [ESP32_S2_Drone_V1_2]
To Reproduce everytime
Expected behavior Logs
cfclient log
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:\esp-drone-leebo\crazyflie-clients-python-master\src\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)] 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 Cannot find a Crazyradio Dongle INFO:cflib.drivers.cfusb:Looking for devices.... INFO:cflib.crtp.prrtdriver:Initialized PRRT driver. 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 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 INFO:cfclient.utils.input.inputreaders.pysdl2:Looking for devices INFO:cfclient.utils.input.inputreaders.pysdl2:Found 0 devices INFO:cflib.crazyflie:Callback->Connection initialized[udp://192.168.43.42:2390] INFO:cflib.crazyflie:We are connected[udp://192.168.43.42:2390], request connection setup INFO:cflib.crazyflie.platformservice:Request _request_protocol_version() INFO:cflib.crazyflie:Callback->Connected to [udp://192.168.43.42:2390] INFO:cflib.crazyflie.platformservice:_crt_service_callback INFO:cflib.crazyflie.platformservice:Request protocol version INFO:cflib.crazyflie.platformservice:_platform_callback INFO:cflib.crazyflie.platformservice:Protocol version (platform): 4 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 WARNING:cflib.crazyflie.toccache:Could not save cache, no writable directory INFO:cflib.crazyflie:Log TOC finished updating INFO:cflib.crazyflie.mem:0 memories found INFO:cflib.crazyflie:Memories finished updating INFO:cfclient.utils.input.inputreaders.pysdl2:Looking for devices INFO:cfclient.utils.input.inputreaders.pysdl2:Found 0 devices WARNING:cflib.crazyflie.toccache:Could not save cache, no writable directory INFO:cflib.crazyflie:Param TOC finished updating INFO:cflib.crazyflie:Callback->Connection setup finished [udp://192.168.43.42:2390] INFO:cfclient.utils.logconfigreader:Parsing [PID_tuning/Attitude.json] INFO:cfclient.utils.logconfigreader:Parsing [PID_tuning/Attitude_rate.json] INFO:cfclient.utils.logconfigreader:Parsing [PID_tuning/Position.json] INFO:cfclient.utils.logconfigreader:Parsing [PID_tuning/Velocity.json] INFO:cfclient.utils.logconfigreader:Parsing [PID_tuning_components/Pitch.json] INFO:cfclient.utils.logconfigreader:Parsing [PID_tuning_components/Pitch_rate.json] INFO:cfclient.utils.logconfigreader:Parsing [PID_tuning_components/Position_x.json] INFO:cfclient.utils.logconfigreader:Parsing [PID_tuning_components/Position_y.json] INFO:cfclient.utils.logconfigreader:Parsing [PID_tuning_components/Position_z.json] INFO:cfclient.utils.logconfigreader:Parsing [PID_tuning_components/Roll.json] INFO:cfclient.utils.logconfigreader:Parsing [PID_tuning_components/Roll_rate.json] INFO:cfclient.utils.logconfigreader:Parsing [PID_tuning_components/Velocity_x.json] INFO:cfclient.utils.logconfigreader:Parsing [PID_tuning_components/Velocity_y.json] INFO:cfclient.utils.logconfigreader:Parsing [PID_tuning_components/Velocity_z.json] INFO:cfclient.utils.logconfigreader:Parsing [PID_tuning_components/Yaw.json] INFO:cfclient.utils.logconfigreader:Parsing [PID_tuning_components/Yaw_rate.json] INFO:cfclient.utils.logconfigreader:Parsing [stabilizer.json] WARNING:cflib.crazyflie.toc:Unable to find variable [supervisor.info] INFO:cflib.crazyflie.log:Have successfully started logging for id=1 INFO:cflib.crazyflie.log:Have successfully started logging for id=19 INFO:cflib.crazyflie.log:Have successfully started logging for id=20 INFO:cfclient.utils.input.inputreaders.pysdl2:Looking for devices INFO:cfclient.utils.input.inputreaders.pysdl2:Found 0 devices INFO:cflib.crazyflie:All parameters updated INFO:cflib.crazyflie:Callback->Connection completed [udp://192.168.43.42:2390] 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 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 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 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:cflib.crazyflie:Closing link INFO:cfclient.utils.input.inputreaders.pysdl2:Looking for devices INFO:cfclient.utils.input.inputreaders.pysdl2:Found 0 devices INFO:cflib.crazyflie:Callback->Disconnected from [udp://192.168.43.42:2390] 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
esp-drone log
I (74935) wifi:new:<6,0>, old:<6,0>, ap:<6,0>, sta:<255,255>, prof:6
I (74936) wifi:station: 02:1a:74:b9:59:83 join, AID=1, bgn, 20
[0;32mI (74949) WIFI_UDP: station02:1a:74:b9:59:83join, AID=1[0m
[0;32mI (74949) espnow: station 02:1a:74:b9:59:83 join, AID=1[0m
[0;32mI (75042) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.43.43[0m
[0;32mI (77434) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.43.43[0m
I (78372) wifi:
esp-drone startup log
ESP-ROM:esp32s2-rc4-20191025 Build:Oct 25 2019 rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT) SPIWP:0xee mode:DIO, clock div:1 load:0x3ffe6100,len:0x18cc load:0x4004c000,len:0xd2c load:0x40050000,len:0x30c0 entry 0x4004c23c I (21) boot: ESP-IDF v4.4.8 2nd stage bootloader I (21) boot: compile time 00:24:07 I (21) boot: chip revision: v0.0 I (24) qio_mode: Enabling default flash chip QIO I (29) boot.esp32s2: SPI Speed : 80MHz I (34) boot.esp32s2: SPI Mode : QIO I (39) boot.esp32s2: SPI Flash Size : 2MB I (44) boot: Enabling RNG early entropy source... I (49) boot: Partition Table: I (53) boot: ## Label Usage Type ST Offset Length I (60) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (67) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (75) boot: 2 factory factory app 00 00 00010000 00100000 I (82) boot: End of partition table I (86) esp_image: segment 0: paddr=00010020 vaddr=3f000020 size=1f5ach (128428) map I (117) esp_image: segment 1: paddr=0002f5d4 vaddr=3ffc8670 size=00a44h ( 2628) load I (118) esp_image: segment 2: paddr=00030020 vaddr=40080020 size=8d070h (577648) map I (222) esp_image: segment 3: paddr=000bd098 vaddr=3ffc90b4 size=0344ch ( 13388) load I (225) esp_image: segment 4: paddr=000c04ec vaddr=40022000 size=16668h ( 91752) load I (259) boot: Loaded app from partition at offset 0x10000 I (259) boot: Disabling RNG early entropy source... I (271) cpu_start: Unicore app I (271) cache: Instruction cache : size 8KB, 4Ways, cache line size 32Byte I (273) cpu_start: Pro cpu up. I (296) cpu_start: Pro cpu start user code I (296) cpu_start: cpu freq: 240000000 I (296) cpu_start: Application information: I (299) cpu_start: Project name: ESPDrone I (304) cpu_start: App version: 1 I (308) cpu_start: Compile time: Aug 15 2024 00:23:07 I (314) cpu_start: ELF file SHA256: a9c627e796ec54cf... I (320) cpu_start: ESP-IDF: v4.4.8 I (325) cpu_start: Min chip rev: v0.0 I (330) cpu_start: Max chip rev: v1.99 I (335) cpu_start: Chip rev: v0.0 I (339) heap_init: Initializing. RAM available for dynamic allocation: I (347) heap_init: At 3FFDD8D8 len 0001E728 (121 KiB): DRAM I (353) heap_init: At 3FFFC000 len 00003A10 (14 KiB): DRAM I (359) heap_init: At 3FF9E000 len 00002000 (8 KiB): RTCRAM I (366) spi_flash: detected chip: generic I (370) spi_flash: flash io: qio W (374) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header. I (387) cpu_start: Starting scheduler on PRO CPU. I (403) PLATFORM: set active config I (403) gpio: GPIO[7]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (411) gpio: GPIO[8]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (420) gpio: GPIO[9]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (431) wifi:wifi driver task: 3ffe7684, prio:23, stack:6656, core=0 I (436) system_api: Base MAC address is not set I (441) system_api: read default base MAC address from EFUSE I (449) wifi:wifi firmware version: ff661c3 I (451) wifi:wifi certification version: v7.0 I (455) wifi:config NVS flash: enabled I (458) wifi:config nano formating: disabled I (462) wifi:Init data frame dynamic rx buffer num: 32 I (467) wifi:Init static rx mgmt buffer num: 5 I (471) wifi:Init management short buffer num: 32 I (476) wifi:Init dynamic tx buffer num: 32 I (480) wifi:Init static rx buffer size: 1600 I (484) wifi:Init static rx buffer num: 10 I (488) wifi:Init dynamic rx buffer num: 32 I (492) wifi_init: rx ba win: 6 I (495) wifi_init: tcpip mbox: 32 I (499) wifi_init: udp mbox: 6 I (503) wifi_init: tcp mbox: 6 I (507) wifi_init: tcp tx win: 5760 I (511) wifi_init: tcp rx win: 5760 I (515) wifi_init: tcp mss: 1440 I (519) wifi_init: WiFi IRAM OP enabled I (524) wifi_init: WiFi RX IRAM OP enabled I (530) phy_init: phy_version 2500,8368a9b,Mar 21 2024,19:51:06 I (571) wifi:mode : softAP (60:55:f9:da:47:db) I (573) wifi:Total power save buffer number: 16 I (573) wifi:Init max length of beacon: 752/752 I (574) wifi:Init max length of beacon: 752/752 I (580) espnow: esp-now Version: 2.5.1 I (582) ESPNOW: espnow [version: 1.0] init I (586) espnow: mac: 60:55:f9:da:47:da, version: 2 I (591) espnow: Enable main task I (595) espnow: main task entry I (597) WIFI_UDP: wifi_init_softap complete.SSID:ESP-DRONE_6055F9DA47DB password:12345678 I (608) WIFI_UDP: Socket created I (612) WIFI_UDP: Socket bound, port 2390 I (616) WIFI_UDP: UDP server create socket succeed I (1122) SYS: ----------------------------
I (1122) SYS: ESPlane 2.0 is up and running!
I (1122) I2CDRV: i2c 1 driver install return = 0 I (1126) EEPROM: spi_flash_init ... ! I (1130) EEPROM: spi_flash_read ok ! Characterized using Two Point Value I (2446) I2CDRV: i2c 0 driver install return = 0 I (2446) SENSORS: MPU6050 I2C connection [OK].
W (2801) ZR2: Z-down sensor [FAIL]
W (2801) SENSORS: VL53L1X I2C connection [FAIL].
I (2801) gpio: GPIO[34]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 W (2856) SENSORS: PMW3901 SPI connection [FAIL].
I (2856) SENSORS: sensors init done I (2857) SENSORS: pitch_calib = 0.000000,roll_calib = 0.000000 I (2861) gpio: GPIO[12]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:1 I (2871) ESTIMATOR: Using Complementary (1) estimator
I (2877) POSITION_CONTROLLER: thrustBase = 24000,thrustMin = 5000 I (2884) SYS: wifilinkTest = 1 I (3387) SYS: pmTest = 1 I (3387) SYS: workerTest = 1 I (3387) SYS: systemTest = 1 I (3387) SYS: configblockTest = 1 I (3390) COMM: wifilinkTest = 1 I (3394) COMM: crtpTest = 1 I (3398) COMM: crtpserviceTest = 1 I (3402) COMM: platformserviceTest = 1 I (3406) COMM: consoleTest = 1 I (3410) COMM: paramTest = 1 I (3414) SYS: commTest = 1 I (3417) SYS: commanderTest = 1 I (5235) SYS: stabilizerTest = 1 I (5235) SYS: estimatorKalmanTaskTest = 1 I (5235) SYS: soundTest = 1 No one-wire memory handler registered I (5239) SYS: memTest = 1 I (5243) STAB: Wait for sensor calibration...
I (5248) SYS: systemStart ! selftestPassed = 1 I (6123) SYSLOAD: Task dump I (6123) SYSLOAD: Load Stack left Name PRI I (6123) SYSLOAD: 0.13 2540 Tmr Svc 1 I (6125) SYSLOAD: 79.56 1716 IDLE 0 I (6129) SYSLOAD: 0.01 1120 CRTP-RX 2 I (6134) SYSLOAD: 0.12 1432 PWRMGNT 1 I (6139) SYSLOAD: 0.03 2580 tiT 18 I (6143) SYSLOAD: 0.20 888 STABILIZER 7 I (6148) SYSLOAD: 0.04 2380 espnow_main 1 I (6153) SYSLOAD: 0.00 1752 UDP_TX 2 I (6157) SYSLOAD: 0.00 1360 UDP_RX 2 I (6162) SYSLOAD: 0.00 1700 WIFILINK 2 I (6166) SYSLOAD: 0.00 1248 CRTP-TX 2 I (6171) SYSLOAD: 0.00 1228 LOG 2 I (6175) SYSLOAD: 0.00 728 PARAM 2 I (6180) SYSLOAD: 0.00 672 CMDHL 3 I (6184) SYSLOAD: 0.00 712 MEM 2 I (6188) SYSLOAD: 0.00 1028 KALMAN 1 I (6193) SYSLOAD: 3.50 728 SYSTEM 1 I (6197) SYSLOAD: 0.00 588 LEDSEQCMD 1 I (6202) SYSLOAD: 12.40 3620 esp_timer 22 I (6207) SYSLOAD: 1.85 4592 wifi 23 I (6211) SYSLOAD: 2.04 1900 SENSORS 6 I (6216) SYSLOAD: 0.00 2096 sys_evt 20 I (6220) SYSLOAD: Free heap: 57740 bytes I (6478) SENSORS: isBiasValueFound! I (6479) STAB: Ready to fly.