Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I flashed the code but it is not responding to the APP of software #1

Open
KC-coder opened this issue Jan 16, 2022 · 1 comment
Open

Comments

@KC-coder
Copy link

i tried using the code but the code but when i try to control the the motors using the ESP drone APP ( tried on both versions of APP 1 and 2) but their is no response the motor won't work ( when the test condition is been exuating the motor rotate so i think connection are right ) but when i tried to control the motors with mobile app they won't respond even though mobile gets connected with ESP32 and the connection is being shown in the app.

here what monitor shows:
`--- WARNING: GDB cannot open serial ports accessed as COMx
--- Using \.\COM3 instead...
d:\ESP_Work\IDF\esp-idf\tools/idf_monitor.py:474: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if StrictVersion(serial.VERSION) < StrictVersion('3.3.0'):
--- idf_monitor on \.\COM3 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:7732
load:0x40078000,len:15004
load:0x40080400,len:5520
0x40080400: _init at ??:?

entry 0x40080720
I (26) boot: ESP-IDF v4.2.2-dirty 2nd stage bootloader
I (26) boot: compile time 18:05:10
I (27) boot: chip revision: 1
I (30) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (37) qio_mode: Enabling default flash chip QIO
I (42) boot.esp32: SPI Speed : 80MHz
I (47) boot.esp32: SPI Mode : QIO
I (51) boot.esp32: SPI Flash Size : 4MB
I (56) boot: Enabling RNG early entropy source...
I (61) boot: Partition Table:
I (65) boot: ## Label Usage Type ST Offset Length
I (72) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (80) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (87) boot: 2 factory factory app 00 00 00010000 00100000
I (95) boot: End of partition table
I (99) boot_comm: chip revision: 1, min. application chip revision: 0
I (106) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x20630 (132656) map
I (151) esp_image: segment 1: paddr=0x00030658 vaddr=0x3ffb0000 size=0x03eb8 ( 16056) load
I (156) esp_image: segment 2: paddr=0x00034518 vaddr=0x40080000 size=0x0bb00 ( 47872) load
0x40080000: _WindowOverflow4 at D:/ESP_Work/IDF/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1730

I (172) esp_image: segment 3: paddr=0x00040020 vaddr=0x400d0020 size=0x90adc (592604) map
0x400d0020: _stext at ??:?

I (332) esp_image: segment 4: paddr=0x000d0b04 vaddr=0x4008bb00 size=0x0ed50 ( 60752) load
0x4008bb00: xTimerCreateStatic at D:/ESP_Work/IDF/esp-idf/components/freertos/timers.c:340

I (363) boot: Loaded app from partition at offset 0x10000
I (363) boot: Disabling RNG early entropy source...
I (364) cpu_start: Pro cpu up.
I (367) cpu_start: Application information:
I (372) cpu_start: Project name: ESPDrone
I (377) cpu_start: App version: 9c44e3b-dirty
I (383) cpu_start: Compile time: Jan 15 2022 18:04:17
I (389) cpu_start: ELF file SHA256: 000592c2a6d565fa...
I (395) cpu_start: ESP-IDF: v4.2.2-dirty
I (400) cpu_start: Starting app cpu, entry point is 0x40081d10
0x40081d10: call_start_cpu1 at D:/ESP_Work/IDF/esp-idf/components/esp32/cpu_start.c:287

I (0) cpu_start: App cpu up.
I (410) heap_init: Initializing. RAM available for dynamic allocation:
I (417) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (424) heap_init: At 3FFCBB68 len 00014498 (81 KiB): DRAM
I (430) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (436) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (442) heap_init: At 4009A850 len 000057B0 (21 KiB): IRAM
I (449) cpu_start: Pro cpu start user code
I (466) spi_flash: detected chip: generic
I (466) spi_flash: flash io: qio
I (466) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (512) PLATFORM: set active config
I (2512) gpio: GPIO[2]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (2512) gpio: GPIO[4]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (2519) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (2529) gpio: GPIO[15]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (2538) gpio: GPIO[16]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (2547) gpio: GPIO[17]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (2557) gpio: GPIO[26]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (2566) gpio: GPIO[27]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (2576) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (2585) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (2594) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (2604) sccb: pin_sda 12 pin_scl 14

E (2647) camera: Detected camera not supported.
E (2647) camera: Camera probe failed with error 0x20004
E (2647) camera_setup: Camera Init Failed
I (2651) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (2661) gpio: GPIO[33]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (2672) wifi:wifi driver task: 3ffce3ac, prio:23, stack:6656, core=0
I (2676) system_api: Base MAC address is not set
I (2681) system_api: read default base MAC address from EFUSE
I (2699) wifi:wifi firmware version: bb6888c
I (2699) wifi:wifi certification version: v7.0
I (2699) wifi:config NVS flash: enabled
I (2700) wifi:config nano formating: disabled
I (2704) wifi:Init data frame dynamic rx buffer num: 32
I (2709) wifi:Init management frame dynamic rx buffer num: 32
I (2714) wifi:Init management short buffer num: 32
I (2719) wifi:Init dynamic tx buffer num: 30
I (2723) wifi:Init static rx buffer size: 1600
I (2727) wifi:Init static rx buffer num: 10
I (2731) wifi:Init dynamic rx buffer num: 32
I (2735) wifi_init: rx ba win: 6
I (2739) wifi_init: tcpip mbox: 32
I (2743) wifi_init: udp mbox: 64
I (2747) wifi_init: tcp mbox: 6
I (2750) wifi_init: tcp tx win: 5744
I (2755) wifi_init: tcp rx win: 5744
I (2759) wifi_init: tcp mss: 1440
I (2763) wifi_init: WiFi IRAM OP enabled
I (2768) wifi_init: WiFi RX IRAM OP enabled
I (2772) wifi_init: LWIP IRAM OP enabled
I (2778) wifi:Set ps type: 0

I (2783) phy_init: phy_version 4660,0162888,Dec 23 2020
I (2869) wifi:mode : sta (ec:94:cb:5c:9e:48) + softAP (ec:94:cb:5c:9e:49)
I (2871) wifi:Total power save buffer number: 15
I (2871) wifi:Init max length of beacon: 752/752
I (2874) wifi:Init max length of beacon: 752/752
I (2878) WIFI: Attempting to connect to ssid "********"
I (2878) UDP: Socket created
I (2888) UDP: Socket bound, port 2390
I (2892) WIFI: UDP server create socket succeed!!!
I (4897) SYS: ----------------------------

I (4897) SYS: ESP_DRONE_NH_V1 is up and running!

eFuse Two Point: NOT supported
eFuse Vref: Supported
Characterized using eFuse Vref
I (4903) SYS: ----------------------------

I (5323) WIFI: Disconnected from wifi AP ********
I (5324) WIFI: Retry to connect to wifi
I (6266) gpio: GPIO[21]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:1
E (6267) gpio: gpio_isr_handler_add(454): GPIO isr service is not installed, call gpio_install_isr_service() first
I (7762) WIFI: Disconnected from wifi AP ********
I (7763) WIFI: Retry to connect to wifi
I (10201) WIFI: Disconnected from wifi AP ********
I (10202) WIFI: Retry to connect to wifi
I (12641) WIFI: Disconnected from wifi AP ********
I (12641) WIFI: Failed to connect to SSID ********
I (12667) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<0,0>, prof:1
I (12667) wifi:station: 04:c8:07:3f:3b:94 join, AID=1, bgn, 20
I (12682) WIFI: station 04:c8:07:3f:3b:94 join, AID=1
I (12785) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.43.43`

after this no matter what i pressed on the app nothing comes on the monitor.
IDF version: 4.2.2
VS code IDF extension:

Controller using : ESP32 WROOM 32
also tried using ESP32 WROOM 32E
sensors used: MPU6050 only

Connected the motors to the exact GPIO mentioned in the code
and also the sensor to the mentioned GPIOs of I2C0 peripheral
NOTE: i haven't connected the camera
NOTE: i haven't made any changes in the code.

Can anyone please help regarding this issue as i don't know here to start debugging and whats wrong with the code .
thank you

@KC-coder KC-coder changed the title i flasched the I flashed the code but it is not responding to the APP of software Jan 16, 2022
@NelsenEW
Copy link
Owner

Hello @KC-coder, sorry for the late response, I was just finishing my final year thesis. For start, I see some error related to the wifi connection the drone is not connecting to any wifi router, can u set the kconfig using vscode extension to change the wifi ssid and password. Another way is for the phone to connect to the drone, the ssid is: ESP-DRONE, the password is 12345678. Let me know if you make progress with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants