bkeevil / esp32-cam

A webcam firmware for ESP32 based camera modules
149 stars 43 forks source link

ESP32-cam doesnt connect to local wifi in station mode but only as AP #11

Closed Ciro67 closed 4 years ago

Ciro67 commented 4 years ago

I've build and downloaded the SW. At start up after several attempts the ESP32-Cam is configured as AP. I've tried to change password of my Home ap but the behavior is always the some. Some times happen also that the reboot is continuously and need to power off and power on . Below the Serial Monitor output

Rebooting... ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_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:0x3fff0018,len:4 load:0x3fff001c,len:1100 load:0x40078000,len:10088 load:0x40080400,len:6380 entry 0x400806a4 I (277) psram: This chip is ESP32-D0WD I (277) spiram: Found 64MBit SPI RAM device I (277) spiram: SPI RAM mode: flash 80m sram 80m I (280) spiram: PSRAM initialized, cache is in low/high (2-core) mode. I (287) cpu_start: Pro cpu up. I (291) cpu_start: Application information: I (296) cpu_start: Project name: esp32-cam I (301) cpu_start: App version: 9bb7a8f I (306) cpu_start: Compile time: Mar 15 2020 00:36:32 I (312) cpu_start: ELF file SHA256: 14ca017eb2434a72... I (318) cpu_start: ESP-IDF: v4.0-dirty I (323) cpu_start: Starting app cpu, entry point is 0x400815f0 I (315) cpu_start: App cpu up. I (824) spiram: SPI SRAM memory test OK I (824) heap_init: Initializing. RAM available for dynamic allocation: I (824) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (831) heap_init: At 3FFBC600 len 00023A00 (142 KiB): DRAM I (837) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (843) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (850) heap_init: At 4009CF20 len 000030E0 (12 KiB): IRAM I (856) cpu_start: Pro cpu start user code I (861) spiram: Adding pool of 4096K of external SPI memory to heap allocator I (881) spi_flash: detected chip: generic I (881) spi_flash: flash io: qio I (881) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (949) settings: NVS Flash Init I (949) settings: Settings loaded from NVS I (949) settings: hostname=espressif I (949) settings: wifi_ssid=SDCfamily I (959) settings: wifi_password=xxxxxxxxxxxxxxxxxxxxpgerico I (959) settings: mdns_instance=ESP32 Camera Web Server I (969) settings: ntp_server=pool.ntp.org I (969) settings: timezone= I (979) settings: dhcp=1 I (979) settings: ip=0.0.0.0 I (979) settings: netmask=0.0.0.0 I (989) settings: gateway=0.0.0.0 I (989) settings: dns1=0.0.0.0 I (989) settings: dns2=0.0.0.0 I (999) sccb: pin_sda 26 pin_scl 27  I (999) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0  I (1099) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (1099) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (1109) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (1119) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (1129) gpio: GPIO[21]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (1139) gpio: GPIO[19]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (1149) gpio: GPIO[18]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (1159) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (1169) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (1179) gpio: GPIO[23]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (1189) gpio: GPIO[22]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0  I (1189) camera: Allocating 2 frame buffers (117 KB total) I (1199) camera: Allocating 58 KB frame buffer in OnBoard RAM I (1209) camera: Allocating 58 KB frame buffer in OnBoard RAM I (1459) wifi: wifi driver task: 3ffda228, prio:23, stack:3584, core=0 I (1459) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (1459) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (1479) wifi: wifi firmware version: 581f422 I (1479) wifi: config NVS flash: enabled I (1479) wifi: config nano formating: disabled I (1479) wifi: Init dynamic tx buffer num: 32 I (1489) wifi: Init data frame dynamic rx buffer num: 32 I (1489) wifi: Init management frame dynamic rx buffer num: 32 I (1499) wifi: Init management short buffer num: 32 I (1499) wifi: Init static rx buffer size: 1600 I (1509) wifi: Init static rx buffer num: 10 I (1509) wifi: Init dynamic rx buffer num: 32 I (1519) wifi station: Connecting to AP SSID:SDCfamily password:xxxxxxxxxxxxxxxxxxxxxxxxxx I (1519) wifi: set country: cc=

bkeevil commented 4 years ago

Did you set the SSID and password through make menuconfig or did you store it in nvram through the web interface?

bkeevil commented 4 years ago

Also, what are you using for a power supply? Wifi requires quite a bit of current and if it doesn't get enough the ESP32 browns out and reboots. A USB connection from a computer usually isn't enough.

Ciro67 commented 4 years ago

Hi Thanks for your immediate response. Ive configured SSID and PWD by menuconfig. The power is coming from usb But the esp work if i use arduino cam example, without any issue. at moment I'm closed in my house ( im in Italy) and cannot going in my laboratory to take the additional power. But the board work in AP mode and i can connect to it.

Ciro67 commented 4 years ago

ok solved thanks. was a power issue. Ive used phone charger and now work. thanks so much Ciro